:root {
  --bg: #0a0d14;
  --bg-elevated: #0f1420;
  --surface: rgba(17, 22, 34, 0.84);
  --surface-solid: #111622;
  --surface-raised: #171e2e;
  --border: rgba(255, 255, 255, 0.085);
  --border-accent: rgba(124, 92, 255, 0.42);
  --accent: #7c5cff;
  --accent-bright: #9b82ff;
  --accent-glow: rgba(124, 92, 255, 0.28);
  --text: #f3f6fb;
  --text-secondary: #a8b4c8;
  --text-tertiary: #738198;
  --radius: 18px;
  --max-width: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Inter', 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  scroll-behavior: smooth;
  overflow-x: clip;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: clip;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 12px;
  z-index: 1000;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
}

.skip-link:focus {
  left: 16px;
}

/* ── Top Navigation ─────────────────────────────────────────────────────── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  background: rgba(10, 13, 20, 0.78);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  flex-shrink: 0;
  text-decoration: none !important;
}

.brand-logo {
  height: 28px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  transition: color 0.16s ease;
}

.nav-links a:hover,
.nav-links a[aria-current='page'] {
  color: var(--text);
  text-decoration: none;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  gap: 2px;
}

.lang-switch a {
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  text-decoration: none !important;
}

.lang-switch a.active {
  background: var(--accent);
  color: #fff;
}

/* ── Hero with 5 Rotating Arena Backgrounds ─────────────────────────────── */

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.arena-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.arena-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  opacity: 0;
  transform: scale(1.03);
  transition: opacity 1.1s ease, transform 6.5s ease;
}

.arena-slide.is-active {
  opacity: 0.42;
  transform: scale(1);
}

.arena-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 75% 55% at 50% 0%, rgba(124, 92, 255, 0.24), transparent 65%),
    linear-gradient(180deg, rgba(10, 13, 20, 0.62) 0%, rgba(10, 13, 20, 0.78) 55%, #0a0d14 100%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px 72px;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  align-items: center;
  gap: 44px;
}

.hero-inner > * {
  min-width: 0;
}

.hero-icon-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  min-width: 0;
}

.stadium-icon {
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  border-radius: 17px;
  box-shadow: 0 12px 36px rgba(124, 92, 255, 0.34), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(124, 92, 255, 0.14);
  border: 1px solid var(--border-accent);
  color: var(--accent-bright);
  font-size: 12.5px;
  font-weight: 700;
  max-width: 100%;
}

.hero h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 850;
}

.hero-lead {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: clamp(16px, 2vw, 18.5px);
  max-width: 560px;
}

.store-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-radius: 14px;
  background: rgba(17, 22, 34, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--text);
  min-width: 206px;
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.store-badge.is-live:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  text-decoration: none;
}

.store-badge.is-soon {
  opacity: 0.92;
  cursor: default;
}

.store-badge svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--accent-bright);
}

.store-badge-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.store-badge-title {
  font-size: 15px;
  font-weight: 800;
}

.store-badge-sub {
  font-size: 11.5px;
  color: var(--text-secondary);
  font-weight: 600;
}

.store-note {
  margin: 0 0 22px;
  font-size: 12.5px;
  color: var(--text-tertiary);
}

.arena-switcher {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.arena-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: rgba(17, 22, 34, 0.72);
  color: var(--text-secondary);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: all 0.18s ease;
}

.arena-chip:hover {
  border-color: var(--border-accent);
  color: var(--text);
}

.arena-chip.is-active {
  background: rgba(124, 92, 255, 0.22);
  border-color: var(--accent);
  color: #fff;
}

/* ── Phone Frame Showcase ───────────────────────────────────────────────── */

.hero-device-col {
  display: flex;
  justify-content: center;
}

.phone-frame {
  width: 296px;
  padding: 10px;
  border-radius: 42px;
  background: linear-gradient(155deg, #273046 0%, #121724 55%, #1c2234 100%);
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.65),
    0 0 60px rgba(124, 92, 255, 0.22),
    inset 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.phone-screen {
  border-radius: 33px;
  overflow: hidden;
  background: #0a0d14;
  aspect-ratio: 9 / 19.5;
}

.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ── Content Sections ───────────────────────────────────────────────────── */

.section {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 64px 20px;
}

.section-compact {
  padding-top: 40px;
  padding-bottom: 40px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-bright);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.5vw, 34px);
  line-height: 1.18;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-subtitle {
  margin: 0 0 32px;
  color: var(--text-secondary);
  font-size: 15.5px;
  max-width: 680px;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 750;
}

.card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.card-accent-dot {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(124, 92, 255, 0.16);
  border: 1px solid var(--border-accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  color: var(--accent-bright);
}

/* ── Screenshots Grid ───────────────────────────────────────────────────── */

.screenshots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.shot-card {
  margin: 0;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shot-card img {
  width: 100%;
  aspect-ratio: 9 / 19.5;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.shot-card figcaption {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: center;
}

/* ── Quick Links Band ───────────────────────────────────────────────────── */

.links-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.link-tile {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: 20px;
  border-radius: 16px;
  background: var(--surface-solid);
  border: 1px solid var(--border);
  color: var(--text);
  transition: border-color 0.16s ease, transform 0.16s ease;
}

.link-tile:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  text-decoration: none;
}

.link-tile strong {
  font-size: 16px;
}

.link-tile span {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ── Legal / Support Subpages ───────────────────────────────────────────── */

.subpage-wrap {
  max-width: 820px;
  margin: 0 auto;
  padding: 48px 20px 72px;
}

.subpage-wrap h1 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.subpage-lead {
  margin: 0 0 28px;
  color: var(--text-secondary);
  font-size: 16px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff !important;
  font-size: 14.5px;
  font-weight: 750;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--accent-bright);
  text-decoration: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 12px;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  color: var(--text) !important;
  font-size: 14.5px;
  font-weight: 700;
}

.btn-ghost:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.shield-box {
  text-align: center;
  padding: 40px 24px;
  border-radius: 22px;
  background: radial-gradient(circle at 50% 0%, rgba(124, 92, 255, 0.2), rgba(17, 22, 34, 0.96) 72%);
  border: 1px solid var(--border-accent);
}

.shield-box .eye-mark {
  width: 62px;
  height: 62px;
  margin: 0 auto 16px;
  border-radius: 15px;
  box-shadow: 0 8px 28px rgba(124, 92, 255, 0.35);
}

.shield-actions {
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.match-ref-pill {
  display: inline-block;
  margin-top: 12px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: var(--text-secondary);
}

/* ── Footer ─────────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 20px 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-size: 13.5px;
  color: var(--text-tertiary);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-links a {
  color: var(--text-secondary);
}

/* ── Responsive ─────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero-inner {
    grid-template-columns: minmax(0, 1fr);
    padding-top: 40px;
    padding-bottom: 48px;
    gap: 32px;
  }

  .pillars-grid,
  .screenshots-grid,
  .contact-grid {
    grid-template-columns: minmax(0, 1fr);
  }

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

@media (max-width: 720px) {
  .header-inner {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 12px;
    padding: 12px 16px;
  }

  .brand-link {
    order: 1;
  }

  .brand-logo {
    height: 22px;
  }

  .lang-switch {
    order: 2;
  }

  .nav-links {
    order: 3;
    width: 100%;
    gap: 8px 14px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
  }

  .nav-links a {
    font-size: 13px;
  }

  .hero-inner {
    padding: 28px 16px 40px;
    gap: 26px;
  }

  .hero-icon-row {
    gap: 12px;
    margin-bottom: 16px;
  }

  .stadium-icon {
    width: 54px;
    height: 54px;
    border-radius: 14px;
  }

  .hero-pill {
    font-size: 11.5px;
    padding: 5px 11px;
    line-height: 1.3;
    border-radius: 12px;
  }

  .hero h1 {
    font-size: 32px;
    line-height: 1.1;
    margin-bottom: 12px;
  }

  .hero-lead {
    font-size: 15.5px;
    line-height: 1.55;
    margin-bottom: 20px;
  }

  .store-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 10px;
  }

  .store-badge {
    min-width: 0;
    width: 100%;
    padding: 10px 11px;
    gap: 9px;
    border-radius: 12px;
  }

  .store-badge svg {
    width: 19px;
    height: 19px;
  }

  .store-badge-title {
    font-size: 13.5px;
  }

  .store-badge-sub {
    font-size: 10.5px;
  }

  .store-note {
    font-size: 12px;
    margin-bottom: 16px;
  }

  .arena-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    width: 100%;
  }

  .arena-chip {
    padding: 5px 10px;
    font-size: 11.5px;
  }

  .phone-frame {
    width: min(264px, 100%);
    margin: 0 auto;
    padding: 9px;
    border-radius: 38px;
  }

  .phone-screen {
    border-radius: 30px;
  }

  .section {
    padding: 44px 16px;
  }

  .section-compact {
    padding-top: 28px;
    padding-bottom: 28px;
  }

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

@media (max-width: 350px) {
  .store-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (prefers-reduced-motion: reduce) {
  .arena-slide {
    transition: none;
    transform: none;
  }
}
