@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit-Variable.ttf") format("truetype");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --navy: #071b4a;
  --navy-2: #0b2766;
  --blue: #087ef5;
  --blue-ink: #0a56b8;
  --cyan: #08c8dc;
  --purple: #6435f5;
  --violet: #923af2;
  --orange: #ff9500;
  --yellow: #ffc329;
  --green: #1f9d57;

  --bg: #f4f7fd;
  --surface: #ffffff;
  --line: #dfe6f4;
  --ink: #0f1f45;
  --muted: #526082;

  --on-dark: #ffffff;
  --on-dark-muted: #b9c6e8;

  --radius: 20px;
  --max: 1120px;
  --shadow: 0 1px 2px rgba(7, 27, 74, 0.06), 0 10px 30px rgba(7, 27, 74, 0.07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; }
a { color: var(--blue-ink); }
a:hover { color: var(--purple); }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
.on-dark :focus-visible, .site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--yellow); color: var(--navy);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }

.icon {
  width: 24px; height: 24px; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none;
}

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(7, 27, 74, 0.92);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: #fff; text-decoration: none;
  font-weight: 700; font-size: 1.35rem; letter-spacing: -0.01em;
}
.brand:hover { color: #fff; }
.brand img { width: 38px; height: 38px; }
.brand b { color: var(--orange); font-weight: 700; }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  color: var(--on-dark-muted); text-decoration: none; font-weight: 500;
  font-size: 1rem; padding: 8px 14px; border-radius: 999px;
}
.nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- hero ---------- */
.hero {
  color: var(--on-dark);
  background:
    radial-gradient(700px 420px at 88% 0%, rgba(100, 53, 245, 0.45), transparent 65%),
    radial-gradient(600px 400px at 0% 100%, rgba(8, 126, 245, 0.28), transparent 65%),
    var(--navy);
  padding: 72px 0 88px;
}
.hero .wrap {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--on-dark-muted); font-size: 0.9rem; font-weight: 500;
}
.eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 {
  margin: 20px 0 16px;
  font-size: clamp(2.5rem, 5.6vw, 4rem);
  line-height: 1.05; font-weight: 700; letter-spacing: -0.025em;
}
.hero h1 em { font-style: normal; color: var(--orange); }
.hero .lead { font-size: 1.2rem; color: var(--on-dark-muted); max-width: 520px; margin: 0 0 32px; }

.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 10px 20px 10px 16px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.07); border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff; line-height: 1.2; min-height: 56px;
}
.store .icon { width: 26px; height: 26px; color: var(--yellow); }
.store small { display: block; font-size: 0.75rem; color: var(--on-dark-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.store strong { font-size: 1.1rem; font-weight: 600; }
.hero .note { margin: 16px 0 0; font-size: 0.95rem; color: var(--on-dark-muted); }

/* demo card */
.demo {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 24px; padding: 20px;
  max-width: 400px; width: 100%; margin-left: auto;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}
.demo-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.demo-head p { margin: 0; font-weight: 600; font-size: 1rem; }
.demo-head p span { display: block; font-weight: 400; font-size: 0.85rem; color: var(--on-dark-muted); }
.score {
  background: rgba(255, 195, 41, 0.14); color: var(--yellow);
  border: 1px solid rgba(255, 195, 41, 0.4);
  padding: 4px 14px; border-radius: 999px; font-weight: 600; font-size: 0.95rem; white-space: nowrap;
}
.mini-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  padding: 16px; border-radius: 16px; background: rgba(7, 27, 74, 0.6);
}
.cell {
  appearance: none; border: 0; padding: 0; aspect-ratio: 1; border-radius: 50%; cursor: pointer;
  background: radial-gradient(circle at 30% 28%, #6db7ff, var(--blue) 75%);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s ease;
}
.cell:nth-child(3n+1) { background: radial-gradient(circle at 30% 28%, #c9a6ff, var(--purple) 78%); }
.cell:nth-child(4n+2) { background: radial-gradient(circle at 30% 28%, #7fe9f5, var(--cyan) 78%); }
.cell:active { transform: scale(0.93); }
.cell.target {
  background: transparent; box-shadow: 0 0 22px rgba(255, 149, 0, 0.7);
  border: 12px solid var(--orange);
}

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 640px; margin: 0 0 48px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  margin: 0 0 8px; font-size: 0.85rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-ink);
}
h2.title {
  margin: 0 0 12px; font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; color: var(--ink);
}
.sec-head p:last-child { margin: 0; color: var(--muted); font-size: 1.1rem; }

/* stats strip */
.strip { padding: 0; margin-top: -40px; position: relative; z-index: 2; }
.strip .wrap > div {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.stat { padding: 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: 1.9rem; line-height: 1.1; color: var(--ink); font-weight: 700; }
.stat span { color: var(--muted); font-size: 0.95rem; }

/* game cards */
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.game {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  overflow: hidden; display: flex; flex-direction: column;
}
.game .art {
  height: 170px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
}
.game .art svg { width: 120px; height: 120px; }
.game.ref .art { background: linear-gradient(135deg, #1a1f55, var(--navy-2)); }
.game.soon .art { background: repeating-linear-gradient(45deg, #eef2fb, #eef2fb 12px, #e6ecf8 12px, #e6ecf8 24px); }
.game.soon { border-style: dashed; box-shadow: none; background: transparent; }
.game .body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.game h3 { margin: 0; font-size: 1.35rem; font-weight: 700; letter-spacing: -0.01em; }
.game p { margin: 0; color: var(--muted); }
.tag {
  align-self: flex-start; margin-top: auto;
  padding: 4px 12px; border-radius: 999px;
  font-size: 0.82rem; font-weight: 600;
  background: #e5f6ec; color: #0e6b39;
}
.tag.later { background: #eceff7; color: var(--muted); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 0; margin: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; padding-top: 20px; border-top: 3px solid var(--line); position: relative; }
.steps li::before {
  content: "0" counter(s); display: block; margin-bottom: 8px;
  font-size: 0.95rem; font-weight: 700; color: var(--blue-ink); letter-spacing: 0.06em;
}
.steps li:first-child { border-top-color: var(--blue); }
.steps li:nth-child(2) { border-top-color: var(--purple); }
.steps li:nth-child(3) { border-top-color: var(--orange); }
.steps strong { display: block; font-size: 1.2rem; margin-bottom: 4px; }
.steps span { color: var(--muted); }

/* principles (dark band) */
.band { background: var(--navy); color: var(--on-dark); }
.band .kicker { color: var(--yellow); }
.band h2.title { color: #fff; }
.band .sec-head p:last-child { color: var(--on-dark-muted); }
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.perk {
  padding: 24px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(255, 255, 255, 0.12);
}
.perk .icon { width: 28px; height: 28px; color: var(--cyan); margin-bottom: 14px; }
.perk h3 { margin: 0 0 4px; font-size: 1.1rem; font-weight: 600; }
.perk p { margin: 0; color: var(--on-dark-muted); font-size: 0.98rem; }

/* ---------- footer ---------- */
.site-footer { background: #05143a; color: var(--on-dark-muted); padding: 48px 0 40px; font-size: 0.98rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 32px; justify-content: space-between; }
.site-footer .brand { margin-bottom: 8px; }
.site-footer p { margin: 0; max-width: 340px; }
.site-footer nav { display: flex; flex-direction: column; gap: 6px; }
.site-footer nav b { color: #fff; font-weight: 600; margin-bottom: 2px; }
.site-footer a { color: var(--on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .legal-line {
  flex-basis: 100%; padding-top: 24px; margin-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); font-size: 0.9rem; max-width: none;
}

/* ---------- legal pages ---------- */
.page-head { background: var(--navy); color: #fff; padding: 56px 0 72px; }
.page-head h1 { margin: 0 0 6px; font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }
.page-head p { margin: 0; color: var(--on-dark-muted); }
.legal { max-width: 800px; margin: -40px auto 64px; padding: 0 24px; position: relative; }
.paper {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: clamp(24px, 5vw, 48px);
}
.paper h2 { margin: 36px 0 8px; font-size: 1.3rem; font-weight: 700; color: var(--ink); letter-spacing: -0.01em; }
.paper h2:first-child { margin-top: 0; }
.paper p, .paper li { color: #2b3a5e; }
.paper ul { padding-left: 22px; }
.paper li { margin: 4px 0; }
.summary {
  background: #eaf6ef; border-left: 4px solid var(--green);
  border-radius: 10px; padding: 14px 18px; margin: 0 0 28px; font-weight: 500; color: #0e4d2b !important;
}

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .demo { margin: 0 auto; }
  .games, .steps { grid-template-columns: 1fr; }
  .perks { grid-template-columns: repeat(2, 1fr); }
  .strip .wrap > div { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .nav a:not(.keep) { display: none; }
  .perks { grid-template-columns: 1fr; }
  .store { flex: 1 1 100%; }
}

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

/* store badges (same icons + captions as the AppSeed site) */
.store svg { width: 24px; height: 24px; flex: none; }
.store svg.appl { color: #fff; }
.store { padding: 8px 16px 8px 12px; min-height: 52px; border-radius: 10px; text-decoration: none; transition: background 0.15s, border-color 0.15s; }
.store:hover { color: #fff; background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.4); }
.store > span { text-align: left; }
.store small { font-size: 0.68rem; letter-spacing: 0.02em; text-transform: none; }
.store strong { font-size: 1.05rem; }

/* footer bottom bar */
.site-footer .legal-line {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px;
}
.site-footer .legal-line p { max-width: none; }
.site-footer .legal-line a { text-decoration: underline; }
.site-footer .love { display: inline-flex; align-items: center; gap: 6px; }
.site-footer .love svg { width: 16px; height: 16px; }
.site-footer .love svg.flag { width: 22px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2); }
@media (max-width: 560px) { .site-footer .legal-line { flex-direction: column; text-align: center; } }
.site-footer .brand, .site-footer .brand:hover { color: #fff; text-decoration: none; }
