/* XO Clash landing site. No external requests: system font stacks only. */
:root {
  --bg: #1a1a2e;
  --card: #16213e;
  --surface: #0f3460;
  --primary: #6c5ce7;
  --teal: #00cec9;
  --x: #ff6b6b;
  --o: #4ecdc4;
  --gold: #ffd93d;
  --text: #ffffff;
  --text-2: rgba(255, 255, 255, 0.72);
  --text-3: rgba(255, 255, 255, 0.5);
  --line: rgba(255, 255, 255, 0.09);
  --grad: linear-gradient(135deg, #6c5ce7 0%, #00cec9 100%);
  --radius: 20px;
  --radius-sm: 14px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font-display: "Fredoka", "Nunito", ui-rounded, "SF Pro Rounded", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1160px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  /* soft neon ambience */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 520px at 85% -10%, rgba(108, 92, 231, 0.28), transparent 60%),
    radial-gradient(700px 480px at -10% 30%, rgba(0, 206, 201, 0.14), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(108, 92, 231, 0.18), transparent 60%);
}

img, svg { max-width: 100%; display: block; }

a { color: var(--o); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7fe7e0; }

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2.2rem, 5.4vw, 3.9rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.6vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 600px) { .wrap { padding: 0 28px; } }

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--gold);
  color: #1a1a2e;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 10px;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.x-glow { color: var(--x); text-shadow: 0 0 18px rgba(255, 107, 107, 0.65); }
.o-glow { color: var(--o); text-shadow: 0 0 18px rgba(78, 205, 196, 0.65); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(26, 26, 46, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--text); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.25rem; letter-spacing: 0.01em;
}
.brand:hover { color: var(--text); }
.brand svg { width: 34px; height: 34px; }
.nav-links { display: none; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover { color: var(--text); }
@media (min-width: 860px) { .nav-links { display: flex; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: 999px; border: 0;
  font: 700 0.95rem/1 var(--font-body);
  text-decoration: none; cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 26px rgba(108, 92, 231, 0.45); }
.btn-primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 32px rgba(0, 206, 201, 0.4); }
.btn-ghost { background: rgba(255, 255, 255, 0.06); color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { color: var(--text); background: rgba(255, 255, 255, 0.1); }
.btn-sm { min-height: 40px; padding: 8px 16px; font-size: 0.88rem; }

/* ---------- Google Play badge (self-made) ---------- */
.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 60px; padding: 9px 22px 9px 16px;
  background: #000; color: #fff; text-decoration: none;
  border: 1.5px solid #a6a6a6; border-radius: 12px;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.play-badge:hover { color: #fff; transform: translateY(-2px); border-color: #fff; box-shadow: 0 10px 30px rgba(108, 92, 231, 0.45); }
.play-badge svg { width: 30px; height: 33px; flex: none; }
.play-badge .pb-text { display: flex; flex-direction: column; line-height: 1.05; }
.play-badge .pb-small { font: 600 0.68rem/1.2 var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; }
.play-badge .pb-big { font: 600 1.45rem/1.1 var(--font-body); letter-spacing: -0.01em; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero { padding: 84px 0 96px; } .hero-grid { grid-template-columns: 1.08fr 0.92fr; gap: 56px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  padding: 6px 14px; margin-bottom: 20px;
  border-radius: 999px; background: rgba(108, 92, 231, 0.16); border: 1px solid rgba(108, 92, 231, 0.4);
  color: #d5cffd; font-size: 0.85rem; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.hero h1 .dash { color: var(--text-3); font-weight: 600; }
.hero .lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--text-2); max-width: 36em; margin-bottom: 28px; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.stat-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; }
.stat-row li {
  padding: 8px 14px; border-radius: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line);
  font-size: 0.88rem; color: var(--text-2);
}
.stat-row strong { color: var(--text); font-family: var(--font-display); font-size: 1.02rem; margin-right: 4px; }

/* Live board */
.board-card {
  position: relative;
  max-width: 440px; width: 100%; margin: 0 auto;
  padding: 22px; border-radius: 28px;
  background: linear-gradient(160deg, rgba(22, 33, 62, 0.95), rgba(15, 52, 96, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow), 0 0 0 1px rgba(108, 92, 231, 0.15), 0 0 80px rgba(108, 92, 231, 0.25);
}
.board-card::before {
  content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(0, 206, 201, 0.6), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.board-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.live-pill {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2);
}
.live-pill .rec { width: 9px; height: 9px; border-radius: 50%; background: var(--x); box-shadow: 0 0 10px var(--x); animation: pulse 1.6s ease-in-out infinite; }
.scores { display: flex; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 0.95rem; }
.scores span { white-space: nowrap; padding: 4px 10px; border-radius: 10px; background: rgba(0, 0, 0, 0.22); }
.scores .sx { color: var(--x); }
.scores .so { color: var(--o); }
.scores .sd { color: var(--text-3); }
@media (max-width: 420px) { .board-card { padding: 16px; } .live-pill .vs { display: none; } .scores { gap: 6px; font-size: 0.88rem; } .scores span { padding: 4px 8px; } }
#live-board { width: 100%; height: auto; aspect-ratio: 1 / 1; }
.board-status {
  margin: 14px 0 0; min-height: 1.6em; text-align: center;
  font-family: var(--font-display); font-weight: 600; color: var(--text-2);
}
.board-status .who-x { color: var(--x); }
.board-status .who-o { color: var(--o); }
.board-status .who-win { color: var(--gold); }

.cell-bg { fill: rgba(255, 255, 255, 0.025); }
.grid-line { stroke: rgba(255, 255, 255, 0.16); stroke-width: 4; stroke-linecap: round; }
.mark-x { stroke: var(--x); stroke-width: 11; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 7px rgba(255, 107, 107, 0.85)); }
.mark-o { stroke: var(--o); stroke-width: 11; stroke-linecap: round; fill: none; filter: drop-shadow(0 0 7px rgba(78, 205, 196, 0.85)); }
.win-line { stroke: var(--gold); stroke-width: 12; stroke-linecap: round; filter: drop-shadow(0 0 10px rgba(255, 217, 61, 0.9)); }
.draw-in { animation: draw 0.42s cubic-bezier(.6, .05, .3, 1) forwards; }
.draw-in-2 { animation: draw 0.32s cubic-bezier(.6, .05, .3, 1) 0.16s forwards; }
.draw-win { animation: draw 0.6s ease-out forwards; }
.marks-layer { transition: opacity 0.5s ease; }
.marks-layer.fading { opacity: 0; }
.cell-dim { opacity: 0.28; transition: opacity 0.4s ease; }

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* ---------- Sections ---------- */
section { scroll-margin-top: 72px; }
.section { padding: 72px 0; }
@media (min-width: 960px) { .section { padding: 96px 0; } }
.section-alt { background: linear-gradient(180deg, rgba(22, 33, 62, 0.55), rgba(22, 33, 62, 0.2)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 680px; margin: 0 auto 44px; text-align: center; }
.section-head p { color: var(--text-2); font-size: 1.08rem; margin: 0; }
.kicker {
  display: inline-block; margin-bottom: 12px;
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--teal);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}

/* Mode grid: mirrors the app's home grid */
.modes-grid { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .modes-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .modes-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.mode-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 16px;
  padding: 20px; border-radius: var(--radius);
  background: linear-gradient(150deg, var(--card), rgba(15, 52, 96, 0.75));
  border: 1px solid var(--line);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.mode-card::after {
  content: ""; position: absolute; inset: auto -40% -60% auto; width: 160px; height: 160px; border-radius: 50%;
  background: radial-gradient(circle, var(--accent, rgba(108, 92, 231, 0.35)), transparent 70%);
  opacity: 0.55; pointer-events: none; transition: opacity 0.22s ease;
}
.mode-card:hover { transform: translateY(-4px); border-color: rgba(108, 92, 231, 0.55); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35), 0 0 28px rgba(108, 92, 231, 0.25); }
.mode-card:hover::after { opacity: 1; }
.mode-icon {
  flex: none; display: grid; place-items: center;
  width: 58px; height: 58px; border-radius: 16px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
  font-size: 1.8rem; line-height: 1;
}
.mode-card h3 { margin: 0 0 2px; font-size: 1.18rem; }
.mode-card p { margin: 0; color: var(--text-2); font-size: 0.95rem; }
.mode-card .tag {
  position: absolute; top: 12px; right: 12px;
  font-size: 0.68rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 999px; background: rgba(0, 206, 201, 0.15); color: var(--teal);
}
.a-red { --accent: rgba(255, 107, 107, 0.4); }
.a-teal { --accent: rgba(78, 205, 196, 0.4); }
.a-purple { --accent: rgba(108, 92, 231, 0.5); }
.a-gold { --accent: rgba(255, 217, 61, 0.32); }

/* AI levels */
.ai-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .ai-grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.ai-card { text-align: left; }
.ai-card .level { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.ai-card .level h3 { margin: 0; font-size: 1.35rem; }
.meter { display: flex; gap: 5px; }
.meter i { width: 22px; height: 8px; border-radius: 4px; background: rgba(255, 255, 255, 0.12); }
.meter i.on { background: var(--grad); box-shadow: 0 0 10px rgba(0, 206, 201, 0.5); }
.ai-card p { color: var(--text-2); margin: 0; }

/* Online split with phone */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: 1fr 360px; gap: 64px; } .split.reverse { grid-template-columns: 360px 1fr; } .split.reverse .phone-wrap { order: -1; } }
.split .section-head { text-align: left; margin: 0 0 28px; }

.feature-list { display: grid; gap: 12px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .feature-list { grid-template-columns: repeat(2, 1fr); } }
.feature-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 14px 16px; border-radius: var(--radius-sm);
  background: rgba(22, 33, 62, 0.85); border: 1px solid var(--line);
}
.feature-list .fi { flex: none; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: rgba(108, 92, 231, 0.18); font-size: 1.15rem; }
.feature-list strong { display: block; font-size: 0.98rem; }
.feature-list span.sub { display: block; color: var(--text-2); font-size: 0.88rem; line-height: 1.45; }

/* CSS phone mockup */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  position: relative; width: 300px; max-width: 100%;
  padding: 12px; border-radius: 44px;
  background: linear-gradient(160deg, #2a2a48, #101024);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 0 2px rgba(255, 255, 255, 0.07), 0 0 70px rgba(0, 206, 201, 0.18);
  animation: float 6s ease-in-out infinite;
}
.phone-screen {
  position: relative; overflow: hidden;
  border-radius: 34px; background: var(--bg);
  padding: 34px 14px 18px;
  min-height: 560px;
}
.phone-screen::before {
  content: ""; position: absolute; top: 10px; left: 50%; transform: translateX(-50%);
  width: 12px; height: 12px; border-radius: 50%; background: #05050c; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.ps-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.ps-title { font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; }
.ps-title .x { color: var(--x); text-shadow: 0 0 10px rgba(255, 107, 107, 0.7); }
.ps-title .o { color: var(--o); text-shadow: 0 0 10px rgba(78, 205, 196, 0.7); }
.ps-coins { font-size: 0.72rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: rgba(255, 217, 61, 0.14); color: var(--gold); }
.ps-profile {
  display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
  padding: 10px; border-radius: 14px; background: var(--card);
}
.ps-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-weight: 800; font-size: 0.8rem; }
.ps-meta { flex: 1; min-width: 0; }
.ps-name { font-size: 0.8rem; font-weight: 700; }
.ps-xp { height: 6px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); margin-top: 5px; overflow: hidden; }
.ps-xp i { display: block; height: 100%; width: 64%; background: var(--grad); }
.ps-lvl { font-size: 0.7rem; color: var(--text-2); font-weight: 700; }
.ps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ps-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  aspect-ratio: 1 / 1.05; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  font-size: 0.66rem; font-weight: 700; text-align: center; padding: 4px;
}
.ps-tile b { font-size: 1.35rem; line-height: 1; font-weight: 400; }
.ps-tile.hot { background: linear-gradient(150deg, rgba(108, 92, 231, 0.55), rgba(0, 206, 201, 0.35)); border-color: rgba(108, 92, 231, 0.7); }
.ps-play {
  margin-top: 12px; padding: 11px; border-radius: 14px; text-align: center;
  background: var(--grad); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.04em;
}
.ps-daily {
  margin-top: 10px; display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 12px; background: var(--surface); font-size: 0.72rem; font-weight: 700;
}
.ps-daily span:last-child { color: var(--gold); }

/* Progression + customize */
.duo { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; } }
.duo .card { padding: 28px; background: linear-gradient(160deg, var(--card), rgba(15, 52, 96, 0.6)); }
.duo .card h3 { font-size: 1.5rem; display: flex; align-items: center; gap: 10px; }
.duo .card > p { color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 18px 0 0; padding: 0; }
.chips li {
  padding: 7px 13px; border-radius: 999px; font-size: 0.9rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line);
}
.swatches { display: flex; gap: 10px; margin-top: 20px; flex-wrap: wrap; }
.swatch {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 800; font-size: 1.5rem;
  background: var(--surface); border: 1px solid var(--line);
}
.swatch.s1 { color: var(--x); text-shadow: 0 0 12px var(--x); }
.swatch.s2 { color: var(--o); text-shadow: 0 0 12px var(--o); }
.swatch.s3 { color: var(--gold); text-shadow: 0 0 12px var(--gold); background: #2d1b4e; }
.swatch.s4 { color: #a29bfe; text-shadow: 0 0 12px #a29bfe; background: #102a43; }
.swatch.s5 { color: #fd79a8; text-shadow: 0 0 12px #fd79a8; background: #1b2735; }
.xp-demo { margin-top: 20px; }
.xp-demo .row { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--text-2); font-weight: 600; margin-bottom: 6px; }
.xp-bar { height: 12px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.xp-bar i { display: block; height: 100%; width: 72%; border-radius: inherit; background: var(--grad); box-shadow: 0 0 14px rgba(0, 206, 201, 0.6); }

/* Feature tiles */
.tiles { display: grid; gap: 16px; grid-template-columns: 1fr; list-style: none; margin: 0; padding: 0; }
@media (min-width: 600px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles { grid-template-columns: repeat(4, 1fr); } }
.tile { padding: 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.tile svg { width: 44px; height: 44px; margin-bottom: 14px; }
.tile h3 { margin-bottom: 6px; }
.tile p { margin: 0; color: var(--text-2); font-size: 0.95rem; }

/* Final CTA */
.cta-band {
  position: relative; overflow: hidden; text-align: center;
  padding: 56px 24px; border-radius: 32px;
  background: linear-gradient(135deg, rgba(108, 92, 231, 0.9), rgba(0, 206, 201, 0.75));
  box-shadow: 0 30px 80px rgba(108, 92, 231, 0.35);
}
.cta-band h2 { margin-bottom: 10px; }
.cta-band p { color: rgba(255, 255, 255, 0.88); font-size: 1.1rem; max-width: 34em; margin: 0 auto 26px; }
.cta-band .bg-marks { position: absolute; inset: 0; pointer-events: none; opacity: 0.16; font-family: var(--font-display); font-weight: 800; font-size: 9rem; line-height: 1; }
.cta-band .bg-marks span { position: absolute; }
.cta-band .bg-marks span:nth-child(1) { left: 4%; top: -14%; }
.cta-band .bg-marks span:nth-child(2) { right: 6%; bottom: -24%; }
.cta-band .bg-marks span:nth-child(3) { right: 26%; top: -30%; font-size: 5rem; }
.cta-band > *:not(.bg-marks) { position: relative; }

/* ---------- Footer ---------- */
.site-footer { padding: 40px 0 48px; border-top: 1px solid var(--line); margin-top: 72px; color: var(--text-2); font-size: 0.92rem; }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; margin: 0; padding: 0; }
.footer-links a { color: var(--text-2); text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin: 14px 0 0; font-size: 0.82rem; color: var(--text-3); }

/* ---------- Document pages (privacy, support, 404) ---------- */
.doc { padding: 48px 0 24px; }
.doc .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(2rem, 4.6vw, 2.9rem); }
.doc h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); margin-top: 2em; }
.doc h3 { margin-top: 1.4em; }
.doc p, .doc li { color: rgba(255, 255, 255, 0.84); }
.doc ul { padding-left: 1.3em; }
.doc li { margin-bottom: 0.45em; }
.doc .meta { color: var(--text-3); font-size: 0.95rem; }
.doc .callout { padding: 18px 20px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--teal); margin: 1.4em 0; }
.doc .callout p:last-child { margin-bottom: 0; }
.toc { padding: 18px 22px; border-radius: var(--radius-sm); background: rgba(22, 33, 62, 0.7); border: 1px solid var(--line); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 1; }
@media (min-width: 640px) { .toc ol { columns: 2; column-gap: 32px; } }
.toc a { color: var(--text-2); }
table.data { width: 100%; border-collapse: collapse; margin: 1em 0 1.4em; font-size: 0.94rem; }
table.data th, table.data td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
table.data th { color: var(--text); font-weight: 700; background: rgba(22, 33, 62, 0.8); }
table.data td { color: rgba(255, 255, 255, 0.82); }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }

.faq details { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 0 18px; margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 700; list-style-position: outside; }
.faq summary::marker { color: var(--teal); }
.faq details[open] summary { border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.faq details p:last-child { margin-bottom: 16px; }
.contact-card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding: 26px; border-radius: var(--radius); background: linear-gradient(135deg, rgba(108, 92, 231, 0.35), rgba(0, 206, 201, 0.2)); border: 1px solid rgba(108, 92, 231, 0.5); margin: 28px 0; }
.contact-card h2 { margin: 0 0 4px; font-size: 1.4rem; }
.contact-card p { margin: 0; color: var(--text-2); }
.contact-card a.mail { font-weight: 700; color: #fff; word-break: break-all; }

.notfound { text-align: center; padding: 72px 0 32px; }
.notfound .big { font-family: var(--font-display); font-weight: 800; font-size: clamp(5rem, 22vw, 9rem); line-height: 1; margin-bottom: 12px; letter-spacing: 0.04em; }
.notfound p { color: var(--text-2); font-size: 1.1rem; }
.notfound .cta-row { justify-content: center; margin-top: 24px; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .draw-in, .draw-in-2, .draw-win { stroke-dashoffset: 0 !important; }
}

/* Stack Tower additions */
.tower-art { width: 100%; height: auto; display: block; }
.tower-art .blk { stroke: rgba(255, 255, 255, 0.18); stroke-width: 2; }
