:root {
  --bg-900: #0d1322;
  --bg-800: #0b1220;
  --bg-700: #111b2d;
  --panel: rgba(17, 27, 45, 0.8);
  --panel-strong: rgba(12, 18, 30, 0.95);
  --panel-soft: rgba(255, 255, 255, 0.02);
  --cyan: #00f2ff;
  --cyan-soft: rgba(0, 242, 255, 0.12);
  --teal: #62f0df;
  --gold: #ffd166;
  --gold-strong: #f8b84e;
  --white: #edf5ff;
  --muted: #a9b5ca;
  --line: rgba(255, 255, 255, 0.08);
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
  --radius: 16px;
  --content-max: 1200px;
  --legal-max: 1000px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(0, 242, 255, 0.12), transparent 32%),
    linear-gradient(180deg, var(--bg-900) 0%, var(--bg-800) 40%, #0a101a 100%);
  color: var(--white);
  line-height: 1.7;
}

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

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

button,
input,
textarea,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.container {
  width: min(var(--content-max), calc(100% - 32px));
  margin: 0 auto;
}

.section-shell {
  padding: 110px 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(16px);
  background: rgba(8, 14, 29, 0.74);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}

.site-header.scrolled {
  border-color: var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 78px;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--cyan), rgba(98, 240, 223, 0.9));
  color: var(--bg-900);
  font-size: 0.82rem;
  box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.32), 0 0 22px rgba(0, 242, 255, 0.18);
}

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

.nav-menu {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.nav-menu a {
  position: relative;
  transition: color 180ms ease;
}

.nav-menu a.current-page {
  color: var(--white);
}

.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -8px;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.nav-menu a:hover,
.nav-menu a:focus-visible {
  color: var(--white);
}

.nav-menu a:hover::after,
.nav-menu a:focus-visible::after,
.nav-menu a.current-page::after {
  transform: scaleX(1);
}

.button-primary,
.button-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  border: 1px solid transparent;
  font-weight: 700;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
}

.button-primary {
  background: linear-gradient(135deg, var(--cyan), #66ecff);
  color: var(--bg-900);
  box-shadow: 0 18px 30px rgba(0, 242, 255, 0.18);
}

.button-primary:hover,
.button-primary:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 22px 38px rgba(0, 242, 255, 0.22);
}

.button-secondary {
  border-color: rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(0, 242, 255, 0.32);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 12px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--white);
  border-radius: 999px;
}

.hero {
  padding: 80px 0 60px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 60px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--cyan);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy h1,
.section-heading h3,
.about-copy h3,
.download h3,
.legal-header h3 {
  margin: 0;
  letter-spacing: -0.06em;
  line-height: 1.02;
}

.hero-copy h1 {
  font-size: clamp(3.3rem, 5vw, 5.5rem);
}

.hero-copy h2 {
  margin: 12px 0 19px;
  font-size: clamp(2rem, 3vw, 3.1rem);
  letter-spacing: -0.05em;
  color: var(--white);
}

.lead {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: 1.1rem;
}

.tagline {
  margin-top: 18px;
  color: var(--gold);
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0;
  margin: 28px 0 0;
  list-style: none;
}

.hero-meta li {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(0, 242, 255, 0.18);
  background: rgba(0, 242, 255, 0.05);
  color: var(--muted);
  font-size: 0.9rem;
}

.hero-visual {
  position: relative;
}

.visual-scene {
  position: relative;
  width: min(100%, 560px);
  margin-left: auto;
  aspect-ratio: 1 / 1.02;
  border-radius: 32px;
  background: linear-gradient(180deg, rgba(15, 22, 36, 0.9), rgba(10, 17, 28, 0.95));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.board-glow {
  position: absolute;
  inset: 14% 12% 18% 12%;
  border-radius: 28px;
  background: radial-gradient(circle, rgba(0, 242, 255, 0.22), rgba(0, 242, 255, 0.06) 30%, transparent 72%);
  filter: blur(18px);
}

.bingo-board {
  position: absolute;
  inset: 18% 13% auto 13%;
  display: grid;
  gap: 10px;
  background: rgba(9, 15, 23, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 20px;
  padding: 18px 16px;
  box-shadow: 0 20px 34px rgba(0, 0, 0, 0.24);
}

.board-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  display: grid;
  place-items: center;
  min-height: 54px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 800;
  font-size: clamp(0.8rem, 1.8vw, 1rem);
}

.tile.selected {
  background: linear-gradient(135deg, rgba(0, 242, 255, 0.18), rgba(0, 242, 255, 0.1));
  border-color: rgba(0, 242, 255, 0.55);
  color: var(--cyan);
  box-shadow: inset 0 0 18px rgba(0, 242, 255, 0.08), 0 0 16px rgba(0, 242, 255, 0.12);
}

.floating-ball,
.achievement {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-weight: 800;
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.18);
  animation: float 6s ease-in-out infinite;
}

.floating-ball {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.22), rgba(255, 255, 255, 0.05));
  color: var(--gold);
}

.ball-one {
  top: 7%;
  left: 7%;
}

.ball-two {
  top: 15%;
  right: 9%;
  animation-delay: 1.1s;
}

.ball-three {
  bottom: 9%;
  left: 12%;
  animation-delay: 2.2s;
}

.achievement {
  width: 72px;
  height: 72px;
  background: rgba(17, 27, 45, 0.8);
  font-size: 2rem;
}

.accent-gold {
  right: 12%;
  bottom: 13%;
  color: var(--gold);
}

.accent-cyan {
  top: 58%;
  right: 3%;
  color: var(--cyan);
}

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

.section-heading {
  margin-bottom: 42px;
  text-align: center;
}

.section-heading h3,
.about-copy h3,
.download h3,
.legal-header h3 {
  font-size: clamp(2.2rem, 4vw, 3.1rem);
}

.feature-card,
.step-card,
.legal-hub,
.site-footer,
.legal-copy,
.phone-shell,
.center-box,
.legal-page-card,
.legal-link-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(13, 19, 34, 0.68);
  box-shadow: 0 18px 32px rgba(2, 5, 11, 0.22);
}

.feature-card,
.step-card {
  padding: 28px 22px;
}

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

.legal-link-card {
  padding: 28px 24px;
}

.legal-link-card h4 {
  margin: 0 0 10px;
  font-size: 1.8rem;
  letter-spacing: -0.05em;
}

.legal-link-card p {
  color: var(--muted);
}

.legal-link-card .button-secondary {
  margin-top: 10px;
}

.legal-page-shell {
  padding: 52px 0 90px;
}

.legal-page-card {
  width: min(var(--legal-max), calc(100% - 22px));
  margin: 0 auto;
  padding: 28px 22px 24px;
}

.legal-page-header {
  margin-bottom: 18px;
}

.legal-page-header h1 {
  margin: 0;
  font-size: clamp(2.3rem, 4vw, 3.2rem);
  letter-spacing: -0.06em;
}

.legal-page-meta {
  margin: 12px 0 0;
  font-weight: 600;
  color: var(--gold);
}

.legal-page-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.legal-page-toc {
  position: sticky;
  top: 100px;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.015);
}

.legal-page-toc h2 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--cyan);
}

.legal-page-toc nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.legal-page-toc a {
  color: var(--muted);
  padding: 8px 10px;
  border-radius: 10px;
}

.legal-page-toc a:hover,
.legal-page-toc a:focus-visible {
  color: var(--white);
  background: rgba(0, 242, 255, 0.04);
}

.legal-page-body {
  padding: 20px 18px 6px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.015);
}

.legal-page-body section {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 22px;
}

.legal-page-body h2,
.legal-page-body h3 {
  margin: 0 0 12px;
  letter-spacing: -0.04em;
}

.legal-page-body h2 {
  font-size: 1.15rem;
}

.legal-page-body h3 {
  font-size: 1.5rem;
}

.legal-page-body p,
.legal-page-body li {
  color: var(--muted);
}

.legal-page-body a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.legal-page-body ul,
.legal-page-body ol {
  margin: 10px 0 0 20px;
  padding: 0;
}

.legal-page-body .notice {
  padding: 16px 18px;
  border-left: 3px solid var(--gold);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.06);
  color: var(--white);
}

@media (max-width: 980px) {
  .legal-links,
  .legal-page-layout {
    grid-template-columns: 1fr;
  }

  .legal-page-toc {
    position: static;
  }
}

.icon-wrap {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  margin-bottom: 18px;
  font-size: 1.5rem;
}

.icon-wrap.cyan {
  background: rgba(0, 242, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(0, 242, 255, 0.1);
}

.icon-wrap.gold {
  background: rgba(255, 209, 102, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 209, 102, 0.1);
}

.feature-card h4,
.step-card h4 {
  margin: 0 0 10px;
  font-size: 1.25rem;
}

.feature-card p,
.step-card p,
.about-copy p,
.site-footer p,
.draw-note,
.legal-copy p,
.legal-copy li {
  color: var(--muted);
}

.split-layout {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 42px;
}

.about-copy p {
  margin: 18px 0 0;
  font-size: 1.1rem;
}

.game-showcase {
  display: flex;
  justify-content: center;
}

.phone-shell {
  width: min(100%, 420px);
  padding: 18px 18px 12px;
  background: linear-gradient(180deg, rgba(18, 26, 42, 0.9), rgba(8, 12, 20, 0.96));
}

.phone-notch {
  width: 136px;
  height: 18px;
  border-radius: 999px;
  background: rgba(5, 9, 18, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.05);
  margin: 0 auto 18px;
}

.phone-screen {
  background: rgba(9, 15, 23, 0.9);
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 16px;
}

.mini-header,
.mini-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.mini-header {
  margin-bottom: 14px;
  color: var(--white);
  font-weight: 600;
}

.online-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0, 242, 255, 0.08);
  color: var(--cyan);
  font-size: 0.7rem;
}

.online-pill::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
}

.mini-card {
  padding: 16px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.card-primary {
  background: rgba(255, 255, 255, 0.02);
}

.mini-label {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.8rem;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.mini-cell {
  display: grid;
  place-items: center;
  min-height: 32px;
  font-size: 0.7rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.mini-cell.selected {
  background: rgba(0, 242, 255, 0.12);
  color: var(--cyan);
  border: 1px solid rgba(0, 242, 255, 0.24);
}

.card-secondary {
  margin-top: 14px;
  background: linear-gradient(135deg, rgba(255, 209, 102, 0.06), rgba(0, 242, 255, 0.03));
}

.mini-row {
  color: var(--muted);
}

.mini-row strong {
  color: var(--white);
}

.steps-grid {
  position: relative;
  gap: 22px;
}

.step-card {
  position: relative;
  overflow: hidden;
}

.step-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--cyan), transparent);
}

.step-number {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 14px;
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: rgba(0, 242, 255, 0.08);
  color: var(--cyan);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.center-box {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 42px 30px;
  text-align: center;
}

.large-button {
  margin-top: 14px;
  padding-inline: 32px;
}

.legal {
  padding-top: 100px;
}

.legal-header {
  margin-bottom: 28px;
}

.legal-container {
  width: min(var(--legal-max), calc(100% - 30px));
}

.legal-hub {
  width: min(var(--legal-max), 100%);
  margin: 0 auto;
  padding: 18px 18px 20px;
  background: rgba(11, 17, 27, 0.92);
}

.legal-tabs {
  display: flex;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 18px;
}

.tab {
  flex: 1;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: var(--muted);
  min-height: 48px;
  font-weight: 600;
  transition: all 180ms ease;
}

.tab.is-active {
  background: rgba(0, 242, 255, 0.08);
  color: var(--white);
  border-color: rgba(0, 242, 255, 0.3);
  box-shadow: 0 0 0 1px rgba(0, 242, 255, 0.12), 0 0 18px rgba(0, 242, 255, 0.08);
}

.legal-panel {
  display: none;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}

.legal-panel.is-active {
  display: grid;
}

.toc-wrap {
  position: sticky;
  top: 100px;
  padding: 16px 14px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
}

.toc-toggle {
  display: none;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.01);
  color: var(--white);
  border-radius: 10px;
  width: 100%;
  min-height: 42px;
}

.toc {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.toc a {
  color: var(--muted);
  transition: color 180ms ease, transform 180ms ease;
  padding: 8px 10px;
  border-radius: 10px;
}

.toc a:hover,
.toc a:focus-visible {
  color: var(--white);
  background: rgba(0, 242, 255, 0.04);
  transform: translateX(2px);
}

.legal-copy {
  padding: 26px 28px 18px;
  background: rgba(255, 255, 255, 0.015);
  border-radius: 18px;
}

.legal-copy h4 {
  margin: 0 0 8px;
  font-size: clamp(2rem, 4vw, 2.7rem);
  letter-spacing: -0.05em;
}

.last-updated {
  margin: 0 0 24px;
  color: var(--gold);
  font-weight: 600;
}

.legal-copy section {
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  margin-top: 24px;
}

.legal-copy h5 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: var(--white);
}

.legal-copy p {
  margin: 0;
}

.legal-copy a {
  color: var(--cyan);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.site-footer {
  margin: 0 auto 36px;
  width: min(var(--content-max), calc(100% - 32px));
  background: rgba(10, 16, 26, 0.92);
  padding: 26px 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 28px;
  align-items: center;
}

.footer-brand {
  margin-bottom: 14px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  justify-content: center;
  color: var(--muted);
}

.footer-contact {
  text-align: right;
  color: var(--muted);
}

.footer-contact a {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
}

@media (max-width: 980px) {
  .hero-grid,
  .split-layout,
  .legal-panel,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

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

  .nav-cta {
    display: none;
  }

  .footer-contact {
    text-align: left;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-menu {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 12px);
    display: none;
    flex-direction: column;
    align-items: flex-start;
    padding: 18px 16px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(11, 17, 27, 0.96);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.2);
  }

  .nav-menu.is-open {
    display: flex;
  }

  .hero {
    padding-top: 60px;
  }

  .feature-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }

  .toc-wrap {
    position: static;
    padding: 12px;
  }

  .toc-toggle {
    display: block;
  }

  .toc {
    display: none;
    margin-top: 8px;
  }

  .toc.is-open {
    display: flex;
  }

  .legal-copy {
    padding: 20px 18px 12px;
  }

  .site-header {
    padding-top: 0;
  }

  .nav {
    min-height: 70px;
  }
}

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

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
