@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap");

:root {
  --ground: #0b1a2e;
  --ground-2: #0f2340;
  --surface: #14304f;
  --line: #24476b;
  --silver: #dbe4ee;
  --muted: #93a7be;
  --trout: #f39ab8;
  --water: #5cc8dc;
  --ink: #0b1a2e;
  --red: #e0453a;
  --green: #3fae4f;
  --block: #8c93a0;
  --display: "Fredoka", "Hiragino Maru Gothic ProN", "Yu Gothic", system-ui, sans-serif;
  --body: "Nunito", "Hiragino Sans", "Yu Gothic", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; padding-inline: 16px;
  background: var(--ground); color: var(--silver);
  font: 400 1.0625rem/1.65 var(--body);
}
img { max-width: 100%; height: auto; }
a { color: var(--water); }
:focus-visible { outline: 3px solid var(--trout); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1040px, 100%); margin-inline: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.3rem, 6.5vw, 3.9rem); }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); margin-bottom: 18px; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.eyebrow { font: 600 .78rem/1 var(--body); letter-spacing: .16em; text-transform: uppercase; color: var(--trout); margin-bottom: 14px; }

/* header */
header.site {
  position: sticky; top: 0; z-index: 20;
  margin-inline: -16px; padding-inline: 16px;
  background: rgba(11, 26, 46, .92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
header.site .wrap { display: flex; align-items: center; gap: 12px 22px; padding-block: 10px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--silver); text-decoration: none; font: 600 1.15rem var(--display); }
.brand img { width: 40px; height: 40px; border-radius: 50%; }
nav.main { margin-left: auto; display: flex; gap: 6px 20px; align-items: center; flex-wrap: wrap; }
nav.main a.nav { color: var(--silver); text-decoration: none; font-weight: 600; padding: 4px 0; border-bottom: 2px solid transparent; }
nav.main a.nav:hover, nav.main a.nav[aria-current="page"] { border-bottom-color: var(--trout); }
select#lang-select { background: var(--surface); color: var(--silver); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font: inherit; font-size: .95rem; }

/* buttons */
.btn { display: inline-block; border: 0; cursor: pointer; font: 600 1rem var(--display); text-decoration: none;
  background: var(--trout); color: var(--ink); padding: 12px 26px; border-radius: 999px; box-shadow: 0 4px 0 #b8607f; }
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b8607f; }
.btn.ghost { background: transparent; color: var(--silver); box-shadow: inset 0 0 0 2px var(--line); }
.btn.ghost:hover { box-shadow: inset 0 0 0 2px var(--water); }
.btn[disabled] { opacity: .5; cursor: default; }

/* home hero */
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; padding-block: 56px 48px; }
.hero .lead { color: var(--muted); font-size: 1.2rem; max-width: 34em; margin: 18px 0 28px; }
.hero .badge-logo { width: min(340px, 100%); aspect-ratio: 1; justify-self: center; border-radius: 50%; box-shadow: 0 20px 60px rgba(0,0,0,.45), 0 0 0 1px var(--line); }
.wave { display: block; width: 100%; height: 40px; margin-inline: 0; }

section.block { padding-block: 48px; }
.band { margin-inline: -16px; padding-inline: 16px; background: var(--ground-2); }

.game-row { display: grid; grid-template-columns: minmax(0, 260px) 1fr; gap: 28px; align-items: center; padding: 26px; background: var(--surface); border-radius: 22px; color: inherit; text-decoration: none; border: 1px solid var(--line); }
.game-row:hover { border-color: var(--trout); }
.game-row img { width: 100%; }
.pill { display: inline-block; font: 600 .82rem var(--body); padding: 4px 14px; border-radius: 999px; background: var(--ground); color: var(--water); border: 1px solid var(--line); }

/* turny */
.t-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; padding-block: 48px 40px; }
.t-hero .wordmark { width: 100%; max-width: 520px; }
.t-hero .lead { color: var(--muted); font-size: 1.15rem; margin: 14px 0 26px; }

.demo { display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center; }
.stage-frame { width: min(340px, calc(100vw - 32px)); aspect-ratio: 1; padding: 12px; background: var(--ground); border-radius: 22px; border: 2px solid var(--line); box-shadow: 0 0 0 6px var(--surface); }
.stage-frame .stage { position: relative; width: 100%; height: 100%; display: grid; grid-template-columns: repeat(5, 1fr); grid-template-rows: repeat(5, 1fr); transition: transform .4s cubic-bezier(.5,0,.2,1); background: #0c2038; border-radius: 10px; }
.stage.noanim { transition: none; }
.cell { position: relative; border: 1px solid rgba(92,200,220,.09); }
.ball, .block-piece, .gem { position: absolute; inset: 12%; }
.ball { border-radius: 50%; box-shadow: inset -4px -6px 10px rgba(0,0,0,.35), inset 3px 4px 8px rgba(255,255,255,.35), 0 3px 6px rgba(0,0,0,.4); }
.ball.R { background: radial-gradient(circle at 35% 30%, #ff8f80, var(--red) 55%, #8f1f18); }
.ball.G { background: radial-gradient(circle at 35% 30%, #a2f0a8, var(--green) 55%, #1d6a2a); }
.block-piece { border-radius: 8px; inset: 6%; background: linear-gradient(145deg, #b5bbc6, var(--block) 60%, #5d6470); box-shadow: inset 0 0 0 2px rgba(255,255,255,.18), 0 3px 6px rgba(0,0,0,.4); }
.gem { inset: 14%; clip-path: polygon(30% 0, 70% 0, 100% 35%, 50% 100%, 0 35%); }
.gem.r { background: conic-gradient(from 20deg at 50% 45%, #ff8f80, #b3271e, #ff6b5c, #7d130d, #ff8f80); }
.gem.g { background: conic-gradient(from 20deg at 50% 45%, #a2f0a8, #23803a, #5fd06d, #145a25, #a2f0a8); }
.demo-copy p { color: var(--muted); }
.controls { display: flex; gap: 10px; flex-wrap: wrap; margin-block: 18px 12px; }
.status { font: 600 1rem var(--display); color: var(--water); min-height: 1.6em; }
.status.win { color: var(--trout); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; padding: 0; margin: 0; list-style: none; }
.steps li { background: var(--surface); border-radius: 18px; padding: 22px; border: 1px solid var(--line); }
.steps .n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--trout); color: var(--ink); font: 700 1rem var(--display); margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 8px 0 0; }

ul.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 32px; }
ul.features li { position: relative; padding-left: 30px; }
ul.features li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 12px; height: 12px; background: var(--trout); clip-path: polygon(30% 0, 70% 0, 100% 35%, 50% 100%, 0 35%); }

.shots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot { aspect-ratio: 9/16; max-width: 100%; border: 2px dashed var(--line); border-radius: 18px; display: grid; place-items: center; text-align: center; color: var(--muted); padding: 12px; font-size: .9rem; }

form.notify { display: flex; gap: 10px; flex-wrap: wrap; max-width: 520px; }
form.notify input[type=email] { flex: 1 1 220px; padding: 12px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--ground); color: var(--silver); font: inherit; }
.small { font-size: .88rem; color: var(--muted); }
#notify-msg { color: var(--trout); min-height: 1.5em; margin: 10px 0 4px; }

/* privacy */
.doc { max-width: 720px; padding-block: 48px 64px; }
.doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.doc h2 { font-size: 1.35rem; margin: 34px 0 10px; color: var(--silver); }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .updated { color: var(--muted); }
.doc .notice { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-block: 18px; }
.todo { background: rgba(243,154,184,.18); color: var(--trout); padding: 0 6px; border-radius: 4px; }

footer.site { margin-inline: -16px; padding: 28px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem; }
footer.site .wrap { display: flex; justify-content: space-between; gap: 10px 24px; flex-wrap: wrap; }

@media (max-width: 760px) {
  .hero, .t-hero, .demo, .game-row { grid-template-columns: 1fr; }
  .hero .badge-logo { order: -1; width: 200px; }
  .steps, ul.features { grid-template-columns: 1fr; }
  .shots { grid-template-columns: repeat(2, 1fr); }
  nav.main { margin-left: 0; }
  .stage-frame { margin-inline: auto; }
}
@media (prefers-reduced-motion: reduce) { .stage { transition: none !important; } html { scroll-behavior: auto; } }
