:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --text: #11131a;
  --muted: #5f6372;
  --border: #e4e6ef;
  --accent: #0f9d7a;
  --accent-ink: #ffffff;
  --gold: #c99a2e;
  --hero-from: #1b2536;
  --hero-to: #0f1520;
  --hero-text: #f3f4f8;
  --hero-muted: #b4bccb;
  --radius: 18px;
  --max: 1040px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b0e14;
    --surface: #151a24;
    --text: #f3f4f8;
    --muted: #a3a9b8;
    --border: #252c3a;
    --accent: #34d3a6;
    --accent-ink: #08130f;
    --gold: #e2b85a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
}
a { color: var(--accent); }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 18px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
.nav { display: flex; gap: 18px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
@media (max-width: 560px) { .nav .hide-sm { display: none; } }

/* Hero */
.hero { background: radial-gradient(1200px 500px at 70% -10%, #23344d 0%, transparent 60%), linear-gradient(180deg, var(--hero-from), var(--hero-to)); color: var(--hero-text); }
.hero .wrap { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 80px; }
.hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #4be3b6, #e8c66b); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { color: var(--hero-muted); font-size: 19px; margin: 0 0 28px; max-width: 560px; }
.hero-icon { justify-self: center; width: min(280px, 70vw); border-radius: 22%; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.06); }
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; text-align: center; padding-top: 48px; }
  .hero p { margin-left: auto; margin-right: auto; }
  .hero-icon { grid-row: 1; width: 160px; }
  .cta { justify-content: center; }
}
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 14px; background: #000; color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); text-decoration: none; font-weight: 600; font-size: 15px; }
.badge small { display: block; font-weight: 400; font-size: 11px; opacity: 0.8; line-height: 1.2; }
.badge[aria-disabled="true"] { opacity: 0.85; cursor: default; }
.note { color: var(--hero-muted); font-size: 14px; margin-top: 14px; }

/* Sections */
section { padding: 72px 0; }
h2 { font-size: clamp(26px, 4vw, 36px); line-height: 1.2; margin: 0 0 12px; letter-spacing: -0.01em; }
.lead { color: var(--muted); font-size: 19px; margin: 0 0 36px; max-width: 680px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.card h3 { margin: 10px 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }
.card .emoji { font-size: 28px; line-height: 1; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
.steps .card::before { counter-increment: step; content: counter(step); display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; }

/* Document pages (privacy, terms, support) */
.doc { padding: 48px 0 72px; }
.doc .wrap { max-width: 760px; }
.doc h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 0 0 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 22px; margin: 36px 0 8px; }
.doc h3 { font-size: 18px; margin: 24px 0 6px; }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 6px 0; }
.callout { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 12px; padding: 16px 18px; margin: 20px 0; }
details { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 10px 0 0; color: var(--muted); }
.button { display: inline-block; padding: 12px 20px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 32px 0 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; max-width: 520px; }
