/* Playround — tokens mirror Imposter/Theme/ImposterTheme.swift (dark) */
:root {
  --night: #001523;
  --night-surface: #0A1E2B;
  --accent: #19A7CE;
  --safe: #16A34A;
  --imposter: #DC2626;
  --ink: #FFFFFF;
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.64);
  --ink-4: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.08);
  --radius-tile: 20px;
  --radius-card: 24px;
  --glow: linear-gradient(180deg, var(--night) 0%, var(--night) 42%, rgba(25, 167, 206, 0.015) 45.6%, rgba(25, 167, 206, 0.057) 49.2%, rgba(25, 167, 206, 0.124) 52.8%, rgba(25, 167, 206, 0.207) 56.4%, rgba(25, 167, 206, 0.3) 60%, rgba(25, 167, 206, 0.393) 63.6%, rgba(25, 167, 206, 0.476) 67.2%, rgba(25, 167, 206, 0.543) 70.8%, rgba(25, 167, 206, 0.585) 74.4%, rgba(25, 167, 206, 0.6) 78%, rgba(25, 167, 206, 0.585) 80.2%, rgba(25, 167, 206, 0.543) 82.4%, rgba(25, 167, 206, 0.476) 84.6%, rgba(25, 167, 206, 0.393) 86.8%, rgba(25, 167, 206, 0.3) 89%, rgba(25, 167, 206, 0.207) 91.2%, rgba(25, 167, 206, 0.124) 93.4%, rgba(25, 167, 206, 0.057) 95.6%, rgba(25, 167, 206, 0.015) 97.8%, rgba(25, 167, 206, 0) 100%);
  --gutter: 64px;
  --font: "Google Sans Flex", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--ink);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--gutter); }
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.h2 { font-size: 56px; line-height: 1.07; font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; }
.muted { color: var(--ink-3); }

/* Nav */
.nav { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; padding-bottom: 28px; }
.brand { display: flex; align-items: center; gap: 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
/* Hairline edge so the dark app icon doesn't melt into the night background */
.brand img, .cta img { outline: 0.5px solid rgba(255, 255, 255, 0.22); outline-offset: -0.5px; }
.nav-links { display: flex; align-items: center; gap: 36px; font-size: 17px; }
.nav-links a:not(.pill) { color: var(--ink-2); transition: color 0.2s; }
.nav-links a:not(.pill):hover { color: var(--ink); }
.pill { display: inline-flex; align-items: center; padding: 11px 20px; border-radius: 999px; background: var(--accent); color: var(--night); font-weight: 600; font-size: 16px; transition: transform 0.2s, filter 0.2s; }
.pill:hover { filter: brightness(1.08); transform: translateY(-1px); }

/* App Store button */
.store { display: inline-flex; align-items: center; gap: 12px; padding: 14px 26px 14px 22px; border-radius: 16px; background: #FFFFFF; color: var(--night); transition: transform 0.2s, box-shadow 0.2s; }
.store:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(25, 167, 206, 0.28); }
.store svg { width: 26px; height: 30px; fill: var(--night); }
.store small { display: block; font-size: 12px; line-height: 14px; }
.store strong { display: block; font-size: 21px; line-height: 24px; font-weight: 600; letter-spacing: -0.01em; }

/* Phone frame */
.phone { flex-shrink: 0; padding: 10px; border-radius: 58px; background: #0A0D10; border: 2px solid rgba(255, 255, 255, 0.16); box-shadow: 0 50px 100px rgba(0, 0, 0, 0.55); }
.phone > img, .phone > video { width: 330px; aspect-ratio: 1206 / 2622; height: auto; border-radius: 48px; object-fit: cover; background: var(--night); }
.phone.sm { padding: 9px; border-radius: 52px; border-color: rgba(255, 255, 255, 0.14); }
.phone.sm > img { width: 290px; border-radius: 43px; }

/* Hero */
.hero { background: var(--glow); overflow: hidden; }
.hero-copy { display: flex; flex-direction: column; align-items: center; gap: 24px; padding-top: 96px; text-align: center; }
.hero h1 { font-size: 88px; line-height: 1.05; font-weight: 700; letter-spacing: -0.015em; }
.hero-sub { max-width: 560px; font-size: 21px; line-height: 32px; color: var(--ink-3); }
.phones { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 40px; height: 620px; margin-top: 40px; padding-top: 24px; }
.phones .left { transform: translateY(90px) rotate(-6deg); }
.phones .right { transform: translateY(90px) rotate(6deg); }
.phones .center { position: relative; z-index: 2; }
.phones::after { content: ""; position: absolute; inset: auto 0 0 0; height: 220px; background: linear-gradient(180deg, rgba(0, 21, 35, 0) 0%, var(--night) 100%); z-index: 3; pointer-events: none; }

/* Games */
.games { padding-top: 140px; padding-bottom: 120px; display: flex; flex-direction: column; gap: 56px; }
.games-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.games-head .eyebrow { margin-bottom: 16px; }
.games-head p { max-width: 400px; font-size: 19px; line-height: 30px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-small { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.card { display: flex; flex-direction: column; border-radius: var(--radius-card); overflow: hidden; background: var(--night-surface); border: 1px solid rgba(255, 255, 255, 0.06); }
.card img { width: 100%; aspect-ratio: 1360 / 768; object-fit: cover; }
.card-body { display: flex; flex-direction: column; gap: 6px; padding: 22px 24px 26px; }
.card h3 { font-size: 22px; font-weight: 600; }
.card p { font-size: 16px; line-height: 24px; color: var(--ink-3); }
.card.feature img { flex: 1; min-height: 0; aspect-ratio: auto; height: 100%; max-height: 430px; }
.card.feature .card-body { gap: 10px; padding: 32px 36px 36px; margin-top: auto; }
.card.feature h3 { display: flex; align-items: center; gap: 12px; font-size: 34px; letter-spacing: -0.01em; }
.card.feature p { font-size: 18px; line-height: 28px; }
.tag { padding: 5px 12px; border-radius: 999px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
.tag.red { background: rgba(220, 38, 38, 0.14); color: #F25C5C; }
.tag.blue { background: rgba(25, 167, 206, 0.14); color: var(--accent); }
.meta { padding-top: 6px; font-size: 15px; color: var(--ink-4); }
.soon { display: flex; align-items: center; margin-top: -40px; border-radius: var(--radius-card); overflow: hidden; background: var(--night-surface); border: 1px dashed rgba(25, 167, 206, 0.4); }
.soon img { width: 420px; flex-shrink: 0; aspect-ratio: 1360 / 768; object-fit: cover; }
.soon div { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 32px 56px; }
.soon h3 { font-size: 32px; font-weight: 600; letter-spacing: -0.01em; }
.soon p { max-width: 560px; font-size: 18px; line-height: 28px; color: var(--ink-3); }

/* Launch film */
.film { padding-top: 140px; display: flex; flex-direction: column; gap: 56px; }
.film-player { position: relative; aspect-ratio: 16 / 9; border-radius: 28px; overflow: hidden; background: #000; border: 1px solid rgba(255, 255, 255, 0.08); box-shadow: 0 50px 120px rgba(0, 0, 0, 0.5), 0 0 140px rgba(25, 167, 206, 0.1); }
.film-player video { width: 100%; height: 100%; object-fit: cover; }
.film-play { all: unset; position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 18px; cursor: pointer; background: radial-gradient(ellipse 45% 40% at center, rgba(0, 21, 35, 0.72) 0%, rgba(0, 21, 35, 0.35) 70%, rgba(0, 21, 35, 0.5) 100%); transition: background 0.3s; }
.film-play:hover { background: radial-gradient(ellipse 45% 40% at center, rgba(0, 21, 35, 0.6) 0%, rgba(0, 21, 35, 0.25) 70%, rgba(0, 21, 35, 0.4) 100%); }
.film-play:focus-visible { outline: 2px solid var(--accent); outline-offset: -6px; border-radius: 28px; }
.film-play-icon { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 50%; background: #fff; box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45); transition: transform 0.25s; }
.film-play:hover .film-play-icon { transform: scale(1.06); }
.film-play-icon svg { width: 34px; height: 34px; fill: var(--night); margin-left: 4px; }
.film-play-text { display: flex; flex-direction: column; text-align: left; }
.film-play-text { text-shadow: 0 2px 16px rgba(0, 21, 35, 0.8); }
.film-play-text strong { font-size: 24px; font-weight: 600; letter-spacing: -0.01em; }
.film-play-text small { font-size: 16px; color: var(--ink-2); }
.film-player.playing .film-play { display: none; }

/* How it works */
.how { background: var(--night-surface); }
.how .wrap { display: flex; align-items: center; gap: 120px; padding-top: 120px; padding-bottom: 140px; padding-left: 160px; padding-right: 120px; }
.how .phone { box-shadow: 0 50px 100px rgba(0, 0, 0, 0.45), 0 0 120px rgba(22, 163, 74, 0.12); }
.steps { display: flex; flex-direction: column; gap: 36px; flex: 1; }
.steps .h2 { margin-top: 16px; margin-bottom: 20px; }
.step { all: unset; display: flex; gap: 28px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.1); cursor: pointer; position: relative; }
.step::before { content: ""; position: absolute; top: -1px; left: 0; height: 2px; width: 0; background: var(--accent); }
.step.active::before { width: var(--progress, 0%); }
.step .num { width: 56px; flex-shrink: 0; font-size: 20px; font-weight: 500; color: var(--accent); }
.step h3 { font-size: 26px; font-weight: 600; margin-bottom: 8px; transition: color 0.3s; }
.step p { font-size: 18px; line-height: 28px; color: var(--ink-3); }
.steps.playing .step:not(.active) h3 { color: var(--ink-4); }
.steps.playing .step:not(.active) p { color: rgba(255, 255, 255, 0.4); }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding-top: 120px; }
.trust > div { display: flex; flex-direction: column; gap: 14px; padding: 36px; border-radius: var(--radius-card); border: 1px solid var(--line); }
.trust svg { width: 28px; height: 28px; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.trust h3 { font-size: 22px; font-weight: 600; }
.trust p { font-size: 17px; line-height: 26px; color: var(--ink-3); }

/* Final CTA + footer share one eased gradient so there's no seam */
.cta-wrap { background-color: var(--night); background-image: linear-gradient(180deg, var(--night) 0%, var(--night) 28%, rgba(25, 167, 206, 0.012) 34%, rgba(25, 167, 206, 0.048) 40%, rgba(25, 167, 206, 0.105) 46%, rgba(25, 167, 206, 0.18) 52%, rgba(25, 167, 206, 0.267) 58%, rgba(25, 167, 206, 0.36) 64%, rgba(25, 167, 206, 0.453) 70%, rgba(25, 167, 206, 0.54) 76%, rgba(25, 167, 206, 0.615) 82%, rgba(25, 167, 206, 0.672) 88%, rgba(25, 167, 206, 0.708) 94%, rgba(25, 167, 206, 0.72) 100%); }
.cta { display: flex; flex-direction: column; align-items: center; gap: 32px; padding: 160px var(--gutter) 180px; text-align: center;  }
.cta img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45); }
.cta h2 { font-size: 72px; line-height: 1.05; font-weight: 700; letter-spacing: -0.02em; }
.cta p { font-size: 20px; line-height: 30px; color: var(--ink-2); }
.footer { border-top: 1px solid var(--line); }
.footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 28px; padding-bottom: 36px; font-size: 16px; }
.footer .copy { display: flex; align-items: center; gap: 10px; }
.footer .copy strong { font-size: 18px; font-weight: 600; }
.footer .copy span { color: var(--ink-4); }
.footer nav { display: flex; gap: 32px; font-weight: 500; }
.footer nav a { color: var(--ink-2); transition: color 0.2s; }
.footer nav a:hover, .footer nav a[aria-current] { color: var(--accent); }
.footer.on-glow { background: transparent; border-top: 0; }
.footer.on-glow .copy span { color: rgba(255, 255, 255, 0.85); }
.footer.on-glow nav a { color: #FFFFFF; }
.footer.on-glow nav a:hover { color: var(--night); }

/* Legal / support pages */
.page-head { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 120px var(--gutter) 72px; border-bottom: 1px solid var(--line); text-align: center; }
.page-head h1 { font-size: 64px; line-height: 1.06; font-weight: 700; letter-spacing: -0.02em; }
.page-head p { font-size: 17px; color: rgba(255, 255, 255, 0.55); }
.doc { display: flex; flex-direction: column; gap: 48px; max-width: 720px; margin: 0 auto; padding: 72px 0 140px; }
.doc.faq { gap: 40px; }
.callout { display: flex; gap: 20px; padding: 28px 32px; border-radius: var(--radius-tile); background: rgba(25, 167, 206, 0.08); border: 1px solid rgba(25, 167, 206, 0.28); }
.callout svg { width: 28px; height: 28px; flex-shrink: 0; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.callout h2 { font-size: 20px; font-weight: 600; margin-bottom: 6px; }
.callout p { font-size: 18px; line-height: 28px; color: var(--ink-2); }
.doc section h2 { font-size: 26px; font-weight: 600; margin-bottom: 12px; }
.doc section p { font-size: 18px; line-height: 30px; color: var(--ink-2); }
.doc.faq section { padding-top: 32px; border-top: 1px solid var(--line); }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Tablet */
@media (max-width: 1100px) {
  :root { --gutter: 40px; }
  .hero h1 { font-size: 72px; }
  .phones .left, .phones .right { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card.feature img { max-height: none; aspect-ratio: 1360 / 768; }
  .how .wrap { gap: 64px; padding-left: var(--gutter); padding-right: var(--gutter); }
  .soon { flex-direction: column; align-items: stretch; margin-top: -40px; }
  .soon img { width: 100%; }
  .soon div { padding: 28px 32px 32px; }
}

/* Phone */
@media (max-width: 720px) {
  :root { --gutter: 20px; }
  body { font-size: 16px; }
  .nav-links a:not(.pill) { display: none; }
  .hero-copy { padding-top: 48px; gap: 20px; }
  .hero h1 { font-size: 48px; }
  .hero-sub { font-size: 18px; line-height: 28px; }
  .phones { height: 480px; margin-top: 24px; }
  .phone > img, .phone > video { width: 260px; border-radius: 40px; }
  .phone { border-radius: 50px; padding: 9px; }
  .h2 { font-size: 40px; }
  .games { padding-top: 80px; padding-bottom: 80px; gap: 40px; }
  .film { padding-top: 72px; gap: 32px; }
  .film-player { border-radius: 18px; }
  .film-play { flex-direction: column; gap: 12px; }
  .film-play-icon { width: 68px; height: 68px; }
  .film-play-icon svg { width: 26px; height: 26px; }
  .film-play-text { text-align: center; }
  .film-play-text strong { font-size: 19px; }
  .games-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .grid-small { grid-template-columns: 1fr; }
  .card.feature .card-body { padding: 24px; }
  .card.feature h3 { font-size: 28px; }
  .soon { margin-top: -24px; }
  .how .wrap { flex-direction: column-reverse; align-items: stretch; padding-top: 80px; padding-bottom: 80px; gap: 48px; }
  .how .phone { align-self: center; }
  .step { gap: 16px; }
  .step .num { width: 32px; font-size: 17px; }
  .step h3 { font-size: 21px; }
  .step p { font-size: 16px; line-height: 25px; }
  .trust { grid-template-columns: 1fr; padding-top: 80px; }
  .trust > div { padding: 28px; }
  .cta { padding: 100px var(--gutter) 120px; gap: 24px; }
  .cta img { width: 88px; height: 88px; border-radius: 20px; }
  .cta h2 { font-size: 44px; }
  .cta p { font-size: 17px; }
  .footer .wrap { flex-direction: column; align-items: flex-start; }
  .footer nav { gap: 24px; }
  .page-head { padding-top: 64px; padding-bottom: 48px; }
  .page-head h1 { font-size: 44px; }
  .doc { padding: 48px var(--gutter) 96px; gap: 40px; }
  .callout { padding: 22px; gap: 14px; }
  .doc section h2 { font-size: 22px; }
  .doc section p { font-size: 16px; line-height: 27px; }
}
