/* Theme tokens: dark */
[data-theme="dark"] {
  --bg-base: #030208;
  --grad-a: rgba(124, 92, 255, 0.45);
  --grad-b: rgba(49, 208, 255, 0.18);
  --text: #f7f4ff;
  --muted: rgba(247, 244, 255, 0.58);
  --line: rgba(255, 255, 255, 0.09);
  --accent: #7c5cff;
  --accent2: #31d0ff;
  --hero-em: rgba(255, 255, 255, 0.92);
  --nav-bg: rgba(3, 2, 8, 0.72);
  --noise-op: 0.04;
  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
  --glass-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  --glass-row: rgba(255, 255, 255, 0.85);
  --glass-meter-track: rgba(255, 255, 255, 0.08);
  --chip-border: rgba(255, 255, 255, 0.12);
  --step-bg: rgba(255, 255, 255, 0.03);
  --step-hover: rgba(124, 92, 255, 0.35);
  --band-bg: linear-gradient(180deg, rgba(8, 6, 18, 0.4), rgba(3, 2, 8, 0.95));
  --pillar-bg: rgba(255, 255, 255, 0.03);
  --checklist-text: rgba(247, 244, 255, 0.82);
  --cta-bg: radial-gradient(80% 120% at 50% -20%, rgba(124, 92, 255, 0.25), transparent 55%),
    rgba(10, 8, 20, 0.85);
  --cta-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --faq-summary: rgba(247, 244, 255, 0.95);
  --faq-divider: rgba(255, 255, 255, 0.06);
  --code-bg: rgba(255, 255, 255, 0.06);
  --btn-ghost-bg: rgba(255, 255, 255, 0.04);
  --theme-well: rgba(255, 255, 255, 0.05);
  --theme-active: rgba(255, 255, 255, 0.12);
  --orb-a: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(124, 92, 255, 0.35), transparent 70%);
  --orb-b: radial-gradient(circle at 60% 40%, rgba(49, 208, 255, 0.35), transparent 65%);
}

/* Theme tokens: light */
[data-theme="light"] {
  --bg-base: #f7f5fc;
  --grad-a: rgba(124, 92, 255, 0.22);
  --grad-b: rgba(49, 208, 255, 0.12);
  --text: #16131f;
  --muted: rgba(22, 19, 31, 0.62);
  --line: rgba(22, 19, 31, 0.1);
  --accent: #5b3fd4;
  --accent2: #0d8bc9;
  --hero-em: rgba(22, 19, 31, 0.88);
  --nav-bg: rgba(255, 255, 255, 0.82);
  --noise-op: 0.025;
  --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 255, 0.88));
  --glass-shadow: 0 24px 60px rgba(45, 30, 90, 0.12);
  --glass-row: rgba(22, 19, 31, 0.88);
  --glass-meter-track: rgba(22, 19, 31, 0.08);
  --chip-border: rgba(22, 19, 31, 0.12);
  --step-bg: rgba(255, 255, 255, 0.72);
  --step-hover: rgba(124, 92, 255, 0.45);
  --band-bg: linear-gradient(180deg, rgba(245, 242, 255, 0.95), rgba(235, 230, 250, 0.98));
  --pillar-bg: rgba(255, 255, 255, 0.78);
  --checklist-text: rgba(22, 19, 31, 0.85);
  --cta-bg: radial-gradient(80% 120% at 50% -20%, rgba(124, 92, 255, 0.15), transparent 55%),
    rgba(255, 255, 255, 0.92);
  --cta-shadow: 0 24px 70px rgba(45, 30, 90, 0.1);
  --faq-summary: rgba(22, 19, 31, 0.94);
  --faq-divider: rgba(22, 19, 31, 0.08);
  --code-bg: rgba(22, 19, 31, 0.06);
  --btn-ghost-bg: rgba(255, 255, 255, 0.65);
  --theme-well: rgba(22, 19, 31, 0.06);
  --theme-active: rgba(124, 92, 255, 0.18);
  --orb-a: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(124, 92, 255, 0.25), transparent 70%);
  --orb-b: radial-gradient(circle at 60% 40%, rgba(49, 208, 255, 0.28), transparent 65%);
}

@media (prefers-color-scheme: light) {
  [data-theme="auto"] {
    --bg-base: #f7f5fc;
    --grad-a: rgba(124, 92, 255, 0.22);
    --grad-b: rgba(49, 208, 255, 0.12);
    --text: #16131f;
    --muted: rgba(22, 19, 31, 0.62);
    --line: rgba(22, 19, 31, 0.1);
    --accent: #5b3fd4;
    --accent2: #0d8bc9;
    --hero-em: rgba(22, 19, 31, 0.88);
    --nav-bg: rgba(255, 255, 255, 0.82);
    --noise-op: 0.025;
    --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.95), rgba(248, 246, 255, 0.88));
    --glass-shadow: 0 24px 60px rgba(45, 30, 90, 0.12);
    --glass-row: rgba(22, 19, 31, 0.88);
    --glass-meter-track: rgba(22, 19, 31, 0.08);
    --chip-border: rgba(22, 19, 31, 0.12);
    --step-bg: rgba(255, 255, 255, 0.72);
    --step-hover: rgba(124, 92, 255, 0.45);
    --band-bg: linear-gradient(180deg, rgba(245, 242, 255, 0.95), rgba(235, 230, 250, 0.98));
    --pillar-bg: rgba(255, 255, 255, 0.78);
    --checklist-text: rgba(22, 19, 31, 0.85);
    --cta-bg: radial-gradient(80% 120% at 50% -20%, rgba(124, 92, 255, 0.15), transparent 55%),
      rgba(255, 255, 255, 0.92);
    --cta-shadow: 0 24px 70px rgba(45, 30, 90, 0.1);
    --faq-summary: rgba(22, 19, 31, 0.94);
    --faq-divider: rgba(22, 19, 31, 0.08);
    --code-bg: rgba(22, 19, 31, 0.06);
    --btn-ghost-bg: rgba(255, 255, 255, 0.65);
    --theme-well: rgba(22, 19, 31, 0.06);
    --theme-active: rgba(124, 92, 255, 0.18);
    --orb-a: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.9), rgba(124, 92, 255, 0.25), transparent 70%);
    --orb-b: radial-gradient(circle at 60% 40%, rgba(49, 208, 255, 0.28), transparent 65%);
  }
}

@media (prefers-color-scheme: dark) {
  [data-theme="auto"] {
    --bg-base: #030208;
    --grad-a: rgba(124, 92, 255, 0.45);
    --grad-b: rgba(49, 208, 255, 0.18);
    --text: #f7f4ff;
    --muted: rgba(247, 244, 255, 0.58);
    --line: rgba(255, 255, 255, 0.09);
    --accent: #7c5cff;
    --accent2: #31d0ff;
    --hero-em: rgba(255, 255, 255, 0.92);
    --nav-bg: rgba(3, 2, 8, 0.72);
    --noise-op: 0.04;
    --glass-bg: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    --glass-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
    --glass-row: rgba(255, 255, 255, 0.85);
    --glass-meter-track: rgba(255, 255, 255, 0.08);
    --chip-border: rgba(255, 255, 255, 0.12);
    --step-bg: rgba(255, 255, 255, 0.03);
    --step-hover: rgba(124, 92, 255, 0.35);
    --band-bg: linear-gradient(180deg, rgba(8, 6, 18, 0.4), rgba(3, 2, 8, 0.95));
    --pillar-bg: rgba(255, 255, 255, 0.03);
    --checklist-text: rgba(247, 244, 255, 0.82);
    --cta-bg: radial-gradient(80% 120% at 50% -20%, rgba(124, 92, 255, 0.25), transparent 55%),
      rgba(10, 8, 20, 0.85);
    --cta-shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
    --faq-summary: rgba(247, 244, 255, 0.95);
    --faq-divider: rgba(255, 255, 255, 0.06);
    --code-bg: rgba(255, 255, 255, 0.06);
    --btn-ghost-bg: rgba(255, 255, 255, 0.04);
    --theme-well: rgba(255, 255, 255, 0.05);
    --theme-active: rgba(255, 255, 255, 0.12);
    --orb-a: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2), rgba(124, 92, 255, 0.35), transparent 70%);
    --orb-b: radial-gradient(circle at 60% 40%, rgba(49, 208, 255, 0.35), transparent 65%);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  color-scheme: light dark;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  color: var(--text);
  background: radial-gradient(100% 80% at 15% -10%, var(--grad-a), transparent 52%),
    radial-gradient(80% 60% at 100% 10%, var(--grad-b), transparent 45%), var(--bg-base);
  overflow-x: hidden;
  transition: background 0.25s ease, color 0.2s ease;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: var(--noise-op);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  z-index: 0;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px clamp(18px, 4vw, 48px);
  border-bottom: 1px solid transparent;
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  transition: border-color 0.3s ease, background 0.25s ease;
}

.nav.is-scrolled {
  border-color: var(--line);
}

.logo {
  font-weight: 800;
  letter-spacing: -0.03em;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  flex-shrink: 0;
}

.logo span {
  color: var(--accent2);
}

.nav-end {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 20px);
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(14px, 3vw, 24px);
}

.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  transition: color 0.2s ease;
}

.nav-links a:hover {
  color: var(--text);
}

.nav-cta {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--btn-ghost-bg);
  color: var(--text) !important;
  text-decoration: none;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
}

.theme-switch {
  display: inline-flex;
  align-items: center;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--theme-well);
  gap: 2px;
}

.theme-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 7px 10px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.theme-btn:hover {
  color: var(--text);
}

.theme-btn[aria-pressed="true"] {
  background: var(--theme-active);
  color: var(--text);
}

.theme-icon {
  font-size: 14px;
  line-height: 1;
  opacity: 0.95;
}

@media (max-width: 720px) {
  .theme-label {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .theme-btn {
    padding: 8px 11px;
  }

  .nav-links {
    display: none;
  }
}

.hero {
  position: relative;
  z-index: 1;
  padding: clamp(32px, 8vw, 100px) clamp(18px, 4vw, 48px) 80px;
}

.hero-grid {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(32px, 6vw, 72px);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent2);
  margin: 0 0 16px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.04em;
  margin: 0 0 18px;
  font-weight: 800;
}

.hero h1 em {
  font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--hero-em);
}

.lede {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.8vw, 18px);
  line-height: 1.65;
  color: var(--muted);
  max-width: 540px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 36px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  color: #05030a;
  background: linear-gradient(120deg, #f0ecff, #b9f6ff);
  box-shadow: 0 18px 50px rgba(124, 92, 255, 0.35);
}

.btn-ghost {
  color: var(--text);
  border-color: var(--line);
  background: var(--btn-ghost-bg);
}

.btn-lg {
  padding: 16px 28px;
  font-size: 15px;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 36px;
  margin: 0;
}

.stats div {
  min-width: 120px;
}

.stats dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}

.stats dd {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}

.hero-visual {
  position: relative;
  min-height: 320px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(0.5px);
  animation: floaty 7s ease-in-out infinite;
}

.orb-a {
  width: 220px;
  height: 220px;
  top: 0;
  right: 10%;
  background: var(--orb-a);
  opacity: 0.95;
}

.orb-b {
  width: 180px;
  height: 180px;
  bottom: 0;
  left: 0;
  background: var(--orb-b);
  animation-delay: -2.5s;
}

@keyframes floaty {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-12px) scale(1.03);
  }
}

.glass-card {
  position: relative;
  z-index: 2;
  margin-top: 40px;
  padding: 22px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--glass-bg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(16px);
  transition: box-shadow 0.25s ease;
}

.glass-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--glass-row);
  margin-bottom: 16px;
}

.pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent2);
  box-shadow: 0 0 14px var(--accent2);
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.45;
  }
}

.glass-meter {
  height: 6px;
  border-radius: 999px;
  background: var(--glass-meter-track);
  overflow: hidden;
  margin-bottom: 16px;
}

.glass-meter-fill {
  display: block;
  height: 100%;
  width: 72%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  animation: meter 2.4s ease-in-out infinite alternate;
}

@keyframes meter {
  from {
    width: 52%;
  }
  to {
    width: 88%;
  }
}

.glass-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chip {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--chip-border);
  color: var(--muted);
}

.section {
  position: relative;
  z-index: 1;
  padding: 72px clamp(18px, 4vw, 48px);
  max-width: 1040px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(26px, 3.4vw, 36px);
  margin: 0 0 12px;
  letter-spacing: -0.03em;
}

.section-sub {
  margin: 0 0 40px;
  color: var(--muted);
  font-size: 16px;
  max-width: 640px;
  line-height: 1.6;
}

.section-band {
  max-width: none;
  margin: 0;
  padding-left: clamp(18px, 4vw, 48px);
  padding-right: clamp(18px, 4vw, 48px);
  background: var(--band-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band .section-title,
.section-band .section-sub {
  max-width: 1040px;
  margin-left: auto;
  margin-right: auto;
}

.section-band .section-sub {
  margin-bottom: 36px;
}

.pillars {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .pillars {
    grid-template-columns: 1fr;
  }
}

.pillar {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--pillar-bg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.pillar:hover {
  transform: translateY(-3px);
  border-color: var(--step-hover);
}

.pillar h3 {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 700;
}

.pillar p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 800px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  padding: 22px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--step-bg);
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.step:hover {
  transform: translateY(-4px);
  border-color: var(--step-hover);
}

.step-num {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--accent2);
}

.step h3 {
  margin: 10px 0 8px;
  font-size: 18px;
}

.step p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

code {
  font-size: 0.9em;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--code-bg);
  border: 1px solid var(--line);
}

.cta {
  padding: 80px clamp(18px, 4vw, 48px) 100px;
}

.cta-inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--cta-bg);
  box-shadow: var(--cta-shadow);
  transition: box-shadow 0.25s ease;
}

.cta h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.02em;
}

.cta p {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}

.footer {
  padding: 28px clamp(18px, 4vw, 48px) 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: space-between;
  font-size: 13px;
  color: var(--muted);
}

.footer .muted {
  max-width: 480px;
}

.faq {
  max-width: 720px;
  margin: 0 auto;
}

.faq-intro {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 16px;
  max-width: 560px;
}

.faq-item {
  margin-bottom: 12px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: var(--step-bg);
  overflow: hidden;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 700;
  color: var(--faq-summary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
  opacity: 0.7;
}

.faq-item[open] summary::after {
  transform: rotate(-135deg);
  margin-top: 4px;
}

.faq-item .faq-body {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  border-top: 1px solid var(--faq-divider);
}

.faq-item .faq-body p {
  margin: 0 0 12px;
}

.faq-item .faq-body p:last-child {
  margin-bottom: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
