/* LunarX — light / dark themes via html[data-theme] */

:root {
  color-scheme: light;
  --bg-deep: #ffffff;
  --bg-elevated: #f8fafc;
  --bg-card: #ffffff;
  --bg-card-hover: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --text: #0f172a;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  --accent: #4f46e5;
  --accent-deep: #4338ca;
  --accent-dim: rgba(79, 70, 229, 0.08);
  --accent-glow: rgba(99, 102, 241, 0.12);
  --accent-text: #4f46e5;
  --success: #059669;
  --header-bg: rgba(255, 255, 255, 0.92);
  --path-accent-border: rgba(79, 70, 229, 0.2);
  --path-accent-fill: rgba(79, 70, 229, 0.04);
  --expect-border: rgba(79, 70, 229, 0.18);
  --btn-primary-hover-shadow: 0 4px 14px rgba(79, 70, 229, 0.35);
  --logo-shadow: 0 2px 8px var(--accent-glow);
  --form-error: #dc2626;
  --radius: 12px;
  --radius-sm: 10px;
  --radius-pill: 999px;
  --radius-card: 16px;
  --font-sans: "Figtree", system-ui, -apple-system, sans-serif;
  --font-display: "Inter", system-ui, -apple-system, sans-serif;
  --shadow: 0 1px 0 rgba(15, 23, 42, 0.04), 0 14px 40px -22px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 50px -12px rgba(15, 23, 42, 0.1);
  --form-section-bg: linear-gradient(165deg, #eef2ff 0%, #f5f7ff 22%, #ffffff 52%, #ffffff 100%);
  --form-section-glow: radial-gradient(ellipse 85% 55% at 50% -10%, rgba(99, 102, 241, 0.22), transparent 58%);
  --form-card-elev: 0 4px 14px rgba(15, 23, 42, 0.07), 0 32px 64px -18px rgba(79, 70, 229, 0.22);
  --toggle-checked-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(79, 70, 229, 0.2);
  --max: 1160px;
  --narrow: 720px;
}

html[data-theme="dark"] {
  color-scheme: dark;
  --bg-deep: #0f1117;
  --bg-elevated: #161b22;
  --bg-card: #1c2129;
  --bg-card-hover: #252d3a;
  --border: rgba(148, 163, 184, 0.14);
  --border-strong: rgba(148, 163, 184, 0.24);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-faint: #64748b;
  --accent: #818cf8;
  --accent-deep: #6366f1;
  --accent-dim: rgba(129, 140, 248, 0.14);
  --accent-glow: rgba(99, 102, 241, 0.25);
  --accent-text: #a5b4fc;
  --success: #34d399;
  --header-bg: rgba(15, 17, 23, 0.92);
  --path-accent-border: rgba(129, 140, 248, 0.35);
  --path-accent-fill: rgba(99, 102, 241, 0.1);
  --expect-border: rgba(129, 140, 248, 0.28);
  --btn-primary-hover-shadow: 0 4px 20px rgba(99, 102, 241, 0.45);
  --logo-shadow: 0 2px 16px rgba(99, 102, 241, 0.35);
  --shadow: 0 1px 0 rgba(0, 0, 0, 0.2), 0 12px 40px -18px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 50px -12px rgba(0, 0, 0, 0.55);
  --form-error: #f87171;
  --form-section-bg: linear-gradient(165deg, #1a1d33 0%, #141824 38%, #0f1117 100%);
  --form-section-glow: radial-gradient(ellipse 80% 50% at 50% -5%, rgba(99, 102, 241, 0.28), transparent 55%);
  --form-card-elev: 0 8px 28px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(129, 140, 248, 0.18), 0 36px 72px -24px rgba(79, 70, 229, 0.35);
  --toggle-checked-shadow: 0 2px 14px rgba(99, 102, 241, 0.2), 0 0 0 1px rgba(129, 140, 248, 0.25);
}

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

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg-deep);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-feature-settings: "kern" 1, "liga" 1;
}

/* Visually hidden until focused — avoids document width from left: -9999px */
.skip-link:not(:focus):not(:focus-visible) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus,
.skip-link:focus-visible {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 100;
  width: auto;
  height: auto;
  margin: 0;
  padding: 0.75rem 1rem;
  clip-path: none;
  overflow: visible;
  white-space: normal;
  background: var(--accent);
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg);
}

a {
  color: var(--accent-text);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.container {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}

.container.narrow {
  max-width: var(--narrow);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}
.logo:hover {
  color: var(--accent-text);
  text-decoration: none;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  flex-shrink: 0;
  display: block;
  box-shadow: var(--logo-shadow);
}

.logo-img--sm {
  width: 22px;
  height: 22px;
  border-radius: 7px;
}

.nav {
  display: none;
  align-items: center;
  gap: 1.75rem;
}
.nav a {
  color: var(--text-muted);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
}
.nav a:hover {
  color: var(--text);
  text-decoration: none;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.header-actions {
  display: none;
  align-items: center;
  gap: 0.5rem;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  color: var(--accent-text);
}

.theme-toggle__icon {
  display: none;
  align-items: center;
  justify-content: center;
}

html[data-theme="light"] .theme-toggle__icon--moon {
  display: flex;
}

html[data-theme="dark"] .theme-toggle__icon--sun {
  display: flex;
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 22px;
  background: var(--text);
  margin-inline: auto;
  border-radius: 1px;
}

.nav-drawer {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1.25rem 1.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}
.nav-drawer a {
  color: var(--text);
  padding: 0.6rem 0;
  font-weight: 500;
}
.nav-drawer[hidden] {
  display: none;
}

@media (min-width: 900px) {
  .nav,
  .header-actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .nav-drawer {
    display: none !important;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.btn:hover {
  text-decoration: none;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: transparent;
  box-shadow: var(--shadow);
}
.btn-primary:hover {
  background: var(--accent-deep);
  filter: none;
  box-shadow: var(--btn-primary-hover-shadow);
}

.btn-secondary {
  background: var(--bg-card);
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  background: var(--bg-card-hover);
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent-text);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}
.btn-ghost:hover {
  color: var(--text);
}

.btn-lg {
  padding: 0.9rem 1.65rem;
  font-size: 0.9375rem;
}

.btn-block {
  width: 100%;
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(2.25rem, 5.5vw, 3.75rem) 0 clamp(2.5rem, 6vw, 4.25rem);
  overflow: visible;
  border-bottom: none;
  background: linear-gradient(
    180deg,
    var(--bg-deep) 0%,
    var(--bg-deep) 28%,
    color-mix(in srgb, var(--bg-elevated) 18%, var(--bg-deep)) 52%,
    color-mix(in srgb, var(--bg-elevated) 45%, var(--bg-deep)) 78%,
    var(--bg-elevated) 100%
  );
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .hero {
    background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 100%);
  }
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(5rem, 22vw, 12rem);
  pointer-events: none;
  z-index: 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    transparent 18%,
    color-mix(in srgb, var(--bg-elevated) 32%, transparent) 45%,
    color-mix(in srgb, var(--bg-elevated) 72%, var(--bg-deep)) 78%,
    var(--bg-elevated) 100%
  );
  opacity: 1;
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .hero::after {
    background: linear-gradient(to bottom, transparent 15%, var(--bg-elevated) 100%);
    opacity: 0.88;
  }
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 0;
}

.hero-aurora {
  position: absolute;
  inset: -28% -38% -18% -38%;
  background:
    radial-gradient(ellipse 78% 68% at 12% 8%, rgba(99, 102, 241, 0.16), transparent 56%),
    radial-gradient(ellipse 58% 48% at 88% 2%, rgba(79, 70, 229, 0.08), transparent 54%),
    radial-gradient(ellipse 145% 95% at 50% 118%, rgba(79, 70, 229, 0.1), transparent 62%);
}

html[data-theme="dark"] .hero-aurora {
  background:
    radial-gradient(ellipse 72% 58% at 15% 12%, rgba(129, 140, 248, 0.14), transparent 56%),
    radial-gradient(ellipse 52% 42% at 82% 8%, rgba(99, 102, 241, 0.08), transparent 54%),
    radial-gradient(ellipse 140% 90% at 50% 118%, rgba(79, 70, 229, 0.14), transparent 64%);
}

.hero-grain {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 0;
  mask-image: linear-gradient(to bottom, black 0%, black 58%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 58%, transparent 100%);
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 7px,
      rgba(16, 18, 22, 0.022) 7px,
      rgba(16, 18, 22, 0.022) 8px
    ),
    repeating-linear-gradient(
      18deg,
      transparent,
      transparent 11px,
      rgba(16, 18, 22, 0.018) 11px,
      rgba(16, 18, 22, 0.018) 12px
    );
}

html[data-theme="dark"] .hero-grain {
  mix-blend-mode: soft-light;
  opacity: 0.14;
  mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 0%, black 55%, transparent 100%);
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 7px,
      rgba(255, 255, 255, 0.03) 7px,
      rgba(255, 255, 255, 0.03) 8px
    ),
    repeating-linear-gradient(
      18deg,
      transparent,
      transparent 11px,
      rgba(255, 255, 255, 0.025) 11px,
      rgba(255, 255, 255, 0.025) 12px
    );
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-layout {
  display: block;
}

.hero-main {
  min-width: 0;
}

.hero-rail {
  display: none;
}

@media (min-width: 1024px) {
  .hero-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(160px, 220px);
    gap: clamp(1.5rem, 4vw, 3.5rem);
    align-items: start;
  }

  .hero-rail {
    display: block;
    position: relative;
    padding-left: 1.5rem;
    margin-top: 0.25rem;
  }

  .hero-rail::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    border-radius: 3px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent-deep) 100%);
    opacity: 0.85;
  }

  .hero-rail__inner {
    padding: 1rem 0 1rem 0.25rem;
    border: 1px solid var(--border);
    border-radius: var(--radius-card);
    background: var(--bg-card);
    box-shadow: var(--shadow);
  }

  .hero-rail__kicker {
    margin: 0 0 1rem;
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-faint);
  }

  .hero-rail__list {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-muted);
    line-height: 1.35;
  }

  .hero-rail__list li {
    display: flex;
    align-items: baseline;
    gap: 0.65rem;
  }

  .hero-rail__num {
    font-family: var(--font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--accent-text);
    opacity: 0.9;
    min-width: 1.5rem;
  }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 0.65rem;
  padding: 0.35rem 0.75rem 0.35rem 0;
  border-left: 3px solid var(--accent);
  padding-left: 0.85rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(2.1rem, 4.6vw, 3.15rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 0 0 0.95rem;
  max-width: min(40ch, 100%);
  color: var(--text);
  text-wrap: balance;
}

.lead {
  font-size: 1.03125rem;
  line-height: 1.62;
  color: var(--text-muted);
  max-width: 58ch;
  margin: 0 0 1.35rem;
  text-wrap: pretty;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-faint);
  letter-spacing: 0.01em;
}

.trust-row li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.trust-row .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  opacity: 1;
}

/* Sections */
.section {
  padding: clamp(2.25rem, 4vw, 3.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, var(--bg-elevated) 0%, color-mix(in srgb, var(--bg-deep) 70%, var(--bg-elevated)) 100%);
  border-block: 1px solid var(--border);
}

.hero + .section.section-alt {
  border-top: none;
  position: relative;
  isolation: isolate;
}

.hero + .section.section-alt::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: clamp(11rem, 38vw, 24rem);
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse 130% 90% at 50% 0%, rgba(99, 102, 241, 0.14), transparent 60%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-deep) 62%, var(--bg-elevated)) 0%,
      color-mix(in srgb, var(--bg-deep) 22%, var(--bg-elevated)) 22%,
      var(--bg-elevated) 48%,
      transparent 100%
    );
}

html[data-theme="dark"] .hero + .section.section-alt::before {
  background:
    radial-gradient(ellipse 130% 90% at 50% 0%, rgba(129, 140, 248, 0.12), transparent 60%),
    linear-gradient(
      180deg,
      color-mix(in srgb, var(--bg-deep) 45%, var(--bg-elevated)) 0%,
      color-mix(in srgb, var(--bg-deep) 15%, var(--bg-elevated)) 24%,
      var(--bg-elevated) 50%,
      transparent 100%
    );
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .hero + .section.section-alt::before {
    background:
      radial-gradient(ellipse 130% 90% at 50% 0%, rgba(99, 102, 241, 0.12), transparent 60%),
      linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-elevated) 45%, transparent 100%);
  }
}

.hero + .section.section-alt > .container {
  position: relative;
  z-index: 1;
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .section-alt {
    background: var(--bg-elevated);
  }
}

.section-head {
  margin-bottom: 1.35rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.65rem, 2.8vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
  text-wrap: balance;
}

.section-sub {
  margin: 0;
  color: var(--text-muted);
  font-size: 1rem;
  line-height: 1.45;
  text-wrap: pretty;
}

.grid-4 {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .grid-4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Desk — tall lead + stacked column (bento-style) */
.grid-desk-bento {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .grid-desk-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 960px) {
  .section--desk .grid-desk-bento {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
  }
}

@media (min-width: 768px) {
  .section--desk .section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    text-align: left;
    margin-bottom: 1.35rem;
  }

  .section--desk .section-head h2 {
    margin-bottom: 0;
  }

  .section--desk .section-sub {
    margin: 0;
    max-width: min(26rem, 100%);
    text-align: right;
    line-height: 1.45;
    text-wrap: pretty;
  }
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.15rem 1.1rem;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s, transform 0.2s;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.35) inset;
}

html[data-theme="dark"] .card {
  box-shadow: none;
}

.card-minimal:hover {
  border-color: var(--border-strong);
  background: var(--bg-card-hover);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.card-minimal h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  margin: 0 0 0.5rem;
}

.card-kicker {
  font-weight: 600;
  color: var(--accent-text);
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.card-minimal p:last-child {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
}

.grid-2 {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 768px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .path-cards.grid-2 {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.16fr);
    align-items: stretch;
  }
}

.split-panels .panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.4rem;
  box-shadow: var(--shadow);
}

.split-panels h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-text);
  margin: 0 0 0.35rem;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  margin: 0 0 0.75rem;
  color: var(--text);
  text-wrap: balance;
}

.split-panels p:last-child {
  margin: 0;
  color: var(--text-muted);
  text-wrap: pretty;
}

.prose-wide {
  max-width: 65ch;
  color: var(--text-muted);
  margin: 0 0 1.35rem;
  text-wrap: pretty;
}

/* Steps */
.steps {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

@media (min-width: 768px) {
  .steps {
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
  }
}

.steps li {
  display: flex;
  gap: 1rem;
  padding: 1.2rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.step-num {
  flex-shrink: 0;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--accent);
  opacity: 0.95;
  line-height: 1;
}

.steps h3 {
  font-size: 1.05rem;
  margin: 0 0 0.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.steps p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* Why LunarX — larger title, four cards in a row */
.section--why .section-head {
  margin-bottom: 1rem;
  text-align: center;
}

.section--why .section-head h2 {
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  max-width: none;
  text-wrap: balance;
}

.section--why .prose-wide {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.25rem;
}

.section--why .steps {
  grid-template-columns: 1fr;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .section--why .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .section--why .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    align-items: stretch;
  }
}

.section--why .steps li {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 1.15rem 1rem;
  height: 100%;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.section--why .steps li:hover {
  background: var(--accent-dim);
  border-color: var(--expect-border);
  box-shadow: var(--shadow), inset 0 1px 0 0 var(--accent);
}

.section--why .step-num {
  font-size: 1.35rem;
  line-height: 1;
}

.section--why .steps h3 {
  font-size: 1rem;
  line-height: 1.3;
}

.section--why .steps p {
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Path cards */
.path-cards {
  margin-top: 0;
}

.path-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 1.5rem 1.6rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  box-shadow: var(--shadow-lg);
  transition: border-color 0.2s, transform 0.25s;
}

.path-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-3px);
}

.path-card h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: 1.25rem;
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.018em;
  text-wrap: balance;
}

.path-card p {
  margin: 0;
  color: var(--text-muted);
  flex: 1;
  text-wrap: pretty;
}

.path-card-accent {
  border-color: var(--path-accent-border);
  background: linear-gradient(165deg, var(--bg-card) 0%, var(--path-accent-fill) 100%);
}

.center-note {
  text-align: center;
  color: var(--text-faint);
  font-size: 0.9375rem;
  margin: 1.25rem 0 0;
  text-wrap: pretty;
}

/* Form — contact desk */
.form-section {
  position: relative;
  isolation: isolate;
  padding: clamp(2.5rem, 5vw, 4rem) 0;
  background: var(--form-section-bg);
  border-block: 1px solid var(--border);
}

.form-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--form-section-glow);
  pointer-events: none;
  z-index: 0;
}

.form-section .container--form-wide {
  position: relative;
  z-index: 1;
}

.container.container--form-wide {
  width: min(100% - 2.5rem, 1040px);
}

/* Two-column desk: intro + timeline | form */
.form-desk {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .form-desk {
    display: grid;
    grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
    gap: clamp(1.5rem, 3vw, 2.5rem);
    align-items: start;
  }

  .form-desk__rail {
    position: sticky;
    top: 5.5rem;
  }
}

@media (min-width: 1100px) {
  .form-desk {
    grid-template-columns: minmax(0, 330px) minmax(0, 1fr);
  }
}

.form-desk__rail {
  padding: 1.25rem 1.35rem 1.35rem;
  border-radius: var(--radius-card);
  border: 1px solid var(--expect-border);
  background: linear-gradient(165deg, var(--accent-dim) 0%, color-mix(in srgb, var(--bg-card) 88%, var(--accent-dim)) 100%);
  box-shadow: var(--shadow);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .form-desk__rail {
    background: var(--accent-dim);
  }
}

.form-desk__eyebrow {
  display: inline-block;
  margin: 0 0 0.6rem;
  padding: 0.3rem 0.7rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  background: var(--bg-card);
  border: 1px solid var(--expect-border);
  border-radius: 999px;
}

html[data-theme="dark"] .form-desk__eyebrow {
  color: var(--accent-text);
}

.form-desk__title {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.75rem, 2.8vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin: 0 0 0.65rem;
  color: var(--text);
  text-wrap: balance;
}

.form-desk__lead {
  margin: 0 0 1.25rem;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--text-muted);
  text-wrap: pretty;
}

.form-desk__timeline-heading {
  margin: 0 0 0.75rem;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.form-desk__timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--expect-border);
}

.form-desk__timeline-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem 0.9rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--expect-border);
}

.form-desk__timeline-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.form-desk__marker {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border-radius: 50%;
  font-family: var(--font-sans);
  font-size: 0.6875rem;
  font-weight: 700;
  color: #ffffff;
  background: var(--accent);
  line-height: 1;
}

.form-desk__step-title {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.form-desk__step p {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.form-desk__main {
  min-width: 0;
}

.contact-form-shell {
  width: 100%;
}

.contact-form {
  margin: 0;
  width: 100%;
}

.contact-form__card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 1.35rem 1.2rem 1.5rem;
  box-shadow:
    inset 0 2px 0 0 var(--accent),
    var(--form-card-elev);
}

@media (min-width: 480px) {
  .contact-form__card {
    padding: 1.65rem 1.65rem 1.65rem;
  }
}

.path-toggle {
  border: none;
  padding: 0;
  margin: 0 0 1.35rem;
  min-inline-size: 0;
}

.path-toggle__legend {
  display: block;
  width: 100%;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin: 0 0 0.65rem;
}

.path-toggle__track {
  display: flex;
  gap: 0.5rem;
  padding: 4px;
  border-radius: var(--radius-card);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.toggle {
  position: relative;
}

.toggle--segment {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.55rem 0.5rem;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  line-height: 1.35;
  text-align: center;
  color: var(--text-muted);
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, font-weight 0.15s ease, border-color 0.2s ease;
}

.toggle--segment:hover {
  color: var(--text);
}

.toggle input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.toggle--segment:has(input:checked) {
  background: var(--accent-dim);
  color: var(--accent-deep);
  font-weight: 700;
  border-color: var(--accent);
  box-shadow: var(--toggle-checked-shadow);
}

html[data-theme="dark"] .toggle--segment:has(input:checked) {
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: var(--toggle-checked-shadow);
}

.toggle--segment:has(input:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.form-fields.hidden {
  display: none;
}

.form-panel-head {
  margin-bottom: 1.1rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border);
}

.form-block-title {
  margin: 0 0 0.45rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  text-wrap: balance;
}

.form-hint {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.5;
  color: var(--text-muted);
  text-wrap: pretty;
}

.form-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
}

.form-field__label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

/* Required indicator — only when the control has `required` (JS clears it on the hidden path). */
.form-field:has([required]) .form-field__label::after {
  content: "\00a0*";
  color: var(--accent-text);
  font-weight: 700;
  font-size: 0.95em;
}

.form-required-legend {
  margin: -0.25rem 0 1rem;
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.4;
  color: var(--text-faint);
}

.form-required-abbr {
  text-decoration: none;
  color: var(--accent-text);
  font-weight: 700;
  cursor: help;
}

.form-field__optional {
  font-weight: 500;
  color: var(--text-faint);
  font-size: 0.75rem;
}

.form-field--checkbox {
  margin-top: 0.35rem;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
}

.form-consent {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin: 0;
  cursor: pointer;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.form-consent:focus-within {
  color: var(--text);
}

.form-consent input[type="checkbox"] {
  margin: 0.2rem 0 0;
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--accent);
  flex-shrink: 0;
}

.form-consent__text strong {
  color: var(--text);
  font-weight: 600;
}

.form-field--checkbox:has(input[required]) .form-consent__text::before {
  content: "* ";
  color: var(--accent-text);
  font-weight: 700;
}

.form-row {
  display: grid;
  gap: 1rem;
}

.form-row--2 {
  grid-template-columns: 1fr;
}

@media (min-width: 540px) {
  .form-row--2 {
    grid-template-columns: 1fr 1fr;
  }
}

.form-input {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.95rem;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--text);
  background: var(--bg-deep);
  border: 1px solid var(--border);
  border-radius: 10px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

html[data-theme="light"] .form-input {
  background-color: #fafbfc;
}

html[data-theme="dark"] .form-input {
  background-color: var(--bg-elevated);
}

textarea.form-input {
  min-height: 112px;
  resize: vertical;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

select.form-input {
  cursor: pointer;
  padding-right: 2.75rem;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  background-size: 1.125rem 1.125rem;
}

html[data-theme="dark"] select.form-input {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Native select list: muted “coming soon” options (support varies by browser) */
select.form-input optgroup {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--text-faint);
}

select.form-input option:disabled {
  color: var(--text-faint);
  font-style: italic;
}

.form-input:hover {
  border-color: var(--border-strong);
}

.form-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.contact-form__footer {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

.form-status {
  min-height: 1.35rem;
  margin: 0 0 1rem;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.form-status--success {
  color: var(--success);
}

.form-status--error {
  color: var(--form-error);
}

.contact-form__submit:disabled,
#form-submit:disabled {
  opacity: 0.75;
  cursor: not-allowed;
}

/* [hidden] must win — previous .btn-loading { display: inline } broke toggling */
.contact-form__submit .btn-label[hidden],
#form-submit .btn-label[hidden],
.contact-form__submit .btn-loading[hidden],
#form-submit .btn-loading[hidden] {
  display: none !important;
}

.contact-form__submit .btn-loading:not([hidden]),
#form-submit .btn-loading:not([hidden]) {
  display: inline;
}

.form-disclaimer {
  font-size: 0.75rem;
  line-height: 1.55;
  color: var(--text-faint);
  text-align: center;
  margin: 1rem auto 0;
  max-width: 38rem;
  text-wrap: pretty;
}

/* FAQ */
.faq {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  overflow: hidden;
}

.faq-item summary {
  padding: 1rem 1.25rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  text-wrap: balance;
}

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

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

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

.faq-item p {
  margin: 0;
  padding: 0 1.25rem 1.15rem;
  color: var(--text-muted);
  font-size: 0.9375rem;
  text-wrap: pretty;
}

/* CTA footer */
.cta-footer {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  background: linear-gradient(185deg, var(--bg-elevated) 0%, var(--bg-deep) 55%, color-mix(in srgb, var(--accent) 6%, var(--bg-deep)) 100%);
  border-top: 1px solid var(--border);
}

@supports not (background: color-mix(in srgb, white 50%, black)) {
  .cta-footer {
    background: linear-gradient(180deg, var(--bg-elevated) 0%, var(--bg-deep) 100%);
  }
}

.cta-footer h2 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  font-size: clamp(1.6rem, 2.6vw, 2.1rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

.cta-footer p {
  color: var(--text-muted);
  margin: 0 0 1.25rem;
  text-wrap: pretty;
}

.cta-footer .hero-ctas {
  justify-content: center;
  margin-bottom: 0;
}

/* Site footer */
.site-footer {
  padding: 2rem 0 2.5rem;
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.35rem;
}

.footer-tag {
  color: var(--text-muted);
  font-size: 0.9375rem;
  margin: 0 0 1rem;
}

.footer-legal {
  font-size: 0.75rem;
  color: var(--text-faint);
  max-width: 52ch;
  margin: 0 auto;
  line-height: 1.5;
}
