:root {
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #172b4d;
  --muted: #5e6c84;
  --border: #dfe1e6;
  --accent: #1f6feb;
  --accent-text: #ffffff;
  --code-bg: #f1f2f4;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1419;
    --surface: #182029;
    --text: #e6edf3;
    --muted: #9aa7b5;
    --border: #2b3640;
    --accent: #4c9aff;
    --accent-text: #0f1419;
    --code-bg: #1f2933;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1419; --surface: #182029; --text: #e6edf3; --muted: #9aa7b5;
  --border: #2b3640; --accent: #4c9aff; --accent-text: #0f1419; --code-bg: #1f2933; color-scheme: dark;
}

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

.site-header { border-bottom: 1px solid var(--border); }
.site-header .inner, .site-footer .inner { max-width: 1040px; margin: 0 auto; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); text-decoration: none; margin-right: auto; }
.brand img { width: 28px; height: 28px; border-radius: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.nav a[aria-current="page"], .nav a:hover { color: var(--text); }

main { max-width: 1040px; margin: 0 auto; padding: 32px 16px 56px; }
.prose { max-width: 760px; }
.prose h1 { font-size: 32px; line-height: 1.25; margin: 0 0 16px; }
.prose h2 { font-size: 22px; margin: 36px 0 10px; }
.prose li { margin: 6px 0; }
.prose code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; font-size: 0.92em; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 16px 0; font-size: 15px; }
th, td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; vertical-align: top; }
th { background: var(--surface); }

.hero { text-align: center; padding: 24px 0 40px; }
.hero-logo { border-radius: 14px; }
.hero h1 { font-size: clamp(30px, 6vw, 46px); line-height: 1.15; margin: 16px 0 12px; }
.lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 auto 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 0 0 12px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); padding: 11px 20px; border-radius: 8px; font-weight: 600; text-decoration: none; }
.button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--border); }
.note { color: var(--muted); font-size: 14px; }

.features { display: grid; gap: 40px; margin: 16px 0 48px; }
.feature { display: grid; gap: 20px; align-items: center; grid-template-columns: 1fr; }
.feature img { border: 1px solid var(--border); border-radius: 10px; }
.feature h2 { margin: 0 0 8px; font-size: 24px; }
.feature p { margin: 0; color: var(--muted); font-size: 17px; }
@media (min-width: 820px) {
  .feature { grid-template-columns: 3fr 2fr; gap: 32px; }
  .feature:nth-child(even) { grid-template-columns: 2fr 3fr; }
  .feature:nth-child(even) img { order: 2; }
}
.facts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 16px 18px; }
.facts h3 { margin: 0 0 6px; font-size: 17px; }
.facts p { margin: 0; color: var(--muted); font-size: 15px; }

.site-footer { border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.site-footer a { color: var(--muted); }
