:root {
  --bg: #12132b;
  --bg-2: #181a3a;
  --surface: #1d1f45;
  --surface-2: #272a5c;
  --border: #353978;
  --text: #f4f4ff;
  --muted: #a6a9d9;
  --accent: #3ddc97;
  --accent-ink: #052e1c;
  --orange: #ff8a4c;
  --gold: #ffc93c;
  --pink: #ff6fa3;
  --violet: #a08cff;
  --sky: #4cc3ff;
  --radius: 22px;
  --max: 1120px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-rounded, 'SF Pro Rounded', 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 3px;
}

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

h1,
h2,
h3 {
  line-height: 1.15;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.wrap {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
}

.skip {
  position: absolute;
  left: -999px;
}

.skip:focus {
  left: 16px;
  top: 16px;
  z-index: 10;
  background: var(--accent);
  color: var(--accent-ink);
  padding: 8px 12px;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 800;
  font-size: 19px;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

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

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

/* Buttons */
.play-badge {
  display: inline-block;
  line-height: 0;
  border-radius: 12px;
}

.play-badge img {
  height: 84px;
  width: auto;
  margin: -13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 14px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 800;
  text-decoration: none;
}

/* Hero */
.hero {
  padding: 56px 0 40px;
  overflow: hidden;
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
}

.eyebrow b {
  color: var(--gold);
}

.hero h1 {
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 900;
}

.hero h1 .hl {
  color: var(--accent);
}

.lede {
  color: var(--muted);
  font-size: 19px;
  max-width: 34em;
  margin: 0 0 26px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}

.cta-note {
  color: var(--muted);
  font-size: 14px;
}

.phones {
  position: relative;
  display: flex;
  justify-content: center;
  min-height: 520px;
}

.phone {
  width: 250px;
  border-radius: 34px;
  border: 8px solid #0a0b1c;
  box-shadow:
    0 0 0 1px var(--border),
    0 30px 60px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  background: var(--bg);
  flex: none;
}

.phone img {
  width: 100%;
  height: auto;
  aspect-ratio: 9 / 16;
}

.phones .phone.back {
  position: absolute;
  transform: translate(-46%, 34px) rotate(-8deg) scale(0.88);
  opacity: 0.9;
}

.phones .phone.front {
  position: relative;
  transform: translateX(22%) rotate(3deg);
}

/* Sections */
section {
  padding: 64px 0;
}

.section-head {
  max-width: 640px;
  margin-bottom: 32px;
}

.section-head h2 {
  font-size: clamp(30px, 4vw, 42px);
  font-weight: 900;
}

.section-head p {
  color: var(--muted);
  margin: 0;
}

.alt {
  background: var(--bg-2);
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.card h3 {
  font-size: 20px;
}

.card p {
  color: var(--muted);
  margin: 0;
}

.dot-ic {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  margin-bottom: 16px;
  color: #12132b;
}

.dot-ic svg {
  width: 26px;
  height: 26px;
}

/* How to play */
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  counter-reset: step;
}

.step .phone {
  width: 100%;
  max-width: 260px;
  margin: 0 auto 18px;
}

.step h3 {
  font-size: 20px;
}

.step h3::before {
  counter-increment: step;
  content: counter(step);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 16px;
  vertical-align: 2px;
}

.step p {
  color: var(--muted);
  margin: 0;
}

/* Feature rows */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.feature-row + .feature-row {
  margin-top: 72px;
}

.feature-row.flip .media {
  order: 2;
}

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

.feature-row h2 {
  font-size: clamp(28px, 3.6vw, 38px);
  font-weight: 900;
}

.feature-row p {
  color: var(--muted);
}

.ticks {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 10px;
}

.ticks li {
  position: relative;
  padding-left: 30px;
}

.ticks 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 24 24' fill='none' stroke='%23052e1c' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E")
    center / 12px no-repeat;
}

/* Gallery */
.gallery {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 4px 18px;
}

.gallery .phone {
  width: 220px;
  scroll-snap-align: center;
}

/* FAQ */
.faq {
  display: grid;
  gap: 12px;
  max-width: 820px;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px 20px;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  float: right;
  color: var(--accent);
  font-weight: 900;
}

.faq details[open] summary::after {
  content: '–';
}

.faq details p {
  color: var(--muted);
  margin: 10px 0 0;
}

/* Final CTA */
.final {
  text-align: center;
}

.final .card {
  padding: 48px 24px;
  background: linear-gradient(160deg, #1f2257, #15163a);
}

.final img.logo {
  width: 84px;
  height: 84px;
  border-radius: 22px;
  margin: 0 auto 16px;
}

.final p {
  color: var(--muted);
  max-width: 30em;
  margin: 0 auto 24px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0 40px;
  color: var(--muted);
  font-size: 15px;
}

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

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

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

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

/* Legal and text pages */
.doc {
  max-width: 780px;
  padding: 48px 0 72px;
}

.doc h1 {
  font-size: clamp(32px, 5vw, 44px);
  font-weight: 900;
}

.doc h2 {
  font-size: 22px;
  margin-top: 36px;
}

.doc h3 {
  font-size: 18px;
  margin-top: 24px;
}

.doc p,
.doc li {
  color: #d6d7f2;
}

.doc .meta {
  color: var(--muted);
  margin-bottom: 28px;
}

.doc .summary {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 18px 22px;
}

.doc .summary ul {
  margin: 8px 0 0;
  padding-left: 20px;
}

.doc table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0;
  font-size: 15px;
}

.doc th,
.doc td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

.doc th {
  color: var(--text);
  background: var(--surface);
}

.table-scroll {
  overflow-x: auto;
}

.steps-list li {
  margin-bottom: 8px;
}

/* Responsive */
@media (max-width: 900px) {
  .hero .wrap,
  .feature-row {
    grid-template-columns: 1fr;
  }

  .feature-row.flip .media {
    order: 0;
  }

  .hero {
    padding-top: 36px;
  }

  .phones {
    min-height: 440px;
    margin-top: 12px;
  }

  .phone {
    width: 210px;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .nav {
    display: none;
  }

  .grid,
  .steps {
    grid-template-columns: 1fr;
  }

  section {
    padding: 48px 0;
  }

  .phones .phone.back {
    transform: translate(-40%, 28px) rotate(-8deg) scale(0.84);
  }

  .phones .phone.front {
    transform: translateX(18%) rotate(3deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
