:root {
  color-scheme: dark;
  --bg: #060608;
  --bg-2: #0a0a0d;
  --ink: #f4f5f7;
  --ink-2: #c8cad2;
  --muted: #9398a6;
  --faint: #565a68;
  --surface: rgba(255, 255, 255, 0.024);
  --border: rgba(255, 255, 255, 0.09);
  --beam: oklch(0.68 0.17 258);
  --beam-ink: oklch(0.82 0.13 258);
  --beam-soft: oklch(0.68 0.17 258 / 0.16);
  --radius: 10px;
  --font: ui-sans-serif, system-ui, -apple-system, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --max: 72rem;
  --sidebar: 15rem;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--beam-ink);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a:focus-visible {
  outline: 2px solid var(--beam-ink);
  outline-offset: 3px;
  border-radius: 4px;
}

code,
pre {
  font-family: var(--mono);
}

.shell {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3.5rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.logo-mark {
  width: 1rem;
  height: 0.25rem;
  border-radius: 2px;
  background: var(--beam);
}

.home-page h1, .home-page h2, .home-page h3, .home-page p { margin-top: 0; }
.home-hero { padding-block: clamp(4rem, 10vw, 7rem); border-top: 3px solid var(--beam); }
.home-hero-grid { display: grid; gap: clamp(2rem, 7vw, 5rem); align-items: center; }
.home-hero h1 { max-width: 11ch; margin-bottom: 1rem; font-size: clamp(3rem, 8vw, 6rem); line-height: .96; letter-spacing: -.06em; }
.eyebrow { color: var(--beam-ink); font-family: var(--mono); font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; }
.home-lede { max-width: 42rem; color: var(--ink-2); font-size: 1.12rem; }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1.4rem; }
.home-proof { display: flex; flex-wrap: wrap; gap: .5rem 1rem; margin-top: 1.25rem; color: var(--muted); font-family: var(--mono); font-size: .76rem; }
.home-proof span::before { content: "— "; color: var(--beam); }
.product-sample { padding: 1rem; border: 1px solid var(--border); border-radius: 12px; background: #0a0a0d; }
.sample-cover { display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 1rem; border-radius: 8px; background: #183158; color: #b8d0ff; font-size: 4rem; font-weight: 800; }
.product-sample p, .product-sample > span { color: var(--muted); font-size: .82rem; }
.product-sample h2 { margin-bottom: .2rem; }
.product-sample > a { display: flex; min-height: 2.75rem; align-items: center; margin-top: .55rem; padding-inline: .8rem; border: 1px solid var(--border); border-radius: 7px; color: var(--ink); }
.home-section { padding-block: clamp(3.5rem, 8vw, 6rem); border-top: 1px solid var(--border); }
.home-section h2 { max-width: 16ch; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; letter-spacing: -.045em; }
.home-features { display: grid; margin-top: 2rem; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.home-features article { padding: 1.25rem; border-top: 1px solid var(--border); }
.home-features article:first-child { border-top: 0; }
.home-features article > span { color: var(--beam-ink); font-family: var(--mono); font-size: .75rem; }
.home-features h3 { margin: .7rem 0 .35rem; }
.home-features p { margin-bottom: 0; color: var(--muted); }
.home-metrics { display: grid; margin-top: 1rem; border: 1px solid var(--border); border-radius: 10px; }
.home-metrics span { display: grid; gap: .2rem; padding: .8rem 1rem; border-top: 1px solid var(--border); }
.home-metrics span:first-child { border-top: 0; }
.home-metrics small { color: var(--muted); }
.home-metrics strong { font-size: 1.25rem; font-variant-numeric: tabular-nums; }
.home-table { overflow-x: auto; margin-top: 2rem; border: 1px solid var(--border); border-radius: 10px; }
.home-table table { width: 100%; min-width: 40rem; border-collapse: collapse; text-align: left; }
.home-table th, .home-table td { padding: .85rem 1rem; border-top: 1px solid var(--border); }
.home-table thead th { border-top: 0; color: var(--muted); }
.home-table td:nth-child(2), .home-table thead th:nth-child(2) { background: #101a2d; }
.home-run { display: grid; gap: 2rem; align-items: center; }
.home-run p { max-width: 38rem; color: var(--muted); }
.home-run pre { margin: 0; padding: 1rem; overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; background: #050609; }
.site-footer { padding-block: 2rem; border-top: 1px solid var(--border); color: var(--muted); }

@media (min-width: 900px) {
  .home-hero-grid { grid-template-columns: 1.05fr .65fr; }
  .home-features { grid-template-columns: repeat(3, 1fr); }
  .home-features article { border-top: 0; border-left: 1px solid var(--border); }
  .home-features article:first-child { border-left: 0; }
  .home-metrics { grid-template-columns: repeat(3, 1fr); }
  .home-metrics span { border-top: 0; border-left: 1px solid var(--border); }
  .home-metrics span:first-child { border-left: 0; }
  .home-run { grid-template-columns: 1fr 1fr; }
}

.header-links {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.92rem;
}

.header-links a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
}

.header-links a:not(.btn):hover {
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
}

.btn-beam {
  border-color: transparent;
  background: var(--beam);
  color: #060608;
}

.docs-layout {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  gap: 2.5rem;
  padding-block: 2rem 4rem;
}

.sidebar {
  position: sticky;
  top: 4.5rem;
  align-self: start;
}

.sidebar h2 {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sidebar nav {
  display: grid;
  gap: 0.2rem;
}

.sidebar a {
  display: block;
  padding: 0.35rem 0.55rem;
  border-radius: 6px;
  color: var(--muted);
  font-size: 0.92rem;
  text-decoration: none;
}

.sidebar a:hover {
  color: var(--ink);
  background: var(--surface);
  text-decoration: none;
}

.sidebar a[aria-current="page"] {
  color: var(--ink);
  background: var(--beam-soft);
}

.content h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.content .lede {
  margin: 0 0 2rem;
  max-width: 42rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.content h2 {
  margin: 2.25rem 0 0.75rem;
  font-size: 1.25rem;
}

.content h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1rem;
}

.content p,
.content ul,
.content ol {
  margin: 0 0 1rem;
  max-width: 42rem;
  color: var(--ink-2);
}

.content li + li {
  margin-top: 0.35rem;
}

.content strong {
  color: var(--ink);
}

.panel {
  margin: 1.25rem 0;
  padding: 1rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel p:last-child {
  margin-bottom: 0;
}

.terminal {
  margin: 1rem 0 1.5rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0c0c10;
}

.terminal pre {
  margin: 0;
  overflow-x: auto;
  padding: 1rem 1.1rem;
  color: var(--ink-2);
  font-size: 0.86rem;
  line-height: 1.75;
}

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

th {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td code {
  font-size: 0.84rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  padding-block: 1.25rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 860px) {
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border);
  }

  .site-footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

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

/* AI integration prompt panel */
.prompt-card {
  margin: 1.5rem 0 2rem;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #0c0c10;
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.35);
}

.prompt-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.02);
}

.prompt-dots {
  display: inline-flex;
  gap: 0.35rem;
}

.prompt-dots i {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--faint);
}

.prompt-dots i:nth-child(1) {
  background: #ff5f57;
}

.prompt-dots i:nth-child(2) {
  background: #febc2e;
}

.prompt-dots i:nth-child(3) {
  background: #28c840;
}

.prompt-title {
  flex: 1;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-align: center;
}

.copy-btn {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
}

.copy-btn:hover {
  border-color: var(--beam);
  color: var(--beam-ink);
}

.copy-btn.is-copied {
  border-color: #28c840;
  color: #8ce99a;
}

.prompt-body {
  margin: 0;
  overflow: auto;
  max-height: 28rem;
  padding: 1.1rem 1.2rem;
  color: var(--ink-2);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.7;
  white-space: pre-wrap;
}

.tool-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.25rem;
}

.tool-pills span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tool-pills a {
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.82rem;
  text-decoration: none;
}

.tool-pills a:hover {
  border-color: var(--beam);
  color: var(--beam-ink);
  text-decoration: none;
}
