:root {
  --ink: #12101a;
  --ink-2: #1b1826;
  --ink-3: #262236;
  --paper: #f6f1e7;
  --muted: #a9a3b8;
  --yellow: #ffd23f;
  --coral: #ff5e5b;
  --teal: #2ec4b6;
  --violet: #8b6cff;
  --radius: 18px;
  --max: 1120px;
  --display: "Archivo Black", "Arial Black", system-ui, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--paper);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--yellow); text-underline-offset: 3px; }
a:hover { color: var(--paper); }

:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--yellow); color: var(--ink); padding: 8px 14px; z-index: 10; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--ink) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ink-3);
}

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

.brand { display: flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; font: 400 20px/1 var(--display); letter-spacing: .02em; }
.brand img { width: 34px; height: 34px; }

.nav { display: flex; gap: 22px; }
.nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--paper); }

.hero { padding: 96px 0 72px; position: relative; overflow: hidden; }
.hero::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, color-mix(in srgb, var(--violet) 35%, transparent), transparent 65%);
  pointer-events: none;
}

.eyebrow { display: inline-block; font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--yellow); padding: 6px 12px; border-radius: 999px; transform: rotate(-2deg); }

h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(44px, 8vw, 92px); margin: 22px 0 20px; max-width: 12ch; }
h1 .hl { color: var(--yellow); }
h2 { font-size: clamp(32px, 5vw, 52px); margin-bottom: 14px; }
h3 { font-size: 24px; }

.lede { font-size: clamp(18px, 2.2vw, 21px); color: var(--muted); max-width: 52ch; margin: 0 0 32px; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.btn { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; padding: 14px 22px; border-radius: 999px; border: 2px solid var(--paper); color: var(--paper); transition: transform .15s ease; }
.btn:hover { transform: translateY(-2px); color: var(--paper); }
.btn.primary { background: var(--yellow); border-color: var(--yellow); color: var(--ink); box-shadow: 4px 4px 0 var(--coral); }
.btn.primary:hover { color: var(--ink); }

section { padding: 72px 0; }
.section-head { margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 0; max-width: 56ch; }

.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }

.game { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.game-art { aspect-ratio: 16 / 10; display: grid; place-items: center; }
.game-art img { width: 46%; filter: drop-shadow(6px 6px 0 rgba(0,0,0,.25)); }
.game.io .game-art { background: var(--teal); }
.game.numbers .game-art { background: var(--yellow); }
.game.words .game-art { background: var(--coral); }
.game-body { padding: 24px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.game-body p { margin: 0; color: var(--muted); }
.status { align-self: flex-start; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--ink-3); color: var(--paper); }
.status.soon { background: var(--yellow); color: var(--ink); }
.platforms { display: flex; gap: 8px; margin-top: auto; padding-top: 8px; }
.platforms span { font-size: 13px; font-weight: 600; color: var(--paper); border: 1px solid var(--ink-3); border-radius: 8px; padding: 6px 10px; }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.about p { color: var(--muted); }
.pillars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.pillars li { background: var(--ink-2); border: 1px solid var(--ink-3); border-left: 6px solid var(--yellow); border-radius: 12px; padding: 18px 20px; }
.pillars li:nth-child(2) { border-left-color: var(--teal); }
.pillars li:nth-child(3) { border-left-color: var(--coral); }
.pillars strong { display: block; font-family: var(--display); font-weight: 400; font-size: 18px; margin-bottom: 4px; }
.pillars span { color: var(--muted); font-size: 15px; }

.cta { background: var(--violet); color: var(--paper); border-radius: var(--radius); padding: 48px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; }
.cta p { margin: 6px 0 0; color: color-mix(in srgb, var(--paper) 85%, transparent); }

.doc { padding: 64px 0 88px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(38px, 6vw, 60px); max-width: none; }
.doc h2 { font-size: 26px; margin: 40px 0 10px; }
.doc p, .doc li { color: #d9d3e4; }
.doc .meta { color: var(--muted); font-size: 15px; }

.faq details { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 700; }
.faq details p { margin: 10px 0 0; }

.contact-card { background: var(--ink-2); border: 1px solid var(--ink-3); border-radius: var(--radius); padding: 28px; margin: 28px 0; }
.contact-card a { font-size: 20px; font-weight: 700; }

.not-found { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.not-found h1 { margin-inline: auto; }

.site-footer { border-top: 1px solid var(--ink-3); padding: 40px 0; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 20px; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

@media (max-width: 760px) {
  .nav { gap: 16px; }
  .nav .hide-sm { display: none; }
  .hero { padding: 64px 0 48px; }
  section { padding: 56px 0; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .cta { padding: 32px 24px; }
}

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