/* ==========================================================================
   Long-scroll content pages (Markets, ANT AI, Safety, 404)
   ========================================================================== */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
body { overflow-x: hidden; }

.bg-canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 2; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 130px clamp(20px, 7vw, 120px) 12vh;
}

.hero__title {
  margin: 20px 0 28px;
  font-size: clamp(58px, 12vw, 210px);
  color: var(--white);
}

.hero__title .row { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero__title .row > span { display: inline-block; }
.hero__title .serif { color: var(--mint); }

.hero__lede {
  max-width: 560px;
  margin: 0 0 36px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  color: rgba(231, 233, 234, 0.72);
}

.hero__row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.hero__scroll {
  position: absolute;
  right: clamp(20px, 7vw, 120px);
  bottom: 12vh;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  writing-mode: vertical-rl;
}

@media (max-width: 760px) { .hero__scroll { display: none; } }

/* ---------- Sections ---------- */
.sec {
  position: relative;
  padding: 18vh clamp(20px, 7vw, 120px);
  max-width: 1440px;
  margin: 0 auto;
}

.sec--tight { padding-top: 8vh; }

.sec__head { max-width: 880px; margin-bottom: 60px; }
.sec__head h2 {
  margin: 16px 0 22px;
  font-size: clamp(44px, 6.6vw, 108px);
  color: var(--white);
}
.sec__head .serif { color: var(--mint); }
.sec__head p:not(.eyebrow) { margin: 0; max-width: 620px; font-size: 17px; line-height: 1.6; color: rgba(231, 233, 234, 0.7); }

.note {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.4);
}

.pill--live::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--bull);
  box-shadow: 0 0 10px var(--bull);
  animation: pulse 1.8s infinite;
}

.pill--sim::before { background: var(--gold); box-shadow: 0 0 10px var(--gold); }

/* ---------- Cards grid ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.tile {
  position: relative;
  padding: 28px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.01));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: hidden;
  transition: border-color 0.4s, transform 0.6s var(--ease-out);
}

.tile:hover { border-color: rgba(124, 255, 203, 0.35); transform: translateY(-6px); }
.tile__n { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.tile h3 { margin: 36px 0 10px; font-family: var(--font-display); font-size: 25px; letter-spacing: -0.03em; font-weight: 600; color: var(--white); }
.tile p { margin: 0; font-size: 15px; line-height: 1.6; color: rgba(231, 233, 234, 0.7); }
.tile--no h3 { color: var(--bear); }
.tile--yes h3 { color: var(--mint); }

/* ---------- Big stat strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stat { padding: 34px 24px 30px; border-right: 1px solid var(--line); }
.stat:last-child { border-right: 0; }
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(44px, 6vw, 96px);
  letter-spacing: -0.05em;
  line-height: 1;
  color: var(--white);
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 12px; font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

@media (max-width: 760px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
}

/* ---------- CTA ---------- */
.cta {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  text-align: center;
  padding: 10vh 20px;
}
.cta h2 { margin: 0; font-size: clamp(60px, 11vw, 190px); color: var(--white); }
.cta .serif { color: var(--mint); }
.cta__row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); }
.reveal.is-revealed { opacity: 1; transform: none; }
.reveal[data-d="1"] { transition-delay: 0.08s; }
.reveal[data-d="2"] { transition-delay: 0.16s; }
.reveal[data-d="3"] { transition-delay: 0.24s; }
