:root {
  color-scheme: dark;
  --bg: #0c0a08;
  --surface: #15110e;
  --fg: #fff4e8;
  --muted: #9e8f80;
  --accent: #ff8a5b;
  --accent-soft: rgba(255, 138, 91, 0.12);
  --line: rgba(255, 244, 232, 0.1);
  --link: #7ec4e8;
  --pad: clamp(1.25rem, 4vw, 3rem);
  --shell: min(100% - (var(--pad) * 2), 1120px);
  --font: "Avenir Next", "Segoe UI", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    color-scheme: light;
    --bg: #f4efe8;
    --surface: #ffffff;
    --fg: #1c1410;
    --muted: #6b5c4e;
    --accent: #e06a3c;
    --accent-soft: rgba(224, 106, 60, 0.12);
    --line: rgba(28, 20, 16, 0.1);
    --link: #2f7fad;
  }
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  color: var(--fg);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--link);
}

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

.shell {
  width: var(--shell);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  width: var(--shell);
  margin-inline: auto;
  min-height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.35rem 0;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  margin-left: auto;
}

.lang-switch {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}

.lang-switch button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  padding: 0.38rem 0.72rem;
  border-radius: 999px;
  cursor: pointer;
}

.lang-switch button:hover {
  color: var(--fg);
}

.lang-switch button[aria-pressed="true"] {
  background: var(--accent);
  color: #14110e;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--fg);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
}

.nav {
  display: flex;
  gap: 0.15rem;
}

.nav a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.94rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--fg);
  background: var(--accent-soft);
}

/* Footer */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding: 1.5rem 0;
}

.footer-inner {
  width: var(--shell);
  margin-inline: auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.footer-inner a {
  color: var(--muted);
  text-decoration: none;
}

.footer-inner a:hover {
  color: var(--fg);
}

.footer-links {
  display: flex;
  gap: 1rem;
}

/* Page frame (all pages) */
.page {
  width: var(--shell);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.25rem) 0 3rem;
}

.page-intro {
  max-width: 40rem;
  margin-bottom: 2rem;
}

.kicker {
  margin: 0 0 0.5rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.9rem, 4.5vw, 2.6rem);
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.lede {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.85rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
}

.btn-primary {
  background: var(--accent);
  color: #14110e;
}

.btn-secondary {
  background: var(--surface);
  color: var(--fg);
  border-color: var(--line);
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

/* Cards / grids */
.grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 760px) {
  .grid-2 {
    grid-template-columns: 1fr 1fr;
  }

  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.25rem 1.35rem;
}

.card h2,
.card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.card + .card {
  margin-top: 0;
}

.stack {
  display: grid;
  gap: 1rem;
}

.section-title {
  margin: 2.25rem 0 1rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

/* Home hero */
.home-hero {
  display: grid;
  gap: 1.75rem;
  margin-bottom: 2rem;
}

@media (min-width: 860px) {
  .home-hero {
    grid-template-columns: 1.2fr 0.8fr;
    align-items: center;
  }
}

.home-hero .mark {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin-bottom: 1.1rem;
}

.home-aside ul {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.home-aside li {
  color: var(--muted);
  font-size: 0.95rem;
  padding-left: 1rem;
  position: relative;
}

.home-aside li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.4rem;
  height: 0.4rem;
  border-radius: 50%;
  background: var(--accent);
}

/* Support */
.email-link {
  display: inline-block;
  margin-top: 0.85rem;
  color: var(--fg);
  font-weight: 700;
  text-decoration: none;
  word-break: break-all;
}

.email-link:hover {
  color: var(--accent);
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 1.1rem;
}

.faq details + details {
  margin-top: 0.65rem;
}

.faq summary {
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  padding: 1rem 0;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  float: right;
  color: var(--accent);
}

.faq details[open] summary::after {
  content: "–";
}

.faq p {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Privacy */
.prose {
  max-width: 46rem;
}

.prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.15rem;
  scroll-margin-top: 5rem;
}

.prose p,
.prose li {
  color: color-mix(in srgb, var(--fg) 90%, var(--muted));
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li {
  margin: 0.4rem 0;
}

.note {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1rem 1.15rem;
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0 0 1.5rem;
}

.toc a {
  text-decoration: none;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.toc a:hover {
  color: var(--fg);
  border-color: var(--accent);
}

.section {
  margin-top: 2.75rem;
}

.section-heading {
  margin: 0 0 1.15rem;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.section-lede {
  max-width: 38rem;
  margin-bottom: 1.15rem;
}

.game-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.game-pills li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.9rem;
  font-weight: 600;
}

.step-card .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
}

.cta-banner {
  display: grid;
  gap: 1rem;
  margin-top: 2.75rem;
  align-items: center;
}

.cta-banner h2 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}

.cta-banner p {
  margin: 0;
}

.cta-banner .btn-row {
  margin-top: 0;
}

@media (min-width: 760px) {
  .cta-banner {
    grid-template-columns: 1.4fr auto;
  }
}

#features {
  scroll-margin-top: 5rem;
}
