:root {
  color-scheme: dark;
  --bg: #0a0f18;
  --surface: #111a28;
  --surface-raised: #162235;
  --surface-soft: #0e1724;
  --line: rgba(184, 204, 230, .13);
  --text: #eff4fb;
  --muted: #9aabc0;
  --accent: #86b6ff;
  --accent-strong: #5796f6;
  --accent-ink: #071426;
  --success: #65d8ac;
  --shadow: 0 28px 80px rgba(0, 0, 0, .3);
  --content: 1160px;
  --radius: 18px;
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f7fb;
  --surface: #fff;
  --surface-raised: #f0f4fa;
  --surface-soft: #eaf0f8;
  --line: rgba(23, 43, 69, .13);
  --text: #142238;
  --muted: #5f6f84;
  --accent: #2869c5;
  --accent-strong: #1959b5;
  --accent-ink: #fff;
  --success: #167a55;
  --shadow: 0 24px 70px rgba(32, 55, 85, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  min-width: 320px;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(ellipse at 76% 0%, rgba(62, 108, 176, .13), transparent 33rem),
    var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}
body, input, button, select, textarea { font-family: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
button, input, select { font: inherit; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent);
  outline-offset: 3px;
}
::selection { color: var(--accent-ink); background: var(--accent); }

body > nav {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 12px max(24px, calc((100vw - var(--content)) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  backdrop-filter: blur(18px);
}
.logo, body > nav > div:first-child {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -.025em;
  white-space: nowrap;
}
.logo img { width: 30px; height: 30px; object-fit: contain; }
body > nav > div:first-child:not(.logo)::before {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line));
  border-radius: 10px;
  background: color-mix(in srgb, var(--accent) 13%, var(--surface));
  color: var(--accent);
  content: "V";
  font-size: 14px;
  font-weight: 800;
}
.nav-links, nav .links {
  display: flex;
  align-items: center;
  gap: 6px;
}
body > nav a {
  padding: 8px 11px;
  border-radius: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 550;
  transition: color .18s ease, background .18s ease;
}
body > nav a:hover, body > nav a:focus-visible {
  color: var(--text);
  background: var(--surface-raised);
}
body > nav a.cta, body > nav a.primary-link {
  padding-inline: 15px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
}
body > nav a.cta:hover, body > nav a.primary-link:hover {
  background: var(--accent-strong);
  color: var(--accent-ink);
}
.theme-toggle, .menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 650;
}
.theme-toggle:hover, .menu-toggle:hover { border-color: var(--accent); color: var(--text); }
.menu-toggle { display: none; }
.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 9px 12px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

main, .wrap, .features, .stats, .cta-band {
  width: min(var(--content), calc(100% - 48px));
  margin-inline: auto;
}
.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.07fr) minmax(330px, .93fr);
  align-items: center;
  gap: clamp(36px, 7vw, 90px);
  width: min(var(--content), calc(100% - 48px));
  min-height: 560px;
  margin: 0 auto;
  padding: 86px 0 72px;
  text-align: left;
}
.hero-copy { text-align: left; }
.hero::before {
  position: absolute;
  z-index: -1;
  top: 13%;
  left: -15%;
  width: 52%;
  height: 68%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(53, 103, 177, .12), transparent 69%);
  content: "";
  pointer-events: none;
}
.hero-copy { position: relative; z-index: 1; }
.eyebrow, .badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 82%, transparent);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 14px color-mix(in srgb, var(--success) 60%, transparent);
  content: "";
}
.hero h1 {
  max-width: 700px;
  margin-top: 25px;
  font-size: clamp(48px, 6.3vw, 76px);
  font-weight: 760;
  letter-spacing: -.075em;
  line-height: 1.02;
}
.hero h1 .accent { color: var(--accent); }
.hero p {
  max-width: 570px;
  margin-top: 21px;
  color: var(--muted);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.8;
}
.hero .actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 30px; }
.btn, a.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, border-color .18s ease, background .18s ease;
}
.btn:hover, a.btn:hover { transform: translateY(-1px); border-color: var(--accent); color: var(--text); }
.btn.primary, .btn-primary, a.btn.primary {
  border-color: var(--accent);
  background: var(--accent);
  color: var(--accent-ink);
}
.btn.primary:hover, .btn-primary:hover { border-color: var(--accent-strong); background: var(--accent-strong); color: var(--accent-ink); }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 12px; }
.hero-note strong { color: var(--text); font-weight: 600; }

.code-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(134, 182, 255, .25);
  border-radius: 17px;
  background: linear-gradient(150deg, #182a42, #0e1827 68%);
  box-shadow: var(--shadow);
  transform: rotate(1deg);
}
.code-window::after {
  position: absolute;
  right: -80px;
  bottom: -115px;
  width: 240px;
  height: 240px;
  border: 1px solid color-mix(in srgb, var(--accent) 16%, transparent);
  border-radius: 50%;
  box-shadow: 0 0 0 30px color-mix(in srgb, var(--accent) 4%, transparent), 0 0 0 60px color-mix(in srgb, var(--accent) 3%, transparent);
  content: "";
  pointer-events: none;
}
.code-window-head {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 46px;
  padding: 0 16px;
  border-bottom: 1px solid rgba(184, 204, 230, .13);
  color: #9aabc0;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
}
.code-window-head span:last-child { margin-left: auto; }
.window-dot { width: 8px; height: 8px; border-radius: 50%; background: #66778d; }
.window-dot:first-child { background: #fa7777; }
.window-dot:nth-child(2) { background: #e6b65c; }
.window-dot:nth-child(3) { background: #70c49a; }
.code-window pre {
  margin: 0;
  padding: 25px 22px 30px;
  overflow: auto;
  background: transparent;
  color: #d5e2f3;
  font-size: 12px;
  line-height: 2;
}
.code-window code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code-muted { color: #8295ad; }
.code-blue { color: #93c5fd; }
.code-green { color: #89d5a9; }

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 0 0 72px;
}
.stat {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}
.stat-mark {
  display: grid;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
}
.stat .n { font-size: 14px; font-weight: 700; }
.stat .l { color: var(--muted); font-size: 11px; }

.features { padding: 18px 0 78px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 25px; }
.section-kicker { color: var(--accent); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.features h2, .section-head h2 {
  margin-top: 6px;
  font-size: clamp(27px, 3vw, 36px);
  font-weight: 720;
  letter-spacing: -.055em;
  line-height: 1.2;
}
.features .sub, .section-head p { max-width: 480px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: linear-gradient(155deg, color-mix(in srgb, var(--surface-raised) 78%, transparent), var(--surface) 74%);
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.grid .card { min-height: 178px; padding: 20px; }
.grid .card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); box-shadow: 0 15px 35px rgba(0,0,0,.12); }
.card .icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  margin-bottom: 17px;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
  border-radius: 11px;
  background: color-mix(in srgb, var(--accent) 9%, var(--surface));
  color: var(--accent);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  font-weight: 750;
}
.card h3 { margin-bottom: 7px; font-size: 14px; font-weight: 700; letter-spacing: -.015em; }
.card p { color: var(--muted); font-size: 12px; line-height: 1.7; }

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 74px;
  padding: 30px 34px;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: var(--radius);
  background:
    radial-gradient(ellipse at 82% 30%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 48%),
    var(--surface);
}
.cta-band h2 { font-size: 23px; font-weight: 730; letter-spacing: -.045em; }
.cta-band p { margin-top: 5px; color: var(--muted); font-size: 13px; }

footer {
  padding: 42px 24px 20px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  width: min(var(--content), 100%);
  margin: 0 auto;
}
footer h4 { margin-bottom: 11px; color: var(--text); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
footer a { display: block; width: fit-content; margin: 7px 0; color: var(--muted); font-size: 12px; }
footer a:hover { color: var(--accent); }
footer .copy {
  width: min(var(--content), 100%);
  margin: 30px auto 0;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  font-size: 11px;
  text-align: center;
}

.page-heading { margin-bottom: 28px; }
.page-heading .eyebrow { margin-bottom: 16px; }
.page-heading h1, .wrap h1 {
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 740;
  letter-spacing: -.065em;
  line-height: 1.08;
}
.page-heading p, .wrap > p { max-width: 720px; margin-top: 12px; color: var(--muted); }
.wrap { padding: 58px 0 80px; }
.wrap h2 { margin: 30px 0 9px; font-size: 20px; letter-spacing: -.035em; }
.wrap p { margin: 10px 0; color: var(--muted); }
.wrap pre, pre:not(.code-window pre) {
  position: relative;
  overflow: auto;
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #09111d;
  color: #d6e5f7;
  font-size: 12px;
  line-height: 1.8;
}
[data-theme="light"] .wrap pre, [data-theme="light"] pre:not(.code-window pre) { background: #142134; color: #e3edfa; }
code, pre code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.copy-code {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 5px 9px;
  border: 1px solid rgba(220,235,255,.15);
  border-radius: 7px;
  background: rgba(255,255,255,.05);
  color: #c6d5e8;
  cursor: pointer;
  font-size: 10px;
}
.copy-code:hover { background: rgba(255,255,255,.12); }

/* Auth and settings */
body.auth-page { display: flex; flex-direction: column; }
.auth-main { display: grid; flex: 1; place-items: center; padding: 52px 24px; }
.auth-card {
  width: min(100%, 470px);
  padding: clamp(26px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 21px;
  background: linear-gradient(150deg, var(--surface-raised), var(--surface) 55%);
  box-shadow: var(--shadow);
}
.auth-mark {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  margin-bottom: 23px;
  border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line));
  border-radius: 15px;
  background: color-mix(in srgb, var(--accent) 11%, var(--surface));
  color: var(--accent);
  font-size: 20px;
  font-weight: 800;
}
.auth-card h1 { font-size: 29px; letter-spacing: -.05em; line-height: 1.2; }
.auth-card .sub { margin: 9px 0 25px; color: var(--muted); font-size: 14px; }
.notice {
  padding: 15px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 8%, var(--surface));
  color: var(--text);
  font-size: 13px;
  line-height: 1.7;
}
.notice strong { display: block; margin-bottom: 4px; color: var(--accent); font-size: 12px; letter-spacing: .02em; }
.auth-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.auth-foot { margin-top: 22px; color: var(--muted); font-size: 12px; }
.danger-button {
  min-height: 38px;
  margin-top: 13px;
  padding: 8px 11px;
  border: 1px solid color-mix(in srgb, #ef8585 35%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, #ef8585 8%, var(--surface));
  color: #e99a9a;
  cursor: pointer;
  font-size: 11px;
  font-weight: 650;
}
.danger-button:hover { border-color: #ef8585; background: color-mix(in srgb, #ef8585 14%, var(--surface)); }
.action-status { min-height: 20px; color: var(--muted); font-size: 11px; }
[data-theme="light"] .danger-button { border-color: #d9a1a1; background: #fff3f3; color: #8d3333; }
[data-theme="light"] .danger-button:hover { border-color: #b84c4c; background: #ffebeb; }
body.auth-page footer { padding: 15px 24px; text-align: center; }
.settings-layout {
  display: grid;
  grid-template-columns: 225px minmax(0, 1fr);
  gap: 36px;
  width: min(1050px, calc(100% - 48px));
  margin: 50px auto 90px;
}
.settings-sidebar {
  align-self: start;
  position: sticky;
  top: 100px;
}
.settings-sidebar .logo { margin-bottom: 24px; }
.settings-sidebar a { display: block; padding: 10px 12px; border-radius: 9px; color: var(--muted); font-size: 13px; }
.settings-sidebar a.active, .settings-sidebar a:hover { background: var(--surface); color: var(--text); }
.settings-content { width: auto; min-width: 0; margin: 0; }
.settings-content > .page-heading { margin-bottom: 25px; }
.settings-content .card { padding: 25px; margin-bottom: 14px; }
.profile-summary { display: flex; align-items: center; gap: 16px; }
.avatar {
  display: grid;
  width: 54px;
  height: 54px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--line));
  border-radius: 17px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--accent);
  font-size: 19px;
  font-weight: 750;
}
.profile-summary h2 { margin: 0 0 3px; font-size: 17px; }
.profile-summary p { margin: 0; color: var(--muted); font-size: 12px; }
.settings-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.settings-row label { color: var(--text); font-size: 13px; font-weight: 650; }
.settings-row p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
select, input {
  min-height: 42px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-soft);
  color: var(--text);
}
.settings-row select { min-width: 140px; }
.platforms { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.plat { padding: 11px 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); font-size: 12px; }
.badge { margin-left: 7px; padding: 3px 7px; font-size: 9px; letter-spacing: .05em; }
.badge.ok { color: var(--success); }
.badge.no { color: var(--muted); }
.plat.disabled { opacity: .72; }
.legal-page { max-width: 820px; }
.legal-intro {
  margin: 22px 0 30px;
  padding: 17px 19px;
  border: 1px solid color-mix(in srgb, var(--accent) 23%, var(--line));
  border-radius: 12px;
  background: color-mix(in srgb, var(--accent) 7%, var(--surface));
  color: var(--text);
  font-size: 13px;
}
.legal-section { padding: 17px 0; border-top: 1px solid var(--line); }
.legal-section h2 { margin: 0 0 6px; font-size: 16px; }
.legal-section p { margin: 0; }
.legal-section a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

/* Documentation */
body.docs-page {
  display: grid;
  grid-template-columns: 254px minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  min-height: 100vh;
}
body.docs-page > nav { grid-column: 1 / -1; grid-row: 1; }
.docs-sidebar {
  position: sticky;
  top: 76px;
  grid-column: 1;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: calc(100vh - 76px);
  overflow: auto;
  padding: 23px 16px 20px;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
.docs-sidebar-title { display: flex; align-items: center; gap: 10px; padding: 3px 7px 14px; font-size: 13px; font-weight: 720; }
.docs-mark { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.docs-sidebar-caption { display: block; color: var(--muted); font-size: 10px; font-weight: 500; }
.docs-search-label { padding: 6px 8px 0; color: var(--muted); font-size: 10px; font-weight: 650; }
.docs-search {
  width: 100%;
  min-height: 37px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 11px;
}
.docs-topic-list { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 2px; margin: 2px 0 8px; }
.docs-topic-list a { padding: 7px 9px; border-radius: 7px; color: var(--muted); font-size: 11px; }
.docs-topic-list a:hover { background: var(--surface); color: var(--text); }
.docs-topic-list a.active { background: color-mix(in srgb, var(--accent) 12%, var(--surface)); color: var(--accent); font-weight: 680; }
.docs-group-label { margin: 14px 8px 5px; color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .12em; }
.docs-back-link { padding: 10px 8px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.docs-article {
  grid-column: 2;
  grid-row: 2;
  width: min(880px, calc(100% - 88px));
  margin: 0 auto;
  padding: 54px 0 82px;
}
.docs-crumb { display: flex; align-items: center; gap: 9px; margin: 0 0 19px !important; color: var(--muted); font-size: 11px; }
.docs-crumb a { color: var(--accent); }
.docs-article h1 { margin-bottom: 13px; }
.docs-article h1 + p { margin-bottom: 26px; font-size: 15px; }
.docs-article > div[style*="margin-top"] {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 40px !important;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.docs-article .btn { margin: 0; }
.docs-article .btn:first-child { margin-right: auto; }
body.docs-home {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 100vh;
}
body.docs-home > aside {
  position: sticky;
  top: 0;
  grid-row: 1;
  grid-column: 1;
  width: auto;
  height: 100vh;
  padding: 28px 18px 24px;
  overflow: auto;
  border-right: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}
body.docs-home > aside a { padding: 8px 9px; border-radius: 7px; font-size: 11px; }
body.docs-home > aside a:hover { background: var(--surface); }
body.docs-home > main { grid-column: 2; grid-row: 1; width: min(880px, calc(100% - 72px)); margin: auto; padding: 76px 0; }
body.docs-home > main h1 { font-size: clamp(38px, 6vw, 58px); letter-spacing: -.065em; }
body.docs-home > main p { color: var(--muted); }
body.docs-home .toggle { position: fixed; top: 18px; right: 20px; z-index: 5; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--text); padding: 8px 11px; cursor: pointer; }
.docs-start-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 36px 0 52px; }
.docs-start-grid .card { min-height: 205px; padding: 19px; }
.docs-start-grid .card:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.docs-start-grid .icon { margin-bottom: 13px; }
.docs-card-link { display: inline-block; margin-top: 17px; color: var(--accent); font-size: 11px; font-weight: 700; }
.docs-module-list { padding-top: 26px; border-top: 1px solid var(--line); }
.docs-module-list h2 { margin: 8px 0; font-size: 22px; letter-spacing: -.04em; }
.docs-inline-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.docs-inline-links a { padding: 7px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--muted); font-size: 11px; }
.docs-inline-links a:hover { border-color: var(--accent); color: var(--text); }
.docs-home-note { margin-top: 34px; padding: 14px 16px; border-left: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 6%, var(--surface)); font-size: 12px; }

@media (max-width: 760px) {
  body.docs-page { display: block; }
  .docs-sidebar { display: none; }
  .docs-article { width: min(100% - 36px, 760px); padding: 37px 0 60px; }
  body.docs-home { display: block; }
  body.docs-home > aside { display: none; }
  body.docs-home > aside a { display: inline-block; margin: 2px; }
  body.docs-home > main { width: calc(100% - 40px); padding: 44px 0; }
  .docs-start-grid { grid-template-columns: 1fr; }
  .docs-start-grid .card { min-height: 0; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; min-height: auto; padding: 72px 0 56px; }
  .hero-copy { max-width: 700px; }
  .code-window { max-width: 620px; transform: none; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  body > nav { min-height: 65px; padding: 10px 20px; }
  .menu-toggle { display: inline-flex; margin-left: auto; }
  .nav-links, nav .links {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    display: none;
    align-items: stretch;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  body > nav[data-menu-open="true"] .nav-links,
  body > nav[data-menu-open="true"] .links { display: flex; flex-direction: column; }
  body > nav .nav-links a, body > nav .links a { width: 100%; margin: 0; padding: 11px 12px; }
  .theme-toggle { justify-content: flex-start; width: 100%; }
  main, .wrap, .features, .stats, .cta-band { width: min(100% - 36px, var(--content)); }
  .hero { width: min(100% - 36px, var(--content)); padding: 58px 0 45px; }
  .hero h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero p { font-size: 15px; }
  .code-window pre { padding: 20px 16px 24px; font-size: 10px; }
  .stats { grid-template-columns: 1fr; gap: 8px; padding-bottom: 52px; }
  .stat { padding: 12px 14px; }
  .section-head { align-items: start; flex-direction: column; }
  .grid { grid-template-columns: 1fr; }
  .grid .card { min-height: 0; }
  .cta-band { align-items: start; flex-direction: column; padding: 25px 22px; margin-bottom: 50px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .wrap { padding: 42px 0 62px; }
  .settings-layout { grid-template-columns: 1fr; gap: 20px; width: calc(100% - 36px); margin: 28px auto 60px; }
  .settings-sidebar { position: static; }
  .settings-sidebar .logo { margin-bottom: 10px; }
  .settings-sidebar nav { display: flex; gap: 6px; }
  .settings-row { align-items: start; flex-direction: column; }
  .settings-row select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}
