/* ============================================
   DBOps Landing — design tokens
   Mirrors the console (DBOps-www) tokens
   ============================================ */

:root,
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --bg-subtle: #0d0d0d;
  --bg-soft: #111111;
  --panel: #0f0f0f;
  --panel-2: #141414;
  --border: #1f1f1f;
  --border-strong: #2a2a2a;
  --text: #fafafa;
  --text-soft: #a8a29e;
  --text-muted: #6b6764;
  --accent: #3b82f6;
  --accent-soft: #0f1d3a;
  --accent-edge: #1e3a8a;
  --success: #22c55e;
  --warn: #f59e0b;
  --error: #ef4444;
  --info: #6366f1;
  --m-throughput: #3b82f6;
  --m-volume: #6366f1;
  --m-success: #22c55e;
  --m-latency: #f59e0b;
  --m-error: #ef4444;
  --m-cost: #a78bfa;
  --m-pii: #ef4444;
  --grid: rgba(255, 255, 255, 0.04);
  --grid-strong: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.4), 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.6);
}

:root[data-theme="light"] {
  --bg: #ffffff;
  --bg-subtle: #fafafa;
  --bg-soft: #f5f5f4;
  --panel: #ffffff;
  --panel-2: #fafafa;
  --border: #e7e5e4;
  --border-strong: #d6d3d1;
  --text: #1c1917;
  --text-soft: #57534e;
  --text-muted: #a8a29e;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --accent-edge: #93c5fd;
  --success: #15803d;
  --warn: #b45309;
  --error: #b91c1c;
  --info: #6366f1;
  --m-throughput: #2563eb;
  --m-volume: #6366f1;
  --m-success: #15803d;
  --m-latency: #b45309;
  --m-error: #b91c1c;
  --m-cost: #7c3aed;
  --m-pii: #b91c1c;
  --grid: rgba(0, 0, 0, 0.04);
  --grid-strong: rgba(0, 0, 0, 0.08);
  --shadow-sm: 0 1px 0 rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* ============================================
   Reset & base
   ============================================ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { color-scheme: dark; }
:root[data-theme="light"] { color-scheme: light; }

body {
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mono {
  font-family: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-feature-settings: "ss02", "ss19";
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ============================================
   App shell
   ============================================ */
.app {
  min-height: 100vh;
  background:
    radial-gradient(ellipse at 50% -10%, color-mix(in oklab, var(--accent) 12%, transparent), transparent 60%),
    var(--bg);
}

/* Top nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 0 28px;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand-mark {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--accent), color-mix(in oklab, var(--accent) 60%, #6366f1));
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 2px rgba(0,0,0,0.4);
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 12px;
}
.nav-links a {
  padding: 6px 10px;
  font-size: 13px;
  color: var(--text-soft);
  border-radius: 6px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-soft); }
.nav-links a.active { color: var(--text); background: var(--bg-soft); }
.nav-spacer { flex: 1; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.kbd-trigger {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 8px 0 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--panel);
  color: var(--text-muted);
  font-size: 12px;
}
.kbd-trigger:hover { border-color: var(--border-strong); color: var(--text-soft); }
.kbd {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-soft);
}
.icon-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  margin: 0;
  flex: 0 0 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-soft);
  line-height: 1;
  font-family: inherit;
  transition: color .15s, background .15s, border-color .15s;
}
.icon-btn > svg:not([hidden]) { display: block; }
.icon-btn > svg[hidden] { display: none; }
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text-soft);
  font-size: 12px;
  font-family: "JetBrains Mono", monospace;
}
.env-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 11.5px;
  color: var(--text-soft);
  font-family: "JetBrains Mono", monospace;
}
.env-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid var(--border);
  background: var(--panel);
  color: var(--text);
  transition: all .15s;
  white-space: nowrap;
}
.btn:hover { border-color: var(--border-strong); background: var(--bg-soft); }
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.btn.primary:hover {
  background: color-mix(in oklab, var(--accent) 88%, white);
  border-color: color-mix(in oklab, var(--accent) 88%, white);
}
.btn.lg { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--bg-soft); border-color: var(--border); }

/* ============================================
   Layout / sections
   ============================================ */
.container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
}
.section { padding: 96px 0; border-top: 1px solid var(--border); }
.section:first-of-type { border-top: none; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.section-eyebrow::before {
  content: "";
  width: 16px;
  height: 1px;
  background: var(--accent);
}
.section-title {
  margin: 14px 0 16px;
  font-size: 36px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
  max-width: 700px;
  text-wrap: balance;
}
.section-sub {
  margin: 0;
  color: var(--text-soft);
  font-size: 15px;
  line-height: 1.55;
  max-width: 620px;
  text-wrap: pretty;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  padding: 88px 0 64px;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1.25fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  margin: 18px 0 18px;
  font-size: 54px;
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}
.hero h1 .accent { color: var(--accent); }
.hero h1 .mono-inline {
  font-family: "JetBrains Mono", monospace;
  font-weight: 500;
  font-size: 0.78em;
  letter-spacing: -0.01em;
  display: inline-block;
  padding: 0 6px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 6px;
  vertical-align: 5px;
}
.hero p.lead {
  margin: 0 0 28px;
  font-size: 16.5px;
  color: var(--text-soft);
  line-height: 1.55;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-meta {
  margin-top: 28px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  color: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta .dot { width: 5px; height: 5px; border-radius: 50%; background: var(--success); box-shadow: 0 0 6px var(--success); }

/* Hero canvas */
.hero-canvas {
  position: relative;
  height: 520px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background:
    linear-gradient(180deg, var(--panel) 0%, var(--bg-subtle) 100%);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.hero-canvas::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 24px 24px;
  background-position: -1px -1px;
  pointer-events: none;
}
.hero-canvas-chrome {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 10px;
  background: color-mix(in oklab, var(--panel) 80%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  z-index: 2;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.chrome-tabs { display: flex; gap: 4px; }
.chrome-tab {
  padding: 4px 8px;
  border-radius: 4px;
  color: var(--text-soft);
}
.chrome-tab.active { background: var(--bg-soft); color: var(--text); }
.chrome-rt { margin-left: auto; display: flex; gap: 12px; align-items: center; }
.chrome-rt .pulse {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 1.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.7); }
}
.hero-canvas .legend {
  position: absolute;
  bottom: 12px;
  left: 12px;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}
.hero-canvas .legend .lg {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 7px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--panel) 70%, transparent);
  border: 1px solid var(--border);
}
.legend-swatch { width: 10px; height: 4px; border-radius: 2px; }
.hero-canvas .miniinfo {
  position: absolute;
  bottom: 12px;
  right: 12px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2px;
  align-items: flex-end;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 4px;
  background: color-mix(in oklab, var(--panel) 70%, transparent);
  border: 1px solid var(--border);
}
.miniinfo .num { color: var(--text); }

/* ============================================
   Trust bar
   ============================================ */
.trust {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-label {
  text-align: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 22px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
}
.trust-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 56px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: -0.005em;
}
.trust-cell svg { flex-shrink: 0; }

/* ============================================
   4-axis features
   ============================================ */
.axis-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.axis-card {
  position: relative;
  padding: 28px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--panel);
  overflow: hidden;
  transition: border-color .2s, transform .2s;
}
.axis-card:hover { border-color: var(--border-strong); }
.axis-card .axis-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}
.axis-icon {
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1px solid var(--border);
  color: var(--axis-color, var(--accent));
  background: color-mix(in oklab, var(--axis-color, var(--accent)) 8%, var(--panel));
}
.axis-card .axis-num {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.axis-card h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.015em;
  font-weight: 600;
}
.axis-card .axis-tag {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--axis-color, var(--accent));
}
.axis-card p {
  margin: 14px 0 18px;
  color: var(--text-soft);
  font-size: 13.5px;
  line-height: 1.55;
}
.axis-feats {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.axis-feats li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-soft);
}
.axis-feats li::before {
  content: "";
  width: 12px; height: 1px;
  background: var(--axis-color, var(--accent));
  flex-shrink: 0;
}
.axis-feats .count {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  margin-left: auto;
}

/* mini chart per axis */
.axis-viz {
  margin-top: 22px;
  height: 64px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  padding: 8px 10px;
  position: relative;
}

/* ============================================
   Signature demo (node graph)
   ============================================ */
.demo-wrap {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px;
  height: 44px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--text-soft);
}
.demo-toolbar .breadcrumb {
  display: inline-flex; gap: 8px; align-items: center;
}
.demo-toolbar .breadcrumb .sep { color: var(--text-muted); }
.demo-toolbar .layer-chips {
  margin-left: auto;
  display: inline-flex;
  gap: 4px;
}
.layer-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--border);
  font-size: 11px;
  cursor: pointer;
  color: var(--text-soft);
  background: var(--bg-soft);
  transition: all .12s;
}
.layer-chip:hover { color: var(--text); }
.layer-chip.active { color: var(--text); border-color: var(--accent); background: var(--accent-soft); }
.layer-chip .dot { width: 6px; height: 6px; border-radius: 50%; }

.demo-canvas {
  position: relative;
  height: 540px;
  background:
    radial-gradient(ellipse at 50% 30%, color-mix(in oklab, var(--accent) 5%, transparent), transparent 70%),
    var(--bg-subtle);
}
.demo-canvas::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, var(--grid-strong) 1px, transparent 0);
  background-size: 18px 18px;
  opacity: .6;
}

.demo-side {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 280px;
  border-radius: 8px;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  z-index: 3;
  overflow: hidden;
}
.demo-side .side-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
}
.demo-side .side-head .ttl {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.demo-side .side-head .sub {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 2px;
}
.demo-side .side-body { padding: 12px 14px; }
.kv {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 6px 12px;
  font-size: 11.5px;
  font-family: "JetBrains Mono", monospace;
}
.kv .k { color: var(--text-muted); }
.kv .v { color: var(--text); text-align: right; }
.kv .v.ok { color: var(--success); }
.kv .v.warn { color: var(--warn); }
.kv .v.err { color: var(--error); }

.tinychart {
  margin-top: 12px;
  height: 36px;
}

/* Node styles */
.node {
  position: absolute;
  border-radius: 7px;
  background: var(--panel);
  border: 1px solid var(--border);
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  cursor: pointer;
  z-index: 2;
  user-select: none;
}
.node:hover, .node.hot {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 24px color-mix(in oklab, var(--accent) 35%, transparent);
  z-index: 4;
}
.node .nhead {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border-bottom: 1px solid var(--border);
  background: var(--panel-2);
  border-top-left-radius: 6px;
  border-top-right-radius: 6px;
}
.node .nhead .layer-dot { width: 7px; height: 7px; border-radius: 50%; }
.node .nhead .name { font-weight: 600; letter-spacing: -0.01em; color: var(--text); }
.node .nhead .badge {
  margin-left: auto;
  font-size: 9.5px;
  padding: 1px 5px;
  border-radius: 3px;
  background: var(--bg-soft);
  color: var(--text-muted);
  letter-spacing: 0.04em;
}
.node .ncols {
  padding: 4px 0;
  list-style: none;
  margin: 0;
  font-size: 10.5px;
}
.node .ncols li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px;
  color: var(--text-soft);
}
.node .ncols li .ctype { color: var(--text-muted); margin-left: auto; }
.node .ncols li.pk .name { color: var(--accent); }
.node .ncols li.pii .ctype { color: var(--m-pii); }
.node .nfoot {
  padding: 6px 10px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 10px;
  color: var(--text-muted);
  font-size: 10px;
  background: var(--bg-subtle);
  border-bottom-left-radius: 6px;
  border-bottom-right-radius: 6px;
}
.node .nfoot span { display: inline-flex; align-items: center; gap: 4px; }

/* Pill function node */
.fnode {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--panel);
  border: 1px solid var(--fn-color, var(--accent));
  color: var(--fn-color, var(--accent));
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
}
.fnode:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px var(--fn-color, var(--accent)), 0 0 18px color-mix(in oklab, var(--fn-color, var(--accent)) 30%, transparent); }
.fnode .fdot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--fn-color, var(--accent));
  box-shadow: 0 0 6px var(--fn-color, var(--accent));
}

/* Edges (svg overlay) */
.edges {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 1;
}
.edge-path {
  fill: none;
  stroke-width: 1.2;
  stroke-linecap: round;
}
.edge-path.success { stroke: color-mix(in oklab, var(--success) 80%, transparent); }
.edge-path.warn { stroke: color-mix(in oklab, var(--warn) 90%, transparent); stroke-dasharray: 4 4; }
.edge-path.fail { stroke: var(--error); stroke-dasharray: 3 3; }
.edge-path.flow { stroke: color-mix(in oklab, var(--accent) 85%, transparent); }
.edge-path.cdc { stroke: var(--info); stroke-dasharray: 5 4; }
.edge-label {
  fill: var(--text-muted);
  font-family: "JetBrains Mono", monospace;
  font-size: 9.5px;
}
/* Flow dot animation */
.flow-dot { fill: var(--accent); filter: drop-shadow(0 0 4px var(--accent)); }

/* ============================================
   Numbers
   ============================================ */
.numbers-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--panel);
}
.num-cell {
  padding: 26px 24px;
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative;
}
.num-cell:nth-child(3n) { border-right: none; }
.num-cell:nth-last-child(-n+3) { border-bottom: none; }
.num-cell.span2 { grid-column: span 2; }
.num-cell .nlabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.num-cell .nfig {
  margin-top: 12px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.num-cell .nfig .big {
  font-family: "JetBrains Mono", monospace;
  font-size: 36px;
  letter-spacing: -0.03em;
  font-weight: 500;
  color: var(--text);
  line-height: 1;
}
.num-cell .nfig .unit {
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  color: var(--text-soft);
}
.num-cell .ncap {
  margin-top: 8px;
  font-size: 12px;
  color: var(--text-soft);
  max-width: 240px;
}

/* ============================================
   Differentiator strip
   ============================================ */
.diff-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-top: 48px;
}
.diff-card {
  padding: 22px 22px 20px;
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 10px;
  position: relative;
  min-height: 180px;
  overflow: hidden;
}
.diff-card .dlabel {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}
.diff-card h4 {
  margin: 8px 0 6px;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  font-weight: 600;
}
.diff-card p {
  margin: 0;
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.5;
}
.diff-viz {
  margin-top: 14px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ============================================
   Problem / Solution
   ============================================ */
.problem-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 44px;
}
.problem-card {
  padding: 22px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-radius: 10px;
  position: relative;
}
.problem-card .px {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--m-error);
}
.problem-card h4 { margin: 8px 0 6px; font-size: 15.5px; font-weight: 600; }
.problem-card p { margin: 0; color: var(--text-soft); font-size: 13px; }

/* ============================================
   CTA footer
   ============================================ */
.cta-block {
  margin-top: 96px;
  padding: 64px 28px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(ellipse at 30% 20%, color-mix(in oklab, var(--accent) 14%, transparent), transparent 60%),
    var(--panel);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-block h2 {
  margin: 0 0 12px;
  font-size: 38px;
  letter-spacing: -0.025em;
  font-weight: 600;
}
.cta-block p { margin: 0 auto 22px; max-width: 480px; color: var(--text-soft); font-size: 15px; }
.cta-block .cta-row { display: inline-flex; gap: 10px; }

footer.foot {
  margin-top: 80px;
  padding: 48px 0 60px;
  border-top: 1px solid var(--border);
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}
.foot-grid h5 {
  margin: 0 0 12px;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.foot-grid ul li a { color: var(--text-soft); }
.foot-grid ul li a:hover { color: var(--text); }
.foot-bot {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: "JetBrains Mono", monospace;
  font-size: 11px;
  color: var(--text-muted);
}

/* ============================================
   Cmd-K palette
   ============================================ */
.cmdk-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0,0,0,0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 14vh;
}
.cmdk {
  width: 600px;
  max-width: calc(100vw - 32px);
  background: var(--panel);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.cmdk-input {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}
.cmdk-input svg { color: var(--text-muted); flex-shrink: 0; }
.cmdk-input input {
  flex: 1;
  background: transparent;
  border: 0;
  outline: 0;
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
}
.cmdk-input input::placeholder { color: var(--text-muted); }
.cmdk-section-head {
  padding: 8px 16px 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.cmdk-items { max-height: 360px; overflow-y: auto; padding-bottom: 8px; }
.cmdk-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  cursor: pointer;
  font-size: 13px;
  color: var(--text);
}
.cmdk-item:hover, .cmdk-item.active {
  background: var(--bg-soft);
}
.cmdk-item .group {
  margin-left: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}
.cmdk-item svg { color: var(--text-muted); flex-shrink: 0; }
.cmdk-foot {
  border-top: 1px solid var(--border);
  padding: 8px 16px;
  display: flex;
  gap: 14px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
}
.cmdk-foot span { display: inline-flex; align-items: center; gap: 5px; }

/* ============================================
   Pricing
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.price-card {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 12px;
  padding: 28px 24px 24px;
  position: relative;
  display: flex;
  flex-direction: column;
}
.price-card.featured {
  border-color: var(--accent);
  background: linear-gradient(180deg, color-mix(in oklab, var(--accent) 8%, var(--panel)) 0%, var(--panel) 60%);
}
.price-card .tag {
  position: absolute;
  top: -10px;
  left: 24px;
  padding: 2px 8px;
  background: var(--accent);
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 10px;
  letter-spacing: 0.06em;
  border-radius: 4px;
}
.price-card h3 {
  margin: 0;
  font-size: 14px;
  font-family: "JetBrains Mono", monospace;
  color: var(--text-soft);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.price-card .price {
  margin: 16px 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 40px;
  letter-spacing: -0.03em;
  line-height: 1;
}
.price-card .price-unit { font-size: 13px; color: var(--text-soft); margin-left: 4px; }
.price-card .pdesc {
  color: var(--text-soft);
  font-size: 13px;
  margin: 0 0 18px;
  min-height: 36px;
}
.price-card ul {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.price-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
}
.price-card ul li svg { color: var(--success); flex-shrink: 0; margin-top: 2px; }
.price-card ul li.muted { color: var(--text-muted); }
.price-card ul li.muted svg { color: var(--text-muted); }
.price-comp {
  margin-top: 48px;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.price-comp table { width: 100%; border-collapse: collapse; font-size: 13px; }
.price-comp th, .price-comp td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.price-comp th {
  background: var(--panel-2);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: -0.005em;
}
.price-comp th.col, .price-comp td.col { text-align: center; width: 17%; }
.price-comp tr:last-child td { border-bottom: none; }
.price-comp .check { color: var(--success); }
.price-comp .dash { color: var(--text-muted); }

/* ============================================
   Docs
   ============================================ */
.docs-shell {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  margin-top: 32px;
}
.docs-side {
  position: sticky;
  top: 80px;
  align-self: start;
  border-right: 1px solid var(--border);
  padding-right: 16px;
}
.docs-side h6 {
  margin: 18px 0 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}
.docs-side h6:first-child { margin-top: 0; }
.docs-side ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
.docs-side ul li a {
  display: block;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 13px;
  color: var(--text-soft);
}
.docs-side ul li a:hover, .docs-side ul li a.active { background: var(--bg-soft); color: var(--text); }

.docs-content h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.025em;
}
.docs-content .crumbs {
  font-family: "JetBrains Mono", monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.docs-content h2 {
  margin: 36px 0 12px;
  font-size: 20px;
  letter-spacing: -0.015em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 8px;
}
.docs-content h3 { font-size: 15px; margin: 28px 0 10px; letter-spacing: -0.01em; }
.docs-content p { color: var(--text-soft); font-size: 14px; max-width: 720px; }
.docs-content pre {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 16px 18px;
  border-radius: 8px;
  overflow-x: auto;
  font-family: "JetBrains Mono", monospace;
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--text);
}
.docs-content code:not(pre code) {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", monospace;
  font-size: 12px;
  color: var(--accent);
}
.docs-callout {
  margin: 18px 0;
  padding: 12px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-edge);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text);
}
.docs-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 20px 0 32px;
}
.docs-cards a {
  padding: 16px 18px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--panel);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: border-color .15s;
}
.docs-cards a:hover { border-color: var(--border-strong); }
.docs-cards a .dcat {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.docs-cards a .dttl { font-size: 14.5px; font-weight: 600; letter-spacing: -0.01em; }
.docs-cards a .ddesc { color: var(--text-soft); font-size: 12.5px; }

/* product page */
.product-feature {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 80px 0;
  border-top: 1px solid var(--border);
}
.product-feature.reverse { grid-template-columns: 1.1fr 1fr; }
.product-feature.reverse .pf-visual { order: -1; }
.product-feature h2 {
  margin: 12px 0 14px;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
}
.product-feature p {
  font-size: 14.5px;
  color: var(--text-soft);
  line-height: 1.6;
}
.pf-list {
  list-style: none; padding: 0; margin: 18px 0 0;
  display: flex; flex-direction: column; gap: 9px;
}
.pf-list li {
  display: flex; align-items: flex-start; gap: 8px;
  font-size: 13px;
}
.pf-list li svg { flex-shrink: 0; color: var(--accent); margin-top: 3px; }
.pf-visual {
  height: 360px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--panel);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-canvas { height: 420px; }
  .axis-grid, .numbers-grid, .diff-grid, .pricing-grid, .problem-grid { grid-template-columns: 1fr 1fr; }
  .trust-grid { grid-template-columns: repeat(4, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .nav-links { display: none; }
  .docs-shell { grid-template-columns: 1fr; }
  .docs-side { position: static; border-right: 0; padding: 0; }
}
@media (max-width: 640px) {
  .hero h1 { font-size: 38px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 28px; }
  .axis-grid, .numbers-grid, .diff-grid, .pricing-grid, .problem-grid { grid-template-columns: 1fr; }
  .trust-grid { grid-template-columns: repeat(2, 1fr); }
  .num-cell { border-right: none !important; }
  .product-feature, .product-feature.reverse { grid-template-columns: 1fr; gap: 28px; padding: 48px 0; }
}
