:root {
  --ink-1000: #020d12;
  --ink-950: #061820;
  --ink-900: #09242e;
  --ink-850: #0c2d37;
  --ink-800: #123b46;
  --ink-700: #285663;
  --ink-600: #39717b;
  --cream-50: #fffaf0;
  --cream-100: #fff3d4;
  --cream-200: #efd9ac;
  --teal-400: #36e3c3;
  --teal-500: #18c7a8;
  --teal-600: #07947f;
  --orange-300: #ffbb5d;
  --orange-400: #f7a23a;
  --orange-500: #ee7b22;
  --gold-300: #ffe079;
  --text-primary: var(--cream-100);
  --text-secondary: #bdd2cf;
  --text-dim: #829ca1;
  --font: ui-rounded, "SF Pro Rounded", "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max-width: 1180px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--ink-950); }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--text-primary);
  background:
    radial-gradient(circle at 90% 8%, rgba(24, 199, 168, .11), transparent 30rem),
    radial-gradient(circle at 5% 38%, rgba(247, 162, 58, .06), transparent 25rem),
    var(--ink-950);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  opacity: .32;
  pointer-events: none;
  background:
    linear-gradient(28deg, transparent 48.8%, rgba(57, 113, 123, .15) 49.2% 50%, transparent 50.4%) 0 0 / 128px 128px,
    linear-gradient(90deg, transparent 48.8%, rgba(57, 113, 123, .10) 49.2% 50%, transparent 50.4%) 0 0 / 104px 104px;
  mask-image: linear-gradient(180deg, black, transparent 82%);
}
a { color: inherit; }
button { font: inherit; }
img, svg { display: block; max-width: 100%; }
.skip-link { position: fixed; left: 12px; top: -80px; z-index: 100; padding: 10px 16px; border-radius: 12px; background: var(--cream-100); color: var(--ink-950); font-weight: 800; }
.skip-link:focus { top: 12px; }

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 28px, var(--max-width));
  margin: 0 auto;
  padding: max(14px, env(safe-area-inset-top)) 0 8px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream-100); text-decoration: none; font-size: 20px; font-weight: 900; letter-spacing: -.03em; }
.brand img { border-radius: 13px; filter: drop-shadow(0 8px 16px rgba(0,0,0,.28)); }
.language-switcher { display: flex; gap: 3px; padding: 4px; border: 1.5px solid var(--ink-700); border-radius: 999px; background: rgba(6,24,32,.76); backdrop-filter: blur(12px); }
.language-switcher button { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; color: var(--text-secondary); background: transparent; font-size: 13px; font-weight: 900; cursor: pointer; }
.language-switcher button[aria-current="true"] { color: var(--ink-950); background: var(--teal-400); box-shadow: 0 0 20px rgba(54,227,195,.24); }
.language-switcher button:focus-visible, a:focus-visible { outline: 3px solid var(--orange-300); outline-offset: 3px; }

.hero {
  position: relative;
  display: grid;
  gap: 18px;
  width: min(100% - 28px, var(--max-width));
  min-height: calc(100svh - 74px);
  margin: 0 auto;
  padding: 54px 0 36px;
}
.hero__copy { position: relative; z-index: 4; }
.eyebrow { margin: 0 0 13px; color: var(--orange-300); font-size: 12px; font-weight: 900; letter-spacing: .15em; line-height: 1.4; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 760px; margin-bottom: 12px; font-size: clamp(3rem, 16vw, 6.7rem); font-weight: 950; letter-spacing: -.065em; line-height: .91; text-wrap: balance; }
h2 { margin-bottom: 14px; font-size: clamp(2.25rem, 10vw, 4.6rem); font-weight: 930; letter-spacing: -.055em; line-height: .98; text-wrap: balance; }
h3 { margin-bottom: 12px; font-size: 1.65rem; line-height: 1.05; letter-spacing: -.035em; }
.hero__lead { margin-bottom: 12px; color: var(--teal-400); font-size: clamp(1.25rem, 5.7vw, 2rem); font-weight: 850; line-height: 1.15; }
.hero__body { max-width: 650px; margin-bottom: 22px; color: var(--text-secondary); font-size: clamp(1rem, 4vw, 1.18rem); }
.hero__badges, .privacy__points { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 23px; list-style: none; }
.hero__badges li, .privacy__points li { padding: 7px 11px; border: 1.5px solid var(--ink-700); border-radius: 999px; color: var(--cream-100); background: rgba(9,36,46,.78); font-size: 13px; font-weight: 800; }
.hero__badges li::before, .privacy__points li::before { content: "✓"; margin-right: 6px; color: var(--teal-400); }
.store-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; max-width: 500px; }
.store-card { display: flex; align-items: center; gap: 10px; min-height: 67px; padding: 10px 12px; border: 2px solid var(--ink-700); border-radius: 17px; background: linear-gradient(180deg, rgba(18,59,70,.96), rgba(9,36,46,.96)); box-shadow: 0 5px 0 rgba(0,0,0,.3), 0 15px 28px rgba(0,0,0,.16); }
.store-card svg { width: 27px; height: 27px; fill: var(--cream-100); flex: 0 0 auto; }
.store-card span { display: flex; flex-direction: column; min-width: 0; line-height: 1.06; }
.store-card small { margin-bottom: 4px; color: var(--text-secondary); font-size: 10px; font-weight: 750; white-space: nowrap; }
.store-card strong { font-size: 15px; white-space: nowrap; }
.text-link { display: inline-flex; align-items: center; min-height: 44px; gap: 7px; margin-top: 16px; color: var(--teal-400); font-weight: 850; text-decoration: none; }
.text-link::after { content: "↓"; }

.hero__visual { position: relative; min-height: 650px; margin: -12px 0 -30px; }
.game-showcase { position: relative; display: grid; justify-items: center; padding: 18px 0 0; }
.game-showcase__glow { position: absolute; left: 50%; top: 43%; width: min(94vw, 520px); aspect-ratio: 1; transform: translate(-50%,-50%); border-radius: 50%; background: radial-gradient(circle, rgba(54,227,195,.25), rgba(24,199,168,.08) 48%, transparent 72%); filter: blur(12px); }
.phone-frame { position: relative; z-index: 2; width: min(76vw, 350px); padding: 10px; border: 2px solid #39717b; border-radius: 43px; background: linear-gradient(145deg, #285663, #031117 42%, #123b46); box-shadow: 0 18px 0 #020b0f, 0 34px 70px rgba(0,0,0,.5), 0 0 45px rgba(54,227,195,.14); transform: rotate(1.2deg); }
.phone-frame::after { content: ""; position: absolute; inset: 4px; pointer-events: none; border: 1px solid rgba(255,255,255,.14); border-radius: 38px; }
.phone-frame__speaker { position: absolute; z-index: 5; left: 50%; top: 17px; width: 32%; height: 20px; transform: translateX(-50%); border-radius: 0 0 14px 14px; background: #020b0f; }
.game-slides { position: relative; aspect-ratio: 786 / 1704; overflow: hidden; border-radius: 34px; background: var(--ink-900); }
.game-slide { position: absolute; inset: 0; margin: 0; }
.game-slide[hidden] { display: none; }
.game-slide img { width: 100%; height: 100%; object-fit: cover; }
.game-slide figcaption { position: absolute; left: 14px; right: 14px; bottom: 14px; padding: 11px 13px; border: 1px solid rgba(54,227,195,.55); border-radius: 14px; color: var(--cream-50); background: rgba(2,13,18,.86); box-shadow: 0 8px 22px rgba(0,0,0,.34); font-size: 12px; font-weight: 900; line-height: 1.25; text-align: center; backdrop-filter: blur(10px); }
.showcase-controls { position: relative; z-index: 3; display: flex; align-items: center; gap: 12px; margin-top: 31px; }
.showcase-arrow, .showcase-dots button { border: 1px solid var(--ink-600); color: var(--cream-100); background: rgba(9,36,46,.92); cursor: pointer; }
.showcase-arrow { width: 44px; height: 44px; border-radius: 50%; font-size: 28px; line-height: 1; }
.showcase-dots { display: flex; align-items: center; gap: 7px; }
.showcase-dots button { width: 12px; height: 12px; padding: 0; border-radius: 50%; }
.showcase-dots button[aria-current="true"] { width: 28px; border-color: var(--teal-400); border-radius: 999px; background: var(--teal-400); box-shadow: 0 0 14px rgba(54,227,195,.5); }
.showcase-arrow:focus-visible, .showcase-dots button:focus-visible { outline: 3px solid var(--orange-300); outline-offset: 3px; }

.section { width: min(100% - 28px, var(--max-width)); margin: 0 auto; padding: 78px 0; }
.section-heading { max-width: 720px; margin-bottom: 30px; }
.section-heading > p:last-child, .finland__facts > p, .explore-card p, .privacy p, .final-cta p { color: var(--text-secondary); }
.milestone-grid { display: grid; gap: 12px; }
.milestone { --accent: var(--teal-400); position: relative; min-height: 245px; padding: 22px; overflow: hidden; border: 2px solid var(--ink-700); border-radius: 24px; background: linear-gradient(145deg, rgba(18,59,70,.94), rgba(6,24,32,.98)); box-shadow: 0 6px 0 rgba(0,0,0,.28), 0 20px 34px rgba(0,0,0,.14); }
.milestone::after { content: ""; position: absolute; right: -36px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: var(--accent); opacity: .08; filter: blur(4px); }
.milestone--seen { --accent: #5b8dee; }
.milestone--captured { --accent: var(--teal-400); }
.milestone--mastered { --accent: var(--gold-300); }
.milestone__value { color: var(--accent); font-size: 2.8rem; font-weight: 950; letter-spacing: -.06em; }
.milestone__name { margin: 0 0 8px; color: var(--cream-100); font-size: 1.25rem; font-weight: 900; }
.milestone > p:not(.milestone__name) { color: var(--text-secondary); }
.route-sample { position: absolute; left: 22px; right: 22px; bottom: 21px; height: 9px; overflow: hidden; border-radius: 999px; background: var(--ink-800); }
.route-sample span { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--teal-400)); box-shadow: 0 0 15px var(--accent); }
.route-sample--seen { --progress: 12%; }
.route-sample--captured { --progress: 42%; }
.route-sample--mastered { --progress: 100%; }

.finland { display: grid; gap: 24px; }
.facts { display: grid; grid-template-columns: 1fr; gap: 0; margin: 30px 0 0; }
.facts div { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; min-width: 0; padding: 14px 8px; border-top: 2px solid var(--ink-700); }
.facts dt { color: var(--teal-400); font-size: clamp(1.5rem, 7vw, 2.5rem); font-weight: 950; letter-spacing: -.05em; white-space: nowrap; }
.facts dd { margin: 2px 0 0; color: var(--text-secondary); font-size: 12px; font-weight: 750; }
.explore-card { position: relative; align-self: end; padding: 28px; overflow: hidden; border: 2px solid rgba(247,162,58,.58); border-radius: 28px; background: linear-gradient(145deg, rgba(81,46,18,.48), rgba(9,36,46,.96)); box-shadow: 0 0 32px rgba(247,162,58,.08); }
.halftone::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(255,244,214,.075) 1px,transparent 1.4px); background-size: 8px 8px; mask-image: linear-gradient(130deg, transparent 20%, black); }
.explore-card__icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 36px; border-radius: 16px; color: var(--ink-950); background: var(--orange-400); font-size: 28px; font-weight: 900; box-shadow: 0 5px 0 #8f4114; }

.privacy { display: grid; gap: 25px; align-items: center; padding: 34px 26px; border: 2px solid var(--ink-700); border-radius: 30px; background: linear-gradient(145deg, rgba(18,59,70,.86), rgba(6,24,32,.98)); }
.privacy__mark { display: grid; place-items: center; width: 110px; height: 110px; border-radius: 30px; background: rgba(24,199,168,.11); box-shadow: inset 0 0 0 2px rgba(54,227,195,.25), 0 0 38px rgba(54,227,195,.12); }
.privacy__mark svg { width: 72px; fill: none; stroke: var(--teal-400); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.privacy__points { margin-bottom: 0; }

.final-cta { display: flex; flex-direction: column; align-items: center; max-width: 850px; padding-top: 118px; padding-bottom: 118px; text-align: center; }
.final-cta img { margin-bottom: 25px; border-radius: 24px; box-shadow: 0 0 42px rgba(54,227,195,.16); }
.final-cta p:last-child { max-width: 560px; }
footer { display: grid; gap: 10px; width: min(100% - 28px, var(--max-width)); margin: 0 auto; padding: 28px 0 42px; border-top: 1px solid var(--ink-700); color: var(--text-dim); font-size: 13px; }
.brand--footer { margin-bottom: 8px; font-size: 17px; }
footer p { margin: 0; }

@media (min-width: 720px) {
  .site-header { padding-top: 22px; }
  .hero { grid-template-columns: minmax(0,1.06fr) minmax(360px,.94fr); align-items: center; padding-top: 38px; }
  .hero__visual { min-height: 740px; margin: 0; }
  .phone-frame { width: min(35vw, 360px); }
  .milestone-grid { grid-template-columns: repeat(3,1fr); }
  .finland { grid-template-columns: 1.12fr .88fr; align-items: end; }
  .facts { grid-template-columns: repeat(3,1fr); gap: 8px; }
  .facts div { display: block; }
  .privacy { grid-template-columns: 140px 1fr; padding: 42px; }
  footer { grid-template-columns: 1fr auto; align-items: end; }
  footer .brand { grid-row: 1 / span 2; }
}

@media (min-width: 1050px) {
  .hero { min-height: calc(100vh - 90px); }
  .hero__body { font-size: 1.18rem; }
  .section { padding-top: 104px; padding-bottom: 104px; }
}

@media (max-width: 389px) {
  .site-header .brand span { display: none; }
  .brand--footer span { font-size: 18px; }
  .language-switcher button { min-width: 44px; }
  .store-row { grid-template-columns: 1fr; }
  .store-card { max-width: 250px; }
  .hero__visual { min-height: 610px; }
  .phone-frame { width: min(82vw, 315px); }
}

@media (prefers-reduced-motion: no-preference) {
  .game-slide.is-active img { animation: game-arrive .55s cubic-bezier(.2,.75,.25,1); }
  @keyframes game-arrive { from { opacity: .25; transform: scale(1.025); } to { opacity: 1; transform: scale(1); } }
}

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