/* CWF landing. Tokens from docs/specs/pitch-velocity-DESIGN.md (Pitch Velocity). Dark theme only, by brand. */

@font-face { font-family: "Space Grotesk"; font-weight: 700; font-style: normal; font-display: swap; src: url("/fonts/SpaceGrotesk-700.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-weight: 500; font-style: normal; font-display: swap; src: url("/fonts/SpaceGrotesk-500.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/fonts/PlusJakartaSans-400.woff2") format("woff2"); }
@font-face { font-family: "Plus Jakarta Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/fonts/PlusJakartaSans-600.woff2") format("woff2"); }

:root {
  color-scheme: dark;
  --bg: #060a14;
  --surface-lowest: #04070f;
  --surface-low: #0a101e;
  --surface: #0d1424;
  --surface-high: #152038;
  --surface-highest: #1e2b47;
  --on: #e8eefa;
  --on-variant: #a7b4cf;
  --outline: #8a98b6;
  --outline-variant: #2a3858;
  --brand: #1c4da1;       /* Team India jersey blue: fills (buttons, pips); white text on top */
  --brand-deep: #0b2e66;  /* containers, gradients, hero glow */
  --brand-hi: #2862bd;    /* hover fill */
  --accent: #6ea8ff;      /* links, icons, active states, focus rings on dark */
  --saffron: #ff9933;     /* restrained secondary: boundary chips, status chip, focus ring */
  --saffron-container: #ffd2a1;
  --on-saffron: #2a1500;
  --crimson: #ffb4ab;
  --crimson-bg: #93000a;
  --line: rgb(255 255 255 / 0.09);

  --r-sm: 0.5rem;   /* inputs, chips */
  --r-md: 0.75rem;  /* buttons */
  --r-lg: 1rem;     /* containers */
  --r-xl: 1.5rem;   /* feature tiles */

  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, sans-serif;

  --gutter: 1rem;
  --maxw: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--on);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #fff; background: var(--brand); text-decoration-color: transparent; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-display); color: #fff; margin: 0; font-weight: 700; }
p { margin: 0; }

.skip { position: absolute; left: var(--gutter); top: -4rem; background: var(--brand); color: #fff; padding: 0.6rem 1rem; border-radius: var(--r-md); font-weight: 600; z-index: 100; }
.skip:focus { top: 0.75rem; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }

/* Icons: Phosphor Icons (MIT), bold weight, painted through a mask so they take currentColor. */
.i { display: inline-block; flex: none; width: 1.25em; height: 1.25em; background: currentColor; -webkit-mask: var(--ic) center / contain no-repeat; mask: var(--ic) center / contain no-repeat; }
.i-cricket { --ic: url("/icons/cricket.svg"); }
.i-wifi-slash { --ic: url("/icons/wifi-slash.svg"); }
.i-sparkle { --ic: url("/icons/sparkle.svg"); }
.i-eye { --ic: url("/icons/eye.svg"); }
.i-eye-slash { --ic: url("/icons/eye-slash.svg"); }
.i-users-three { --ic: url("/icons/users-three.svg"); }
.i-user-plus { --ic: url("/icons/user-plus.svg"); }
.i-user-check { --ic: url("/icons/user-check.svg"); }
.i-whatsapp-logo { --ic: url("/icons/whatsapp-logo.svg"); }
.i-qr-code { --ic: url("/icons/qr-code.svg"); }
.i-trophy { --ic: url("/icons/trophy.svg"); }
.i-tree-structure { --ic: url("/icons/tree-structure.svg"); }
.i-shield-check { --ic: url("/icons/shield-check.svg"); }
.i-arrow-right { --ic: url("/icons/arrow-right.svg"); }
.i-caret-down { --ic: url("/icons/caret-down.svg"); }
.i-list-checks { --ic: url("/icons/list-checks.svg"); }
.i-broadcast { --ic: url("/icons/broadcast.svg"); }
.i-flag { --ic: url("/icons/flag.svg"); }
.i-trash { --ic: url("/icons/trash.svg"); }
.i-arrow-clockwise { --ic: url("/icons/arrow-clockwise.svg"); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgb(6 10 20 / 0.88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 4rem; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.65rem; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: -0.01em; color: #fff; text-decoration: none; }
.brand:hover { background: none; color: #fff; }
.brand img { width: 2rem; height: 2rem; border-radius: 0.55rem; }
.nav { display: none; gap: 1.75rem; }
.nav a { color: var(--on-variant); text-decoration: none; font-weight: 600; font-size: 0.95rem; padding: 0.4rem 0; }
.nav a:hover { color: #fff; background: none; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; }
.status-chip { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; font-weight: 600; color: var(--saffron); border: 1px solid rgb(255 153 51 / 0.45); padding: 0.3rem 0.75rem; border-radius: 999px; white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; min-height: 3.25rem; padding: 0 1.5rem; border-radius: var(--r-md); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: 0.01em; text-decoration: none; white-space: nowrap; transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s; }
.btn-primary { background: var(--brand); color: #fff; border: 1px solid var(--accent); box-shadow: 0 0 0 0 rgb(110 168 255 / 0); }
.btn-primary:hover { background: var(--brand-hi); color: #fff; box-shadow: 0 0 22px rgb(110 168 255 / 0.4); transform: translateY(-1px); }
.btn:active { transform: scale(0.98); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { /* pitch stripes + floodlight glow */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(60% 70% at 78% 30%, rgb(28 77 161 / 0.45), transparent 70%),
    repeating-linear-gradient(100deg, rgb(255 255 255 / 0.025) 0 64px, transparent 64px 128px);
}
.hero .wrap { position: relative; display: grid; gap: 2.5rem; padding-block: 3rem 3.5rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 9vw, 4.6rem); line-height: 1.02; letter-spacing: -0.035em; max-width: 12ch; }
.hero h1 em { font-style: normal; color: var(--accent); }
.lede { margin-top: 1.25rem; font-size: 1.125rem; line-height: 1.55; color: var(--on-variant); max-width: 34ch; font-weight: 400; }
.hero-actions { margin-top: 1.75rem; display: flex; flex-direction: column; gap: 1.25rem; align-items: flex-start; }
.stores { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.store { display: inline-flex; flex-direction: column; min-width: 9.5rem; padding: 0.55rem 1rem; border: 1px dashed var(--outline); border-radius: var(--r-md); color: var(--on); line-height: 1.2; }
.store small { font-size: 0.72rem; color: var(--saffron); font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.store span { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }

.hero-art { display: grid; justify-items: center; gap: 1.5rem; }
.logo-tile { position: relative; width: min(64vw, 17rem); aspect-ratio: 1; border-radius: 22%; overflow: hidden; border: 1px solid rgb(110 168 255 / 0.35); box-shadow: 0 0 60px rgb(28 77 161 / 0.55), 0 24px 48px rgb(0 0 0 / 0.5); }
.logo-tile img { width: 100%; height: 100%; object-fit: cover; }
.over { display: flex; gap: 0.5rem; justify-content: center; flex-wrap: wrap; }
.ball { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 50%; font-family: var(--font-display); font-weight: 700; font-size: 1rem; background: var(--surface-high); color: #fff; border: 1px solid var(--outline-variant); }
.ball.dot { color: var(--on-variant); }
.ball.boundary { background: var(--saffron); color: var(--on-saffron); border-color: var(--saffron); }
.ball.wicket { background: var(--crimson-bg); color: #fff; border-color: var(--crimson); }
.over-caption { font-size: 0.85rem; color: var(--on-variant); text-align: center; }

/* Sections */
section { padding-block: 4.5rem; }
.section-head { max-width: 40rem; margin-bottom: 2.5rem; }
.section-head h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; }
.section-head p { margin-top: 1rem; color: var(--on-variant); font-size: 1.05rem; max-width: 56ch; }

/* How it works: a single-line timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.timeline li { position: relative; padding: 0 0 2rem 3.25rem; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; position: absolute; left: 1.05rem; top: 2.4rem; bottom: 0.2rem; width: 2px; background: linear-gradient(var(--accent), var(--outline-variant)); }
.timeline li:last-child::before { display: none; }
.timeline .pip { position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--brand); color: #fff; }
.timeline h3 { font-size: 1.35rem; letter-spacing: -0.01em; line-height: 1.2; padding-top: 0.2rem; }
.timeline p { margin-top: 0.35rem; color: var(--on-variant); max-width: 38ch; }

/* Feature bento */
.bento { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.tile { position: relative; overflow: hidden; border-radius: var(--r-xl); padding: 1.75rem; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; gap: 0.75rem; }
.tile h3 { font-size: 1.5rem; letter-spacing: -0.02em; line-height: 1.15; }
.tile p { color: var(--on-variant); max-width: 44ch; }
.tile .i-lg { width: 2rem; height: 2rem; color: var(--accent); }
.tile-score { background: radial-gradient(90% 120% at 100% 0%, rgb(28 77 161 / 0.40), transparent 60%), linear-gradient(160deg, var(--brand-deep), var(--surface-low)); min-height: 16rem; justify-content: space-between; }
.tile-score h3 { font-size: clamp(1.8rem, 5vw, 2.5rem); }
.tile-score .over { justify-content: flex-start; margin-top: 1.25rem; }
.tile-live { background: var(--surface-high); }
.tile-ai { background: linear-gradient(140deg, rgb(110 168 255 / 0.18), rgb(110 168 255 / 0.04) 55%), var(--surface); border-color: rgb(110 168 255 / 0.3); }
.tile-ai .i-lg { color: var(--accent); }
.sample { margin-top: 0.75rem; padding: 1rem 1.15rem; border-radius: var(--r-lg); background: rgb(4 7 15 / 0.7); border: 1px solid var(--line); }
.sample q { font-family: var(--font-display); font-size: 1.1rem; line-height: 1.4; color: #fff; quotes: "\201C" "\201D"; }
.sample small { display: block; margin-top: 0.5rem; color: var(--on-variant); font-size: 0.8rem; }

/* Squad / invite */
.squad { background: var(--surface-low); border-block: 1px solid var(--line); }
.squad .wrap { display: grid; gap: 2.5rem; align-items: center; }
.squad h2 { font-size: clamp(1.9rem, 5.5vw, 3rem); line-height: 1.08; letter-spacing: -0.03em; max-width: 14ch; }
.checks { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; gap: 1.1rem; }
.checks li { display: grid; grid-template-columns: 2.75rem 1fr; gap: 0.9rem; align-items: start; }
.checks .badge { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: var(--r-md); background: var(--surface-highest); color: var(--accent); font-size: 1.25rem; }
.checks b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; }
.checks span.t { color: var(--on-variant); }
.roster { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--bg); padding: 1.25rem; display: grid; gap: 0.6rem; }
.roster h3 { font-size: 1rem; color: var(--on-variant); font-weight: 500; letter-spacing: 0.02em; margin-bottom: 0.25rem; }
.player { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.7rem 0.9rem; border-radius: var(--r-md); background: var(--surface); }
.player .nm { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; color: #fff; }
.avatar { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--surface-highest); font-family: var(--font-display); font-size: 0.85rem; font-weight: 700; color: var(--on); }
.state { font-size: 0.78rem; font-weight: 600; padding: 0.2rem 0.65rem; border-radius: 999px; border: 1px solid var(--outline-variant); color: var(--on-variant); white-space: nowrap; }
.state.on { color: #fff; background: var(--brand); border-color: var(--accent); }
.roster .cap { font-size: 0.85rem; color: var(--on-variant); margin-top: 0.4rem; }

/* Tournaments */
.tourney .panel { position: relative; border-radius: var(--r-xl); padding: 2rem 1.5rem; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(120deg, var(--accent), var(--saffron)) border-box; border: 1.5px solid transparent; }
.tourney h2 { font-size: clamp(2rem, 6vw, 3.4rem); line-height: 1.05; letter-spacing: -0.03em; max-width: 18ch; }
.tourney .lede { max-width: 52ch; }
.trio { margin-top: 2rem; display: grid; gap: 1.5rem; }
.trio div { display: grid; grid-template-columns: 2rem 1fr; column-gap: 0.9rem; }
.trio .i { color: var(--accent); width: 1.75rem; height: 1.75rem; grid-row: span 2; }
.trio b { color: #fff; font-family: var(--font-display); font-size: 1.1rem; }
.trio span.t { color: var(--on-variant); }

/* Trust */
.rights { display: grid; gap: 0; border-top: 1px solid var(--line); }
.rights > div { display: grid; grid-template-columns: 2.25rem 1fr; gap: 1rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.rights .i { width: 1.6rem; height: 1.6rem; color: var(--accent); margin-top: 0.15rem; }
.rights b { display: block; color: #fff; font-family: var(--font-display); font-size: 1.15rem; }
.rights span.t { color: var(--on-variant); }
.more { margin-top: 1.75rem; }

/* FAQ */
.faq { max-width: 46rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 0; font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; color: #fff; min-height: 3.5rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1); color: var(--accent); }
.faq details[open] summary .i { transform: rotate(180deg); }
.faq details p { padding: 0 0 1.4rem; color: var(--on-variant); max-width: 60ch; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--surface-lowest); padding-block: 3rem 2.5rem; }
.footer-grid { display: grid; gap: 2rem; }
.footer-grid p { color: var(--on-variant); max-width: 36ch; margin-top: 0.9rem; font-size: 0.95rem; }
.footer-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.2rem; }
.footer-links a { display: inline-block; color: var(--on); padding: 0.45rem 0; text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: #fff; }
.legal-line { margin-top: 2.25rem; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--on-variant); font-size: 0.875rem; }

/* Legal pages */
.doc { padding-block: 3rem 5rem; }
.doc .wrap { max-width: 50rem; }
.doc h1 { font-size: clamp(2.1rem, 7vw, 3.2rem); line-height: 1.05; letter-spacing: -0.03em; }
.updated { margin-top: 0.9rem; color: var(--on-variant); font-weight: 600; font-size: 0.95rem; }
.toc { margin: 2rem 0 0; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.toc h2 { font-size: 1rem; color: var(--on-variant); font-weight: 500; letter-spacing: 0.03em; margin-bottom: 0.6rem; }
.toc ol { margin: 0; padding-left: 1.25rem; display: grid; gap: 0.15rem; columns: 1; }
.toc a { color: var(--on); text-decoration: none; }
.toc a:hover { color: #fff; }
.prose h2 { font-size: 1.55rem; letter-spacing: -0.02em; margin: 3rem 0 0.9rem; line-height: 1.2; }
.prose h3 { font-size: 1.15rem; margin: 1.75rem 0 0.5rem; }
.prose p, .prose li { color: var(--on); max-width: 70ch; }
.prose p { margin-top: 0.9rem; }
.prose ul, .prose ol { margin: 0.8rem 0 0; padding-left: 1.4rem; display: grid; gap: 0.5rem; }
.prose strong { color: #fff; }
.callout { margin-top: 1.25rem; padding: 1rem 1.25rem; border-left: 4px solid var(--accent); border-radius: 0 var(--r-md) var(--r-md) 0; background: var(--surface); }
.callout p { margin: 0; }
.table-scroll { margin-top: 1.1rem; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.prose table { border-collapse: collapse; width: 100%; min-width: 34rem; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.prose th { font-family: var(--font-display); font-size: 0.82rem; font-weight: 500; letter-spacing: 0.04em; color: var(--on-variant); background: var(--surface); }
.prose tr:last-child td { border-bottom: 0; }
.prose td:first-child { color: #fff; font-weight: 600; width: 30%; }

/* 404 */
.notfound { min-height: 70vh; display: grid; align-items: center; padding-block: 4rem; }
.notfound h1 { font-size: clamp(3rem, 12vw, 6.5rem); line-height: 0.95; letter-spacing: -0.04em; }
.notfound h1 em { font-style: normal; color: var(--accent); }
.notfound p { margin: 1.25rem 0 2rem; color: var(--on-variant); font-size: 1.1rem; max-width: 34ch; }

/* Layout up */
@media (min-width: 720px) {
  :root { --gutter: 1.5rem; }
  .nav { display: flex; }
  section { padding-block: 6rem; }
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile-score { grid-column: span 4; }
  .tile-offline { grid-column: span 2; }
  .tile-live { grid-column: span 2; }
  .tile-ai { grid-column: span 4; }
  .trio { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .tourney .panel { padding: 3.25rem 3rem; }
  .rights { grid-template-columns: 1fr 1fr; column-gap: 3rem; }
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .toc ol { columns: 2; column-gap: 2rem; }
  .timeline { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .timeline li { padding: 3.25rem 0 0; }
  .timeline li::before { left: 2.4rem; right: -2rem; top: 1.05rem; bottom: auto; width: auto; height: 2px; background: linear-gradient(90deg, var(--accent), var(--outline-variant)); }
  .timeline li:last-child::before { display: none; }
}
@media (min-width: 1000px) {
  .hero .wrap { grid-template-columns: 1.15fr 0.85fr; padding-block: 4.5rem 5rem; gap: 3rem; }
  .logo-tile { width: 19rem; }
  .squad .wrap { grid-template-columns: 1fr 0.9fr; gap: 5rem; }
}

/* Motion: entrance + scroll reveal only, all gated on reduced motion. Each one signals hierarchy (hero first, then content as it arrives). */
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 0.7s cubic-bezier(0.16, 1, 0.3, 1) both; }
  .rise.d1 { animation-delay: 0.08s; }
  .rise.d2 { animation-delay: 0.16s; }
  .rise.d3 { animation-delay: 0.24s; }
  @keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
  .hero .ball { animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
  .hero .ball:nth-child(1) { animation-delay: 0.5s; }
  .hero .ball:nth-child(2) { animation-delay: 0.6s; }
  .hero .ball:nth-child(3) { animation-delay: 0.7s; }
  .hero .ball:nth-child(4) { animation-delay: 0.8s; }
  .hero .ball:nth-child(5) { animation-delay: 0.9s; }
  .hero .ball:nth-child(6) { animation-delay: 1s; }
  @keyframes pop { from { opacity: 0; transform: scale(0.4); } to { opacity: 1; transform: none; } }
  @keyframes reveal-in { from { transform: translateY(24px); } to { transform: none; } }
  @supports (animation-timeline: view()) {
    .reveal { animation: reveal-in linear both; animation-timeline: view(); animation-range: entry 0% entry 35%; }
  }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.doc .lede { margin-top: 1.25rem; max-width: none; }
