:root {
  --bg: #101a17;
  --surface: #18251f;
  --surface-2: #21332a;
  --fg: #f1f6f3;
  --muted: #bdcec4;
  --line: #41574b;
  --mint: #a4e8bf;
  --danger: #ffb9ac;
  --sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--bg); color: var(--fg); }
body { margin: 0; font: 16px/1.65 var(--sans); text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
a { color: var(--mint); text-underline-offset: .2em; }
a:hover { color: var(--fg); }
button, input, textarea, select { font: inherit; }
button, a, input, textarea, select { touch-action: manipulation; }
:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
code, pre { font-family: var(--mono); }
code { overflow-wrap: anywhere; }
.wrap { width: min(1100px, calc(100% - 3rem)); margin-inline: auto; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 3; transform: translateY(-200%); background: var(--mint); color: var(--bg); padding: .75rem; }
.skip-link:focus { transform: none; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 1.25rem; border-bottom: 1px solid var(--line); }
.brand { display: flex; gap: .6rem; align-items: center; color: var(--fg); font-weight: 850; text-decoration: none; white-space: nowrap; }
.mark { color: var(--mint); }
.nav-links { display: flex; flex-wrap: wrap; gap: .25rem; }
.nav-links a { padding: .5rem .7rem; color: var(--muted); text-decoration: none; }
.nav-links a:hover { color: var(--fg); text-decoration: underline; }
.hero { padding: 4rem 0; }
.hero-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(3rem, 7.6vw, 5.9rem); line-height: 1; letter-spacing: -.035em; max-width: 12ch; }
h2 { font-size: 2.25rem; line-height: 1.1; letter-spacing: -.035em; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1rem; }
p { max-width: 70ch; }
.hero-kicker { color: var(--mint); margin: 0 0 1rem; }
.lede { font-size: 1.15rem; color: var(--muted); margin: 1.5rem 0; }
.hero-actions, .install-actions, .row-actions { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.btn { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--fg); text-decoration: none; font-weight: 650; cursor: pointer; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--mint); color: var(--bg); border-color: var(--mint); }
.btn.primary:hover { background: #c4f5d6; }
.btn:disabled { cursor: wait; opacity: .65; }
.agent-hint { color: var(--muted); margin-top: 1.25rem; font-size: .9rem; }
.hero-panel { padding: 1.5rem; background: var(--surface); border-radius: 8px; }
.live-dot { display: flex; align-items: center; gap: .6rem; }
.live-dot span { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.live-dot.down span { background: var(--danger); }
.hero-stats { display: flex; gap: 2rem; margin: 1.5rem 0; }
.hero-stats dt { color: var(--muted); font-size: .875rem; }
.hero-stats dd { margin: .25rem 0 0; font-size: 1.5rem; font-weight: 650; }
.token-badge { padding-top: 1rem; border-top: 1px solid var(--line); }
.token-badge span, .token-badge small { display: block; color: var(--muted); }
.token-badge strong { display: block; margin: .25rem 0; }
.endpoint-line { display: block; margin-top: 1rem; font-size: .8rem; color: var(--muted); }
.section { padding-block: 3rem; border-top: 1px solid var(--line); scroll-margin-top: 1rem; }
.section-head { margin-bottom: 1.5rem; }
.section-head p, .install-panel p, .docs-callout p, .muted { color: var(--muted); }
.split-head { display: flex; justify-content: space-between; align-items: start; gap: 2rem; }
.split-head > .btn { flex-shrink: 0; }
.tabs { display: flex; gap: .3rem; overflow-x: auto; padding: .3rem .3rem 1rem; }
.tabs button { white-space: nowrap; min-height: 44px; padding: .5rem .9rem; border: 0; border-radius: 5px; color: var(--muted); background: transparent; cursor: pointer; }
.tabs button[aria-selected="true"] { color: var(--bg); background: var(--mint); }
.tabs button:hover { text-decoration: underline; }
.install-panel, .playground-card, .status-card { min-width: 0; padding: 1.5rem; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
pre { min-width: 0; overflow: auto; padding: 1rem; background: var(--bg); border-radius: 5px; font-size: .875rem; line-height: 1.6; }
.install-panel pre { max-height: 18rem; }
.copy-status { min-height: 1.5rem; color: var(--mint); }
.docs-callout { display: flex; justify-content: space-between; align-items: center; gap: 2rem; }
.docs-callout h2 { font-size: 1.4rem; }
.doc-links, .status-links { display: flex; flex-wrap: wrap; gap: 1rem; }
.doc-links a, .status-links a { padding-block: .4rem; }
.source-directory { display: grid; gap: 2rem; }
.domain-group > h3 { color: var(--mint); padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
.source-grid { display: block; }
.source-card { display: grid; grid-template-columns: 1fr 2fr; gap: .5rem 2rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.source-card p { margin: 0; color: var(--muted); }
.source-meta { display: flex; flex-wrap: wrap; gap: .75rem; color: var(--muted); font-size: .85rem; }
.source-card .example { font-size: .9rem; }
.playground-card { display: grid; gap: 1rem; }
.playground-card label { display: grid; gap: .4rem; font-weight: 600; }
.query-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-block: 1rem; }
.query-settings { border-block: 1px solid var(--line); padding: 1rem 0; }
.query-settings summary { cursor: pointer; color: var(--mint); width: fit-content; }
input, textarea, select { width: 100%; min-width: 0; min-height: 44px; padding: .75rem; border: 1px solid var(--line); border-radius: 5px; background: var(--bg); color: var(--fg); }
textarea { margin-top: .5rem; resize: vertical; font-family: var(--mono); }
.output { margin: 0; min-height: 10rem; max-height: 32rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.output.error { color: var(--danger); }
.status-main { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.status-ok { color: var(--mint); }
.status-bad { color: var(--danger); }
.status-sources { display: flex; gap: .5rem 1.5rem; flex-wrap: wrap; margin-top: 1rem; color: var(--muted); }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero { padding-block: 2.5rem; }
  h1 { font-size: 4rem; }
  .docs-callout, .split-head { flex-direction: column; gap: 1rem; align-items: start; }
}
@media (max-width: 540px) {
  .wrap { width: calc(100% - 2rem); }
  .site-header { flex-direction: column; align-items: start; gap: .5rem; }
  .nav-links a { padding-inline: .5rem; }
  h1 { font-size: clamp(2.65rem, 12vw, 4.4rem); }
  h2 { font-size: 1.75rem; }
  .section { padding-block: 2rem; }
  .source-card, .query-grid { grid-template-columns: 1fr; }
  .source-card .example { margin-top: .25rem; }
  .hero-stats { gap: 1.5rem; }
  .install-panel, .playground-card, .status-card, .hero-panel { padding: 1rem; }
}

.video-background { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.video-background video { width: 100%; height: 100%; object-fit: cover; opacity: .38; }
.video-background::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgb(7 17 14 / .72), rgb(7 17 14 / .3)); }
body { isolation: isolate; }
.hero-panel { background: rgb(16 26 23 / .94); }
.motion-toggle { margin-top: 1rem; font-size: .875rem; }
.section, .site-footer { background: var(--bg); padding-inline: 1.5rem; }
@media (max-width: 540px) {
  .section, .site-footer { padding-inline: 1rem; }
}
