:root {
  color-scheme: light dark;
  --bg: #f3f6f9;
  --bg-card: #ffffff;
  --panel: #ffffff;
  --surface: #ffffff;
  --surface-2: #e9eff5;
  --text: #0c1620;
  --muted: #526475;
  --muted-2: #8394a5;
  --accent: #0f86c9;
  --accent-soft: rgba(15, 134, 201, .12);
  --border: #dce4ec;
  --line: #dce4ec;
  --shadow: 0 8px 24px rgba(12, 22, 32, .08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1015;
    --bg-card: #151b22;
    --panel: #151b22;
    --surface: #151b22;
    --surface-2: #1d252e;
    --text: #eef3f8;
    --muted: #9db0c2;
    --muted-2: #6a7c8e;
    --accent: #59c8ff;
    --accent-soft: rgba(89, 200, 255, .14);
    --border: rgba(199, 221, 243, .10);
    --line: rgba(199, 221, 243, .10);
    --shadow: 0 8px 24px rgba(0, 0, 0, .35);
  }
}

html { scroll-behavior: smooth; }
body {
  background: var(--bg) !important;
  color: var(--text) !important;
  font-family: Sora, system-ui, sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { letter-spacing: -.025em; }
code, pre, .mono { font-family: "IBM Plex Mono", monospace !important; }
header, nav {
  border-color: var(--line) !important;
}
.nav, body > nav, body > header {
  background: color-mix(in srgb, var(--bg) 88%, transparent) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.card, .faq-item, .panel, .section-card, .roadmap-card, .release, article {
  background: var(--surface) !important;
  border-color: var(--line) !important;
  box-shadow: none !important;
}
a { color: var(--accent); }
button, .button, .btn-primary { border-radius: 999px !important; }
footer { border-color: var(--line) !important; color: var(--muted-2) !important; }

/* Shared documentation shell: support + user guide. */
.docs-page {
  --max-w: 880px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Sora, system-ui, sans-serif;
}
.docs-page .wrap { width: min(var(--max-w), calc(100% - 40px)); margin-inline: auto; padding: 0; }
.docs-page nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 88%, transparent) !important;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.docs-page .nav-inner {
  width: min(var(--max-w), calc(100% - 40px));
  min-height: 64px;
  margin-inline: auto;
  padding: 10px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.docs-page .brand { display: flex; align-items: center; gap: 12px; color: var(--text); min-width: 0; }
.docs-page .brand img { width: 32px; height: 32px; border-radius: 9px; flex: none; }
.docs-page .wordmark { display: flex; align-items: baseline; gap: 6px; font-size: 15px; font-weight: 300; letter-spacing: .32em; white-space: nowrap; }
.docs-page .wordmark b { color: var(--accent); font-weight: 500; }
.docs-page .nav-links { display: flex; gap: 20px; font-size: 13px; font-weight: 500; }
.docs-page .nav-links a { color: var(--muted); }
.docs-page .nav-links a:hover { color: var(--accent); }
.docs-page .page-header,
.docs-page .guide-header { padding: 64px 0 30px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.docs-page .page-header h1,
.docs-page .guide-header h1 { margin: 0 0 10px; font-size: clamp(34px, 7vw, 52px); line-height: 1.05; letter-spacing: -.045em; }
.docs-page .page-header p,
.docs-page .guide-header .tagline { color: var(--muted); font-size: 16px; }
.docs-page .contact-card,
.docs-page .guide-link,
.docs-page .toc {
  background: var(--surface) !important;
  border: 1px solid var(--line) !important;
  border-radius: 22px !important;
  box-shadow: none !important;
}
.docs-page .guide-link { background: linear-gradient(145deg, var(--surface), var(--accent-soft)) !important; }
.docs-page .guide-link h3 { color: var(--accent) !important; }
.docs-page .faq-item { padding: 22px 0; border-color: var(--line) !important; }
.docs-page .faq-item h3 { font-size: 16px; }
.docs-page .guide h2 { margin-top: 56px; padding-top: 22px; border-color: var(--line); font-size: 24px; letter-spacing: -.025em; }
.docs-page .guide h3 { color: var(--text); }
.docs-page .guide img {
  width: min(100%, 390px);
  max-width: 390px;
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  margin: 20px 0 30px;
}
.docs-page .guide table { display: block; overflow-x: auto; }
.docs-page footer { margin-top: 56px; padding: 32px 0 44px; }
@media (max-width: 640px) {
  .docs-page .wrap,
  .docs-page .nav-inner { width: min(100% - 32px, var(--max-w)); }
  .docs-page .nav-inner { align-items: flex-start; flex-direction: column; gap: 8px; }
  .docs-page .nav-links { width: 100%; gap: 14px; overflow-x: auto; padding-bottom: 2px; white-space: nowrap; }
  .docs-page .page-header,
  .docs-page .guide-header { padding-top: 44px; }
  .docs-page .guide img { width: min(100%, 330px); max-width: 330px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
