:root {
  color-scheme: dark;
  --ink: #eaf2fb;
  --muted: #96a6b7;
  --faint: #65778a;
  --bg: #070b11;
  --panel: #0d141d;
  --panel-raised: #111b26;
  --line: rgba(172, 207, 236, 0.14);
  --line-strong: rgba(172, 207, 236, 0.24);
  --accent: #91c9f2;
  --accent-strong: #6faee0;
  --accent-ink: #081019;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--bg); }

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 70% -10%, rgba(80, 146, 198, 0.13), transparent 32rem),
    linear-gradient(180deg, #0a1018 0%, var(--bg) 26rem);
}

a { color: inherit; text-decoration: none; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.site-shell { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 92px;
  border-bottom: 1px solid var(--line);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-size: 15px; font-weight: 700; letter-spacing: -0.02em; }
.brand-mark { display: block; width: 36px; height: 36px; border-radius: 11px; box-shadow: 0 0 0 1px rgba(172, 207, 236, 0.2); }
nav { display: flex; gap: 28px; color: var(--muted); font-size: 13px; }
nav a { transition: color 160ms ease; }
nav a:hover { color: var(--ink); }

.hero { max-width: 760px; padding: 112px 0 96px; }
.eyebrow, .card-kicker { color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: 0.13em; text-transform: uppercase; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 20px var(--accent); }
h1, h2, p { margin-top: 0; }
h1 { max-width: 760px; margin: 22px 0 22px; font-size: clamp(42px, 7vw, 78px); line-height: 0.98; letter-spacing: -0.065em; font-weight: 720; }
.hero-copy { max-width: 610px; margin-bottom: 32px; color: var(--muted); font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; gap: 11px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 12px 16px; font-size: 13px; font-weight: 700; transition: transform 160ms ease, border-color 160ms ease, background 160ms ease; }
.button:hover { transform: translateY(-1px); border-color: rgba(172, 207, 236, 0.4); }
.button-primary { border-color: transparent; background: var(--accent); color: var(--accent-ink); }
.button-primary:hover { background: #b1ddfb; }
.button-secondary { color: var(--ink); background: rgba(255, 255, 255, 0.02); }
.hero-note { margin-top: 22px; color: var(--faint); font-size: 12px; }
.hero-note span { margin-right: 8px; color: var(--accent); }

.feature-grid { display: grid; grid-template-columns: 1.2fr 0.9fr 0.9fr; gap: 14px; }
.feature-card, .document-card { border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(145deg, rgba(20, 31, 44, 0.82), rgba(10, 16, 24, 0.88)); box-shadow: var(--shadow); }
.feature-card { min-height: 310px; padding: 26px; overflow: hidden; }
.feature-card h2 { max-width: 300px; margin: 24px 0 12px; font-size: 22px; line-height: 1.1; letter-spacing: -0.04em; }
.feature-card p { color: var(--muted); font-size: 14px; line-height: 1.65; }
.theme-swatch { display: flex; gap: 7px; margin-top: 42px; }
.theme-swatch i { display: block; width: 48px; height: 48px; border-radius: 11px; border: 1px solid rgba(255,255,255,.1); }
.theme-swatch i:nth-child(1) { background: #0d1016; }
.theme-swatch i:nth-child(2) { background: #171c25; }
.theme-swatch i:nth-child(3) { background: #e7edf4; }
.theme-swatch i:nth-child(4) { background: #9ba8b6; }
.theme-swatch i:nth-child(5) { background: #77b8ff; }
.mini-rule { display: flex; justify-content: space-between; gap: 10px; margin-top: 11px; border-top: 1px solid var(--line); padding-top: 11px; color: var(--muted); font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
.mini-rule b { color: var(--accent); font-weight: 500; }
.local-lock { display: inline-flex; align-items: center; gap: 9px; margin-top: 26px; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; color: var(--muted); font-size: 12px; }
.local-lock span:first-child { color: var(--accent); }

.quiet-callout { display: flex; gap: 18px; align-items: flex-start; margin: 74px 0 110px; border-top: 1px solid var(--line); padding-top: 28px; }
.quiet-icon { display: grid; place-items: center; flex: 0 0 34px; height: 34px; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); }
.quiet-callout h2 { margin-bottom: 7px; font-size: 18px; letter-spacing: -0.03em; }
.quiet-callout p { margin-bottom: 0; color: var(--muted); font-size: 14px; }
.footer { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line); padding: 23px 0 34px; color: var(--faint); font-size: 12px; }
.footer a { color: var(--muted); }

.document-layout { max-width: 820px; padding: 86px 0 96px; }
.document-intro { margin-bottom: 36px; }
.document-intro h1 { margin-bottom: 18px; font-size: clamp(42px, 7vw, 64px); }
.document-lede { margin-bottom: 0; color: var(--muted); font-size: 16px; line-height: 1.6; }
.document-card { padding: clamp(24px, 5vw, 42px); }
.document-card + .document-card { margin-top: 14px; }
.document-card h2 { margin: 34px 0 12px; font-size: 20px; letter-spacing: -0.04em; }
.document-card h2:first-of-type { margin-top: 0; }
.document-card p, .document-card li { color: var(--muted); font-size: 14px; line-height: 1.75; }
.document-card ul, .document-card ol { margin: 10px 0 18px; padding-left: 22px; }
.document-card code { border: 1px solid var(--line); border-radius: 5px; padding: 2px 5px; color: var(--accent); background: rgba(145, 201, 242, 0.07); font-size: 0.92em; }
.document-card strong { color: var(--ink); }
.support-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.support-grid .document-card { min-height: 255px; }
.support-wide { grid-column: 1 / -1; min-height: auto !important; }
.support-wide h2 { margin-top: 10px; }
.inline-link { display: inline-block; margin-top: 10px; color: var(--accent); font-size: 13px; font-weight: 700; }

@media (max-width: 760px) {
  .site-shell { width: min(100% - 32px, 620px); }
  .topbar { min-height: 78px; }
  nav { gap: 16px; }
  .hero { padding: 80px 0 72px; }
  .feature-grid, .support-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .theme-swatch { margin-top: 28px; }
  .support-wide { grid-column: auto; }
  .document-layout { padding: 62px 0 74px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

