:root {
  --bg: #ffffff;
  --surface: #f5f5f7;
  --text: #1d1d1f;
  --muted: #6e6e73;
  --line: #e5e5ea;
  --accent: #0a84ff;
  --accent-2: #0bc5d8;
  --radius: 18px;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #000000;
    --surface: #1c1c1e;
    --text: #f5f5f7;
    --muted: #a1a1a6;
    --line: #2c2c2e;
    --accent: #409cff;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }

/* Header */
.top { border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 16px; min-height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text); font-size: 18px; }
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 8px; }
.top nav { margin-left: auto; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 4px 18px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a[aria-current="page"] { color: var(--text); font-weight: 600; }
.lang { border-left: 1px solid var(--line); padding-left: 18px; }

/* Hero */
.hero { text-align: center; padding: 64px 0 40px; }
.hero img { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 10px 30px rgba(10, 132, 255, 0.25); }
.hero h1 { font-size: clamp(34px, 7vw, 52px); line-height: 1.08; letter-spacing: -0.02em; margin: 24px 0 12px; }
.hero p.lead { font-size: 20px; color: var(--muted); margin: 0 auto 28px; max-width: 34em; }
.pill {
  display: inline-block; padding: 11px 22px; border-radius: 999px; font-weight: 600;
  background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff;
}
.pill:hover { text-decoration: none; opacity: 0.92; }
.small { font-size: 14px; color: var(--muted); }

/* Features */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 24px 0 56px; }
.card { background: var(--surface); border-radius: var(--radius); padding: 20px 20px 18px; }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .icon { font-size: 26px; line-height: 1; margin-bottom: 10px; }

/* Documents */
.doc { padding-top: 44px; padding-bottom: 64px; }
.doc h1 { font-size: 36px; letter-spacing: -0.015em; margin: 0 0 4px; }
.doc h2 { font-size: 21px; margin: 34px 0 8px; }
.doc h3 { font-size: 17px; margin: 22px 0 4px; }
.doc p, .doc li { color: var(--text); }
.doc ul, .doc ol { padding-left: 22px; }
.doc li { margin: 4px 0; }
.doc .updated { color: var(--muted); font-size: 15px; margin: 0 0 24px; }
.summary { background: var(--surface); border-radius: var(--radius); padding: 18px 22px; margin: 20px 0 8px; }
.summary p { margin: 0; }
details { border-bottom: 1px solid var(--line); padding: 14px 0; }
details summary { cursor: pointer; font-weight: 600; list-style: none; }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: "+"; float: right; color: var(--muted); font-weight: 400; }
details[open] summary::after { content: "−"; }
details > *:not(summary) { margin: 10px 0 0; }
code { background: var(--surface); padding: 1px 6px; border-radius: 6px; font-size: 0.9em; }

footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer a { color: var(--muted); }

@media (max-width: 560px) {
  .top .wrap { gap: 10px; }
  .top nav { gap: 4px 12px; font-size: 13px; }
  .lang { padding-left: 12px; }
  .brand span { display: none; }
  .doc h1 { font-size: 30px; }
}
