/* ==========================================================
   LUNAR VISIBILITY — styles
   ========================================================== */

@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-var-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --space: #050B18;
  --space-2: #08112A;
  --space-3: #0C1734;
  --white: #FFFFFF;
  --silver: #E5E7EF;
  --muted: #A6AEC2;
  --dim: #7F88A0;
  --cyan: #00D9FF;
  --violet: #685CFF;
  --nebula: #482DD1;

  --grad: linear-gradient(100deg, #00D9FF 0%, #3FB2FF 32%, #685CFF 70%, #9277FF 100%);
  --line: rgba(229, 231, 239, .09);
  --line-2: rgba(229, 231, 239, .16);
  --glass: rgba(13, 21, 44, .55);
  --glass-2: rgba(16, 26, 56, .7);

  --font-head: "Space Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 40px);
  --section: clamp(88px, 12vw, 160px);
  --header-h: 68px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
  background: var(--space);
}
body {
  margin: 0;
  background: var(--space);
  color: var(--silver);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-head); color: var(--white); margin: 0; font-weight: 600; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  background: var(--cyan); color: #021120; padding: 10px 16px; border-radius: 10px;
  font-weight: 600; text-decoration: none; transition: top .2s;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: 6px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.container.narrow { max-width: 920px; }

.i { width: 1.15em; height: 1.15em; flex: none; }

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.dim { color: var(--dim); }

.eyebrow {
  font-family: var(--font-head);
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 1.25rem;
}

.h2 {
  font-size: clamp(2rem, 4.4vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin-bottom: .6em;
  text-wrap: balance;
}
.h2-center { text-align: center; margin-left: auto; margin-right: auto; }
.lead { font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--muted); max-width: 60ch; }

/* ---------- Buttons ---------- */
.btn {
  --glow: .45;
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  font-family: var(--font-head); font-weight: 600; letter-spacing: -.005em;
  text-decoration: none; cursor: pointer;
  border: 0; border-radius: 999px;
  transition: box-shadow .35s var(--ease), transform .35s var(--ease), background-position .6s var(--ease);
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}
.btn .i { transition: transform .35s var(--ease); }
.btn:hover .i, .btn:focus-visible .i { transform: translateX(3px); }
.btn-primary {
  color: #03101F;
  background: linear-gradient(100deg, #00D9FF 0%, #35C6FF 45%, #7FB0FF 100%);
  background-size: 160% 100%;
  box-shadow:
    0 0 0 1px rgba(0, 217, 255, .55),
    0 10px 34px -10px rgba(0, 217, 255, var(--glow)),
    0 0 26px -6px rgba(104, 92, 255, calc(var(--glow) * .6));
}
.btn-primary:hover, .btn-primary:focus-visible {
  --glow: .8;
  background-position: 100% 0;
  transform: translateY(-1px);
}
.btn-primary:active { transform: translateY(0); }
.btn-sm { font-size: .9rem; padding: .62rem 1.1rem; min-height: 42px; }
.btn-lg { font-size: 1.0625rem; padding: 1rem 1.6rem; min-height: 56px; }
.btn-block { width: 100%; }
.btn-ghost {
  color: var(--silver); background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-2);
  padding: .7rem 1.3rem; font-size: .95rem; min-height: 44px;
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1px rgba(0,217,255,.5); }

.text-link {
  color: var(--silver); text-decoration: none; font-weight: 500;
  background-image: linear-gradient(var(--cyan), var(--cyan));
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  padding: .3em 0; transition: background-size .4s var(--ease), color .3s;
}
.text-link:hover, .text-link:focus-visible { background-size: 100% 1px; color: var(--white); }

/* ==========================================================
   HEADER
   ========================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  height: calc(var(--header-h) + env(safe-area-inset-top, 0px));
  transition: background-color .4s, backdrop-filter .4s, box-shadow .4s;
}
.site-header.is-open { background: var(--space); }
.site-header.is-scrolled {
  background: rgba(5, 11, 24, .72);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.header-inner {
  height: var(--header-h);
  max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand-icon { width: 38px; height: 38px; }
.brand-wordmark { width: 112px; height: 34px; overflow: visible; }

.primary-nav { margin-left: auto; }
.primary-nav ul { display: flex; gap: 6px; }
.primary-nav a:not(.btn) {
  display: block; padding: .55rem .85rem; border-radius: 999px;
  font-size: .9rem; font-weight: 500; color: var(--muted); text-decoration: none;
  transition: color .25s, background-color .25s;
}
.primary-nav a:not(.btn):hover { color: var(--white); background: rgba(229,231,239,.05); }
.nav-cta-mobile { display: none; }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-cta { display: none; }
  .nav-toggle {
    display: grid; place-items: center; margin-left: auto;
    width: 44px; height: 44px; border-radius: 12px;
    background: transparent; border: 1px solid var(--line-2); color: var(--white); cursor: pointer;
  }
  .nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 1.6px; background: currentColor; border-radius: 2px;
    transition: transform .3s var(--ease), opacity .2s;
  }
  .nav-toggle-bars { position: relative; }
  .nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle-bars::before { top: -6px; }
  .nav-toggle-bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle-bars::after { transform: translateY(-6px) rotate(-45deg); }

  .primary-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    margin: 0; padding: 12px var(--gutter) 24px;
    background: var(--space);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8);
    display: none;
  }
  .site-header.is-open .primary-nav { display: block; }
  .primary-nav ul { flex-direction: column; gap: 0; margin-bottom: 16px; }
  .primary-nav a:not(.btn) { font-size: 1.0625rem; padding: .9rem .25rem; border-radius: 0; border-bottom: 1px solid var(--line); color: var(--silver); }
  .nav-cta-mobile { display: flex; width: 100%; min-height: 52px; font-size: 1rem; }
}

/* ==========================================================
   HERO
   ========================================================== */
.hero {
  position: relative; isolation: isolate;
  min-height: 100vh; min-height: 100svh;
  display: flex; align-items: center;
  padding: calc(var(--header-h) + 48px) 0 72px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; z-index: -3; background: var(--space); }
.hero-still, .hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 60% 50%;
}
.hero-video { opacity: 0; transition: opacity 1.6s var(--ease); }
.hero-video.is-playing { opacity: 1; }
.hero-shade {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(5,11,24,.92) 0%, rgba(5,11,24,.72) 34%, rgba(5,11,24,.22) 62%, rgba(5,11,24,.12) 100%),
    linear-gradient(180deg, rgba(5,11,24,.55) 0%, rgba(5,11,24,0) 22%, rgba(5,11,24,0) 70%, var(--space) 100%);
}

.detector { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.hero-inner { position: relative; z-index: 1; }
.hero-copy { max-width: 820px; }
.hero-copy > p { max-width: 600px; }
.hero-title {
  font-size: clamp(2.9rem, 6.6vw, 5.75rem);
  line-height: .98;
  letter-spacing: -.04em;
  margin-bottom: 1.6rem;
}
.hero-title .line { display: block; }
.hero-title .grad-text { padding-bottom: .06em; }
@media (min-width: 721px) { .hero-title .line { white-space: nowrap; } }
.hero-sub { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); color: var(--muted); max-width: 34em; margin-bottom: .75rem; }
.hero-sub-strong { color: var(--white); font-weight: 500; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 28px; margin: 2rem 0 2.25rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 26px; font-size: .9rem; color: var(--muted); }
.hero-points li { display: flex; align-items: center; gap: .55em; }
.hero-points .i { color: var(--cyan); opacity: .85; }

/* hero load sequence — the one orchestrated entrance on the page */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: rise 1.1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: .08s; }
  .hero-copy > :nth-child(3) { animation-delay: .18s; }
  .hero-copy > :nth-child(4) { animation-delay: .24s; }
  .hero-copy > :nth-child(5) { animation-delay: .32s; }
  .hero-copy > :nth-child(6) { animation-delay: .42s; }
  .detector { animation: fade-in 2.4s .4s ease both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* ---------- Lunar Detection System ---------- */
.d-stars circle { fill: #DDE6FF; opacity: .55; }
.d-stars .twinkle { animation: twinkle 7s ease-in-out infinite; }
.d-stars .t2 { animation-delay: 2.3s; animation-duration: 9s; }
.d-stars .t3 { animation-delay: 4.1s; animation-duration: 11s; }
@keyframes twinkle { 0%, 100% { opacity: .2; } 50% { opacity: .9; } }

.orbit { fill: none; stroke: rgba(196, 214, 255, .16); stroke-width: 1; vector-effect: non-scaling-stroke; }
.orbit-2 { stroke: rgba(150, 140, 255, .14); stroke-dasharray: 2 7; }
.orbit-3 { stroke: rgba(0, 217, 255, .10); }

.ring {
  fill: none; stroke: rgba(0, 217, 255, .14); stroke-width: 1; vector-effect: non-scaling-stroke;
  transition: stroke .8s var(--ease);
}
.ring.r3 { stroke-dasharray: 1 6; }
.ring.r4 { stroke: rgba(104, 92, 255, .1); }
.seek-wave {
  fill: none; stroke: #00D9FF; stroke-width: 1.4; vector-effect: non-scaling-stroke; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}

.link {
  stroke: rgba(0, 217, 255, .8); stroke-width: 1; vector-effect: non-scaling-stroke;
  stroke-dasharray: 100; stroke-dashoffset: 100; opacity: 0;
}
.sig-track { fill: none; stroke: rgba(0, 217, 255, .06); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sig-pulse {
  fill: none; stroke: url(#d-signal); stroke-width: 2; stroke-linecap: round; vector-effect: non-scaling-stroke;
  stroke-dasharray: 90 2000; stroke-dashoffset: 90; opacity: 0;
}
.sig-origin { fill: #9FEFFF; opacity: 0; }

.node { fill: #C9D6F5; opacity: .5; transition: opacity .8s, fill .8s; }
.target-core { fill: #DCEBFF; opacity: .35; transition: opacity .8s; }
.target-glow { opacity: 0; transform-box: fill-box; transform-origin: center; transition: opacity .8s; }

.probe { opacity: .7; }

/* detection cycle (class toggled by script.js every ~7s) */
.detector.is-detecting .sig-origin { animation: origin 1.4s ease-out both; }
.detector.is-detecting .sig-pulse { animation: travel 2.3s .25s cubic-bezier(.45,.05,.35,1) both; }
.detector.is-detecting .target-glow { animation: target-glow 3.6s 2.2s ease both; }
.detector.is-detecting .target-core { animation: target-core 3.6s 2.2s ease both; }
.detector.is-detecting .ring { animation: ring-flash 3.4s 2.3s ease both; }
.detector.is-detecting .link { animation: link-draw 3s ease both; }
.detector.is-detecting .l1 { animation-delay: 2.6s; }
.detector.is-detecting .l2 { animation-delay: 2.8s; }
.detector.is-detecting .l3 { animation-delay: 3s; }
.detector.is-detecting .l4 { animation-delay: 3.25s; }
.detector.is-detecting .n-resp { animation: node-resp 3s 2.9s ease both; }

@keyframes origin { 0% { opacity: 0; } 30% { opacity: .9; } 100% { opacity: 0; } }
@keyframes travel {
  0% { stroke-dashoffset: 90; opacity: 0; }
  12% { opacity: 1; }
  88% { opacity: 1; }
  100% { stroke-dashoffset: -1000; opacity: 0; }
}
@keyframes target-glow { 0% { opacity: 0; transform: scale(.4); } 25% { opacity: 1; transform: scale(1); } 70% { opacity: .7; } 100% { opacity: 0; transform: scale(1.15); } }
@keyframes target-core { 0% { opacity: .35; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { opacity: .35; } }
@keyframes ring-flash { 0% { stroke: rgba(0,217,255,.14); } 25% { stroke: rgba(0,217,255,.45); } 100% { stroke: rgba(0,217,255,.14); } }
@keyframes link-draw {
  0% { stroke-dashoffset: 100; opacity: 0; }
  20% { opacity: .55; }
  45% { stroke-dashoffset: 0; opacity: .55; }
  100% { stroke-dashoffset: 0; opacity: 0; }
}
@keyframes node-resp { 0%, 100% { opacity: .5; } 30% { opacity: 1; fill: #8FEAFF; } }

/* hover / focus on hero CTA: the instrument leans in */
.detector.is-seeking .ring { stroke: rgba(0, 217, 255, .42); }
.detector.is-seeking .ring.r4 { stroke: rgba(104, 92, 255, .32); }
.detector.is-seeking .target-core { opacity: 1; }
.detector.is-seeking .target-glow { opacity: .9; }
.detector.is-seeking .seek-wave { animation: seek 1.8s ease-out; }
.detector.is-seeking .n-resp { opacity: .95; }
@keyframes seek { 0% { opacity: .8; transform: scale(.5); } 100% { opacity: 0; transform: scale(5.5); } }
[data-seek]:hover, [data-seek]:focus-visible { --glow: .95; }

/* ==========================================================
   SECTIONS
   ========================================================== */
.section { position: relative; padding: var(--section) 0; }
/* observation-layer divider between sections */
.section + .section::before, .final::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(var(--container), calc(100% - 2 * var(--gutter))); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,217,255,.28) 30%, rgba(104,92,255,.28) 70%, transparent);
  opacity: .6;
}

/* ---------- 3. Discovery has changed ---------- */
.discovery-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 6vw, 96px); align-items: center; }
.discovery-copy > p { color: var(--muted); max-width: 46ch; }
.discovery-copy .lead { margin-bottom: .4em; }
.discovery-copy .lead-bright { color: var(--white); font-family: var(--font-head); font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 500; letter-spacing: -.02em; margin-bottom: 1.1em; }
.queries { margin: 0 0 1.6em; display: grid; gap: 8px; }
.queries li {
  display: flex; align-items: center; gap: .8em;
  padding: .7em 1.1em; border-radius: 14px;
  background: linear-gradient(90deg, rgba(16, 26, 56, .7), rgba(16, 26, 56, .15));
  border: 1px solid var(--line);
  color: var(--silver); font-size: 1rem;
  max-width: 420px;
}
.queries li:nth-child(2) { margin-left: 18px; }
.queries li:nth-child(3) { margin-left: 36px; }
.queries li:nth-child(4) { margin-left: 18px; }
.queries .i { color: var(--cyan); opacity: .8; }
.answer-q {
  font-family: var(--font-head); font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 600;
  letter-spacing: -.025em; line-height: 1.15; color: var(--white) !important; margin-top: .3em;
}

.ecosystem { margin: 0; position: relative; }
.ecosystem::before {
  content: ""; position: absolute; left: 50%; top: 46%; width: 70%; aspect-ratio: 1; transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(72, 45, 209, .22), rgba(0, 217, 255, .06) 45%, transparent 70%);
  pointer-events: none;
}
.eco-svg { width: 100%; height: auto; overflow: visible; }
.eco-orbit { fill: none; stroke: rgba(196,214,255,.14); stroke-dasharray: 2 6; }
.eco-orbit.faint { stroke: rgba(0,217,255,.1); stroke-dasharray: none; }
.eco-links line { stroke: rgba(150, 170, 255, .22); stroke-width: 1; }
.eco-pulses line {
  stroke: #00D9FF; stroke-width: 1.6; stroke-linecap: round;
  stroke-dasharray: 8 200; stroke-dashoffset: 8; opacity: 0;
  animation: eco-pulse 6.5s var(--d) linear infinite;
}
@keyframes eco-pulse {
  0% { stroke-dashoffset: 8; opacity: 0; }
  4% { opacity: 1; }
  22% { stroke-dashoffset: -100; opacity: 1; }
  24%, 100% { stroke-dashoffset: -100; opacity: 0; }
}
.eco-core text { fill: var(--white); font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .22em; }
.eco-halo { stroke: rgba(0,217,255,.18); stroke-dasharray: 1 5; }
.eco-nodes circle { fill: rgba(13, 21, 44, .9); stroke: rgba(160, 180, 255, .3); }
.eco-nodes .dot { fill: #8FEAFF; stroke: none; }
.eco-nodes text { fill: var(--silver); font-family: var(--font-head); font-size: 15px; font-weight: 500; }
.ecosystem figcaption { margin-top: 18px; font-size: .82rem; color: var(--dim); text-align: center; max-width: 46ch; margin-left: auto; margin-right: auto; }

/* ---------- 4. Discovery universe ---------- */
.universe .h2 { max-width: 22ch; margin-bottom: clamp(48px, 6vw, 72px); }
.lens-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lens-card {
  position: relative; overflow: hidden;
  padding: 32px 30px 34px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(16, 26, 56, .62), rgba(8, 14, 32, .5));
  border: 1px solid var(--line);
  transition: border-color .5s var(--ease), background-color .5s;
}
.lens-card::after {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none;
  background: radial-gradient(400px 200px at 20% 0%, rgba(0,217,255,.08), transparent 70%);
  opacity: 0; transition: opacity .5s var(--ease);
}
.lens-card:hover { border-color: rgba(0, 217, 255, .26); }
.lens-card:hover::after { opacity: 1; }
.lens {
  width: 76px; height: 76px; border-radius: 50%; object-fit: cover;
  box-shadow: 0 0 0 1px rgba(229,231,239,.16), 0 0 0 6px rgba(0,217,255,.04), 0 0 32px -6px rgba(0,217,255,.35);
  margin-bottom: 28px;
}
.card-index { font-family: var(--font-head); font-size: .85rem; color: var(--cyan); letter-spacing: .1em; margin-bottom: .5rem; }
.lens-card h3 { font-size: 1.4rem; letter-spacing: -.015em; margin-bottom: .6rem; }
.lens-card p:last-child { color: var(--muted); margin: 0; font-size: 1rem; }

/* ---------- 5. Five things to check ---------- */
.checks .h2 { max-width: 20ch; }
.checks .lead { margin-bottom: clamp(40px, 5vw, 64px); }
.check-list { border-top: 1px solid var(--line); }
.check-list li {
  position: relative;
  display: grid; grid-template-columns: 72px 1fr; gap: 16px;
  padding: 28px 0 26px;
  border-bottom: 1px solid var(--line);
}
.check-list li::after {
  content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: left;
  transition: transform .7s var(--ease);
}
.check-list li:hover::after { transform: scaleX(1); }
.check-n { font-family: var(--font-head); font-size: 1rem; color: var(--cyan); padding-top: .3em; letter-spacing: .06em; }
.check-list h3 { font-size: clamp(1.2rem, 2vw, 1.55rem); letter-spacing: -.015em; line-height: 1.25; margin-bottom: .4rem; }
.check-list p { color: var(--muted); margin: 0; max-width: 60ch; }
.checks-close { margin-top: clamp(48px, 6vw, 72px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.statement { font-family: var(--font-head); font-size: clamp(1.5rem, 2.8vw, 2.1rem); font-weight: 600; color: var(--white); letter-spacing: -.025em; line-height: 1.15; margin: 0; max-width: 22ch; }

/* ---------- 6. Science ---------- */
.science { isolation: isolate; overflow: hidden; padding-top: clamp(96px, 12vw, 180px); --mx: 70%; --my: 40%; }
.science-art {
  position: absolute; z-index: -1;
  top: 2%; right: -4%; width: 64%; aspect-ratio: 1448 / 1086;
}
.science-art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 45%, transparent 100%);
  mask-image: radial-gradient(ellipse 50% 50% at 52% 50%, #000 45%, transparent 100%);
  opacity: .92;
}
.science-light {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(0,217,255,.14), transparent 70%);
  opacity: 0; transition: opacity .6s;
}
.science.is-near .science-light { opacity: 1; }
.science-inner { position: relative; }
.science-copy { max-width: 520px; padding: 8px 0; }
.science-copy .h2 { max-width: 13ch; }
.science-copy p { color: var(--muted); }
.signals { display: flex; flex-wrap: wrap; gap: 8px; margin: 1.2em 0 1.5em; }
.signals li {
  position: relative;
  font-family: var(--font-head); font-size: .95rem; color: var(--white);
  padding: .4em .95em; border-radius: 999px;
  background: rgba(10, 18, 40, .72); border: 1px solid rgba(0, 217, 255, .22);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.signals li:last-child { border-color: rgba(104,92,255,.35); }
.big-statement {
  margin: clamp(80px, 10vw, 140px) 0 0;
  font-family: var(--font-head); font-weight: 600;
  font-size: clamp(2.4rem, 6.4vw, 5.6rem); line-height: 1; letter-spacing: -.04em;
  color: var(--white); max-width: 14ch;
}
.big-statement .grad-text { display: inline; }

/* ---------- 7. Recommended tool ---------- */
.recommend:focus { outline: none; }
.recommend-panel {
  position: relative;
  display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(32px, 5vw, 72px);
  padding: clamp(32px, 5vw, 64px);
  border-radius: 32px;
  background:
    radial-gradient(600px 300px at 0% 0%, rgba(0, 217, 255, .09), transparent 70%),
    radial-gradient(600px 360px at 100% 100%, rgba(104, 92, 255, .14), transparent 70%),
    linear-gradient(180deg, rgba(14, 22, 48, .85), rgba(8, 13, 30, .85));
  border: 1px solid var(--line-2);
  box-shadow: 0 50px 120px -90px rgba(0, 217, 255, .35);
  transition: box-shadow .8s var(--ease), border-color .8s var(--ease);
}
.recommend-panel.is-highlighted { border-color: rgba(0,217,255,.55); box-shadow: 0 0 0 4px rgba(0,217,255,.08), 0 40px 120px -40px rgba(0, 217, 255, .55); }
.recommend-main .h2 { font-size: clamp(2.3rem, 5vw, 4rem); }
.recommend-side { align-self: center; }
.benefits { display: grid; gap: 14px; margin-bottom: 28px; }
.benefits li { display: flex; gap: .75em; align-items: flex-start; color: var(--white); font-size: 1.0625rem; }
.benefits .i {
  width: 24px; height: 24px; padding: 4px; margin-top: 1px; border-radius: 50%;
  color: var(--cyan); background: rgba(0, 217, 255, .1); box-shadow: inset 0 0 0 1px rgba(0,217,255,.3);
}
.trial-note { text-align: center; color: var(--muted); font-size: .9rem; line-height: 1.5; margin: 12px 0 20px; }
.sprint-cta .trial-note { margin: 14px auto 0; }
.contact-email a { font-family: var(--font-head); font-size: 1.25rem; font-weight: 500; color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(0,217,255,.35); }
.contact-email a:hover { border-bottom-color: var(--cyan); }
.disclosure-inline {
  font-size: .82rem; line-height: 1.55; color: var(--dim);
  padding-top: 16px; border-top: 1px solid var(--line); margin: 0;
}
.disclosure-inline strong { color: var(--muted); font-weight: 600; }

/* ---------- 8. Sprint ---------- */
.sprint { padding: clamp(72px, 9vw, 120px) 0; }
.sprint-head { max-width: 680px; margin-bottom: clamp(28px, 4vw, 48px); }
.sprint-track { position: relative; --arc: 80px; }
.sprint-arc {
  position: absolute; left: calc(100% / 14); right: calc(100% / 14); top: 0;
  width: calc(100% - 100% / 7); height: var(--arc); overflow: visible;
}
.sprint-arc path { fill: none; stroke: rgba(196,214,255,.16); stroke-width: 1; }
.sprint-arc .sprint-arc-lit { stroke: #00D9FF; stroke-width: 1.5; stroke-dasharray: 100; stroke-dashoffset: 100; opacity: .7; }
.sprint-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; position: relative; }
.sprint-days li {
  /* t = i / 6 (arc spans first→last column centre); lift follows the arc: y = H - 4D·t(1−t) with H=76, D=56 (viewBox units, scaled to --arc) */
  --t: calc(var(--i) / 6);
  --y: calc((76 - 224 * var(--t) * (1 - var(--t))) / 80 * var(--arc));
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding-top: calc(var(--y) - 7px);
}
.day-dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--space); box-shadow: inset 0 0 0 1.5px rgba(196,214,255,.4);
  transition: box-shadow .6s var(--ease), background-color .6s;
  margin-bottom: 18px;
}
.day-label {
  font-family: var(--font-head); font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--cyan);
  margin-bottom: .5rem;
}
.sprint-days p { font-size: .95rem; color: var(--muted); margin: 0; line-height: 1.5; max-width: 15ch; }
.sprint-days li:hover .day-dot,
.sprint.is-lit .day-dot { background: #00D9FF; box-shadow: 0 0 0 4px rgba(0,217,255,.14), 0 0 18px rgba(0,217,255,.7); }
.sprint.is-lit .day-dot { transition-delay: calc(var(--i) * .22s); }
.sprint.is-lit .sprint-arc-lit { stroke-dashoffset: 0; transition: stroke-dashoffset 1.8s var(--ease); }
.sprint-days li:hover p { color: var(--silver); }
.sprint-cta { margin-top: clamp(36px, 4vw, 52px); text-align: center; }

/* ---------- 9. Final ---------- */
.final {
  position: relative; isolation: isolate; overflow: hidden;
  padding: clamp(120px, 16vw, 220px) 0 clamp(110px, 14vw, 180px);
  text-align: center;
}
.final-media { position: absolute; inset: 0; z-index: -1; }
.final-media img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 60%; }
.final-media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, var(--space) 0%, rgba(5,11,24,.55) 30%, rgba(5,11,24,.6) 70%, var(--space) 100%),
    radial-gradient(ellipse at 50% 50%, rgba(5,11,24,.55), rgba(5,11,24,.2) 70%);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-title {
  font-size: clamp(2.3rem, 5.6vw, 4.8rem); line-height: 1.02; letter-spacing: -.04em;
  max-width: 17ch; margin-bottom: 1.6rem; text-wrap: balance;
}
.final-title .grad-text { display: block; margin-top: .12em; }
.final .lead { color: var(--silver); max-width: 44ch; margin: 0 auto 2.4rem; }
.final-tag { display: flex; align-items: center; gap: 12px; margin: 3rem 0 0; color: var(--muted); font-size: .95rem; text-align: left; }
.final-tag img { width: 34px; height: 34px; }
.final-tag strong { display: block; color: var(--white); font-family: var(--font-head); font-weight: 600; letter-spacing: .02em; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 56px 0 calc(40px + env(safe-area-inset-bottom, 0px)); }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; align-items: start; }
.footer-brand p { margin: 14px 0 0; color: var(--muted); font-size: .95rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 6px; justify-content: flex-end; }
.footer-links button, .footer-social a {
  background: none; border: 0; cursor: pointer; font: inherit; font-size: .92rem;
  color: var(--muted); padding: .55rem .7rem; border-radius: 8px; min-height: 44px; text-decoration: none;
  display: inline-flex; align-items: center;
}
.footer-links button:hover, .footer-social a:hover { color: var(--white); }
.footer-social { grid-column: 1 / -1; display: flex; gap: 4px; margin-left: -.7rem; }
.footer-legal { grid-column: 1 / -1; color: var(--dim); font-size: .82rem; margin: 0; max-width: 80ch; }

/* ---------- Dialogs ---------- */
.panel {
  width: min(640px, calc(100vw - 32px)); max-height: min(80vh, 760px);
  padding: 0; border: 1px solid var(--line-2); border-radius: 24px;
  background: linear-gradient(180deg, #0D1631, #070E22);
  color: var(--silver);
  box-shadow: 0 40px 120px -20px rgba(0,0,0,.8), 0 0 60px -20px rgba(0,217,255,.25);
}
.panel[open] { display: flex; flex-direction: column; }
.panel::backdrop { background: rgba(3, 7, 16, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.panel-body { padding: 32px 32px 8px; overflow-y: auto; font-size: .98rem; }
.panel-body h2 { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: 1rem; }
.panel-body p { color: var(--muted); }
.panel-body strong { color: var(--silver); }
.panel-body a { color: var(--cyan); }
.panel-meta { font-size: .85rem; color: var(--dim) !important; }
.panel-foot { padding: 16px 32px 28px; display: flex; justify-content: flex-end; border-top: 1px solid var(--line); }
@media (prefers-reduced-motion: no-preference) {
  .panel[open] { animation: panel-in .35s var(--ease); }
}
@keyframes panel-in { from { opacity: 0; transform: translateY(10px) scale(.985); } to { opacity: 1; transform: none; } }

/* ==========================================================
   RESPONSIVE
   ========================================================== */
@media (max-width: 1100px) {
  .sprint-track { --arc: 0px; }
  .sprint-arc { display: none; }
  .sprint-days { grid-template-columns: 1fr; gap: 0; max-width: 560px; margin: 0 auto; padding-left: 8px; }
  .sprint-days::before {
    content: ""; position: absolute; left: 14px; top: 10px; bottom: 10px; width: 1px;
    background: linear-gradient(180deg, rgba(0,217,255,.45), rgba(104,92,255,.3));
  }
  .sprint-days li {
    display: grid; grid-template-columns: 14px 80px 1fr; gap: 0 18px; align-items: baseline;
    text-align: left; padding: 0 0 16px;
  }
  .day-dot { margin: 0; align-self: center; position: relative; z-index: 1; }
  .day-label { margin: 0; }
  .sprint-days p { max-width: none; }
}

@media (max-width: 960px) {
  .discovery-grid { grid-template-columns: 1fr; }
  .ecosystem { max-width: 520px; margin: 0 auto; width: 100%; }
  .lens-cards { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .lens-card { display: grid; grid-template-columns: 64px 1fr; gap: 0 20px; padding: 24px; }
  .lens { width: 64px; height: 64px; margin: 0; grid-row: span 3; }
  .card-index { margin-bottom: .2rem; }
  .recommend-panel { grid-template-columns: 1fr; }
  .science-art { position: relative; right: auto; width: 100%; height: auto; margin: 0 0 -40px; aspect-ratio: 4 / 3; }
  .science { padding-top: 40px; }
  .science-copy .h2 { max-width: 16ch; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .brand-icon { width: 34px; height: 34px; }
  .brand-wordmark { width: 100px; height: 30px; }

  .hero { align-items: flex-start; padding: calc(var(--header-h) + 28px) 0 40px; min-height: 100vh; min-height: 100svh; }
  .hero-still, .hero-video { object-position: 64% 50%; }
  .hero-shade {
    background:
      linear-gradient(180deg, rgba(5,11,24,.82) 0%, rgba(5,11,24,.6) 45%, rgba(5,11,24,.4) 70%, var(--space) 100%);
  }
  .hero-title { font-size: clamp(2.6rem, 12vw, 3.4rem); margin-bottom: 1.1rem; }
  .hero-sub { font-size: 1.02rem; }
  .eyebrow { font-size: .68rem; letter-spacing: .22em; margin-bottom: 1rem; }
  .hero-actions { margin: 1.5rem 0 1.6rem; gap: 14px 22px; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; gap: 8px; }

  /* simplified detection system on small screens */
  .orbit-3, .ring.r4, .link.l4, .probe, .d-stars circle:nth-child(n+5), .node:nth-child(n+6) { display: none; }

  .queries li:nth-child(n) { margin-left: 0; }
  .eco-nodes text { font-size: 22px; }
  .eco-core text { font-size: 17px; }
  .eco-core text:first-of-type { transform: translateY(-3px); }
  .eco-core text:last-of-type { transform: translateY(5px); }
  .check-list li { grid-template-columns: 44px 1fr; gap: 8px; padding: 22px 0; }
  .checks-close { flex-direction: column; align-items: stretch; }
  .checks-close .btn { width: 100%; }
  .sprint-cta .btn, .final .btn { width: 100%; }
  .sprint-days li { grid-template-columns: 14px 64px 1fr; gap: 0 14px; }
  .sprint-days p { font-size: .92rem; }
  .recommend { padding: 64px 0; }
  .recommend-panel { padding: 26px 22px; border-radius: 24px; gap: 22px; }
  .recommend-main .h2 { margin-bottom: .4em; }
  .recommend-main .lead { font-size: 1rem; margin: 0; }
  .benefits { gap: 10px; margin-bottom: 22px; }
  .benefits li { font-size: 1rem; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; margin-left: -.7rem; }
  .panel-body { padding: 26px 22px 6px; }
  .panel-foot { padding: 14px 22px 22px; }
}

/* ==========================================================
   REDUCED MOTION
   ========================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .hero-video { display: none; }
  .probe, .sig-pulse, .seek-wave, .eco-pulses { display: none; }
  .target-core { opacity: .9; }
  .target-glow { opacity: .55; }
  .sprint .day-dot { background: #00D9FF; box-shadow: 0 0 0 4px rgba(0,217,255,.14); }
  .sprint .sprint-arc-lit { stroke-dashoffset: 0; }
}
