:root {
  --yellow: #ffcc00;
  --bg: #121212;
  --card: #1e1e1e;
  --card-2: #262626;
  --line: rgba(255, 255, 255, 0.09);
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.68);
  --green: #9db247;
  --red: #ea4f4d;
  --display: "Futura-CondensedExtraBold", "Futura Condensed ExtraBold", "Anton", "Impact", sans-serif;
  --body: "Avenir Next", "Nunito Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--body); font-size: 17px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--yellow); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; height: auto; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(18, 18, 18, 0.82); backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--display);
  font-size: 22px; letter-spacing: 0.02em; text-transform: uppercase; }
.logo:hover { text-decoration: none; }
.logo img { width: 36px; height: 36px; border-radius: 9px; }
.logo span { color: var(--yellow); }
.nav { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 15px; }
.nav a { color: var(--muted); }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }
@media (max-width: 720px) { .nav .hide-sm { display: none; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 10px; background: var(--yellow); color: #000; font-family: var(--display);
  text-transform: uppercase; font-size: 20px; letter-spacing: 0.02em; padding: 14px 26px; border-radius: 999px; }
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn svg { width: 20px; height: 20px; }
.btn.ghost { background: transparent; color: var(--text); border: 1.5px solid rgba(255, 255, 255, 0.25); }

/* Hero */
.hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto auto; width: 900px; height: 900px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 204, 0, 0.22), transparent); pointer-events: none; }
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.eyebrow { font-family: var(--display); color: var(--yellow); text-transform: uppercase; letter-spacing: 0.08em; font-size: 16px; }
h1 { font-family: var(--display); text-transform: uppercase; font-size: clamp(48px, 7.4vw, 96px); line-height: 0.92;
  margin: 14px 0 20px; letter-spacing: -0.005em; }
h1 em { font-style: normal; color: var(--yellow); display: block; }
.lead { color: var(--muted); font-size: 19px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 22px; color: var(--muted); font-size: 14px; }
.meta b { color: var(--text); }

.phones { position: relative; height: 640px; }
.phone { position: absolute; width: 290px; border-radius: 46px; padding: 9px; background: #050505;
  box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 90px rgba(0, 0, 0, 0.6); }
.phone img { border-radius: 38px; }
.phone.a { left: 4%; top: 30px; transform: rotate(-4deg); }
.phone.b { right: 2%; top: 0; transform: rotate(4deg); z-index: 1; }
.chip { position: absolute; z-index: 2; background: rgba(30, 30, 30, 0.94); border: 1.5px solid rgba(255, 204, 0, 0.6);
  border-radius: 20px; padding: 12px 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55); }
.chip b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--yellow); }
.chip small { display: block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
.chip.c1 { left: -10px; bottom: 90px; transform: rotate(-3deg); }
.chip.c2 { right: -6px; bottom: 20px; transform: rotate(3deg); }

@media (max-width: 920px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .phones { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .phone { width: 240px; }
}
@media (max-width: 480px) {
  .phones { height: 470px; }
  .phone { width: 196px; border-radius: 34px; padding: 7px; }
  .phone img { border-radius: 28px; }
  .chip b { font-size: 30px; }
}

/* Stats band */
.band { border-block: 1px solid var(--line); background: #161616; }
.band .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.band div { padding: 26px 12px; text-align: center; border-inline-start: 1px solid var(--line); }
.band div:first-child { border-inline-start: 0; }
.band b { display: block; font-family: var(--display); font-size: 40px; line-height: 1; color: var(--yellow); }
.band span { color: var(--muted); font-size: 14px; font-weight: 600; }
@media (max-width: 720px) { .band .wrap { grid-template-columns: repeat(2, 1fr); }
  .band div:nth-child(3) { border-inline-start: 0; } .band div:nth-child(n+3) { border-top: 1px solid var(--line); } }

/* Sections */
section { padding: 84px 0; }
h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(36px, 5vw, 60px); line-height: 0.95; }
h2 em { font-style: normal; color: var(--yellow); }
.section-lead { color: var(--muted); max-width: 40em; margin-top: 14px; font-size: 18px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 40px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 26px; }
.feature .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--yellow); display: grid; place-items: center;
  margin-bottom: 16px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { font-family: var(--display); text-transform: uppercase; font-size: 24px; line-height: 1.05; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 16px; }
@media (max-width: 920px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .media { order: -1; }
.split ul { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.split li { display: flex; gap: 12px; color: var(--muted); }
.split li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-radius: 50%; background: var(--yellow); }
.split li b { color: var(--text); }
.media .phone { position: relative; width: min(320px, 80%); margin: 0 auto; transform: none; }
/* Two phones: game shot chart in front, season stats behind. */
.media.duo { display: flex; justify-content: center; align-items: flex-start; }
.media.duo .phone { width: min(270px, 48%); margin: 0; }
.media.duo .phone:first-child { transform: rotate(-3deg); z-index: 1; margin-right: -6%; margin-top: 40px; }
.media.duo .phone:last-child { transform: rotate(3deg); }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .media { order: 0; } }

.ipad { border-radius: 30px; padding: 12px; background: #050505; box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 90px rgba(0, 0, 0, 0.6);
  margin-top: 44px; }
.ipad img { border-radius: 20px; }

.formula { margin-top: 26px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.formula div { background: var(--card-2); border-radius: 16px; padding: 16px; }
.formula b { font-family: var(--display); color: var(--yellow); font-size: 26px; display: block; line-height: 1; }
.formula span { font-size: 13px; color: var(--muted); }

/* FAQ */
.faq { margin-top: 32px; display: grid; gap: 10px; }
details { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; }
summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::after { content: "+"; color: var(--yellow); font-family: var(--display); font-size: 24px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin-top: 10px; }

/* Final CTA */
.final { text-align: center; background: radial-gradient(700px 300px at 50% 0, rgba(255, 204, 0, 0.18), transparent), #161616;
  border-top: 1px solid var(--line); }
.final .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 22px; }
.final .cta { justify-content: center; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 30px 0 44px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--muted); }

/* Legal pages */
.legal { padding: 56px 0 80px; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 8px; }
.legal .updated { color: var(--muted); font-size: 14px; margin-bottom: 36px; }
.legal h2 { font-size: 28px; margin: 38px 0 12px; }
.legal p, .legal li { color: rgba(255, 255, 255, 0.82); }
.legal p + p { margin-top: 12px; }
.legal ul { margin: 10px 0 0 22px; display: grid; gap: 8px; }
.legal table { width: 100%; border-collapse: collapse; margin-top: 14px; font-size: 15px; }
.legal th, .legal td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal th { color: var(--yellow); font-weight: 700; }
.legal .box { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px 22px; margin-top: 18px; }
@media (max-width: 600px) { .legal table { font-size: 14px; } .legal th, .legal td { padding: 8px 6px; } }
@media (max-width: 480px) {
  .btn { font-size: 17px; padding: 13px 20px; white-space: nowrap; }
  .top .logo { font-size: 19px; }
}

/* ---------- Hero 2: court stage ---------- */
.hero2 { position: relative; overflow: hidden; padding: 56px 0 0; text-align: center;
  background: radial-gradient(900px 520px at 50% 0%, rgba(255, 204, 0, 0.20), transparent 70%), var(--bg); }
.court-bg { position: absolute; inset: 0; width: 100%; height: 100%; color: rgba(255, 204, 0, 0.07); pointer-events: none; }
.hero-copy { position: relative; }
.hero2 h1 { font-size: clamp(54px, 9vw, 128px); line-height: 0.9; margin: 16px auto 18px; max-width: 12ch; }
.hero2 h1 em { display: inline; }
.hero2 .lead { margin: 0 auto; max-width: 38em; }
.hero2 .cta, .final .cta { justify-content: center; align-items: center; }
.hero2 .meta { justify-content: center; }
.badge { display: inline-block; line-height: 0; transition: transform .2s ease; }
.badge:hover { transform: translateY(-2px); }
.badge img { height: 54px; width: auto; }
.badge.big img { height: 64px; }

.stage { position: relative; width: min(1240px, 100% - 32px); margin: 36px auto 0; height: 700px; perspective: 1800px; }
.tablet { position: absolute; left: 50%; top: 40px; width: 66%; translate: -50% 0; padding: 14px; border-radius: 34px;
  background: #050505; box-shadow: 0 0 0 1.5px #3a3a3a, 0 60px 140px rgba(0, 0, 0, 0.7), 0 0 120px rgba(255, 204, 0, 0.12);
  transform: rotateX(16deg); transform-origin: 50% 100%; }
.tablet img { border-radius: 22px; }
.float { position: absolute; z-index: 2; text-align: left; border-radius: 22px; padding: 16px 18px;
  background: rgba(26, 26, 26, 0.82); border: 1px solid rgba(255, 204, 0, 0.35);
  -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.55);
  animation: bob 7s ease-in-out infinite; }
.ftitle { font-family: var(--display); text-transform: uppercase; letter-spacing: 0.04em; font-size: 15px; color: var(--yellow);
  display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.f-shot { left: 0; top: 70px; width: 270px; animation-delay: -1s; }
.court-mini { width: 100%; height: auto; }
.court-mini .lines { fill: none; stroke: rgba(255, 255, 255, 0.55); stroke-width: 2; }
.dot { opacity: 0; transform-box: fill-box; transform-origin: center; }
.dot.m { fill: #9db247; } .dot.x { fill: #ea4f4d; }
.in .dot { animation: pop .4s cubic-bezier(.3, 1.6, .5, 1) forwards; animation-delay: var(--d); }
.fstat { display: flex; align-items: baseline; gap: 8px; margin-top: 8px; }
.fstat b, .leaders b { font-family: var(--display); color: var(--yellow); font-size: 40px; line-height: 1; }
.fstat span { color: var(--muted); font-weight: 700; font-size: 13px; text-transform: uppercase; }
.f-pbp { right: 0; top: 30px; width: 300px; height: 250px; display: flex; flex-direction: column; animation-delay: -3s; }
.tickwrap { flex: 1; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent); mask-image: linear-gradient(transparent, #000 12%, #000 85%, transparent); }
.live { width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(234, 79, 77, .7); animation: pulse 1.6s infinite; }
.ticker { list-style: none; display: grid; gap: 8px; animation: tick 14s linear infinite; }
.ticker li { display: grid; grid-template-columns: 42px 1fr auto; gap: 10px; align-items: center; background: rgba(255, 255, 255, 0.05);
  border-radius: 12px; padding: 8px 10px; border-left: 3px solid var(--green); font-size: 13px; }
.ticker li.bad { border-left-color: var(--red); }
.ticker time { color: var(--muted); font-variant-numeric: tabular-nums; }
.ticker b { display: block; font-size: 13px; line-height: 1.2; }
.ticker span { color: var(--muted); line-height: 1.2; }
.ticker em { font-style: normal; font-family: var(--display); font-size: 16px; }
.f-lead { left: 4%; bottom: 40px; width: 280px; animation-delay: -5s; }
.leaders { list-style: none; display: grid; gap: 10px; }
.leaders li { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: end; font-size: 13px; font-weight: 700; }
.leaders li i { grid-column: 1 / -1; order: 3; height: 6px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); position: relative; overflow: hidden; }
.leaders li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 0; background: var(--yellow); border-radius: 6px; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.in .leaders li i::after { width: var(--w); }
.leaders b { font-size: 26px; }
.f-phone { right: 3%; bottom: -60px; width: 230px; padding: 8px; border-radius: 38px; background: #050505; border: 0;
  box-shadow: 0 0 0 1.5px #3a3a3a, 0 40px 90px rgba(0, 0, 0, 0.7); animation-delay: -2s; }
.f-phone img { border-radius: 31px; }

  transform: rotate(-1.5deg) scale(1.03); margin-top: -10px; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
.stage.reveal { transform: none; opacity: 1; }

@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes pop { from { opacity: 0; transform: scale(0); } to { opacity: 1; transform: scale(1); } }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(234, 79, 77, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 79, 77, 0); } }
@keyframes tick { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* Language menu */
.langs { position: relative; }
.langs summary { list-style: none; cursor: pointer; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--text); }
.langs summary::-webkit-details-marker { display: none; }
.langs .menu { position: absolute; right: 0; top: calc(100% + 8px); background: #1c1c1c; border: 1px solid var(--line); border-radius: 14px;
  padding: 6px; display: grid; min-width: 150px; box-shadow: 0 20px 50px rgba(0, 0, 0, .5); }
.langs .menu a { color: var(--text); padding: 7px 12px; border-radius: 9px; }
.langs .menu a:hover, .langs .menu a[aria-current] { background: rgba(255, 204, 0, .14); text-decoration: none; }

@media (max-width: 1000px) {
  .stage { height: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; perspective: none; }
  .tablet { position: relative; left: auto; top: auto; translate: none; transform: none; width: 100%; grid-column: 1 / -1; padding: 8px; border-radius: 22px; }
  .tablet img { border-radius: 15px; }
  .float { position: relative; inset: auto; width: auto; animation: none; }
  .f-pbp { height: 250px; }
  .f-phone { display: none; }
}
@media (max-width: 600px) {
  .stage { grid-template-columns: 1fr; }
  .badge.big img { height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  .float, .ticker, .live { animation: none; }
  .dot { opacity: 1; } .in .dot { animation: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

html { overflow-x: hidden; }
.logo { min-width: 0; white-space: nowrap; }
.logo b { font-weight: inherit; }
@media (max-width: 420px) { .logo .lg1 { display: none; } .nav { gap: 12px; } }

.langs { background: none; border: 0; padding: 0; border-radius: 0; }
.langs summary { display: block; font-weight: 600; }
.langs summary::after { content: none; }

/* Hub (all sports) */
.logo a { display: flex; align-items: center; color: inherit; }
.logo a:hover { text-decoration: none; }
.logo .lg1 { color: var(--text); }
.hero.hub { padding: 72px 0 24px; }
.hero.hub .wrap { display: block; }
.sports { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; margin-top: 26px; }
.sport { display: flex; gap: 18px; align-items: flex-start; padding: 22px; background: var(--card); border: 1px solid var(--line);
  border-radius: 22px; color: var(--text); transition: transform .2s, border-color .2s; }
.sport:hover { text-decoration: none; transform: translateY(-3px); border-color: rgba(255, 204, 0, 0.45); }
.sport > img { width: 76px; height: 76px; border-radius: 18px; flex: none; }
.sport h3 { font-family: var(--display); text-transform: uppercase; font-size: 26px; font-weight: 400; letter-spacing: 0.01em; }
.sport h3 em { font-style: normal; color: var(--yellow); }
.sport p { color: var(--muted); font-size: 15px; margin: 4px 0 12px; }
.next { margin-top: 22px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.next b { color: var(--text); margin-right: 4px; }
.next span { border: 1px solid var(--line); border-radius: 999px; padding: 3px 12px; font-size: 14px; }
.sport { position: relative; }
.sport-link { color: inherit; }
.sport-link:hover { text-decoration: none; }
.sport-link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.sport .badge { position: relative; z-index: 1; margin-top: 2px; }
.badge.small img { height: 40px; }

/* Hub: tighter title tracking, like the headers inside the apps (about -1pt at 34pt). */
[data-page="hub"] h1, [data-page="hub"] h2 { letter-spacing: -0.03em; }
[data-page="hub"] h3, [data-page="hub"] .logo { letter-spacing: -0.02em; }

/* ---------- Hub: the inGameStats app (picker on iPad, a sport menu on iPhone) ---------- */
.hub2 .hero-icon { width: 104px; height: 104px; border-radius: 24px; margin: 0 auto 6px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.08); }
.stage.short { height: 620px; }
.stage.short .tablet { top: 20px; width: 62%; }
.stage.short .f-phone { right: 6%; bottom: -40px; }
.inapp-note { color: var(--muted); font-size: 15px; max-width: 34em; margin: 14px auto 0; }
@media (max-width: 1000px) { .stage.short { height: auto; } .stage.short .tablet { width: 100%; top: auto; } }
.hub2 h1 { max-width: none; }
.hub2 h1 em { display: block; }

/* Google Play badge (Android: one inGameStats app). While the app is not public it is dimmed, not a link, with a pill. */
.badge.soon { display: inline-flex; flex-direction: column; align-items: center; gap: 7px; cursor: default; }
.badge.soon:hover { transform: none; }
.badge.soon img { opacity: 0.45; filter: grayscale(1); }
.badge.soon .pill { background: var(--yellow); color: #121212; font-size: 12px; font-weight: 700; line-height: 1;
  padding: 4px 10px; border-radius: 999px; white-space: nowrap; letter-spacing: 0.02em; }
.hero2 .cta, .final .cta { align-items: flex-start; }
/* Hoops and Football: own app on iPhone and iPad, inGameStats on Android. */
.cta.stores { gap: 18px 32px; }
.store { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.store-label { font-size: 14px; color: var(--muted); line-height: 1.3; }
.store-label b { color: var(--text); }
.platforms { margin-top: 22px; color: var(--muted); font-size: 15px; max-width: 46em; }
@media (max-width: 420px) { .cta .badge.big img { height: 48px; } }
