:root {
  --navy: #0b2b63;
  --navy-deep: #061f4c;
  --blue: #2f58dd;
  --yellow: #ffc83d;
  --coral: #ff6b5d;
  --cream: #fbf7ec;
  --paper: #fffdf7;
  --ink: #10284f;
  --muted: #56647b;
  --line: #d9deea;
  --white: #fff;
  --shadow: 0 24px 60px rgba(5, 26, 67, .14);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.58;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: .7rem 1rem;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
  transform: translateY(-150%);
}

.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }

.site-header {
  position: relative;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: fit-content;
  color: var(--navy);
  font-size: 1.1rem;
  font-weight: 850;
  letter-spacing: -.02em;
  text-decoration: none;
}

.brand img { border-radius: 12px; }

.main-nav { display: none; align-items: center; gap: 28px; }
.main-nav a { font-weight: 700; text-decoration: none; }
.main-nav a:hover { color: var(--blue); }

.language-picker { position: relative; }
.language-picker summary {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 72px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .7);
  cursor: pointer;
  font-size: .86rem;
  font-weight: 800;
  list-style: none;
}
.language-picker summary::-webkit-details-marker { display: none; }
.language-menu {
  position: absolute;
  top: calc(100% + 9px);
  right: 0;
  display: grid;
  min-width: 160px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 14px 36px rgba(5, 26, 67, .16);
}
.language-menu a { padding: 10px 14px; text-decoration: none; }
.language-menu a:hover, .language-menu a[aria-current="page"] { background: #eef2ff; font-weight: 800; }

.hero {
  display: grid;
  min-height: calc(100svh - 80px);
  overflow: hidden;
  background:
    radial-gradient(circle at 90% 10%, rgba(47, 88, 221, .14), transparent 28%),
    radial-gradient(circle at 10% 95%, rgba(255, 107, 93, .13), transparent 28%),
    var(--cream);
}

.hero-copy {
  width: min(590px, calc(100% - 32px));
  margin: 0 auto;
  padding: 66px 0 34px;
}

.eyebrow {
  margin: 0 0 16px;
  color: #2854c4;
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -.04em; }
h1 { max-width: 720px; margin-bottom: 22px; font-size: clamp(2.75rem, 11vw, 5.75rem); }
h2 { margin-bottom: 20px; font-size: clamp(2rem, 7vw, 3.75rem); }
h3 { margin-bottom: 10px; font-size: 1.35rem; }

.lede { max-width: 610px; margin-bottom: 28px; color: var(--muted); font-size: clamp(1.05rem, 2.4vw, 1.3rem); }

.store-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store-badge {
  display: grid;
  place-items: center;
  width: 180px;
  height: 60px;
  border-radius: 10px;
  text-decoration: none;
}
.store-badge img { width: 100%; height: 100%; object-fit: contain; }
.store-badge:hover { transform: translateY(-1px); filter: brightness(.94); }
.store-note { margin: 14px 0 0; color: var(--muted); font-size: .8rem; }

.hero-visual {
  position: relative;
  display: grid;
  place-items: end center;
  min-height: 560px;
  padding: 40px 22px 0;
}
.phone {
  position: relative;
  z-index: 3;
  width: min(76vw, 330px);
  padding: 9px;
  border: 5px solid var(--navy);
  border-bottom: 0;
  border-radius: 40px 40px 0 0;
  background: var(--navy);
  box-shadow: var(--shadow);
}
.phone::before { content: ""; position: absolute; z-index: 1; top: 15px; left: 50%; width: 36%; height: 18px; border-radius: 99px; background: var(--navy); transform: translateX(-50%); }
.phone img { border-radius: 28px 28px 0 0; }
.tile {
  position: absolute;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 74px;
  aspect-ratio: 1;
  border: 3px solid rgba(255, 255, 255, .7);
  border-radius: 21px;
  color: var(--navy);
  background: var(--yellow);
  box-shadow: 0 16px 28px rgba(5, 26, 67, .18);
  font-size: 2.25rem;
  font-weight: 900;
  transform: rotate(-7deg);
}
.tile--q { top: 36px; right: 9%; color: var(--white); background: var(--coral); transform: rotate(10deg); }
.tile--k { left: 6%; bottom: 22%; }
.tile--4 { right: 4%; bottom: 10%; color: var(--white); background: var(--blue); transform: rotate(8deg); }
.spark { position: absolute; border-radius: 50%; }
.spark--one { top: 18%; left: 3%; width: 90px; height: 90px; background: rgba(47, 88, 221, .16); }
.spark--two { right: -30px; bottom: 18%; width: 120px; height: 120px; background: rgba(255, 200, 61, .25); }

.section { padding: 88px max(16px, calc((100% - 1120px) / 2)); }
.section-heading { max-width: 760px; margin-bottom: 44px; }
.section-heading > p:last-child, .download-card p { color: var(--muted); }

.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.steps li { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .65); }
.steps li > span { display: inline-grid; place-items: center; width: 42px; height: 42px; margin-bottom: 32px; border-radius: 50%; color: var(--navy); background: var(--yellow); font-size: .78rem; font-weight: 900; }
.steps p { margin-bottom: 0; color: var(--muted); }

.games { overflow: hidden; color: var(--white); background: var(--navy); }
.section-heading--light > p:last-child { color: #cfdaef; }
.games .eyebrow { color: var(--yellow); }
.screenshots { display: flex; gap: 16px; overflow-x: auto; padding: 10px 4px 28px; scroll-snap-type: x mandatory; scrollbar-color: var(--yellow) rgba(255, 255, 255, .16); }
.screenshots figure { flex: 0 0 min(74vw, 278px); margin: 0; padding: 7px; border-radius: 30px; background: #173c7a; box-shadow: 0 20px 40px rgba(0, 0, 0, .22); scroll-snap-align: center; }
.screenshots img { border-radius: 24px; }

.download { display: grid; gap: 22px; }
.download-card { border-radius: 30px; }
.download-card { display: grid; gap: 28px; padding: 34px; color: var(--white); background: var(--blue); box-shadow: var(--shadow); }
.download-card .eyebrow, .download-card p { color: #f2f5ff; }

footer {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 32px max(16px, calc((100% - 1120px) / 2));
  border-top: 1px solid var(--line);
  background: var(--paper);
  font-size: .88rem;
}
footer p { margin: 0; color: var(--muted); }
.footer-copy { display: grid; gap: 3px; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { font-weight: 750; text-underline-offset: 4px; }

@media (min-width: 760px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .main-nav { display: flex; }
  .hero { grid-template-columns: minmax(0, 1.05fr) minmax(390px, .95fr); align-items: center; }
  .hero-copy { width: auto; margin-left: max(32px, calc((100vw - 1180px) / 2)); padding: 64px 20px 64px 0; }
  .hero-visual { align-self: stretch; min-height: 700px; }
  .phone { width: min(30vw, 370px); }
  .hero-copy .store-actions { justify-content: flex-start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .download-card { grid-template-columns: minmax(0, 1.4fr) minmax(260px, .6fr); align-items: center; padding: 48px; }
  footer { grid-template-columns: auto 1fr auto; }
}

@media (min-width: 1040px) {
  .hero-visual { min-height: 760px; }
  .screenshots { gap: 24px; justify-content: center; overflow: visible; }
  .screenshots figure { flex-basis: 250px; }
  .download-card { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
