:root {
  --bg: #fbfbfd;
  --surface: #ffffff;
  --surface-2: #f2f2f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: rgba(0, 0, 0, 0.08);
  --accent: #0071e3;
  --glow-1: rgba(0, 113, 227, 0.18);
  --glow-2: rgba(175, 82, 222, 0.14);
  --glow-3: rgba(52, 199, 89, 0.12);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.06);
  --radius: 22px;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --surface-2: #2c2c2e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: rgba(255, 255, 255, 0.1);
    --accent: #2997ff;
    --glow-1: rgba(41, 151, 255, 0.22);
    --glow-2: rgba(191, 90, 242, 0.18);
    --glow-3: rgba(48, 209, 88, 0.12);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.4);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 720px;
  z-index: -1;
  background:
    radial-gradient(40% 50% at 20% 10%, var(--glow-1), transparent 70%),
    radial-gradient(35% 45% at 80% 0%, var(--glow-2), transparent 70%),
    radial-gradient(40% 40% at 60% 40%, var(--glow-3), transparent 70%);
  pointer-events: none;
}

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

a:hover {
  text-decoration: underline;
}

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

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 16px;
}

header.site {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}

header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand:hover {
  text-decoration: none;
}

.monogram {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0071e3, #af52de);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 15px;
}

nav a {
  color: var(--muted);
  padding: 6px 12px;
  border-radius: 980px;
}

nav a:hover {
  color: var(--text);
  text-decoration: none;
}

nav a[aria-current='page'] {
  color: var(--text);
  background: var(--surface-2);
  font-weight: 500;
}

main.wrap {
  padding-top: 72px;
  padding-bottom: 96px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
}

h1 {
  font-size: clamp(40px, 7.5vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 14ch;
}

h1.short {
  max-width: none;
}

h2 {
  font-size: clamp(28px, 4.5vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.025em;
  margin: 96px 0 12px;
}

h3 {
  font-size: 21px;
  letter-spacing: -0.015em;
  margin: 0 0 6px;
}

.lede {
  font-size: clamp(19px, 2.6vw, 23px);
  line-height: 1.45;
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 36em;
}

.section-lede {
  color: var(--muted);
  margin: 0 0 28px;
  max-width: 40em;
}

.buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 980px;
  background: var(--accent);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

.button.secondary {
  background: var(--surface-2);
  color: var(--text);
}

.button:hover {
  text-decoration: none;
  filter: brightness(1.08);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  color: var(--text);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

a.card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.12);
}

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

  a.card:hover {
    transform: none;
  }
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.card .more {
  margin-top: auto;
  padding-top: 18px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 500;
}

.icon {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.icon.glyph {
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 700;
}

.glyph.red {
  background: linear-gradient(135deg, #ff453a, #c9184a);
}

.glyph.gray {
  background: linear-gradient(135deg, #8e8e93, #3a3a3c);
}

.glyph.green {
  background: linear-gradient(135deg, #34c759, #0a7d32);
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-top: 96px;
}

.stats div {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface-2);
}

.stats strong {
  display: block;
  font-size: 44px;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.stats span {
  color: var(--muted);
  font-size: 15px;
}

.feature {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  padding: 40px;
  margin-bottom: 20px;
}

.feature h2 {
  margin: 0 0 12px;
}

.feature p {
  font-size: 17px;
}

.feature .art {
  display: flex;
  justify-content: center;
}

.phone {
  width: 220px;
  border-radius: 34px;
  border: 6px solid #1d1d1f;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}

.big-icon {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.tags li {
  padding: 4px 12px;
  border-radius: 980px;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

.links-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 20px;
  font-size: 15px;
  font-weight: 500;
}

.games {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 16px 12px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.3;
}

.games img {
  width: 64px;
  height: 64px;
  margin: 0 auto 6px;
  border-radius: 15px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.prose {
  max-width: 40em;
}

.prose p {
  margin: 0 0 18px;
}

.values {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.values .card {
  padding: 24px;
}

.values .emoji {
  font-size: 28px;
  margin-bottom: 10px;
}

.contact-list {
  display: grid;
  gap: 16px;
  max-width: 640px;
}

.contact-list .card {
  flex-direction: row;
  align-items: center;
  gap: 18px;
  padding: 20px 24px;
}

.contact-list .icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin: 0;
  flex: none;
}

.contact-list .icon.glyph {
  font-size: 22px;
}

.contact-list h3 {
  font-size: 18px;
  margin: 0;
}

.contact-list p {
  font-size: 15px;
}

.contact-list .chevron {
  margin-left: auto;
  color: var(--muted);
  font-size: 22px;
}

footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  padding: 24px 0 40px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
}

footer.site a {
  color: var(--muted);
}

@media (max-width: 720px) {
  .feature {
    grid-template-columns: 1fr;
    padding: 28px;
  }

  .feature .art {
    order: -1;
  }

  .phone {
    width: 150px;
    border-radius: 26px;
    border-width: 5px;
  }

  .big-icon {
    width: 128px;
    height: 128px;
    border-radius: 29px;
  }

  h2 {
    margin-top: 72px;
  }

  .stats {
    margin-top: 72px;
  }
}

/* ---- mockup refinements ---- */
.shelf {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 48px;
}

.shelf img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease;
}

.shelf:hover img {
  transform: translateY(-2px);
}

.badge {
  display: inline-block;
  margin: 0 0 12px;
  padding: 3px 10px;
  border-radius: 980px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.badge.live {
  background: color-mix(in srgb, #34c759 16%, transparent);
  color: #1f8f3e;
}

.badge.beta {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}

@media (prefers-color-scheme: dark) {
  .badge.live {
    color: #30d158;
  }
}

.highlights {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px 20px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--muted);
}

.highlights strong {
  display: block;
  color: var(--text);
  font-weight: 600;
}

.links-row {
  align-items: center;
}

.button.small {
  min-height: 36px;
  padding: 6px 16px;
  font-size: 15px;
}

.game-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 8px;
  margin: 8px 0 0;
  padding: 24px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.game-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  border-radius: 16px;
  color: var(--text);
}

.game-list a:hover {
  text-decoration: none;
  background: var(--surface-2);
}

.game-list img {
  width: 56px;
  height: 56px;
  flex: none;
  border-radius: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.game-list span {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.game-list strong {
  font-size: 16px;
}

.game-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 14px;
}

.game-list small {
  margin-top: 2px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
}

.values {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr));
}

.icon.small {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  margin-bottom: 14px;
  font-size: 24px;
}

.glyph.blue {
  background: linear-gradient(135deg, #0a84ff, #0040dd);
}

.glyph.purple {
  background: linear-gradient(135deg, #bf5af2, #7d2ae8);
}

@media (prefers-reduced-motion: reduce) {
  .shelf img {
    transition: none;
  }

  .shelf:hover img {
    transform: none;
  }
}
