:root {
  --bg: #f7f9ff;
  --surface: #ffffff;
  --surface-alt: #edf1fc;
  --text: #24252c;
  --muted: #6e6a7c;
  --primary: #06165e;
  --accent: #2898fe;
  --border: rgba(6, 22, 94, 0.08);
  --shadow: 0 12px 32px rgba(6, 22, 94, 0.08);
  --hero-from: #020f5a;
  --hero-to: #0a2c95;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #11131c;
    --surface: #1b1e2c;
    --surface-alt: #232a45;
    --text: #f1f2f7;
    --muted: #a3a0b3;
    --primary: #c3cdff;
    --border: rgba(255, 255, 255, 0.08);
    --shadow: none;
    --hero-from: #050a2e;
    --hero-to: #0a1f6b;
  }
}
:root[data-theme="dark"] {
  --bg: #11131c;
  --surface: #1b1e2c;
  --surface-alt: #232a45;
  --text: #f1f2f7;
  --muted: #a3a0b3;
  --primary: #c3cdff;
  --border: rgba(255, 255, 255, 0.08);
  --shadow: none;
  --hero-from: #050a2e;
  --hero-to: #0a1f6b;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
/* One screen per section: a flick lands on the next section instead of midway. */
@media (min-width: 901px) and (min-height: 700px) {
  html { scroll-snap-type: y mandatory; }
}
/* Phone sections run taller than the screen; mandatory would jump past their ends. */
@media (max-width: 900px), (max-height: 699px) {
  html { scroll-snap-type: y proximity; }
}
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: "Lexend Deca", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.2; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; width: 100%; }

/* Header: clear over the navy hero, a frosted bar once the page scrolls under it. */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  color: #fff;
  transition: background-color .3s, box-shadow .3s, color .3s;
}
.site-header.is-solid {
  color: var(--text);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 var(--border);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; font-weight: 600; font-size: 20px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand em { font-style: normal; color: var(--accent); }
.site-header nav { display: flex; gap: 8px; }
.site-header nav a { text-decoration: none; font-size: 15px; font-weight: 500; opacity: .75; padding: 6px 12px; border-radius: 999px; transition: opacity .2s, background-color .2s; }
.site-header nav a:hover { opacity: 1; }
.site-header nav a.is-active { opacity: 1; background: rgba(40, 152, 254, 0.16); }
.menu-toggle { display: none; width: 44px; height: 44px; margin-right: -10px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; place-content: center; gap: 5px; }
.menu-toggle span { display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-open .menu-toggle span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .menu-toggle span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Pages */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 96px 0 48px;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  overflow: hidden;
}
.feature-page:nth-of-type(odd), .steps-section { background: var(--surface); }

/* Hero */
.hero {
  color: #fff;
  background:
    radial-gradient(ellipse 60% 70% at 78% 45%, rgba(40, 152, 254, 0.35), transparent 70%),
    linear-gradient(120deg, var(--hero-from), var(--hero-to));
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8fc7ff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lead { margin-top: 20px; font-size: 18px; color: rgba(255, 255, 255, 0.78); max-width: 520px; }
.store-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.store-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 10px 14px;
  border-radius: 14px;
  background: #fff;
  color: #06165e;
  text-decoration: none;
  line-height: 1.2;
}
.store-btn svg { width: 26px; height: 26px; flex: none; }
.store-btn small { display: block; font-size: 11px; color: #6e6a7c; }
.store-btn strong { display: block; font-size: 16px; font-weight: 600; }
.hero-note { margin-top: 16px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* Sized by width only: the screenshot sets the phone's height, so the bezel
   stays even. --w shrinks with short windows so both phones fit one page, and
   the box scales with it so the pair keeps the same overlap at every size. */
.hero-phones { --w: clamp(165px, calc((100svh - 300px) * 0.46), 250px); position: relative; width: calc(var(--w) * 1.75); height: calc(var(--w) * 2.07 + 40px); justify-self: center; }
.hero-phones .phone { position: absolute; width: var(--w); }
.hero-phones .phone:nth-child(1) { left: 0; top: 40px; width: calc(var(--w) * 0.92); transform: rotate(-6deg); opacity: 0.9; }
.hero-phones .phone:nth-child(2) { right: 0; top: 0; transform: rotate(4deg); z-index: 1; }
.in-view .hero-phones .phone { animation: float 6s ease-in-out infinite; }
.in-view .hero-phones .phone:nth-child(1) { animation-delay: -3s; }
@keyframes float { 50% { translate: 0 -12px; } }

.games {
  list-style: none;
  margin: 40px auto 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 12px;
}
.games li {
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  padding: 6px 14px;
  border-radius: 999px;
}

/* Screenshots come pre-framed in goldie's iPhone 17 Pro art (606×1252). */
.phone { display: block; height: auto; filter: drop-shadow(0 24px 32px rgba(0, 0, 0, 0.3)); }

.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 40px); letter-spacing: -0.01em; }
.kicker { display: block; font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }

/* Features */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.feature.reverse .feature-media { order: 2; }
.feature-media {
  display: flex;
  justify-content: center;
  padding: 32px 0;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 40%, rgba(40, 152, 254, 0.18), transparent 65%), var(--surface-alt);
}
/* Sized by the screen height so the whole phone fits one page. */
.feature-media .phone { width: min(280px, calc((100svh - 240px) / 2.07)); }
.feature h2 { font-size: clamp(26px, 3.2vw, 40px); }
.feature p { margin-top: 14px; color: var(--muted); font-size: 18px; }
.feature ul { margin: 24px 0 0; padding: 0; list-style: none; }
.feature li { position: relative; padding-left: 30px; margin: 12px 0; }
.feature li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}

/* How it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { background: var(--bg); border: 1px solid var(--border); border-radius: 24px; padding: 32px; counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  margin-bottom: 20px;
}
.steps h3 { font-size: 20px; }
.steps p { margin-top: 8px; color: var(--muted); }

/* Highlights */
.highlights { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.highlight { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow); }
.highlight .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-alt); color: var(--accent); margin-bottom: 16px; }
.highlight .icon svg { width: 22px; height: 22px; }
.highlight h3 { font-size: 17px; }
.highlight p { margin-top: 6px; color: var(--muted); font-size: 15px; }

/* Last page: call to action with the footer under it */
.cta-page { justify-content: space-between; padding-bottom: 0; }
.cta-page > .wrap:first-child { flex: 1; display: flex; align-items: center; }
.cta {
  width: 100%;
  border-radius: 32px;
  color: #fff;
  text-align: center;
  padding: 72px 24px;
  background:
    radial-gradient(ellipse 50% 80% at 50% 0%, rgba(40, 152, 254, 0.35), transparent 70%),
    linear-gradient(120deg, var(--hero-from), var(--hero-to));
}
.cta h2 { font-size: clamp(28px, 3.6vw, 44px); }
.cta p { margin-top: 12px; color: rgba(255, 255, 255, 0.75); font-size: 17px; }
.cta .store-buttons { justify-content: center; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0; margin-top: 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.site-footer .brand { color: var(--text); }
.copyright { margin-top: 10px; }
.credit { margin-top: 2px; font-size: 12px; opacity: .8; }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.social { display: flex; gap: 12px; }
.social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; color: #fff; transition: opacity .15s, transform .15s; }
.social a:hover { opacity: .85; transform: translateY(-1px); }
.social svg { width: 20px; height: 20px; }
.social .mail { background: #ea4335; }
.social .facebook { background: #0866ff; }
.social .youtube { background: #ff0000; }
.social .facebook svg, .social .youtube svg { width: 24px; height: 24px; }
/* ring keeps the black tile visible on the dark theme */
.social .tiktok { background: #000; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18); }
.social .tiktok svg { filter: drop-shadow(-1px -1px 0 #25f4ee) drop-shadow(1px 1px 0 #fe2c55); }


/* Entrance animations. Hidden only when landing.js runs (html.js), replayed each
   time a page becomes the one on screen; the index staggers siblings. */
.js [data-anim] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-anim="left"] { transform: translateX(-56px); }
.js [data-anim="right"] { transform: translateX(56px); }
.js [data-anim="zoom"] { transform: scale(.92); }
.js .in-view [data-anim] { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-anim] { opacity: 1; transform: none; transition: none; }
  .in-view .hero-phones .phone { animation: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 32px; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .store-buttons { justify-content: center; }
  .hero-phones { --w: 190px; }
  .feature { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .feature.reverse .feature-media { order: 0; }
  .feature-media .phone { width: 230px; }
  .feature ul { display: inline-block; text-align: left; }
  .highlights { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .steps, .highlights { grid-template-columns: 1fr; }
  .menu-toggle { display: grid; }
  /* Menu drops down under the bar, full width, hidden until the toggle opens it. */
  .site-header nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    padding: 8px 16px 16px;
    background: color-mix(in srgb, var(--bg) 96%, transparent);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 12px 24px rgba(6, 22, 94, 0.12), 0 1px 0 var(--border);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s, transform .25s, visibility 0s .25s;
  }
  .menu-open nav { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s; }
  .site-header nav a { font-size: 17px; padding: 12px 16px; border-radius: 12px; }
  .page { padding: 88px 0 40px; }
  .hero-phones { --w: 165px; }
  .feature-media .phone { width: 210px; }
  .site-footer .wrap { flex-direction: column; text-align: center; }
  .footer-links { justify-content: center; }
}
