:root {
  --static-bg: #f6f8fd;
  --static-surface: #ffffff;
  --static-surface-soft: #eff4ff;
  --static-border: #d9e4ff;
  --static-text: #0f172a;
  --static-muted: #64748b;
  --static-primary: #2563eb;
  --static-primary-2: #0891b2;
  --static-success: #16a34a;
  --static-danger: #dc2626;
}

html.dark {
  --static-bg: #050b16;
  --static-surface: #0c1526;
  --static-surface-soft: #0f1c34;
  --static-border: #223456;
  --static-text: #e7edf8;
  --static-muted: #94a3b8;
  --static-primary: #60a5fa;
  --static-primary-2: #22d3ee;
  --static-success: #4ade80;
  --static-danger: #f87171;
}

.static-navbar,
.static-footer,
[data-controller="landing-page"] {
  font-family: "IBM Plex Sans", "Segoe UI", "Helvetica Neue", sans-serif;
}

.static-navbar,
.static-footer {
  backdrop-filter: blur(14px);
}

.static-navbar {
  background: color-mix(in srgb, var(--static-surface) 85%, transparent) !important;
  border-color: var(--static-border) !important;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
}

html.dark .static-navbar {
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

.static-footer {
  background: color-mix(in srgb, var(--static-surface) 95%, transparent) !important;
  border-color: var(--static-border) !important;
}

.static-theme-toggle {
  border: 1px solid var(--static-border);
  background: color-mix(in srgb, var(--static-surface) 90%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.static-theme-toggle:hover {
  border-color: color-mix(in srgb, var(--static-primary) 45%, var(--static-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--static-primary) 18%, transparent);
}

[data-controller="landing-page"] {
  color: var(--static-text);
  background: transparent;
  position: relative;
  overflow: hidden;
}

[data-controller="landing-page"] > * {
  position: relative;
  z-index: 1;
}

[data-controller="landing-page"] section {
  position: relative;
  isolation: isolate;
}

[data-controller="landing-page"] section:not(:first-of-type)::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 42%),
    radial-gradient(circle at 84% 2%, rgba(8, 145, 178, 0.06), transparent 35%),
    linear-gradient(to right, rgba(37, 99, 235, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(37, 99, 235, 0.03) 1px, transparent 1px);
  background-size: auto, auto, 30px 30px, 30px 30px;
  pointer-events: none;
  z-index: 0;
}

[data-controller="landing-page"] > section:first-of-type {
  background:
    radial-gradient(1200px 480px at 30% 0%, rgba(37, 99, 235, 0.3), transparent 65%),
    radial-gradient(900px 420px at 70% 0%, rgba(99, 102, 241, 0.26), transparent 62%),
    linear-gradient(180deg, #0a1f44 0%, #0a1533 45%, #081126 100%);
}

html.dark [data-controller="landing-page"] > section:first-of-type {
  background:
    radial-gradient(1200px 480px at 30% 0%, rgba(59, 130, 246, 0.24), transparent 65%),
    radial-gradient(900px 420px at 70% 0%, rgba(99, 102, 241, 0.2), transparent 62%),
    linear-gradient(180deg, #091225 0%, #070f1f 45%, #050b16 100%);
}

[data-controller="landing-page"] > section:first-of-type::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5, 10, 28, 0.2), rgba(5, 10, 28, 0.56)),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
  z-index: 0;
}

[data-controller="landing-page"] > section:first-of-type > .absolute.inset-0 {
  opacity: 0.62;
}

[data-controller="landing-page"] > section:first-of-type > .relative {
  z-index: 1;
}

[data-controller="landing-page"] section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--static-primary) 35%, var(--static-border)), transparent);
}

[data-controller="landing-page"] section:last-child::after {
  display: none;
}

[data-controller="landing-page"] > section:first-of-type::after {
  display: none;
}

[data-controller="landing-page"] h1,
[data-controller="landing-page"] h2,
[data-controller="landing-page"] h3,
[data-controller="landing-page"] h4 {
  letter-spacing: -0.022em;
}

[data-controller="landing-page"] h1,
[data-controller="landing-page"] h2 {
  font-weight: 830;
}

[data-controller="landing-page"] .text-gray-900 {
  color: var(--static-text) !important;
}

[data-controller="landing-page"] .text-gray-600,
[data-controller="landing-page"] .text-gray-500,
[data-controller="landing-page"] .text-gray-400 {
  color: var(--static-muted) !important;
}

html.dark [data-controller="landing-page"] .dark\:text-gray-300,
html.dark [data-controller="landing-page"] .dark\:text-gray-400 {
  color: var(--static-muted) !important;
}

[data-controller="landing-page"] section:first-of-type .text-4xl,
[data-controller="landing-page"] section:first-of-type .sm\:text-6xl,
[data-controller="landing-page"] section:first-of-type .lg\:text-7xl {
  text-shadow: 0 12px 34px rgba(2, 6, 23, 0.5);
}

[data-controller="landing-page"] section:first-of-type .max-w-3xl {
  text-wrap: balance;
}

[data-controller="landing-page"] section:first-of-type h1 span {
  background-image: linear-gradient(100deg, #93c5fd, #7dd3fc 35%, #c4b5fd 68%, #93c5fd);
  -webkit-text-fill-color: transparent;
}

[data-controller="landing-page"] section:first-of-type .text-blue-100 {
  color: rgba(226, 232, 240, 0.92) !important;
}

[data-controller="landing-page"] section:first-of-type .text-blue-200 {
  color: rgba(191, 219, 254, 0.9) !important;
}

[data-controller="landing-page"] section:first-of-type [class*="min-w-[120px]"] {
  background: rgba(15, 23, 42, 0.42) !important;
  border-color: rgba(148, 163, 184, 0.35) !important;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

[data-controller="landing-page"] section:first-of-type [class*="min-w-[120px]"] .text-2xl {
  color: #f8fafc !important;
}

[data-controller="landing-page"] section:first-of-type a.inline-flex.border-2 {
  border-color: rgba(191, 219, 254, 0.45) !important;
  background: rgba(15, 23, 42, 0.24) !important;
}

[data-controller="landing-page"] [data-action-value="github-clone"],
[data-controller="landing-page"] [data-action-value="final-github"],
[data-controller="landing-page"] [data-action-value="documentation"] {
  border: 1px solid color-mix(in srgb, var(--static-primary) 42%, transparent);
  box-shadow: 0 16px 35px color-mix(in srgb, var(--static-primary) 26%, transparent);
}

[data-controller="landing-page"] [data-action-value="github-clone"]:hover,
[data-controller="landing-page"] [data-action-value="final-github"]:hover,
[data-controller="landing-page"] [data-action-value="documentation"]:hover {
  transform: translateY(-2px) scale(1.02);
}

[data-landing-page-target="featureCard"],
[data-controller="landing-page"] .rounded-xl,
[data-controller="landing-page"] .rounded-2xl,
[data-controller="landing-page"] .code-window,
[data-controller="landing-page"] table {
  border-color: color-mix(in srgb, var(--static-primary) 18%, var(--static-border));
  box-shadow: 0 14px 38px rgba(2, 6, 23, 0.11);
}

html.dark [data-landing-page-target="featureCard"],
html.dark [data-controller="landing-page"] .rounded-xl,
html.dark [data-controller="landing-page"] .rounded-2xl,
html.dark [data-controller="landing-page"] .code-window,
html.dark [data-controller="landing-page"] table {
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.38);
}

[data-landing-page-target="featureCard"] {
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
  overflow: hidden;
}

[data-landing-page-target="featureCard"]::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: linear-gradient(90deg, var(--static-primary), var(--static-primary-2));
  opacity: 0.75;
}

[data-landing-page-target="featureCard"]:hover {
  transform: translateY(-5px);
  border-color: color-mix(in srgb, var(--static-primary) 58%, var(--static-border));
}

[data-controller="landing-page"] .code-window {
  border: 1px solid color-mix(in srgb, var(--static-primary) 30%, var(--static-border));
}

[data-controller="landing-page"] .code-window code,
[data-controller="landing-page"] .code-window pre,
[data-controller="landing-page"] .code-window span {
  font-family: "JetBrains Mono", "Fira Code", "SFMono-Regular", Consolas, monospace;
}

[data-controller="landing-page"] .code-window .bg-gray-800 {
  background: linear-gradient(90deg, #101b34, #0f2439) !important;
}

[data-controller="landing-page"] table {
  border: 1px solid color-mix(in srgb, var(--static-primary) 22%, var(--static-border));
  border-collapse: separate;
  border-spacing: 0;
}

[data-controller="landing-page"] table thead {
  background: linear-gradient(115deg, var(--static-primary), var(--static-primary-2));
}

[data-controller="landing-page"] table thead th {
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

[data-controller="landing-page"] table tbody tr {
  transition: transform 0.16s ease, background-color 0.16s ease;
}

[data-controller="landing-page"] table tbody tr:hover {
  transform: scale(1.004);
}

[data-controller="carousel"] [data-carousel-target="container"] {
  border: 1px solid color-mix(in srgb, var(--static-primary) 22%, var(--static-border));
  background: color-mix(in srgb, var(--static-surface) 92%, transparent) !important;
}

[data-controller="carousel"] [data-action*="carousel#"] {
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.26);
}

[data-controller="carousel"] [data-carousel-target="indicator"] {
  width: 0.72rem;
  height: 0.72rem;
}

[data-controller="landing-page"] blockquote {
  position: relative;
}

[data-controller="landing-page"] blockquote::before {
  content: "\201C";
  position: absolute;
  left: -0.35rem;
  top: -0.62rem;
  font-size: 2.1rem;
  line-height: 1;
  color: color-mix(in srgb, var(--static-primary) 72%, transparent);
  opacity: 0.35;
}

[data-controller="landing-page"] img.rounded-full {
  border: 2px solid color-mix(in srgb, var(--static-primary) 25%, var(--static-border));
}

[data-controller="landing-page"] .border-l-4.border-blue-600 {
  border-left-color: var(--static-primary) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--static-primary) 18%, transparent);
}

[data-controller="landing-page"] .bg-blue-50.dark\:bg-gray-800.rounded-xl.p-6.border-l-4.border-blue-600 {
  background: linear-gradient(165deg, color-mix(in srgb, var(--static-surface-soft) 76%, transparent), color-mix(in srgb, var(--static-surface) 92%, transparent)) !important;
}

[data-controller="landing-page"] a[href][target="_blank"] {
  transition: transform 0.2s ease, filter 0.2s ease;
}

[data-controller="landing-page"] a[href][target="_blank"]:hover {
  filter: saturate(1.08);
}

[data-controller="landing-page"] .bg-gradient-to-r.from-blue-600.to-indigo-600,
[data-controller="landing-page"] .bg-gradient-to-r.from-blue-600.to-blue-700,
[data-controller="landing-page"] .bg-gradient-to-br.from-blue-500.to-indigo-600,
[data-controller="landing-page"] .bg-gradient-to-r.from-blue-600.to-indigo-600.rounded-2xl.p-8.text-white,
[data-controller="landing-page"] .py-20.bg-gradient-to-r.from-blue-600.to-indigo-600 {
  background-image: linear-gradient(122deg, var(--static-primary), var(--static-primary-2)) !important;
}

[data-controller="landing-page"] .py-20.bg-gradient-to-r.from-blue-600.to-indigo-600 {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

[data-controller="landing-page"] .bg-green-100,
[data-controller="landing-page"] .dark\:bg-green-900\/30 {
  background-color: color-mix(in srgb, var(--static-success) 16%, transparent) !important;
}

[data-controller="landing-page"] .text-green-800,
[data-controller="landing-page"] .dark\:text-green-400 {
  color: var(--static-success) !important;
}

[data-controller="landing-page"] .bg-red-100,
[data-controller="landing-page"] .dark\:bg-red-900\/30 {
  background-color: color-mix(in srgb, var(--static-danger) 16%, transparent) !important;
}

[data-controller="landing-page"] .text-red-600,
[data-controller="landing-page"] .dark\:text-red-400 {
  color: var(--static-danger) !important;
}

/* Status badges: keep icon/text aligned and prevent awkward wrapping */
[data-controller="landing-page"] span.bg-green-100.text-green-800.text-xs,
[data-controller="landing-page"] span.bg-blue-100.text-blue-800.text-xs,
[data-controller="landing-page"] span.bg-blue-100.text-blue-700.text-xs {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  white-space: nowrap;
  line-height: 1.1;
  flex-shrink: 0;
  border: 1px solid color-mix(in srgb, var(--static-border) 75%, transparent);
}

[data-controller="landing-page"] [data-landing-page-target="featureCard"] span.ml-auto.bg-green-100,
[data-controller="landing-page"] [data-landing-page-target="featureCard"] span.ml-auto.bg-blue-100 {
  padding-inline: 0.625rem;
  min-height: 1.625rem;
}

@media (max-width: 1024px) {
  [data-controller="landing-page"] table tbody tr:hover {
    transform: none;
  }

  [data-controller="landing-page"] [data-action-value="github-clone"]:hover,
  [data-controller="landing-page"] [data-action-value="final-github"]:hover,
  [data-controller="landing-page"] [data-action-value="documentation"]:hover {
    transform: none;
  }
}

@media (max-width: 640px) {
  [data-controller="landing-page"] section:not(:first-of-type)::before {
    background-image:
      radial-gradient(circle at 12% 0%, rgba(37, 99, 235, 0.08), transparent 38%),
      radial-gradient(circle at 84% 2%, rgba(8, 145, 178, 0.06), transparent 32%);
  }

  [data-controller="landing-page"] .text-4xl,
  [data-controller="landing-page"] .text-3xl {
    letter-spacing: -0.02em;
  }
}
