:root {
  font-family: "Space Grotesk", sans-serif;
  color: #f8fbff;
  background:
    radial-gradient(circle at top, rgba(77, 143, 255, 0.24), transparent 30%),
    radial-gradient(circle at 15% 10%, rgba(237, 185, 75, 0.18), transparent 24%),
    linear-gradient(180deg, #0a157a 0%, #1c33c7 38%, #0a1b8b 100%);
  color-scheme: dark;
  --surface: rgba(18, 34, 112, 0.74);
  --line: rgba(124, 149, 255, 0.28);
  --text-muted: rgba(214, 225, 255, 0.78);
  --text-soft: rgba(214, 225, 255, 0.58);
  --gold: #edb94b;
  --red: #ff4d5a;
  --blue: #4d8fff;
  --orange: #ff8a3d;
  --green: #3fd36b;
  --violet: #9b5cff;
  --max-width: 1180px;
  --radius-xl: 34px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --shadow: 0 28px 90px rgba(5, 10, 45, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: #f8fbff;
  background:
    radial-gradient(circle at top, rgba(77, 143, 255, 0.24), transparent 30%),
    radial-gradient(circle at 15% 10%, rgba(237, 185, 75, 0.18), transparent 24%),
    linear-gradient(180deg, #0a157a 0%, #1c33c7 38%, #0a1b8b 100%);
}

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

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

.app-shell {
  width: min(calc(100% - 32px), var(--max-width));
  margin: 0 auto;
  padding-bottom: 132px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 0;
  backdrop-filter: blur(22px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(4, 10, 42, 0.28);
  object-fit: cover;
}

.topnav {
  display: inline-flex;
  align-items: center;
  gap: 18px;
  color: var(--text-muted);
}

.topnav a:hover,
.topnav a:focus-visible {
  color: #ffffff;
}

main {
  display: grid;
  gap: 34px;
}

.hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  min-height: calc(100vh - 120px);
  padding: 30px 0 10px;
}

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

.hero h1,
.cta-panel h2,
.section-heading h2 {
  margin: 0;
  font-family: "Plus Jakarta Sans", sans-serif;
  letter-spacing: -0.05em;
}

.hero h1 {
  max-width: 10ch;
  font-size: clamp(3.2rem, 10vw, 6.5rem);
  line-height: 0.92;
}

.hero-text,
.download-hint,
.feature-card p,
.step-card p,
.store-card p {
  color: var(--text-muted);
}

.hero-text {
  max-width: 37rem;
  margin: 20px 0 0;
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.72;
}

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

.download-hint {
  margin: 16px 0 0;
  font-size: 0.96rem;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-height: 60px;
  min-width: 210px;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(7, 17, 62, 0.86);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.store-button:hover,
.store-button:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.32);
}

.store-button-apple {
  background: linear-gradient(180deg, rgba(9, 16, 47, 0.96), rgba(8, 13, 36, 0.92));
}

.store-button-play {
  background: linear-gradient(180deg, rgba(8, 25, 66, 0.96), rgba(6, 18, 46, 0.92));
}

.store-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  flex-shrink: 0;
}

.store-icon svg,
.store-roundel svg {
  width: 22px;
  height: 22px;
}

.store-button small {
  display: block;
  color: var(--text-soft);
  font-size: 0.78rem;
}

.store-button strong {
  display: block;
  margin-top: 2px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1rem;
}

.highlight-list {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.highlight-list li {
  position: relative;
  padding-left: 24px;
  color: var(--text-muted);
}

.highlight-list li::before {
  content: "";
  position: absolute;
  top: 11px;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), var(--blue));
}

.hero-stage,
.stats-panel,
.feature-card,
.step-card,
.store-card,
.cta-panel {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02)), var(--surface);
  box-shadow: var(--shadow);
}

.hero-stage {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border-radius: var(--radius-xl);
}

.hero-stage::before {
  content: "";
  position: absolute;
  inset: auto -30px -70px auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(237, 185, 75, 0.28), transparent 65%);
}

.hero-media-card {
  position: relative;
  padding: 18px;
  border-radius: 26px;
  background: rgba(6, 13, 52, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-logo {
  width: 100%;
  border-radius: 22px;
  object-fit: cover;
  box-shadow: 0 20px 50px rgba(5, 10, 45, 0.28);
}

.hero-media-meta {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  margin-top: -32px;
  padding: 0 10px;
}

.app-icon {
  width: 88px;
  height: 88px;
  border-radius: 22px;
  border: 4px solid rgba(10, 21, 122, 0.9);
  box-shadow: 0 20px 40px rgba(4, 10, 42, 0.3);
}

.score-card {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.05);
}

.score-label,
.score-subtle,
.section-heading p,
.stats-panel span {
  color: var(--text-muted);
}

.score-card strong {
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 2rem;
  line-height: 1;
  color: #ffffff;
}

.board-boardwrap {
  margin-top: 22px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(11, 17, 62, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

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

.cell {
  aspect-ratio: 1;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.cell-empty {
  opacity: 0.55;
}

.tile-red {
  background: linear-gradient(145deg, #ff6370, #b91622);
}

.tile-blue {
  background: linear-gradient(145deg, #74b1ff, #1a4fab);
}

.tile-gold {
  background: linear-gradient(145deg, #ffd66d, #b8860b);
}

.tile-orange {
  background: linear-gradient(145deg, #ff9e5e, #b95a14);
}

.tile-green {
  background: linear-gradient(145deg, #61ea8d, #1b8a3f);
}

.tile-violet {
  background: linear-gradient(145deg, #bb85ff, #5b2db2);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius-lg);
}

.stats-panel article {
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.stats-panel strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
}

.content-section {
  display: grid;
  gap: 22px;
  padding: 12px 0;
}

.section-heading p {
  margin: 0 0 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 0.82rem;
}

.section-heading h2 {
  font-size: clamp(2rem, 4vw, 3.3rem);
  max-width: 13ch;
}

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

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

.store-card,
.feature-card,
.step-card {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.store-card-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.store-roundel {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}

.store-roundel-play {
  background: rgba(77, 143, 255, 0.14);
}

.store-card h3,
.feature-card h3,
.step-card h3 {
  margin: 0 0 10px;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 1.3rem;
}

.store-card p,
.feature-card p,
.step-card p {
  margin: 0;
  line-height: 1.7;
}

.step-card span {
  display: inline-flex;
  margin-bottom: 18px;
  color: var(--gold);
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cta-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border-radius: var(--radius-xl);
}

.cta-panel h2 {
  max-width: 14ch;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.mobile-download-bar {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(8, 16, 54, 0.95);
  backdrop-filter: blur(18px);
  box-shadow: 0 20px 44px rgba(4, 10, 42, 0.34);
}

.mobile-download-copy {
  min-width: 0;
}

.mobile-download-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--gold);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.mobile-download-copy strong {
  display: block;
  font-family: "Plus Jakarta Sans", sans-serif;
  font-size: 0.96rem;
  line-height: 1.25;
}

.mobile-download-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold), #ffd98b);
  color: #09113f;
  font-weight: 800;
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .hero,
  .store-grid,
  .feature-grid,
  .steps,
  .stats-panel {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 8px;
  }

  .cta-panel {
    display: grid;
  }
}

@media (max-width: 720px) {
  .app-shell {
    width: min(calc(100% - 20px), var(--max-width));
    padding-bottom: 160px;
  }

  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    flex-wrap: wrap;
    gap: 12px;
  }

  .hero h1 {
    font-size: clamp(2.7rem, 16vw, 4.4rem);
  }

  .hero-stage,
  .store-card,
  .feature-card,
  .step-card,
  .cta-panel {
    padding: 20px;
  }

  .store-button {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-media-meta {
    align-items: center;
    flex-direction: column;
    margin-top: 16px;
    padding: 0;
  }

  .app-icon {
    width: 76px;
    height: 76px;
  }

  .mobile-download-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .mobile-download-button {
    width: 100%;
  }
}
