:root {
  color-scheme: dark;
  --background: #061424;
  --background-deep: #04101d;
  --surface: rgba(11, 32, 54, 0.8);
  --surface-strong: rgba(9, 25, 43, 0.92);
  --border: rgba(27, 55, 83, 0.95);
  --text-primary: #ffffff;
  --text-secondary: #9db4c2;
  --text-muted: #6e8795;
  --primary: #00e0ff;
  --secondary: #39ff81;
  --gold: #ffd166;
  --purple: #a874ff;
  --blue: #4db8ff;
  --shadow-cyan: 0 0 30px rgba(0, 224, 255, 0.18);
  --shadow-lime: 0 0 30px rgba(57, 255, 129, 0.14);
  --content-width: 1120px;
  --radius-lg: 8px;
  --radius-md: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  font-family: "SF Pro Display", "Segoe UI", sans-serif;
  background:
    linear-gradient(135deg, rgba(0, 224, 255, 0.12) 0%, transparent 34%),
    linear-gradient(315deg, rgba(57, 255, 129, 0.09) 0%, transparent 32%),
    linear-gradient(180deg, var(--background) 0%, var(--background-deep) 100%);
  color: var(--text-primary);
}

a {
  color: inherit;
  text-decoration: none;
}

p a,
.site-footer a {
  color: var(--primary);
  font-weight: 800;
}

p a:hover,
.site-footer a:hover {
  color: var(--secondary);
}

.page-shell {
  position: relative;
  width: min(calc(100% - 2rem), var(--content-width));
  margin: 0 auto;
  padding: 1.25rem 0 2.5rem;
}

.site-header,
.site-footer,
main {
  position: relative;
  z-index: 1;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header {
  padding: 0.75rem 0 1.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-mark {
  width: 3.05rem;
  height: auto;
  display: block;
  filter: drop-shadow(0 0 24px rgba(0, 224, 255, 0.24));
}

.brand-text {
  font-size: 1.05rem;
}

.text-link {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.text-link:hover {
  color: var(--primary);
}

main {
  display: grid;
  gap: 1.5rem;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.24);
}

.hero {
  display: grid;
  align-content: start;
  gap: 1.25rem;
  min-height: min(760px, calc(100vh - 6rem));
  padding: 1.5rem 0 0;
  overflow: hidden;
}

.hero h1,
.section-block h2 {
  margin: 0;
  line-height: 1.02;
  letter-spacing: 0;
}

.hero h1 {
  max-width: 12ch;
  font-size: 3rem;
}

.hero-content {
  align-self: center;
  padding-top: 0;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--secondary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.hero-copy,
.hero-note,
.section-copy,
.card p,
.site-footer {
  color: var(--text-secondary);
}

.hero-copy {
  max-width: 44rem;
  margin: 1.35rem 0 0;
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-visual {
  position: relative;
  align-self: end;
  min-height: 22rem;
}

.hero-visual img {
  display: block;
  width: min(100%, 36rem);
  margin-left: auto;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.42));
}

.hero-visual-stadium img {
  width: min(100%, 42rem);
  max-width: none;
}

.visual-badge {
  position: absolute;
  display: grid;
  gap: 0.2rem;
  max-width: 13rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(0, 224, 255, 0.32);
  border-radius: var(--radius-md);
  background: rgba(4, 16, 29, 0.86);
  box-shadow: var(--shadow-cyan);
}

.visual-badge strong {
  font-size: 0.95rem;
}

.visual-badge span {
  color: var(--text-secondary);
  font-size: 0.82rem;
  line-height: 1.35;
}

.visual-badge-top {
  top: 2.25rem;
  left: 0;
}

.visual-badge-bottom {
  right: 0.25rem;
  bottom: 2.25rem;
  border-color: rgba(255, 209, 102, 0.42);
  box-shadow: 0 0 30px rgba(255, 209, 102, 0.12);
}

.hero-visual-stadium .visual-badge-bottom {
  right: auto;
  left: 0.75rem;
  bottom: 1rem;
}

.hero-visual-stadium .visual-badge-top {
  left: 0.75rem;
}

.hero-note {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: 0.98rem;
  line-height: 1.6;
}

.cta-row,
.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.cta-row {
  margin-top: 1.75rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.35rem;
  padding: 0.95rem 1.3rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-weight: 700;
  text-align: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button-primary {
  background: var(--primary);
  color: #052033;
  box-shadow: var(--shadow-cyan);
}

.button-secondary {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(0, 224, 255, 0.28);
  color: var(--text-primary);
}

.button-secondary:hover {
  border-color: rgba(57, 255, 129, 0.45);
  box-shadow: var(--shadow-lime);
}

.hero-metrics {
  display: grid;
  gap: 0.9rem;
  margin-top: 0;
}

.metric-pill {
  display: grid;
  gap: 0.2rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius-md);
  background: rgba(3, 15, 28, 0.46);
  border: 1px solid rgba(0, 224, 255, 0.1);
}

.metric-pill strong {
  font-size: 0.96rem;
}

.metric-pill span {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.section-block {
  display: grid;
  gap: 1.25rem;
  padding: 0.75rem 0;
}

.section-heading {
  padding: 0 0.2rem;
}

.section-block h2 {
  max-width: 20ch;
  font-size: 2.1rem;
}

.grid {
  display: grid;
  gap: 1rem;
}

.grid-four,
.grid-two {
  grid-template-columns: 1fr;
}

.step-card,
.competition-card,
.detail-card,
.ios-card {
  padding: 1.4rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.3rem;
  padding: 0.55rem 0.8rem;
  border-radius: var(--radius-md);
  background: rgba(0, 224, 255, 0.1);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.step-card h3,
.competition-card h3,
.detail-card h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.25rem;
}

.step-card p,
.competition-card p,
.detail-card p,
.section-copy {
  margin: 0;
  line-height: 1.7;
}

.competition-card {
  position: relative;
  min-height: 15.5rem;
  overflow: hidden;
}

.competition-card::before {
  content: "";
  display: block;
  width: 2.35rem;
  height: 0.25rem;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
}

.competition-card h3 {
  margin-top: 1.2rem;
}

.gameplay-section {
  gap: 1.5rem;
}

.gameplay-grid {
  display: grid;
  gap: 1rem;
}

.gameplay-card {
  display: grid;
  align-content: start;
  min-height: 14rem;
  padding: 1.4rem;
}

.gameplay-card span {
  color: var(--secondary);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.gameplay-card h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.35rem;
}

.gameplay-card p {
  margin: 0;
  line-height: 1.7;
}

.featured-gameplay-card {
  border-color: rgba(255, 209, 102, 0.36);
  background:
    linear-gradient(145deg, rgba(255, 209, 102, 0.12), transparent 44%),
    linear-gradient(180deg, var(--surface) 0%, var(--surface-strong) 100%);
  box-shadow: 0 0 34px rgba(255, 209, 102, 0.12), 0 18px 45px rgba(0, 0, 0, 0.24);
}

.product-section {
  gap: 1.5rem;
}

.product-card {
  display: grid;
  align-content: start;
  min-height: 16rem;
  padding: 1.4rem;
}

.product-card span {
  color: var(--gold);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.product-card h3 {
  margin: 1rem 0 0.65rem;
  font-size: 1.28rem;
}

.product-card p {
  margin: 0;
  line-height: 1.7;
}

.league-section {
  align-items: start;
  padding: 1.4rem;
  border: 1px solid rgba(0, 224, 255, 0.16);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(135deg, rgba(57, 255, 129, 0.08), transparent 38%),
    rgba(4, 16, 29, 0.42);
}

.league-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.35rem;
}

.league-chip-row span {
  padding: 0.58rem 0.72rem;
  border: 1px solid rgba(0, 224, 255, 0.2);
  border-radius: var(--radius-md);
  background: rgba(3, 15, 28, 0.55);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

.league-showcase {
  display: grid;
  gap: 1rem;
  align-items: start;
  min-width: 0;
}

.leaderboard-phone {
  position: relative;
  overflow: hidden;
  width: min(100%, 25rem);
  border: 1px solid rgba(0, 224, 255, 0.2);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(145deg, rgba(0, 224, 255, 0.12), transparent 45%),
    rgba(3, 15, 28, 0.72);
  box-shadow: 0 22px 52px rgba(0, 0, 0, 0.32), var(--shadow-lime);
}

.leaderboard-phone img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.leaderboard-card {
  width: 100%;
  padding: 1.25rem;
}

.mock-label {
  margin: 0 0 0.75rem;
  color: var(--secondary);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.leaderboard-card h3 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.leaderboard-card ol {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: leaderboard;
}

.leaderboard-card li {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem;
  border: 1px solid rgba(27, 55, 83, 0.8);
  border-radius: var(--radius-md);
  background: rgba(3, 15, 28, 0.48);
  color: var(--text-primary);
}

.leaderboard-card li::before {
  counter-increment: leaderboard;
  content: counter(leaderboard) ".";
  color: var(--text-muted);
  font-weight: 800;
}

.leaderboard-card li strong {
  color: var(--gold);
}

.split-layout {
  align-items: start;
}

.accent-card {
  border-color: rgba(57, 255, 129, 0.28);
  box-shadow: var(--shadow-lime);
}

.progression-section {
  gap: 1.5rem;
}

.progression-panel {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(27, 55, 83, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(27, 55, 83, 0.95);
}

.feature-callout {
  min-height: 13rem;
  padding: 1.4rem;
  background:
    linear-gradient(145deg, rgba(0, 224, 255, 0.08), transparent 38%),
    rgba(7, 23, 40, 0.94);
}

.callout-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: 1px solid rgba(57, 255, 129, 0.34);
  border-radius: var(--radius-md);
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
}

.feature-callout h3,
.trophy-item h3 {
  margin: 1rem 0 0.55rem;
  font-size: 1.15rem;
}

.feature-callout p,
.trophy-item p {
  margin: 0;
  color: var(--text-secondary);
  line-height: 1.65;
}

.trophy-room {
  align-items: start;
}

.trophy-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

.trophy-item {
  min-height: 11rem;
  padding: 1.2rem;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(255, 209, 102, 0.08), transparent 48%),
    rgba(8, 24, 42, 0.92);
}

.trophy-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(255, 209, 102, 0.58);
  border-radius: var(--radius-md);
  color: var(--gold);
  font-weight: 900;
  box-shadow: 0 0 22px rgba(255, 209, 102, 0.16);
}

.trophy-purple {
  border-color: rgba(168, 116, 255, 0.58);
  color: var(--purple);
  box-shadow: 0 0 22px rgba(168, 116, 255, 0.16);
}

.trophy-blue {
  border-color: rgba(77, 184, 255, 0.58);
  color: var(--blue);
  box-shadow: 0 0 22px rgba(77, 184, 255, 0.16);
}

.trophy-gold {
  border-color: rgba(57, 255, 129, 0.5);
  color: var(--secondary);
  box-shadow: var(--shadow-lime);
}

.ios-card {
  display: grid;
  gap: 1.25rem;
  border-color: rgba(0, 224, 255, 0.28);
}

.preview-grid {
  display: grid;
  gap: 1rem;
}

.preview-card {
  display: grid;
  gap: 0.65rem;
  min-height: 11rem;
  padding: 1.25rem;
  border: 1px solid rgba(27, 55, 83, 0.95);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(150deg, rgba(0, 224, 255, 0.1), transparent 48%),
    rgba(7, 23, 40, 0.92);
}

.preview-card span {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preview-card strong {
  align-self: end;
  max-width: 14rem;
  font-size: 1.12rem;
  line-height: 1.35;
}

.cta-stack {
  align-items: start;
}

.site-footer {
  flex-direction: column;
  align-items: flex-start;
  padding: 1.5rem 0 0.25rem;
  font-size: 0.92rem;
}

@media (min-width: 720px) {
  .page-shell {
    width: min(calc(100% - 3rem), var(--content-width));
    padding-top: 1.5rem;
  }

  .hero {
    grid-template-columns: minmax(0, 0.9fr) minmax(22rem, 0.95fr);
    grid-template-areas:
      "content visual"
      "metrics metrics";
    gap: 1.5rem 1.75rem;
    min-height: auto;
    padding-top: 0.75rem;
  }

  .hero h1 {
    font-size: 4.45rem;
  }

  .hero-content {
    grid-area: content;
    align-self: start;
    padding-top: 1rem;
  }

  .hero-visual {
    grid-area: visual;
    align-self: start;
  }

  .hero-visual-stadium {
    margin-left: -1rem;
  }

  .hero-visual-stadium img {
    width: min(112%, 44rem);
  }

  .hero-metrics {
    grid-area: metrics;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .grid-two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gameplay-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .league-section {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.5fr);
    align-items: center;
    gap: 1.5rem;
    padding: 1.6rem;
    overflow: hidden;
  }

  .league-showcase {
    align-self: center;
  }

  .leaderboard-phone {
    width: min(100%, 18rem);
    justify-self: center;
  }

  .leaderboard-phone img {
    max-height: 32rem;
  }

  .leaderboard-card {
    display: none;
  }

  .progression-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .trophy-room {
    grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
    gap: 1.5rem;
  }

  .ios-card {
    grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 0.8fr);
    align-items: center;
  }

  .site-footer {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
}

@media (min-width: 980px) {
  .grid-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .split-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 1.25rem 1.4rem;
  }

  .progression-panel {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .preview-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
