/* =====================================================================
   Ballers – landing page styles (v2, 19 Nov 2026)
   The same language as the app: pitch black, floodlight white, volt for "you",
   rival blue for the opponent. Archivo condensed for headlines (TV broadcast),
   Inter for text. The hero IS the app's live pitch.
   ===================================================================== */
:root {
  --bg: #070708;
  --ink: #f4f4f1;
  --ink-2: #a9adb5;
  --ink-3: #6d717a;
  --volt: #d4ff3f;
  --volt-ink: #0d1400;
  --rival: #7aa7ff;
  --line: rgba(255, 255, 255, 0.09);
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --sans: "Inter", system-ui, -apple-system, sans-serif;
  --gutter: clamp(16px, 5vw, 64px);
  --ease: cubic-bezier(0.2, 0.9, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.4, 0.64, 1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible { outline: 2px solid var(--volt); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, .word, .score, .min, .n, .band {
  font-family: var(--display); font-stretch: 66%; font-variation-settings: "wdth" 66; font-weight: 900; text-transform: uppercase; letter-spacing: 0; margin: 0;
}

/* ---------- top bar ---------- */
.topbar { position: absolute; top: 0; left: 0; right: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 22px var(--gutter); }
.word { font-size: 30px; line-height: 1; text-decoration: none; }
.word em { font-style: normal; color: var(--volt); }
.word.small { font-size: 24px; }
.top-link { font: 600 15px var(--sans); text-decoration: none; padding: 10px 16px; border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.24); background: rgba(7, 7, 8, 0.35); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); transition: box-shadow 0.2s; }
.top-link:hover { box-shadow: inset 0 0 0 1px var(--volt); }

/* ---------- 1. hero: the live pitch ---------- */
.hero { position: relative; isolation: isolate; min-height: 100svh; display: grid; place-items: center; padding: 104px var(--gutter) 96px; overflow: hidden; }
.pitch { --s: 50%; position: absolute; inset: 0; z-index: -1; background: #0a0b0d; }
/* the stadium at night under everything */
.pitch::before { content: ""; position: absolute; inset: 0; background: url("img/stadium.jpg") center 30% / cover no-repeat; opacity: 0.3; filter: saturate(0.6); }
/* mown stripes + a dark floor so the type stays readable */
.pitch::after { content: ""; position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.03) 0 60px, transparent 60px 120px),
              radial-gradient(70% 55% at 50% 45%, transparent, rgba(7, 7, 8, 0.65)),
              linear-gradient(180deg, rgba(7, 7, 8, 0.2) 0%, rgba(7, 7, 8, 0.15) 60%, var(--bg) 100%); }
.half { position: absolute; top: 0; bottom: 0; z-index: 1; mix-blend-mode: screen; transition: width 1.1s var(--spring); }
.half.a { left: 0; width: var(--s); background: linear-gradient(90deg, rgba(212, 255, 63, 0.34), rgba(212, 255, 63, 0.04)); }
.half.b { right: 0; width: calc(100% - var(--s)); background: linear-gradient(270deg, rgba(122, 167, 255, 0.36), rgba(122, 167, 255, 0.04)); }
/* the halfway line + centre circle */
.seam { position: absolute; top: 0; bottom: 0; left: var(--s); z-index: 2; width: 2px; margin-left: -1px; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 20px rgba(255, 255, 255, 0.35); transition: left 1.1s var(--spring); }
.seam .circle { position: absolute; top: 50%; left: 50%; width: min(46vw, 420px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.13); }
/* two floodlight beams that sweep slowly */
.beam { position: absolute; top: -20%; z-index: 1; width: 38vw; height: 90%; background: linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 75%); filter: blur(28px); transform-origin: top center; opacity: 0.7; }
.beam.l { left: 4%; transform: rotate(-24deg); animation: sweepL 9s ease-in-out infinite alternate; }
.beam.r { right: 4%; transform: rotate(24deg); animation: sweepR 11s ease-in-out infinite alternate; }
@keyframes sweepL { to { transform: rotate(-12deg); } }
@keyframes sweepR { to { transform: rotate(12deg); } }

.hero-in { position: relative; z-index: 3; width: min(980px, 100%); text-align: center; }
/* the scoreboard: the one loud thing */
.board { display: grid; justify-items: center; }
.board-top { display: flex; gap: 8px; align-items: center; }
.state { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 13px; border-radius: 99px; background: rgba(0, 0, 0, 0.5); font: 800 12px var(--display); letter-spacing: 0.16em; text-transform: uppercase; color: #ff7070; transition: background 0.3s, color 0.3s; }
.state i { width: 8px; height: 8px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 10px #ff4d4d; animation: blink 1.2s infinite; }
.state.win { background: var(--volt); color: var(--volt-ink); }
.state.win i { display: none; }
@keyframes blink { 50% { opacity: 0.25; } }
.min { min-width: 64px; height: 30px; padding: 0 12px; display: grid; place-items: center; border-radius: 99px; background: rgba(0, 0, 0, 0.5); font-size: 20px; font-variant-numeric: tabular-nums; }
.score { display: grid; grid-template-columns: 1fr auto auto auto 1fr; align-items: center; gap: clamp(10px, 2vw, 26px); width: 100%; margin-top: 10px; font-size: clamp(110px, 21vw, 240px); line-height: 0.78; font-variant-numeric: tabular-nums; }
.score b { min-width: 1.05ch; text-align: center; transition: color 0.4s, text-shadow 0.4s; }
.score > i { font-style: normal; font-size: 0.5em; color: rgba(255, 255, 255, 0.3); }
.score .who { font-size: clamp(22px, 3vw, 36px); line-height: 1; justify-self: end; color: var(--ink-2); }
.score .who.opp { justify-self: start; }
#pts-me.ahead { color: var(--volt); text-shadow: 0 0 50px rgba(212, 255, 63, 0.45); }
#pts-opp.ahead { color: var(--rival); text-shadow: 0 0 50px rgba(122, 167, 255, 0.45); }
.score b.pop { animation: pop 0.6s var(--spring); }
@keyframes pop { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.clock { position: relative; width: min(560px, 100%); height: 4px; margin-top: 22px; border-radius: 4px; background: rgba(255, 255, 255, 0.16); }
.fill { position: absolute; inset: 0 auto 0 0; width: 0; border-radius: 4px; background: rgba(255, 255, 255, 0.9); transition: width 0.1s linear; }
.ht { position: absolute; left: 50%; top: -4px; width: 2px; height: 12px; margin-left: -1px; background: rgba(255, 255, 255, 0.45); }
.tick { position: absolute; top: -6px; width: 4px; height: 16px; margin-left: -2px; border-radius: 2px; animation: tickPop 0.4s var(--spring); }
.tick.me { background: var(--volt); box-shadow: 0 0 10px var(--volt); }
.tick.opp { background: var(--rival); box-shadow: 0 0 10px var(--rival); }
@keyframes tickPop { from { transform: scaleY(0); } }
.ticker { min-height: 1.5em; margin: 16px 0 0; font: 500 15px var(--sans); color: var(--ink-2); }
.ticker span { display: inline-block; animation: tickIn 0.4s var(--ease); }
.ticker b { color: var(--ink); white-space: nowrap; }
.ticker .v { color: var(--volt); }
.ticker .r { color: var(--rival); }
@keyframes tickIn { from { opacity: 0; transform: translateY(8px); } }

.hero h1 { margin: clamp(34px, 5vw, 56px) auto 18px; font-size: clamp(46px, 6.4vw, 88px); line-height: 0.88; max-width: 22ch; text-wrap: balance; }
.lead { max-width: 44ch; margin: 0 auto; font-size: clamp(17px, 1.6vw, 20px); color: var(--ink-2); }
.scroll-hint { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 26px; height: 42px; margin-left: -13px; border-radius: 99px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.35); }
.scroll-hint span { position: absolute; left: 50%; top: 9px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--ink); animation: hint 1.8s ease-in-out infinite; }
@keyframes hint { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* store buttons */
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }
.store { display: inline-flex; align-items: center; gap: 12px; height: 60px; padding: 0 22px 0 18px; border-radius: 14px; background: #fff; color: #050505; text-decoration: none; font: 700 19px/1.05 var(--sans); letter-spacing: -0.01em; box-shadow: 0 14px 30px rgba(0, 0, 0, 0.45); transition: transform 0.25s var(--spring), box-shadow 0.25s; }
.store span { display: grid; text-align: left; }
.store small { font: 500 11.5px var(--sans); color: #3a3a3a; }
.store:hover { transform: translateY(-3px); box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55), 0 0 0 3px rgba(212, 255, 63, 0.55); }
.stores-note { margin: 14px 0 0; font-size: 14px; color: var(--ink-3); }

/* ---------- 2. the TV ticker band ---------- */
.band { position: relative; z-index: 4; overflow: hidden; background: var(--volt); color: var(--volt-ink); transform: rotate(-1.5deg); margin: -22px -2vw 0; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.band-track { display: flex; width: max-content; gap: 34px; padding: 14px 0; font-size: 24px; line-height: 1; white-space: nowrap; animation: band 38s linear infinite; }
.band-track > span { display: inline-flex; align-items: center; gap: 8px; }
.band-track b { font-weight: 900; }
.band-track em { font-style: normal; padding: 3px 8px; border-radius: 6px; background: var(--volt-ink); color: var(--volt); font-size: 18px; }
.band-live { padding: 4px 10px; border-radius: 6px; background: #e8323a; color: #fff; font-size: 18px; letter-spacing: 0.08em; }
@keyframes band { to { transform: translateX(-50%); } }

/* ---------- 3. scroll story ---------- */
.story { max-width: 1180px; margin: 0 auto; padding: clamp(96px, 12vw, 160px) var(--gutter) 0; }
.story-title, .ladder h2, .final h2 { font-size: clamp(46px, 6.6vw, 96px); line-height: 0.88; max-width: 13ch; }
.final h2 { max-width: 16ch; }
.story-grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); margin-top: 40px; }
.story-phone { position: sticky; top: 9vh; height: 82vh; display: grid; place-items: center; }
.phone { position: relative; margin: 0; border-radius: 44px; padding: 9px; background: linear-gradient(160deg, #2a2c33, #0c0d10 60%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12), 0 40px 90px rgba(0, 0, 0, 0.65); }
.story-phone .phone { width: min(330px, 100%); aspect-ratio: 750 / 1624; }
.story-phone .phone::after { content: ""; position: absolute; inset: auto 10% -50px; height: 70px; z-index: -1; border-radius: 50%; background: rgba(212, 255, 63, 0.18); filter: blur(44px); }
.story-phone img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); object-fit: cover; border-radius: 36px; opacity: 0; transform: scale(0.96) translateY(14px); transition: opacity 0.55s var(--ease), transform 0.7s var(--ease); }
.story-phone img.on { opacity: 1; transform: none; }
.story-steps { list-style: none; margin: 0; padding: 0; }
.step { min-height: 78vh; display: flex; flex-direction: column; justify-content: center; opacity: 0.28; transition: opacity 0.5s var(--ease); }
.step.on { opacity: 1; }
.step .n { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); color: var(--ink); font-size: 24px; transition: background 0.4s, color 0.4s; }
.step.on .n { background: var(--volt); color: var(--volt-ink); }
.step h3 { margin-top: 18px; font-size: clamp(44px, 5.4vw, 76px); line-height: 0.9; }
.step p { margin: 16px 0 0; max-width: 34ch; font-size: clamp(17px, 1.5vw, 20px); color: var(--ink-2); }
.mobile-only { display: none; }

/* ---------- 4. the ladder ---------- */
.ladder { max-width: 1180px; margin: 0 auto; padding: clamp(80px, 10vw, 140px) var(--gutter) 0; }
.ladder-sub { margin: 16px 0 0; color: var(--ink-2); font-size: 19px; }
.rungs { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; align-items: end; }
.rung { display: grid; justify-items: center; gap: 10px; text-align: center; opacity: 0.22; filter: grayscale(1); transform: translateY(14px); transition: opacity 0.5s var(--ease), filter 0.5s var(--ease), transform 0.6s var(--spring); transition-delay: calc(var(--i) * 120ms); }
.ladder.play .rung { opacity: 1; filter: none; transform: none; }
.rung svg { width: 100%; max-width: 64px; height: auto; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); }
.rung .bar { width: 100%; border-radius: 8px 8px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14); }
.rung b { font: 700 13px/1.2 var(--sans); }
.rung small { font-size: 12px; color: var(--ink-3); }
.rung.first .bar { background: linear-gradient(180deg, rgba(212, 255, 63, 0.45), rgba(212, 255, 63, 0.04)); }
.rung.last .bar { background: linear-gradient(180deg, rgba(122, 167, 255, 0.5), rgba(122, 167, 255, 0.05)); }
/* the top of the ladder lands last – with a glow */
.ladder.play .rung.last svg { animation: crown 1.2s var(--ease) calc(var(--i) * 120ms + 300ms) both; }
@keyframes crown { 0% { filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.6)); } 50% { filter: drop-shadow(0 0 26px rgba(122, 167, 255, 0.9)); } 100% { filter: drop-shadow(0 0 14px rgba(122, 167, 255, 0.55)); } }

/* ---------- 5. final call ---------- */
.final { position: relative; isolation: isolate; max-width: 1180px; margin: 0 auto; padding: clamp(110px, 13vw, 180px) var(--gutter); text-align: center; }
.final-glow { position: absolute; left: 50%; top: 52%; z-index: -1; width: min(900px, 120vw); aspect-ratio: 1.6; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(212, 255, 63, 0.16), transparent); animation: glow 5s ease-in-out infinite alternate; }
@keyframes glow { to { opacity: 0.55; transform: translate(-50%, -50%) scale(1.08); } }
.final h2 { margin: 0 auto; }
.final p { color: var(--ink-2); max-width: 46ch; margin: 22px auto 0; }
.play-web { display: inline-block; margin-top: 22px; font-weight: 600; color: var(--volt); text-underline-offset: 4px; }

.foot { border-top: 1px solid var(--line); padding: 32px var(--gutter) 44px; display: grid; gap: 16px; justify-items: center; text-align: center; color: var(--ink-3); font-size: 14px; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.foot nav a { color: var(--ink-2); text-decoration: none; }
.foot nav a:hover { color: var(--ink); }
.foot p { margin: 0; max-width: 52ch; }

/* ---------- phones & tablets ---------- */
@media (max-width: 900px) {
  .story-grid { grid-template-columns: 1fr; }
  .story-phone { display: none; }
  .step { min-height: 0; opacity: 1; padding: 34px 0; align-items: center; text-align: center; }
  .step .n { background: var(--volt); color: var(--volt-ink); }
  .step p { margin-inline: auto; }
  .mobile-only { display: block; width: min(280px, 78%); margin-top: 30px; }
  .mobile-only img { border-radius: 36px; }
  .rungs { grid-template-columns: repeat(10, 82px); overflow-x: auto; scroll-snap-type: x proximity; scroll-padding-inline: var(--gutter); margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 10px; scrollbar-width: none; }
  .rungs::-webkit-scrollbar { display: none; }
  .rung { scroll-snap-align: start; }
  .seam .circle { width: 70vw; }
}
@media (max-width: 480px) {
  .topbar { padding-top: 16px; }
  .top-link { font-size: 14px; padding: 9px 14px; }
  .hero { padding-top: 96px; }
  .score { grid-template-columns: 1fr auto auto auto 1fr; font-size: 30vw; gap: 6px; }
  .score .who { font-size: 18px; }
  .store { height: 56px; padding: 0 18px 0 14px; font-size: 17px; }
  .band-track { font-size: 20px; }
  .rung small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .beam, .band-track, .final-glow, .scroll-hint span, .state i { animation: none; }
  .half, .seam, .story-phone img, .step, .rung, .store { transition: none; }
  .rung { opacity: 1; filter: none; transform: none; }
}
