:root {
  --bg: #0d0d0d;
  --surface: #1b1b1b;
  --card: #262626;
  --card-2: #2e2e2e;
  --line: #3a3a3a;
  --text: #ffffff;
  --muted: #a3a3a3;
  --dim: #6b6b6b;
  --red: #cc0000;
  --red-hot: #e01010;
  --radius: 14px;
  --pill: 999px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Roboto", system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 13, 13, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #1f1f1f;
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; text-decoration: none; letter-spacing: -.01em; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--red); display: grid; place-items: center;
}
.brand-mark svg { width: 20px; height: 20px; }
.nav { display: flex; gap: 6px; }
.nav a {
  text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px;
  padding: 8px 14px; border-radius: var(--pill);
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); background: var(--card); }

/* Pills & buttons (same shapes as the app) */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: var(--pill);
  background: var(--card); color: #d6d6d6; font-weight: 600; font-size: 15px;
}
.pill.on { background: #fff; color: #111; }
.pill.on::before { content: "✓"; font-weight: 700; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 28px; border-radius: var(--radius);
  font-weight: 700; font-size: 17px; text-decoration: none; border: 0; cursor: pointer;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-hot); }
.btn-ghost { background: var(--card); color: #fff; }
.btn-ghost:hover { background: var(--card-2); }

.eyebrow { color: var(--red-hot); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.02em; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(38px, 6vw, 68px); font-weight: 800; margin: 14px 0 18px; }
.hero h1 em { font-style: normal; color: var(--red-hot); }
.hero p.lead { font-size: 19px; color: var(--muted); max-width: 520px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.games { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 36px; }

/* Phone mockup */
.phone {
  width: 320px; max-width: 100%; margin: 0 auto;
  background: var(--surface); border-radius: 44px; padding: 22px 16px 26px;
  border: 8px solid #050505; box-shadow: 0 40px 80px rgba(204, 0, 0, .18), 0 0 0 1px #2a2a2a;
  position: relative;
}
.phone::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 96px; height: 26px; border-radius: 20px; background: #050505;
}
.phone-top { display: flex; align-items: center; gap: 10px; margin: 28px 4px 12px; font-weight: 700; font-size: 18px; }
.chips { display: flex; gap: 6px; margin: 0 4px 16px; flex-wrap: wrap; align-items: center; }
.chip { background: var(--card-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; font-weight: 600; color: #cfcfcf; }
.chips .count { margin-left: auto; font-size: 12px; font-weight: 700; }

/* Mini bracket */
.bracket { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: stretch; }
.round { display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.round-title { font-size: 10px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
.match { background: var(--card); border-radius: 6px; overflow: hidden; font-size: 11.5px; }
.match div { display: flex; gap: 6px; padding: 5px 7px; }
.match div + div { border-top: 1px solid #1b1b1b; }
.match .seed { color: var(--dim); width: 8px; }
.match .win { font-weight: 700; }
.match .win::after { content: ""; margin-left: auto; width: 6px; height: 6px; border-radius: 50%; background: var(--red-hot); align-self: center; }
.match .lose { color: var(--dim); }
.match .tbd { color: #555; }
.champion {
  margin-top: 16px; padding: 12px; border-radius: 12px; text-align: center;
  background: linear-gradient(135deg, #3a0000, var(--red)); font-weight: 700; font-size: 14px;
}

/* Sections */
section { padding: 72px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(30px, 4vw, 44px); margin: 10px 0 12px; font-weight: 800; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid #242424; border-radius: 20px; padding: 28px; }
.card h3 { font-size: 20px; margin: 16px 0 8px; }
.card p { color: var(--muted); }
.icon {
  width: 48px; height: 48px; border-radius: 14px; background: #2a0a0a; color: var(--red-hot);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { background: var(--surface); border-radius: 20px; padding: 26px; border-top: 3px solid var(--red); }
.step::before {
  counter-increment: s; content: counter(s, decimal-leading-zero);
  font-size: 34px; font-weight: 800; color: #3a3a3a; display: block; margin-bottom: 8px;
}
.step h3 { font-size: 18px; margin-bottom: 6px; }
.step p { color: var(--muted); font-size: 15px; }

.band {
  background: radial-gradient(120% 140% at 0% 0%, #4a0000 0%, var(--red) 45%, #7a0000 100%);
  border-radius: 28px; padding: 56px 40px; text-align: center;
}
.band h2 { font-size: clamp(30px, 4.5vw, 50px); font-weight: 800; margin-bottom: 12px; }
.band p { color: #ffd9d9; font-size: 18px; margin-bottom: 28px; }
.band .btn { background: #fff; color: #111; }

/* Document pages */
.doc { padding: 56px 0 80px; }
.doc .wrap { max-width: 800px; }
.doc h1 { font-size: clamp(34px, 5vw, 50px); font-weight: 800; margin: 10px 0 8px; }
.doc .updated { color: var(--muted); margin-bottom: 36px; }
.doc h2 { font-size: 22px; margin: 40px 0 12px; }
.doc p, .doc li { color: #cfcfcf; margin-bottom: 12px; }
.doc ul { padding-left: 22px; }
.doc strong { color: #fff; }
.doc a { color: var(--red-hot); }

.contact-card {
  background: var(--surface); border: 1px solid #242424; border-radius: 20px;
  padding: 28px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; margin: 8px 0 24px;
}
.contact-card h2 { margin: 0 0 4px; }
.contact-card p { margin: 0; }
.doc .contact-card .btn { color: #fff; }

details { background: var(--surface); border: 1px solid #242424; border-radius: 16px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--red-hot); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 18px; margin: 0; }

/* Footer */
.site-footer { border-top: 1px solid #1f1f1f; padding: 32px 0; color: var(--dim); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer nav { display: flex; gap: 18px; }
.site-footer a { text-decoration: none; color: var(--muted); }
.site-footer a:hover { color: #fff; }

:focus-visible { outline: 2px solid var(--red-hot); outline-offset: 3px; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .nav a { padding: 8px 10px; font-size: 14px; }
  .brand span { display: none; }
  .steps { grid-template-columns: 1fr; }
  .band { padding: 44px 22px; }
  .hero { padding-top: 48px; }
}
