/* ============================================================
   Hadal Data — deep-sea descent
   Deep blue near the surface → vibrant teal accents → black at the bottom,
   where no surface light reaches. The page darkens as you descend.
   ============================================================ */

:root {
  --void: #000000;
  --bone: #ffffff;
  --ash: #c2cdd2;
  --smoke: #8a99a0;
  --faint: #55676f;
  --hairline: rgba(120, 200, 220, 0.12);
  --hairline-strong: rgba(120, 200, 220, 0.24);
  /* accent unified with the logo's DATA blue — used site-wide */
  --plum: #4b9eff;
  --plum-dim: rgba(75, 158, 255, 0.14);
  --teal: #4b9eff;
  --blue: #4b9eff;
  --amber: #ffb829;
  --lichen: #15846e;
  /* descent gradient stops */
  --sea-surface: #0c3a52;
  --sea-upper: #082a3c;
  --sea-mid: #051a27;
  --sea-deep: #020c13;
  --font: 'Inter', 'Söhne', 'Space Grotesk', sans-serif;
  --mono: 'JetBrains Mono', monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --maxw: 1200px;
  --nav-h: 78px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); background: #000; }
/* anchored sections land comfortably below the fixed nav with headroom */
section[id], header[id], [id]:target { scroll-margin-top: calc(var(--nav-h) + 44px); }

body {
  /* full-page descent gradient: deep blue at the surface, fading to pure black
     at the abyss — scrolling down literally takes you into the dark */
  background:
    linear-gradient(180deg,
      var(--sea-surface) 0%,
      var(--sea-upper) 16%,
      var(--sea-mid) 38%,
      var(--sea-deep) 64%,
      #000000 88%);
  background-attachment: scroll;
  background-repeat: no-repeat;
  color: var(--bone);
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  letter-spacing: 0.012em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: var(--plum); color: #03141a; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 32px 0 64px; position: relative; z-index: 2; }

.mono { font-family: var(--mono); font-size: 0.82em; letter-spacing: 0.02em; }
.accent-text { color: var(--plum); }

/* ---- progress: a single hairline ---- */
.progress-bar {
  position: fixed; top: 0; left: 0; height: 1px; width: 0%;
  background: var(--plum); z-index: 200; transition: width 0.1s linear;
}

.scroll-rail {
  position: fixed; left: 28px; top: 40px; bottom: 40px; width: 1px;
  background: rgba(75, 158, 255, 0.16);
  pointer-events: none; z-index: 60;
}

/* ============ NAV ============ */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h);
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  border-bottom: 1px solid transparent;
}
/* transparent nav with only a faint scrim for legibility once you scroll */
.nav::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(2,12,18,0.45), transparent);
  opacity: 0; transition: opacity 0.4s var(--ease);
}
.nav.scrolled::before { opacity: 1; }
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 32px; height: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
/* Logo — "Syncopate Inverted" wordmark (design variation 02): HADAL white,
   DATA flipped vertically in deep-sea blue */
.logo {
  font-family: 'Syncopate', sans-serif; font-weight: 700;
  font-size: 1.08rem; letter-spacing: 0; line-height: 1;
  color: var(--bone); text-decoration: none;
  display: flex; align-items: center; gap: 0.28em; white-space: nowrap;
}
.wm-data {
  display: inline-block;
  transform: scaleY(-1);
  position: relative;
  top: -0.14em;           /* flipping mirrors the font metrics — nudge up to align caps */
  color: #4b9eff;
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  color: var(--smoke); text-decoration: none; font-size: 0.86rem; font-weight: 500;
  letter-spacing: 0.01em; transition: color 0.25s;
}
.nav-links a:hover { color: var(--bone); }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-burger span { width: 22px; height: 1px; background: var(--bone); transition: 0.3s; }

.mobile-menu {
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 99;
  background: rgba(0, 0, 0, 0.96); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; gap: 6px; padding: 24px 32px 32px;
  border-bottom: 1px solid var(--hairline);
  transform: translateY(-110%); opacity: 0;
  transition: transform 0.45s var(--ease), opacity 0.3s; pointer-events: none;
}
.mobile-menu.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--smoke); text-decoration: none; padding: 12px 0; font-size: 1.02rem; font-weight: 500; }
.mobile-menu a:hover { color: var(--bone); }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 600; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 13px 26px; border-radius: 100px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
  white-space: nowrap;
}
.btn-lg { padding: 17px 34px; font-size: 0.8rem; }
/* glass buttons — transparent panes with a faint backlit blue glow, lit from
   within by the logo's DATA blue. Inner glow = backlight, outer = bloom, top
   hairline = glass highlight. The backlight breathes like deep-sea biolumin-
   escence; hover freezes the pulse and brightens to a steady stronger glow. */
.btn-primary {
  background: rgba(75, 158, 255, 0.10);
  color: #eaf3ff; font-weight: 600;
  border: 1px solid rgba(75, 158, 255, 0.40);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  animation: btnBreath 3.6s var(--ease) infinite;
}
@keyframes btnBreath {
  0%, 100% {
    box-shadow:
      0 0 16px rgba(75, 158, 255, 0.22),       /* outer bloom */
      inset 0 0 14px rgba(75, 158, 255, 0.15),  /* backlight from inside */
      inset 0 1px 0 rgba(255, 255, 255, 0.20);  /* glass top highlight */
  }
  50% {
    box-shadow:
      0 0 28px rgba(75, 158, 255, 0.42),
      inset 0 0 22px rgba(75, 158, 255, 0.30),
      inset 0 1px 0 rgba(255, 255, 255, 0.24);
  }
}
.btn-primary:hover {
  transform: translateY(-2px);
  background: rgba(75, 158, 255, 0.18);
  border-color: rgba(75, 158, 255, 0.65);
  animation: none;
  box-shadow:
    0 0 34px rgba(75, 158, 255, 0.52),
    inset 0 0 22px rgba(75, 158, 255, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
/* ghost + outline now share the glass language, lighter and cooler so the
   primary still leads the eye */
.btn-ghost {
  color: var(--ash); background: rgba(75, 158, 255, 0.05);
  border: 1px solid rgba(75, 158, 255, 0.18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: btnBreathSoft 4.2s var(--ease) infinite;
}
.btn-ghost:hover {
  color: var(--bone); background: rgba(75, 158, 255, 0.11);
  border-color: rgba(75, 158, 255, 0.42); animation: none;
  box-shadow: 0 0 22px rgba(75, 158, 255, 0.34), inset 0 0 16px rgba(75, 158, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-outline {
  color: var(--bone); background: rgba(75, 158, 255, 0.06);
  border: 1px solid rgba(75, 158, 255, 0.24);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  animation: btnBreathSoft 4.2s var(--ease) infinite;
}
.btn-outline:hover {
  transform: translateY(-2px);
  border-color: rgba(75, 158, 255, 0.5); background: rgba(75, 158, 255, 0.12);
  animation: none;
  box-shadow: 0 0 26px rgba(75, 158, 255, 0.38), inset 0 0 18px rgba(75, 158, 255, 0.24), inset 0 1px 0 rgba(255, 255, 255, 0.20);
}
/* softer breath for the secondary glass buttons */
@keyframes btnBreathSoft {
  0%, 100% { box-shadow: 0 0 10px rgba(75, 158, 255, 0.12), inset 0 0 10px rgba(75, 158, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12); }
  50%      { box-shadow: 0 0 18px rgba(75, 158, 255, 0.24), inset 0 0 15px rgba(75, 158, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16); }
}
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn-primary:hover .btn-arrow, .btn-outline:hover .btn-arrow { transform: translateX(4px); }

/* ============ HERO ============ */
/* ── Cinematic DEPTH ACT (hero → the problem) ──
   .depth-scroll provides the scroll distance; .depth-stage pins (sticky). Two
   shark clips scrub through it while scenes emerge forward from the deep —
   the camera dives front-to-back rather than the page sliding up. */
.depth-scroll { position: relative; height: 2100vh; }
.depth-stage {
  position: sticky; top: 0; height: 100vh; overflow: hidden;
  perspective: 1200px;
}
.depth-video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: 72% center;   /* shark weighted to the right */
  z-index: 0; pointer-events: none; background: #02080d;
}
#heroVideo2 { opacity: 0; }   /* second clip fades in at the handoff */
/* near-black veil that peaks at the clip handoff (the dive into the deep) */
.handoff-dark {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: #01060a; opacity: 0;
}

.hero-veil {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(2,10,16,0.92) 0%, rgba(2,10,16,0.5) 38%, rgba(2,10,16,0) 70%),
    linear-gradient(180deg, rgba(2,10,16,0.4) 0%, transparent 30%, rgba(0,0,0,0.65) 100%);
}

/* each scene is a full-stage layer the JS moves in depth (scale + fade + blur) */
.depth-scene {
  position: absolute; inset: 0; z-index: 2;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 20px) 32px 44px 88px;   /* extra left pad clears the rail */
  will-change: transform, opacity, filter;
}
.scene-problem { will-change: transform, opacity, filter; }
.scene-problem .container { width: 100%; padding-left: 0; }

/* scene 3 — How It Works rides over the S3 footage. Compact so nothing clips,
   and it leaves room for the marquee pinned at the bottom of the stage. */
.scene-how { opacity: 0; will-change: transform, opacity, filter; align-items: center; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 84px; }
.scene-how .container { width: 100%; padding-left: 0; }
.scene-how .section-tag { margin-bottom: 12px; }
.scene-how .section-title { font-size: clamp(1.5rem, 3vw, 2.5rem); margin-bottom: 12px; }
.scene-how .section-sub { font-size: 0.94rem; max-width: 600px; margin-bottom: 20px; }
/* the flow sits in a glass strip so it reads cleanly over the moving water */
.scene-how .flow {
  margin-top: 4px;
  background: rgba(3, 14, 22, 0.46);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
}
.scene-how .flow-step { padding: 22px 20px; }
.scene-how .flow-icon { width: 38px; height: 38px; margin-bottom: 14px; }
.scene-how .flow-icon svg { width: 19px; height: 19px; }
.scene-how .flow-label { font-size: 1rem; margin-bottom: 8px; }
.scene-how .flow-step p { font-size: 0.8rem; }

/* marquee pinned to the bottom of the depth stage
   (.marquee-band.depth-marquee to outrank the base .marquee-band position rule) */
.marquee-band.depth-marquee {
  position: absolute; left: 0; right: 0; bottom: 0; top: auto; z-index: 3; opacity: 0;
  background: rgba(2, 12, 18, 0.55);
  backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px);
  border-bottom: none;
}

/* scene 4 — Sealed Pools rides over the S4 footage (shark reappears lower-right) */
.scene-pools { opacity: 0; will-change: transform, opacity, filter; align-items: center; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 72px; }
.scene-pools .container { width: 100%; padding-left: 0; }
.scene-pools .pools-layout { gap: 56px; align-items: center; }
.scene-pools .section-tag { margin-bottom: 12px; }
.scene-pools .section-title { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 14px; }
.scene-pools .pools-text > p { font-size: 0.92rem; margin-bottom: 18px; }
.scene-pools .check-list { gap: 12px; }
.scene-pools .check-list li { font-size: 0.86rem; }
/* the pool pane is more opaque so it reads as a solid card over the moving water */
.scene-pools .pool-card { background: rgba(5, 22, 33, 0.66); }

/* scene 5 — For Buyers rides over the S5 footage (shark turns + exits right) */
.scene-buyers { opacity: 0; will-change: transform, opacity, filter; align-items: center; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 72px; }
.scene-buyers .container { width: 100%; padding-left: 0; }
.scene-buyers .section-tag { margin-bottom: 10px; }
.scene-buyers .section-title { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 10px; }
.scene-buyers .section-sub { font-size: 0.9rem; max-width: 640px; margin-bottom: 18px; }
/* one short row of cards in a glass strip, compact to fit the pinned scene */
.scene-buyers .buyer-grid { grid-template-columns: repeat(4, 1fr); margin-bottom: 16px; background: rgba(3, 14, 22, 0.44); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scene-buyers .buyer-card { padding: 18px 18px; border-bottom: none; }
.scene-buyers .buyer-card:nth-child(2n) { border-right: 1px solid var(--hairline); }
.scene-buyers .buyer-card:last-child { border-right: none; }
.scene-buyers .buyer-card h3 { font-size: 1rem; margin-bottom: 7px; }
.scene-buyers .buyer-card p { font-size: 0.78rem; }
.scene-buyers .receipt-strip { padding: 15px 24px; background: rgba(3, 14, 22, 0.44); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.scene-buyers .receipt-item .mono { font-size: 0.82rem; }

/* scene 6 — Technology rides over the S6 footage; jellyfish drifts up on the
   left, copy sits to the RIGHT in the open water */
.scene-tech { opacity: 0; will-change: transform, opacity, filter; align-items: center; padding-top: calc(var(--nav-h) + 8px); padding-bottom: 72px; }
.scene-tech .container { width: 100%; padding-left: 0; display: flex; justify-content: flex-end; }
.scene-tech .tech-text-right { max-width: 520px; }
.scene-tech .section-tag { margin-bottom: 12px; }
.scene-tech .section-title { font-size: clamp(1.5rem, 3vw, 2.4rem); margin-bottom: 14px; }
.scene-tech .tech-text > p { color: var(--ash); margin-bottom: 22px; font-size: 0.95rem; }
.scene-tech .check-list { gap: 14px; }
.scene-tech .check-list li { font-size: 0.88rem; }

/* scene 7 — Join Waitlist rides over the S7 jellyfish field (centered copy) */
.scene-waitlist { opacity: 0; will-change: transform, opacity, filter; align-items: center; }
.scene-waitlist .container { width: 100%; padding-left: 0; display: flex; justify-content: center; }
.scene-waitlist .cta-inner {
  max-width: 640px; text-align: center; padding: 38px 44px; border-radius: 24px;
  /* soft radial scrim so the centered copy reads over the glowing jellyfish */
  background: radial-gradient(ellipse at center, rgba(2,10,18,0.66) 0%, rgba(2,10,18,0.32) 60%, transparent 100%);
}
.scene-waitlist .cta-title { font-size: clamp(1.8rem, 4vw, 3rem); margin-bottom: 18px; }
.scene-waitlist .cta-sub { margin-bottom: 30px; }
.scene-waitlist .waitlist-form { margin: 0 auto 16px; }

/* invisible nav anchors — positioned per clip for the 7-clip dive (clip k of 7,
   landing roughly mid-clip → (k+0.5)/7) */
.depth-anchor { position: absolute; left: 0; width: 1px; height: 1px; pointer-events: none; }
.depth-anchor-how      { top: 36%; }
.depth-anchor-pools    { top: 50%; }
.depth-anchor-buyers   { top: 64%; }
.depth-anchor-tech     { top: 79%; }
.depth-anchor-waitlist { top: 93%; }

.hero-inner {
  max-width: var(--maxw); margin: 0 auto; width: 100%;
  position: relative; z-index: 2;
}
.hero-content { max-width: 760px; }

.hero-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px; border-radius: 100px; border: 1px solid var(--hairline);
  font-size: 0.74rem; font-weight: 500; letter-spacing: 0.04em; color: var(--smoke);
  text-transform: uppercase; margin-bottom: 16px;
}
.pulse-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--plum); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: 0.25; } }

.hero-title {
  font-family: var(--font);
  font-size: clamp(2.4rem, 5.4vw, 4.4rem);
  font-weight: 200; line-height: 1.0; letter-spacing: -0.04em;
  margin-bottom: 18px;
}
.hero-title em.strike { font-style: normal; position: relative; color: var(--faint); }
.hero-title em.strike::after {
  content: ''; position: absolute; left: -3%; right: -3%; top: 53%; height: 2px;
  background: var(--plum); transform: scaleX(0); transform-origin: left center;
  animation: strikeIn 0.7s var(--ease) 1.7s forwards;
}
@keyframes strikeIn { to { transform: scaleX(1); } }
.hero-title .accent-line { color: var(--bone); font-weight: 300; }

.line-mask { display: block; overflow: hidden; padding: 0 0 0.04em; }
.line { display: block; transform: translateY(110%); animation: lineUp 1s var(--ease) forwards; }
.line-mask:nth-child(1) .line { animation-delay: 0.15s; }
.line-mask:nth-child(2) .line { animation-delay: 0.32s; }
.line-mask:nth-child(3) .line { animation-delay: 0.49s; }
@keyframes lineUp { to { transform: translateY(0); } }

.hero-sub {
  font-size: clamp(0.96rem, 1.4vw, 1.08rem); color: var(--ash); font-weight: 400;
  max-width: 540px; margin-bottom: 22px; line-height: 1.55;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }

.hero-stats { display: flex; align-items: flex-start; gap: clamp(24px, 5vw, 56px); flex-wrap: wrap; }
.stat { }
.stat-num { font-family: var(--font); font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 200; letter-spacing: -0.03em; color: var(--bone); }
.stat-label { font-size: 0.74rem; color: var(--faint); margin-top: 4px; letter-spacing: 0.02em; }
.stat-divider { width: 1px; height: 40px; background: var(--hairline); }
/* short viewports: shrink the headline further so the stats never clip */
@media (max-height: 780px) {
  .hero-title { font-size: clamp(2.2rem, 4.6vw, 3.6rem); margin-bottom: 14px; }
  .hero-sub { margin-bottom: 16px; }
  .hero-actions { margin-bottom: 18px; }
  .btn-lg { padding: 13px 26px; }
}

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  color: var(--faint); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; z-index: 2;
}
.scroll-line { width: 1px; height: 42px; background: var(--hairline); position: relative; overflow: hidden; }
.scroll-line::after { content: ''; position: absolute; top: -50%; left: 0; width: 100%; height: 50%; background: var(--plum); animation: scrollDrip 1.9s var(--ease) infinite; }
@keyframes scrollDrip { to { top: 110%; } }
/* on short screens, drop the scroll hint so it can't crowd the hero stats */
@media (max-height: 860px) { .scroll-hint { display: none; } }

/* ============ MARQUEE ============ */
.marquee-band { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: 18px 0; overflow: hidden; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 40px; align-items: center; width: max-content; animation: marquee 36s linear infinite; }
.marquee-track span { font-size: 0.76rem; font-weight: 500; letter-spacing: 0.2em; color: var(--faint); white-space: nowrap; text-transform: uppercase; }
.marquee-track i { color: var(--plum); font-size: 0.5rem; font-style: normal; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============ SECTIONS ============ */
.section { padding: 140px 0; position: relative; z-index: 2; }

.section-tag {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--smoke);
  margin-bottom: 28px; padding-left: 22px; position: relative;
}
.section-tag::before { content: ''; position: absolute; left: 0; top: 50%; width: 12px; height: 1px; background: var(--plum); }
.section-title { font-family: var(--font); font-size: clamp(2.1rem, 5vw, 3.9rem); font-weight: 200; line-height: 1.05; letter-spacing: -0.035em; margin-bottom: 24px; }
.section-sub { color: var(--ash); max-width: 640px; margin-bottom: 60px; font-size: 1.06rem; }

/* depth emergence — sections rise forward from the deep as you descend,
   continuing the hero's front-to-back dive down the rest of the page.
   JS drives scale/blur/opacity per scroll; this just primes the compositor. */
.depth-emerge { will-change: transform, opacity, filter; transform-origin: center 64%; }

/* reveal — copy slides in along the shark's swim vector for that section.
   Each section sets --swim-x / --swim-y (the direction the shark is heading);
   defaults to a plain rise from below where no vector is set. */
.reveal {
  opacity: 0;
  transform: translate(var(--swim-x, 0px), var(--swim-y, 34px));
  transition: opacity 0.85s var(--ease), transform 0.85s var(--ease);
}
.reveal.visible { opacity: 1; transform: translate(0, 0); }

/* per-section swim vectors — the shark weaves down the page, copy trails its heading */
#how    { --swim-x:  46px; --swim-y: 30px; }   /* down-right */
#pools  { --swim-x: -46px; --swim-y: 30px; }   /* down-left  */
#buyers { --swim-x:  46px; --swim-y: 30px; }   /* down-right */
#tech   { --swim-x:   0px; --swim-y: 40px; }   /* straight down */
#waitlist { --swim-x: 0px; --swim-y: 44px; }   /* jellyfish rising from below */
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ============ PROBLEM ============ */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 60px; border-top: 1px solid var(--hairline); }
.problem-card { padding: 40px 32px 40px 0; border-right: 1px solid var(--hairline); transition: background 0.4s; }
.problem-card:last-child { border-right: none; }
.problem-card { padding-left: 32px; }
.problem-card:first-child { padding-left: 0; }
.problem-num { font-family: var(--mono); font-size: 0.76rem; color: var(--plum); margin-bottom: 22px; letter-spacing: 0.1em; }
.problem-card h3 { font-family: var(--font); font-size: 1.28rem; font-weight: 300; margin-bottom: 12px; letter-spacing: -0.015em; }
.problem-card p { color: var(--smoke); font-size: 0.94rem; }

/* ============ HOW / FLOW ============ */
.how { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.flow { display: flex; align-items: stretch; gap: 0; margin-top: 28px; border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden; position: relative; }
.flow-step { flex: 1; padding: 38px 30px; border-right: 1px solid var(--hairline); transition: background 0.4s; position: relative; z-index: 1; }
.flow-step:last-child { border-right: none; }
.flow-step:hover { background: rgba(255,255,255,0.02); }
.flow-icon { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--hairline-strong); display: grid; place-items: center; margin-bottom: 22px; color: var(--plum); }
.flow-icon svg { width: 22px; height: 22px; }
.flow-label { font-family: var(--font); font-weight: 400; font-size: 1.1rem; margin-bottom: 10px; }
.flow-step p { color: var(--smoke); font-size: 0.86rem; }
.flow-arrow { display: none; }

/* ============ POOLS ============ */
.pools-layout { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 80px; align-items: center; }
.pools-text > p { color: var(--ash); margin-bottom: 34px; font-size: 1.04rem; }
.pools-text strong { color: var(--bone); font-weight: 500; }
.check-list { list-style: none; display: flex; flex-direction: column; gap: 20px; }
.check-list li { display: flex; gap: 15px; color: var(--smoke); font-size: 0.95rem; }
.check-list strong { color: var(--bone); font-weight: 500; }
.check { flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--hairline-strong); color: var(--plum); display: grid; place-items: center; font-size: 0.68rem; margin-top: 2px; }

/* pool card */
.pool-card {
  border: 1px solid var(--hairline-strong); border-radius: 24px;
  padding: 34px; position: relative; overflow: hidden;
  background: rgba(5, 22, 33, 0.5); backdrop-filter: blur(6px);
}
.pool-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pool-id { font-family: var(--mono); font-size: 0.76rem; color: var(--faint); letter-spacing: 0.1em; }
.pool-status { font-family: var(--mono); font-size: 0.66rem; letter-spacing: 0.14em; padding: 5px 13px; border-radius: 100px; border: 1px solid var(--hairline-strong); color: var(--ash); transition: all 0.4s; }
.pool-status.sealed { border-color: var(--plum); color: var(--plum); }
.pool-type { font-family: var(--font); font-size: 1.4rem; font-weight: 200; margin-bottom: 26px; letter-spacing: -0.02em; }
.pool-meter { height: 6px; border-radius: 100px; background: rgba(255,255,255,0.07); overflow: hidden; margin-bottom: 12px; }
.pool-meter-fill { height: 100%; width: 0%; border-radius: 100px; background: var(--plum); transition: width 0.2s linear; }
.pool-meta { font-family: var(--mono); font-size: 0.8rem; color: var(--smoke); margin-bottom: 28px; }
.pool-divider { height: 1px; background: var(--hairline); margin-bottom: 24px; }
.pool-rows { display: flex; flex-direction: column; gap: 14px; }
.pool-row { display: flex; justify-content: space-between; font-size: 0.88rem; }
.pool-row span { color: var(--faint); }
.pool-row strong { font-weight: 400; color: var(--ash); }
.verified { color: var(--plum); }

.pool-stamp {
  position: absolute; top: 46%; left: 50%;
  transform: translate(-50%, -50%) rotate(-13deg) scale(2.6);
  font-family: var(--font); font-weight: 300; font-size: 2.7rem; letter-spacing: 0.16em;
  color: var(--plum); border: 2px solid var(--plum); border-radius: 10px; padding: 6px 24px;
  opacity: 0; pointer-events: none;
}
.pool-stamp.stamped { animation: stamp 0.55s var(--ease) forwards; }
@keyframes stamp {
  0% { opacity: 0; transform: translate(-50%, -50%) rotate(-13deg) scale(2.6); }
  100% { opacity: 0.9; transform: translate(-50%, -50%) rotate(-13deg) scale(1); }
}

/* ============ BUYERS ============ */
.buyers { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); }
.buyer-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0; margin-bottom: 68px; border: 1px solid var(--hairline); border-radius: 24px; overflow: hidden; }
.buyer-card { padding: 38px 34px; border-right: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); transition: background 0.4s; }
.buyer-card:nth-child(2n) { border-right: none; }
.buyer-card:nth-child(n+3) { border-bottom: none; }
.buyer-card:hover { background: rgba(255,255,255,0.02); }
.buyer-card h3 { font-family: var(--font); font-size: 1.24rem; font-weight: 300; margin-bottom: 11px; letter-spacing: -0.01em; }
.buyer-card p { color: var(--smoke); font-size: 0.92rem; }

.receipt-strip { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 26px; border: 1px solid var(--hairline); border-radius: 18px; padding: 28px 38px; }
.receipt-item { display: flex; flex-direction: column; gap: 7px; }
.receipt-label { font-size: 0.64rem; letter-spacing: 0.18em; color: var(--faint); font-weight: 600; }
.receipt-item .mono { font-size: 0.92rem; color: var(--ash); }

/* ============ TECH ============ */
.tech-layout { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 80px; align-items: center; }
.tech-text > p { color: var(--ash); margin-bottom: 34px; font-size: 1.04rem; }
.tech-text strong { color: var(--bone); font-weight: 500; }
.chain-stack { display: flex; flex-direction: column; gap: 12px; }
.chain-layer {
  border: 1px solid var(--hairline); border-radius: 16px; padding: 22px 28px;
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  opacity: 0; transform: translateX(-26px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease), border-color 0.4s;
}
.chain-stack.visible .chain-layer { opacity: 1; transform: translateX(0); }
.chain-stack.visible .chain-layer:nth-child(1) { transition-delay: 0s; }
.chain-stack.visible .chain-layer:nth-child(2) { transition-delay: 0.12s; }
.chain-stack.visible .chain-layer:nth-child(3) { transition-delay: 0.24s; }
.chain-stack.visible .chain-layer:nth-child(4) { transition-delay: 0.36s; }
.chain-layer span { font-family: var(--font); font-weight: 400; font-size: 1.04rem; }
.chain-layer small { color: var(--faint); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; }
.chain-layer:hover { border-color: var(--hairline-strong); }
.chain-layer.accent { border-color: var(--plum); }
.chain-layer.accent span { color: var(--plum); }

/* ============ CTA ============ */
.cta { text-align: center; padding: 180px 0; position: relative; overflow: hidden; }
.cta-title { font-family: var(--font); font-size: clamp(2.2rem, 5.4vw, 4.2rem); font-weight: 200; line-height: 1.04; letter-spacing: -0.035em; margin-bottom: 22px; }
.cta-title .accent-text { color: var(--plum); font-weight: 300; }
.cta-sub { color: var(--ash); margin-bottom: 46px; font-size: 1.06rem; }
.waitlist-form { display: flex; gap: 12px; justify-content: center; max-width: 500px; margin: 0 auto 18px; }
.waitlist-form input {
  flex: 1; padding: 16px 22px; border-radius: 100px; border: 1px solid var(--hairline-strong);
  background: transparent; color: var(--bone); font-family: var(--font); font-size: 0.96rem;
  outline: none; transition: border-color 0.3s;
}
.waitlist-form input::placeholder { color: var(--faint); }
.waitlist-form input:focus { border-color: var(--plum); }
.form-note { font-size: 0.8rem; color: var(--faint); }
.form-note.success { color: var(--plum); }
.form-note.error { color: #ff7a7a; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ============ FOOTER ============ */
.footer { border-top: 1px solid var(--hairline); padding: 76px 0 0; position: relative; z-index: 2; }
.footer-inner { display: flex; justify-content: space-between; gap: 48px; flex-wrap: wrap; padding-bottom: 58px; }
.footer-brand p { color: var(--faint); font-size: 0.86rem; margin-top: 18px; }
.footer-cols { display: flex; gap: 76px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 13px; }
.footer-col h4 { font-family: var(--mono); font-size: 0.7rem; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); margin-bottom: 6px; }
.footer-col a { color: var(--smoke); text-decoration: none; font-size: 0.9rem; transition: color 0.25s; }
.footer-col a:hover { color: var(--bone); }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding: 26px 0; border-top: 1px solid var(--hairline); color: var(--faint); font-size: 0.8rem; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1024px) {
  .flow { flex-wrap: wrap; border-radius: 24px; }
  .flow-step { flex: 1 1 50%; border-bottom: 1px solid var(--hairline); }
  .flow-step:nth-child(2n) { border-right: none; }
  .pools-layout, .tech-layout { grid-template-columns: 1fr; gap: 56px; }
  .tech-visual { order: 2; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .nav-burger { display: flex; }
  .section { padding: 96px 0; }
  .problem-grid { grid-template-columns: 1fr; }
  .problem-card { border-right: none; border-bottom: 1px solid var(--hairline); padding: 32px 0; }
  .buyer-grid { grid-template-columns: 1fr; }
  .buyer-card { border-right: none; }
  .buyer-card:nth-child(3) { border-bottom: 1px solid var(--hairline); }
  .flow-step { flex: 1 1 100%; border-right: none; }
  .hero-stats { gap: 24px; }
  .stat-divider { display: none; }
  .waitlist-form { flex-direction: column; }
  .receipt-strip { flex-direction: column; gap: 20px; }
  .scroll-hint { display: none; }
}

/* ============================================================
   MOBILE / TOUCH: ambient fixed-background dive
   The scroll-scrub isn't viable on touch, so the dive plays muted on a loop as a
   FIXED full-screen background while the content sections scroll over it. The
   .is-touch class is added by app.js when a coarse pointer is detected.
   ============================================================ */
.is-touch .depth-scroll { height: auto; }
.is-touch .depth-stage {
  position: static; height: auto; min-height: 0;
  overflow: visible; perspective: none;
}
.is-touch .depth-video {            /* the dive, fixed behind everything */
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  object-position: center; z-index: -2;
}
.is-touch #heroVideo2 { display: none; }
.is-touch .hero-veil {              /* fixed global scrim for legibility */
  position: fixed; inset: 0; z-index: -1; opacity: 1;
  background: linear-gradient(180deg, rgba(2,10,16,0.5), rgba(2,10,16,0.32) 40%, rgba(0,0,0,0.6));
}
/* each scene becomes a normal full-height block scrolling over the background */
.is-touch .depth-scene {
  position: relative; inset: auto; min-height: 100vh;
  display: flex; align-items: center;
  padding: calc(var(--nav-h) + 24px) 22px 64px;
  transform: none !important; filter: none !important; opacity: 1 !important;
}
/* readability scrim behind each section's copy */
.is-touch .depth-scene .container,
.is-touch .scene-hero .hero-inner {
  background: radial-gradient(ellipse at 35% 45%, rgba(2,10,18,0.74) 0%, rgba(2,10,18,0.46) 55%, rgba(2,10,18,0.08) 100%);
  border-radius: 20px; padding: 22px 18px;
}
.is-touch .scene-waitlist .container { background: none; }   /* cta-inner has its own scrim */
.is-touch .scene-tech .container { display: block; }          /* undo right-justify on mobile */
.is-touch .scene-tech .tech-text-right { max-width: none; }
.is-touch .depth-marquee { position: relative; bottom: auto; opacity: 1; }
.is-touch .scroll-hint, .is-touch .scroll-rail, .is-touch .progress-bar { display: none; }
.is-touch .footer { background: #02080d; }                    /* solid base under the footer */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .line { transform: none; }
  .chain-layer { opacity: 1; transform: none; }
}
