/* ── Nav ───────────────────────────────────────────────────────── */
#nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 100;
  width: fit-content; margin-inline: auto;
  display: flex; align-items: center; gap: 34px;
  padding: 10px 12px 10px 20px;
  border-radius: 999px; border: 1px solid var(--border);
  background: rgba(10, 10, 12, 0.55);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  will-change: transform;
}
.nav-logo {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 17px; letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 26px; }
.nav-links a {
  font-size: 14px; font-weight: 600; color: var(--text-2);
  position: relative; padding: 4px 0; transition: color 0.25s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--em); border-radius: 2px;
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease-out);
}
.nav-links a:hover { color: var(--text-1); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }

/* ── Hero ──────────────────────────────────────────────────────── */
.hero {
  position: relative; z-index: 3;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(120px, 16vh, 180px) 24px 0;
  text-align: center;
}
#wave {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: -1; pointer-events: none;
}
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 70% 45% at 50% 38%, transparent 30%, var(--bg-0) 92%);
}
.hero-inner { max-width: 860px; }
#headline {
  font-size: clamp(44px, 7.6vw, 96px);
  font-weight: 900;
  letter-spacing: -0.045em;
  margin: 26px 0 0;
  perspective: 600px;
  /* Hidden from the very first paint (not just once intro.js runs): without
     this, the browser can paint one frame of the plain, unsplit headline in
     whatever font is available at that instant, and that frame's raster
     lingers as a static "ghost" behind the real per-letter reveal — visible
     as a pale blob to the left of the first word for the first several
     hundred ms. See .no-motion override in base.css. */
  opacity: 0.001;
}
/* .gradient-text is added by intro.js only after split.revert() restores
   plain flat text. Applied to bare #headline unconditionally instead, it
   makes Chrome mis-paint the clip mask while SplitText's char divs are
   mid-transform: a static pale blob left of the first word. Plain white
   covers the no-motion/reduced-motion paths, which skip split/revert. */
#headline { color: #ffffff; }
#headline.gradient-text {
  background: linear-gradient(180deg, #ffffff 30%, #b8ffe9 75%, var(--em) 110%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
/* Chars stay solid white (no gradient/clip) for the same reason as above —
   see intro.js for the revert-then-reveal-gradient sequencing. */
#headline .char {
  display: inline-block;
  background: none;
  -webkit-background-clip: initial; background-clip: initial;
  -webkit-text-fill-color: #ffffff; color: #ffffff;
}
.hero-sub {
  max-width: 640px; margin: 26px auto 0;
  color: var(--text-2); font-size: clamp(16px, 1.7vw, 19px);
}
.hero-ctas {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
  margin-top: 38px;
}
.hero-note { margin-top: 18px; font-size: 13px; color: var(--text-3); }

/* Hero screenshot */
.hero-visual {
  position: relative; z-index: 3;
  width: min(1080px, 92vw);
  margin: clamp(56px, 8vh, 96px) auto 0;
  perspective: 1400px;
}
#hero-shot { transform: rotateX(8deg); }
#hero-shot img { box-shadow: 0 -1px 0 rgba(255, 255, 255, 0.06) inset; }

.chip {
  position: absolute; z-index: 4;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: 999px;
  font-size: 12px; letter-spacing: 0.08em; color: var(--text-2);
  border: 1px solid var(--border);
  background: rgba(12, 12, 14, 0.72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
  will-change: transform;
}
.chip b { color: var(--text-1); font-size: 14px; }
.chip b.up { color: var(--em); }
.chip-a { top: -22px; left: -34px; }
.chip-b { top: 34%; right: -44px; }
.chip-c { bottom: -18px; left: 10%; }

/* ── Ticker strip ──────────────────────────────────────────────── */
.strip {
  position: relative; z-index: 3;
  padding: 84px 0 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.strip-label {
  text-align: center; font-size: 11px; letter-spacing: 0.22em;
  color: var(--text-3); margin-bottom: 26px;
}
.marquee {
  overflow: hidden; position: relative;
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap; padding-right: 28px;
  will-change: transform;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.tick { font-size: 14px; font-weight: 600; color: var(--text-2); }
.tick.mono { font-size: 13px; }
.marquee i { color: var(--text-3); font-style: normal; }
