:root {
  --bg: #ffffff; --surface: #f8fafc; --ink: #0f172a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0;
  --accent: #2563eb; --accent-deep: #1d4ed8; --amber: #f59e0b; --hero-from: #3b82f6; --hero-to: #1e40af;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1120; --surface: #111a2e; --ink: #f1f5f9; --ink-2: #cbd5e1; --muted: #94a3b8; --line: #1e293b;
    --accent: #60a5fa; --accent-deep: #93c5fd; --hero-from: #1e293b; --hero-to: #0f172a;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

header.bar { border-bottom: 1px solid var(--line); }
header.bar .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; color: var(--ink); text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }
nav a { color: var(--ink-2); text-decoration: none; margin-left: 20px; font-size: 15px; }
nav a:hover { color: var(--accent); }

.hero { background: linear-gradient(135deg, var(--hero-from), var(--hero-to)); color: #fff; }
.hero .wrap { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero p { font-size: clamp(17px, 2.4vw, 20px); color: rgba(255,255,255,.88); margin: 0 0 28px; max-width: 34em; }
.hero .icon { width: 180px; height: 180px; border-radius: 40px; box-shadow: 0 24px 60px rgba(0,0,0,.35); }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 14px; background: #fff; color: #0f172a;
  font-weight: 600; text-decoration: none; }
.badge small { font-weight: 500; color: #64748b; }

section { padding: 64px 0; }
section h2 { font-size: clamp(26px, 4vw, 34px); margin: 0 0 8px; letter-spacing: -0.01em; }
section .lede { color: var(--muted); margin: 0 0 32px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 18px; }
.card p { margin: 0; color: var(--ink-2); font-size: 16px; }
.dot { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; margin-bottom: 12px;
  background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; padding: 28px 16px; }
footer a { color: var(--muted); }

.doc { max-width: 720px; padding-top: 40px; padding-bottom: 64px; }
.doc h1 { font-size: 32px; margin: 0 0 4px; }
.doc h2 { font-size: 20px; margin: 32px 0 8px; }
.doc .muted { color: var(--muted); }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.doc td:first-child { width: 58%; }

@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; padding-top: 48px; padding-bottom: 48px; }
  .hero .icon { width: 112px; height: 112px; border-radius: 26px; order: -1; }
  .grid, .split { grid-template-columns: 1fr; }
  nav a { margin-left: 14px; }
  .doc table, .doc tbody, .doc tr, .doc td, .doc th { display: block; width: 100% !important; }
  .doc tr:first-child { display: none; }
  .doc td { border-bottom: 0; padding: 4px 0; }
  .doc tr { border-bottom: 1px solid var(--line); padding: 10px 0; }
}
