/* Landing v2 — kinetic “complexity → done” (CSS-first, fast paint) */

html:has(.tv),
html.tv-page,
html:has(.tv) body,
html.tv-page body {
  height: auto !important;
  min-height: 100% !important;
  font-size: 16px !important;
  background: #0e1210 !important;
  overflow: visible !important;
}

.tv {
  --ink: #0e1210;
  --fog: #e8ece6;
  --paper: #f3f5f0;
  --panel: #161c18;
  --line: rgba(232, 236, 230, 0.12);
  --line-strong: rgba(232, 236, 230, 0.28);
  --volt: #c6f000;
  --volt-deep: #9bc000;
  --mint: #2ee6a6;
  --muted: #6b756c;
  --nav-h: 68px;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Figtree", "Segoe UI", sans-serif;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.tv *,
.tv *::before,
.tv *::after { box-sizing: border-box; }

.tv a { color: inherit; text-decoration: none; }

.tv h1,
.tv h2,
.tv h3 {
  outline: none !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  font-family: "Sora", "Figtree", sans-serif;
  letter-spacing: -0.04em;
  line-height: 1.05;
  font-weight: 700;
}

/* ── Nav ─────────────────────────────────────────── */
.tv-nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 56px);
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.tv-nav.is-solid {
  background: rgba(14, 18, 16, 0.88);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.tv-nav-brand {
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: 1.4rem;
  letter-spacing: -0.05em;
  color: var(--fog);
}

.tv-nav-cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  background: var(--volt);
  color: var(--ink) !important;
  font-weight: 700;
  font-size: 0.875rem;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tv-nav-cta:hover {
  background: #d6ff33;
  transform: translateY(-1px);
}

/* ── Hero ────────────────────────────────────────── */
.tv-hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--nav-h) + 32px) clamp(20px, 5vw, 72px) clamp(40px, 8vh, 88px);
  color: var(--fog);
  overflow: clip;
  background: var(--ink);
}

.tv-hero-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.tv-field-wash {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(198, 240, 0, 0.14), transparent 55%),
    radial-gradient(90% 70% at 10% 90%, rgba(46, 230, 166, 0.1), transparent 50%),
    linear-gradient(180deg, #121814 0%, #0e1210 55%, #0a0e0c 100%);
}

.tv-lanes {
  position: absolute;
  inset: 0;
}

.tv-lane {
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong) 12%, var(--line-strong) 88%, transparent);
  opacity: 0.55;
}

.tv-lane[data-lane="0"] { top: 18%; }
.tv-lane[data-lane="1"] { top: 38%; }
.tv-lane[data-lane="2"] { top: 58%; }
.tv-lane[data-lane="3"] { top: 78%; }

.tv-streak {
  position: absolute;
  top: var(--y, 50%);
  left: -20%;
  width: clamp(72px, 12vw, 140px);
  height: 10px;
  margin-top: -5px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, rgba(232, 236, 230, 0.55), rgba(232, 236, 230, 0.15));
  animation: tv-race var(--dur, 4s) linear var(--d, 0s) infinite;
  will-change: transform, opacity;
}

.tv-streak--hot {
  background: linear-gradient(90deg, transparent, var(--mint), rgba(46, 230, 166, 0.2));
  height: 12px;
  margin-top: -6px;
}

.tv-streak--done {
  background: linear-gradient(90deg, transparent, var(--volt), rgba(198, 240, 0, 0.15));
}

@keyframes tv-race {
  0% { transform: translateX(0); opacity: 0; }
  8% { opacity: 1; }
  78% { opacity: 1; }
  100% { transform: translateX(620%); opacity: 0; }
}

.tv-finish-rail {
  position: absolute;
  top: 12%;
  bottom: 12%;
  right: clamp(18px, 6vw, 64px);
  width: 4px;
  border-radius: 2px;
  background: rgba(232, 236, 230, 0.12);
  overflow: hidden;
}

.tv-finish-fill {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 0;
  background: linear-gradient(180deg, var(--volt), var(--mint));
  animation: tv-fill 5.5s ease-in-out infinite alternate;
}

@keyframes tv-fill {
  from { height: 18%; }
  to { height: 92%; }
}

.tv-finish-mark {
  position: absolute;
  top: 8%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin-left: -9px;
  border: 2px solid var(--volt);
  border-radius: 50%;
  animation: tv-pulse 2.2s ease-in-out infinite;
}

@keyframes tv-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
}

.tv-hero-noise {
  position: absolute;
  inset: 0;
  opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  pointer-events: none;
}

.tv-hero-copy {
  position: relative;
  z-index: 2;
  max-width: 16ch;
}

.tv-brand {
  margin: 0 0 12px;
  font-family: "Sora", sans-serif;
  font-weight: 800;
  font-size: clamp(3.4rem, 11vw, 7.5rem);
  letter-spacing: -0.06em;
  line-height: 0.9;
  color: var(--volt);
}

.tv-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4.2vw, 2.75rem);
  font-weight: 700;
  color: var(--fog);
  max-width: 14ch;
}

.tv-hero-lead {
  margin: 0 0 28px;
  max-width: 28ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.4;
  color: rgba(232, 236, 230, 0.72);
  font-weight: 500;
}

.tv-hero-actions { display: flex; gap: 12px; }

.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  background: var(--volt);
  color: var(--ink) !important;
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  border-radius: 2px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.tv-btn:hover {
  background: #d6ff33;
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .tv-streak,
  .tv-finish-fill,
  .tv-finish-mark { animation: none !important; }
  .tv-finish-fill { height: 70%; }
  .tv-streak { opacity: 0.45; transform: translateX(180%); }
}

/* ── Run / board stage ───────────────────────────── */
.tv-run {
  position: relative;
  height: 220vh;
  background: var(--ink);
  color: var(--fog);
}

.tv-run-sticky {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  padding: calc(var(--nav-h) + 24px) clamp(20px, 5vw, 72px) 48px;
}

.tv-board {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  min-height: min(520px, 62vh);
  padding: 20px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 40%),
    var(--panel);
}

.tv-board-col {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
}

.tv-col-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(232, 236, 230, 0.45);
  margin-bottom: 4px;
}

.tv-ticket {
  padding: 14px 14px 14px 16px;
  border-left: 3px solid rgba(232, 236, 230, 0.35);
  background: rgba(243, 245, 240, 0.05);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--fog);
  transform: translateX(0);
  opacity: 1;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease, border-color 0.3s ease;
  will-change: transform, opacity;
}

.tv-ticket.is-leaving {
  transform: translateX(120%);
  opacity: 0;
  border-left-color: var(--volt);
}

.tv-board-col--done {
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.tv-done-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 200px;
}

.tv-done-item {
  padding: 12px 14px;
  background: rgba(198, 240, 0, 0.1);
  border-left: 3px solid var(--volt);
  color: var(--fog);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  animation: tv-land 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.tv-done-item::after {
  content: " ✓";
  color: var(--volt);
  font-weight: 800;
}

@keyframes tv-land {
  from { opacity: 0; transform: translateX(-24px); }
  to { opacity: 1; transform: translateX(0); }
}

.tv-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 8px;
}

.tv-progress-label {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(232, 236, 230, 0.45);
}

.tv-progress-track {
  height: 6px;
  background: rgba(232, 236, 230, 0.1);
  border-radius: 2px;
  overflow: hidden;
}

.tv-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--mint), var(--volt));
  border-radius: 2px;
  transition: width 0.12s linear;
}

.tv-run-copy {
  max-width: 22ch;
}

.tv-run-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.9rem, 3.6vw, 2.8rem);
  color: var(--fog);
}

.tv-run-copy p {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.45;
  color: rgba(232, 236, 230, 0.68);
}

/* ── Why ─────────────────────────────────────────── */
.tv-why {
  background: var(--paper);
  color: var(--ink);
  padding: clamp(72px, 12vh, 120px) clamp(20px, 5vw, 72px);
}

.tv-why-inner { max-width: 920px; }

.tv-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--volt-deep);
}

.tv-section-title {
  margin: 0 0 12px;
  font-size: clamp(2rem, 4vw, 3rem);
  max-width: 16ch;
}

.tv-section-lead {
  margin: 0 0 48px;
  max-width: 36ch;
  font-size: 1.15rem;
  color: var(--muted);
}

.tv-points {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid rgba(14, 18, 16, 0.12);
}

.tv-point {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 20px;
  padding: 28px 0;
  border-bottom: 1px solid rgba(14, 18, 16, 0.12);
}

.tv-point-mark {
  width: 12px;
  height: 12px;
  margin-top: 8px;
  background: var(--volt);
  border-radius: 1px;
  box-shadow: 8px 8px 0 rgba(46, 230, 166, 0.55);
}

.tv-point h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.tv-point p {
  margin: 0;
  max-width: 48ch;
  color: var(--muted);
}

/* ── CTA ─────────────────────────────────────────── */
.tv-cta {
  background: var(--ink);
  color: var(--fog);
  padding: clamp(80px, 14vh, 140px) clamp(20px, 5vw, 72px);
}

.tv-cta-inner {
  max-width: 640px;
}

.tv-brand--cta {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  margin-bottom: 8px;
}

.tv-cta h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}

.tv-cta p {
  margin: 0 0 28px;
  max-width: 32ch;
  color: rgba(232, 236, 230, 0.68);
  font-size: 1.1rem;
}

/* ── Footer ──────────────────────────────────────── */
.tv-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  justify-content: space-between;
  padding: 28px clamp(20px, 5vw, 72px);
  background: #0a0e0c;
  color: rgba(232, 236, 230, 0.45);
  font-size: 0.85rem;
}

.tv-footer strong { color: var(--fog); font-weight: 700; }

/* ── Reveal ──────────────────────────────────────── */
.tv-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.55s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

.tv.is-enhanced .tv-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .tv-reveal { opacity: 1; transform: none; transition: none; }
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 900px) {
  .tv-run-sticky {
    grid-template-columns: 1fr;
    align-content: center;
  }

  .tv-run-copy {
    max-width: none;
    order: -1;
  }

  .tv-board {
    min-height: 360px;
  }

  .tv-hero-copy { max-width: 20ch; }
}

@media (max-width: 560px) {
  .tv-hero {
    align-items: flex-end;
    padding-bottom: 48px;
  }

  .tv-board {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .tv-board-col--done {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 16px;
  }

  .tv-ticket.is-leaving {
    transform: translateY(-40%) scale(0.96);
  }

  .tv-finish-rail { right: 12px; width: 3px; }
}
