:root {
  --bg: #f6f7fb;
  --surface: #ffffff;
  --text: #171a2b;
  --muted: #5a6078;
  --border: #e3e6f0;
  --brand-1: #2f5be3;
  --brand-2: #7a3ff0;
  --accent: #4b4ff0;
  --chip: #eef0ff;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1120;
    --surface: #181b2e;
    --text: #eceefa;
    --muted: #a3a8c3;
    --border: #2a2e48;
    --accent: #9b9cff;
    --chip: #23264a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
}
a { color: var(--accent); }
img { max-width: 100%; height: auto; }

.wrap { max-width: 880px; margin: 0 auto; padding: 0 16px; }

header.site {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; min-height: 60px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--muted); text-decoration: none; margin-left: 16px; font-size: 15px; }
nav a:hover { color: var(--text); }

.hero {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-2));
  color: #fff;
  padding: 56px 0 64px;
}
.hero .wrap { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.hero img.icon { width: 120px; height: 120px; border-radius: 28px; box-shadow: 0 12px 32px rgba(0,0,0,.25); }
.hero h1 { font-size: clamp(30px, 6vw, 44px); line-height: 1.15; margin: 0 0 8px; }
.hero p { margin: 0 0 20px; font-size: 18px; opacity: .92; max-width: 520px; }

.btn {
  display: inline-block; padding: 12px 20px; border-radius: 999px;
  font-weight: 600; text-decoration: none; margin: 4px 8px 4px 0;
}
.btn.primary { background: #fff; color: #2f37b8; }
.btn.ghost { border: 1px solid rgba(255,255,255,.6); color: #fff; }
.btn.disabled { opacity: .75; cursor: default; }

section { padding: 40px 0; }
h2 { font-size: 24px; margin: 0 0 16px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 16px; padding: 18px;
}
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.chips span {
  display: inline-block; background: var(--chip); color: var(--text);
  border-radius: 999px; padding: 4px 12px; margin: 0 6px 6px 0; font-size: 14px;
}

.doc { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 24px; margin: 32px 0; }
.doc h1 { font-size: 28px; line-height: 1.2; margin-top: 0; }
.doc h2 { font-size: 20px; margin-top: 28px; }
.doc .updated { color: var(--muted); margin-top: -8px; }

footer {
  border-top: 1px solid var(--border); color: var(--muted);
  padding: 24px 0 40px; font-size: 14px;
}
footer a { color: var(--muted); margin-right: 14px; }

@media (max-width: 520px) {
  nav a { margin-left: 10px; font-size: 14px; }
  .hero { padding: 40px 0 48px; }
  .doc { padding: 18px; }
}
