/* Fabric Projects v2 — Stripe / Linear / Vercel inspired */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-soft: #fafbfc;
  --bg-canvas: #f6f7f9;
  --surface: #ffffff;

  --text: #0a1421;
  --text-strong: #050912;
  --muted: #4a5668;
  --faint: #8c97a8;

  --line: #e7e9ee;
  --line-soft: #eef0f4;
  --line-strong: #d4d8e0;

  --red: #e91c24;
  --red-dark: #b8141a;
  --red-soft: rgba(233, 28, 36, 0.08);

  --violet: #5b5cf6;
  --violet-dark: #4548d3;
  --violet-soft: rgba(91, 92, 246, 0.08);

  --green: #0d9b6f;
  --green-soft: rgba(13, 155, 111, 0.10);
  --amber: #b87a00;
  --amber-soft: rgba(184, 122, 0, 0.08);

  --code-bg: #0b0f1a;
  --code-bg-soft: #11141d;
  --code-text: #e4e8ed;
  --code-violet: #a78bfa;
  --code-cyan: #67e8f9;
  --code-amber: #fbbf24;
  --code-green: #6ee7b7;
  --code-rose: #fb7185;
  --code-faint: #6b7587;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 24px 48px -12px rgba(15, 23, 42, 0.14);
  --shadow-hero: 0 60px 120px -40px rgba(15, 23, 42, 0.30);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "JetBrains Mono", Menlo, Consolas, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(ellipse 60% 40% at 50% -10%, rgba(91, 92, 246, 0.08), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 400 14px/1.55 var(--sans);
  font-feature-settings: "cv11", "ss01", "ss03";
  letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

button,
.prompt-editor {
  font: inherit;
  letter-spacing: inherit;
}

button {
  cursor: pointer;
}

code,
kbd {
  font-family: var(--mono);
  font-feature-settings: "ss01", "ss02";
}

::selection {
  background: rgba(91, 92, 246, 0.18);
}

/* ───── shell + nav ───── */

.product-shell {
  width: min(1400px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 14px 0 64px;
}

.global-nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 8px 8px 8px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: var(--shadow-sm);
}

.brand,
.nav-links,
.nav-actions,
.hero-actions,
.console-status {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  padding: 0 6px;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.brand-mark {
  position: relative;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, transparent 44%, white 44% 56%, transparent 56%),
    linear-gradient(135deg, var(--red) 0%, var(--red-dark) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.18) inset,
    0 4px 10px -2px rgba(233, 28, 36, 0.42);
}

.nav-links {
  justify-content: center;
  gap: 4px;
}

.nav-links a {
  height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: color 160ms var(--ease), background 160ms var(--ease);
}

.nav-links a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.nav-actions {
  gap: 8px;
}

.runtime-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.runtime-pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

/* ───── buttons ───── */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 160ms var(--ease),
    box-shadow 200ms var(--ease),
    background 160ms var(--ease),
    border-color 160ms var(--ease),
    color 160ms var(--ease);
  box-shadow: var(--shadow-sm);
}

.button:hover {
  border-color: #b8bfca;
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.button.primary {
  border-color: var(--text-strong);
  background: var(--text-strong);
  color: #ffffff;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, var(--shadow-sm);
}

.button.primary:hover {
  background: #16202d;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset, 0 8px 20px rgba(15, 23, 42, 0.18);
}

.button.secondary {
  background: var(--surface);
  border-color: var(--line-strong);
  color: var(--text);
}

.button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
  box-shadow: none;
}

.button.ghost:hover {
  background: var(--bg-soft);
  color: var(--text);
  border-color: transparent;
}

/* ───── hero band ───── */

.hero-band {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(520px, 1.05fr);
  gap: 32px;
  align-items: stretch;
  padding: 72px 0 32px;
}

.hero-band > *,
.workbench-grid > *,
.agent-kit-section > * {
  min-width: 0;
}

.hero-copy {
  align-self: center;
  min-width: 0;
}

.eyebrow,
.console-title,
.panel-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 760px;
  margin: 18px 0 0;
  font-size: clamp(40px, 5.4vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-strong);
  overflow-wrap: anywhere;
}

.hero-text {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-actions {
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

/* console card */

.console-card {
  display: flex;
  flex-direction: column;
  min-height: 460px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.console-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.console-header > div:first-child {
  display: grid;
  gap: 4px;
}

.console-title {
  background: transparent;
  border: 0;
  padding: 0;
  height: auto;
  color: var(--violet);
  letter-spacing: 0.06em;
}

.console-header strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}

.console-status {
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.console-status span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.console-status span::before {
  content: "";
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
}

.prompt-editor {
  flex: 1;
  min-height: 240px;
  margin: 18px;
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  outline: none;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), background 200ms var(--ease);
}

.prompt-editor:focus {
  border-color: var(--violet);
  border-style: solid;
  background: var(--surface);
  box-shadow: 0 0 0 4px var(--violet-soft);
}

.command-strip {
  margin: 0 18px 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-cyan);
  font: 500 12.5px/1.5 var(--mono);
  overflow-x: auto;
}

.command-strip span::before {
  content: "$ ";
  color: var(--code-violet);
}

/* ───── workbench grid ───── */

.workbench-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 18px;
  margin-top: 32px;
}

.network-stage,
.price-rail,
.evidence-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.network-stage,
.price-rail {
  padding: 24px;
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.network-stage:hover,
.price-rail:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.section-heading p {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 10px;
  margin: 0 0 12px;
  border-radius: 999px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  font-weight: 600;
  color: var(--text-strong);
}

.section-heading.wide {
  margin-bottom: 24px;
}

.section-heading.wide h2 {
  max-width: 820px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
}

/* topology */

.topology {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px minmax(0, 1.2fr) 100px minmax(0, 1fr);
  align-items: center;
  margin-top: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(ellipse 50% 80% at 0% 50%, rgba(233, 28, 36, 0.05), transparent 60%),
    radial-gradient(ellipse 50% 80% at 100% 50%, rgba(91, 92, 246, 0.06), transparent 60%),
    var(--bg-soft);
}

.node {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  min-height: 130px;
  padding: 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 200ms var(--ease), box-shadow 200ms var(--ease);
}

.node:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

.node span {
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.node strong {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-strong);
}

.node small {
  color: var(--muted);
  font-size: 12px;
}

.fabric-node {
  border-color: rgba(233, 28, 36, 0.45);
  box-shadow:
    0 0 0 1px rgba(233, 28, 36, 0.10) inset,
    0 6px 14px -4px rgba(233, 28, 36, 0.18);
}

.provider-node {
  border-color: rgba(91, 92, 246, 0.40);
  box-shadow:
    0 0 0 1px rgba(91, 92, 246, 0.08) inset,
    0 6px 14px -4px rgba(91, 92, 246, 0.18);
}

.route {
  display: grid;
  gap: 6px;
  justify-items: center;
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.route-line {
  position: relative;
  display: block;
  width: 100%;
  height: 1.5px;
  background: linear-gradient(90deg, var(--red), var(--violet));
  border-radius: 999px;
}

.route-line::after {
  position: absolute;
  right: -1px;
  top: -3.5px;
  width: 8px;
  height: 8px;
  border-top: 1.5px solid var(--violet);
  border-right: 1.5px solid var(--violet);
  transform: rotate(45deg);
  content: "";
}

.step-list {
  margin-top: 18px;
}

.step-row,
.blocker,
.trace-row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--line-soft);
}

.step-row:first-child,
.blocker:first-child,
.trace-row:first-child {
  border-top: 0;
}

.step-row > span,
.blocker > span,
.trace-row > span {
  display: inline-flex;
  align-items: center;
  align-self: start;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: max-content;
}

.step-row strong,
.blocker strong,
.trace-row strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-strong);
  letter-spacing: -0.005em;
}

.step-row p,
.blocker p,
.trace-row p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

/* price rail */

.doc-source {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
}

.doc-source span {
  color: var(--text);
  font-family: var(--mono);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.doc-source strong {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  margin-top: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-source strong::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--green);
}

.doc-source small {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 11px;
  margin-top: 4px;
}

.estimate-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.estimate-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.estimate-item:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}

.estimate-item strong {
  display: block;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}

.estimate-item span,
.estimate-item p {
  color: var(--muted);
  font-size: 12px;
}

.estimate-item span {
  display: block;
  margin-top: 4px;
  font-family: var(--mono);
}

.estimate-item p {
  margin: 10px 0 0;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.price {
  margin-top: 12px;
  color: var(--text-strong);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
}

.price span {
  display: inline-block;
  margin-left: 4px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  font-family: var(--sans);
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid var(--line-soft);
}

.total-row span {
  color: var(--muted);
  font-size: 13px;
}

.total-row strong {
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}

.notice {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid rgba(184, 122, 0, 0.30);
  border-radius: var(--radius-md);
  background: var(--amber-soft);
}

.notice strong {
  display: block;
  color: var(--amber);
  font-size: 12.5px;
  font-weight: 600;
}

.notice p {
  margin: 6px 0 0;
  color: var(--amber);
  font-size: 12px;
  line-height: 1.5;
  opacity: 0.9;
}

/* evidence */

.evidence-section,
.agent-kit-section {
  margin-top: 64px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.evidence-panel {
  padding: 22px;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.evidence-panel:hover {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.panel-label {
  background: var(--violet-soft);
  border: 0;
  color: var(--violet);
  letter-spacing: 0.06em;
  height: 22px;
}

.evidence-panel h3 {
  margin: 12px 0 16px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.15;
  color: var(--text-strong);
}

.is-blocking > span {
  background: var(--red-soft);
  color: var(--red-dark);
}

.is-approval > span {
  background: var(--amber-soft);
  color: var(--amber);
}

.is-quote > span {
  background: var(--violet-soft);
  color: var(--violet);
}

.blocker small {
  display: block;
  margin-top: 6px;
  color: var(--faint);
  font-size: 11.5px;
}

.code-panel {
  padding: 22px;
}

.code-panel pre,
.doc-code {
  margin: 0;
  max-height: 380px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-text);
  font: 400 12px/1.6 var(--mono);
}

.code-panel pre::-webkit-scrollbar,
.doc-code::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.code-panel pre::-webkit-scrollbar-thumb,
.doc-code::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

/* ───── agent kit section ───── */

.agent-kit-section {
  display: grid;
  grid-template-columns: minmax(340px, 0.85fr) minmax(520px, 1.15fr);
  gap: 36px;
  align-items: stretch;
  padding: 40px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 50% 80% at 0% 0%, rgba(233, 28, 36, 0.18), transparent 50%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(91, 92, 246, 0.18), transparent 50%),
    linear-gradient(135deg, #0b0f1a 0%, #11141d 100%);
  color: #f5f8fb;
  box-shadow: 0 30px 80px -20px rgba(11, 15, 26, 0.40);
}

.agent-kit-copy .eyebrow {
  border-color: rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: #c1cfe0;
}

.agent-kit-copy h2 {
  max-width: 620px;
  margin: 16px 0 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: #ffffff;
}

.agent-kit-copy p:last-child {
  max-width: 540px;
  margin-top: 18px;
  color: #aeb9c8;
  font-size: 15px;
  line-height: 1.6;
}

.doc-link-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-content: stretch;
}

.doc-link {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 220px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  transition: transform 200ms var(--ease), border-color 200ms var(--ease), background 200ms var(--ease);
}

.doc-link::after {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 14px;
  height: 14px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" stroke="rgba(255,255,255,0.4)" stroke-width="2" viewBox="0 0 24 24"><path d="M7 17 17 7M9 7h8v8"/></svg>');
  background-repeat: no-repeat;
  content: "";
  transition: transform 200ms var(--ease);
}

.doc-link:hover {
  border-color: rgba(255, 255, 255, 0.30);
  background: rgba(255, 255, 255, 0.07);
  transform: translateY(-2px);
}

.doc-link:hover::after {
  transform: translate(2px, -2px);
}

.doc-link span {
  display: inline-flex;
  align-items: center;
  height: 22px;
  width: max-content;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  color: #c1cfe0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.doc-link strong {
  display: block;
  margin-top: auto;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.2;
  color: #ffffff;
}

.doc-link small {
  display: block;
  margin-top: 8px;
  color: #aeb9c8;
  font-size: 12.5px;
  line-height: 1.5;
}

.primary-doc {
  background: #ffffff;
  border-color: transparent;
  color: var(--text-strong);
}

.primary-doc::after {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="14" height="14" fill="none" stroke="rgba(15,23,42,0.4)" stroke-width="2" viewBox="0 0 24 24"><path d="M7 17 17 7M9 7h8v8"/></svg>');
}

.primary-doc:hover {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -8px rgba(11, 15, 26, 0.20);
}

.primary-doc span {
  background: var(--violet-soft);
  border-color: transparent;
  color: var(--violet);
}

.primary-doc strong {
  color: var(--text-strong);
}

.primary-doc small {
  color: var(--muted);
}

/* ───── docs pages ───── */

.docs-shell {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 14px 0 64px;
}

.docs-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 32px;
  margin-top: 32px;
}

.docs-sidebar {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.docs-sidebar a {
  display: block;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.docs-sidebar a:hover {
  background: var(--bg-soft);
  color: var(--text);
}

.docs-content {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.docs-content > .eyebrow {
  margin-bottom: 12px;
}

.docs-content h1 {
  margin: 6px 0 18px;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-strong);
}

.docs-content h2 {
  margin: 48px 0 14px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.docs-content p,
.docs-content li {
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.65;
}

.docs-content ul,
.docs-content ol {
  padding-left: 22px;
}

.docs-content code {
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 0.9em;
}

.doc-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.doc-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  transition: background 200ms var(--ease), border-color 200ms var(--ease), transform 200ms var(--ease);
}

a.doc-card:hover {
  background: var(--surface);
  border-color: var(--line-strong);
  transform: translateY(-1px);
}

.doc-card strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}

.doc-card p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

/* ───── responsive ───── */

@media (max-width: 1180px) {
  .hero-band,
  .workbench-grid,
  .agent-kit-section,
  .docs-layout {
    grid-template-columns: 1fr;
  }

  .evidence-grid,
  .doc-link-grid,
  .doc-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .docs-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .product-shell,
  .docs-shell {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
    overflow: hidden;
  }

  .global-nav {
    grid-template-columns: 1fr;
    border-radius: var(--radius-lg);
  }

  .nav-links {
    justify-content: flex-start;
    overflow-x: auto;
  }

  .nav-actions,
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

  .hero-band {
    padding-top: 36px;
  }

  .hero-copy h1 {
    font-size: 32px;
    line-height: 1.05;
    word-break: break-word;
  }

  .hero-text {
    font-size: 15px;
  }

  .console-card {
    min-height: 360px;
  }

  .prompt-editor,
  .command-strip {
    margin: 12px;
  }

  .console-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .console-status {
    justify-content: flex-start;
  }

  .topology,
  .evidence-grid,
  .doc-link-grid,
  .doc-cards {
    grid-template-columns: 1fr;
  }

  .route {
    min-height: 32px;
  }

  .route-line {
    width: 1.5px;
    height: 30px;
  }

  .route-line::after {
    right: -3.5px;
    top: 22px;
    transform: rotate(135deg);
  }

  .step-row,
  .blocker,
  .trace-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .total-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .agent-kit-section {
    padding: 28px;
  }
}

/* ───── stat band ───── */

.stat-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.stat-cell {
  position: relative;
  padding: 22px 24px;
  border-right: 1px solid var(--line-soft);
}

.stat-cell:last-child {
  border-right: 0;
}

.stat-cell::after {
  position: absolute;
  top: 22px;
  right: -1px;
  bottom: 22px;
  width: 0;
  content: "";
}

.stat-cell .stat-label {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.stat-cell .stat-value {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--text-strong);
}

.stat-cell .stat-value small {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
}

.stat-cell .stat-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  color: var(--green);
  font-size: 11.5px;
  font-weight: 600;
}

.stat-cell .stat-meta.is-flat {
  color: var(--muted);
}

.stat-cell .stat-meta.is-warn {
  color: var(--amber);
}

.stat-cell .stat-meta::before {
  content: "↑";
  font-size: 11px;
}

.stat-cell .stat-meta.is-flat::before {
  content: "→";
}

.stat-cell .stat-meta.is-warn::before {
  content: "↓";
}

/* ───── customer strip ───── */

.customer-strip {
  margin-top: 36px;
  padding: 24px 32px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--bg-soft);
  text-align: center;
}

.customer-strip-label {
  margin: 0 0 14px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.customer-logos {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 24px 32px;
  color: var(--muted);
}

.customer-logos span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
  opacity: 0.78;
  transition: opacity 200ms var(--ease);
}

.customer-logos span:hover {
  opacity: 1;
}

.customer-logos span::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--text-strong), #2c3a4f);
}

.customer-logos span.tone-violet::before {
  background: linear-gradient(135deg, var(--violet), #8a8bf8);
}

.customer-logos span.tone-red::before {
  background: linear-gradient(135deg, var(--red), #ff6266);
}

.customer-logos span.tone-green::before {
  background: linear-gradient(135deg, var(--green), #4cc4a0);
}

.customer-logos span.tone-amber::before {
  background: linear-gradient(135deg, var(--amber), #d6a44a);
}

/* ───── tabbed console (input panel) ───── */

.console-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 8px 12px 0;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.console-tabs button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.005em;
  transition: color 160ms var(--ease), background 160ms var(--ease);
  position: relative;
  bottom: -1px;
}

.console-tabs button:hover {
  color: var(--text);
}

.console-tabs button.is-active {
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--line-soft);
  border-bottom-color: var(--surface);
}

.console-tabs button .console-kbd {
  display: inline-flex;
  align-items: center;
  height: 16px;
  padding: 0 5px;
  margin-left: 4px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--faint);
  font: 600 9.5px var(--mono);
}

.console-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 18px;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11.5px;
}

.console-meta-divider {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.console-meta strong {
  color: var(--text);
  font-weight: 600;
}

.console-meta .kbd-hint {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.console-meta .kbd-hint kbd {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--surface);
  color: var(--muted);
  font: 600 10.5px var(--mono);
}

/* ───── richer trace rows ───── */

.trace-row .trace-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  color: var(--faint);
  font: 500 11px var(--mono);
}

.trace-row .trace-meta-dot {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--faint);
}

.trace-row .trace-tool {
  display: inline-block;
  margin-right: 6px;
  color: var(--text-strong);
  font: 600 13px var(--mono);
  letter-spacing: -0.005em;
}

/* ───── code tabs ───── */

.code-block {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  overflow: hidden;
}

.code-tabs {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 6px 8px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
}

.code-tabs button {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  transition: background 160ms var(--ease), color 160ms var(--ease);
}

.code-tabs button:hover {
  color: var(--text);
}

.code-tabs button.is-active {
  background: var(--surface);
  color: var(--text-strong);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow-sm);
}

.code-block pre {
  margin: 0;
  padding: 16px 18px;
  background: var(--code-bg);
  color: var(--code-text);
  font: 400 12.5px/1.65 var(--mono);
  overflow-x: auto;
}

.code-block .code-token-key { color: var(--code-cyan); }
.code-block .code-token-str { color: var(--code-green); }
.code-block .code-token-num { color: var(--code-amber); }
.code-block .code-token-com { color: var(--code-faint); }
.code-block .code-token-fn  { color: var(--code-violet); }

/* ───── footer ───── */

.site-footer {
  margin-top: 96px;
  padding-top: 56px;
  border-top: 1px solid var(--line-soft);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr));
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid var(--line-soft);
}

.footer-brand {
  display: grid;
  gap: 14px;
  align-content: start;
  max-width: 280px;
}

.footer-brand .brand {
  margin-left: -6px;
}

.footer-brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.footer-brand-socials {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.footer-brand-socials a {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  transition: border-color 160ms var(--ease), color 160ms var(--ease), background 160ms var(--ease);
}

.footer-brand-socials a:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  color: var(--text);
}

.footer-brand-socials svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-strong);
}

.footer-col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-col a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 13.5px;
  transition: color 160ms var(--ease);
}

.footer-col a:hover {
  color: var(--text);
}

.footer-col a .badge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.footer-col a .badge.is-new {
  background: var(--violet-soft);
  color: var(--violet);
}

.footer-base {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 24px 0;
  color: var(--faint);
  font-size: 12px;
}

.footer-base nav {
  display: flex;
  gap: 22px;
}

.footer-base nav a {
  color: var(--muted);
  transition: color 160ms var(--ease);
}

.footer-base nav a:hover {
  color: var(--text);
}

.footer-base .system-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
}

.footer-base .system-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

/* ───── breadcrumbs ───── */

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 18px;
  color: var(--faint);
  font-size: 12.5px;
}

.breadcrumbs a {
  color: var(--muted);
  transition: color 160ms var(--ease);
}

.breadcrumbs a:hover {
  color: var(--text);
}

.breadcrumbs span[aria-current] {
  color: var(--text);
}

.breadcrumbs-sep {
  color: var(--faint);
  margin: 0 2px;
}

/* ───── docs sidebar groups + on-this-page ───── */

.docs-sidebar h5 {
  margin: 14px 12px 8px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-sidebar h5:first-child {
  margin-top: 4px;
}

.docs-sidebar a.is-active {
  background: var(--violet-soft);
  color: var(--violet);
}

.docs-layout--with-toc {
  grid-template-columns: 220px minmax(0, 1fr) 200px;
}

.docs-toc {
  position: sticky;
  top: 80px;
  align-self: start;
  padding: 4px 8px 4px 16px;
  border-left: 1px solid var(--line-soft);
}

.docs-toc h6 {
  margin: 0 0 10px;
  color: var(--faint);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.docs-toc ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.docs-toc a {
  display: block;
  padding: 4px 0;
  color: var(--muted);
  font-size: 12.5px;
  transition: color 160ms var(--ease);
}

.docs-toc a:hover {
  color: var(--text);
}

.docs-toc a.is-active {
  color: var(--violet);
}

.docs-toc li.is-sub a {
  padding-left: 12px;
  color: var(--faint);
  font-size: 12px;
}

/* docs-content updates */

.docs-content > .breadcrumbs {
  margin-bottom: 12px;
}

.doc-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 24px 0 36px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 12.5px;
}

.doc-meta strong {
  color: var(--text);
  font-weight: 600;
}

.doc-meta .doc-meta-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.doc-meta a {
  color: var(--violet);
  font-weight: 600;
}

.doc-pagination {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--line-soft);
}

.doc-pagination a {
  display: grid;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  color: var(--text);
  transition: border-color 200ms var(--ease), background 200ms var(--ease), transform 200ms var(--ease);
}

.doc-pagination a:hover {
  border-color: var(--line-strong);
  background: var(--bg-soft);
  transform: translateY(-1px);
}

.doc-pagination a span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.doc-pagination a strong {
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}

.doc-pagination a.is-prev {
  text-align: left;
}

.doc-pagination a.is-next {
  text-align: right;
}

.doc-pagination a.is-next span {
  justify-content: flex-end;
}

/* ───── pricing tiers ───── */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.pricing-card {
  display: grid;
  align-content: start;
  gap: 16px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}

.pricing-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.pricing-card.is-featured {
  border-color: var(--text-strong);
  background:
    radial-gradient(ellipse 60% 80% at 100% 0%, rgba(91, 92, 246, 0.10), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow-md);
}

.pricing-card .tier-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  height: 22px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-card.is-featured .tier-label {
  background: var(--violet-soft);
  color: var(--violet);
}

.pricing-card .tier-name {
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.pricing-card .tier-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 0;
  font-size: 38px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-strong);
}

.pricing-card .tier-price small {
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
}

.pricing-card .tier-summary {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.pricing-card ul {
  display: grid;
  gap: 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.pricing-card li {
  position: relative;
  padding-left: 22px;
  color: var(--text);
  font-size: 13.5px;
  line-height: 1.5;
}

.pricing-card li::before {
  position: absolute;
  left: 0;
  top: 4px;
  width: 14px;
  height: 14px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%230d9b6f" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><path d="M20 6 9 17l-5-5"/></svg>');
  background-repeat: no-repeat;
  content: "";
}

.pricing-card .button {
  margin-top: 8px;
  width: 100%;
}

.pricing-card.is-featured .button.primary {
  background: var(--text-strong);
}

.pricing-table {
  margin: 56px 0 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow-x: auto;
}

.pricing-table table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.pricing-table th,
.pricing-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
  text-align: left;
  font-size: 13.5px;
  vertical-align: top;
}

.pricing-table thead th {
  background: var(--bg-soft);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.pricing-table tbody tr:last-child td {
  border-bottom: 0;
}

.pricing-table td:first-child {
  font-weight: 600;
  color: var(--text-strong);
}

.pricing-table .check {
  color: var(--green);
  font-weight: 700;
}

.pricing-table .dash {
  color: var(--faint);
}

/* ───── changelog entries ───── */

.changelog-entry {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 36px;
  padding: 32px 0;
  border-top: 1px solid var(--line-soft);
}

.changelog-entry:first-of-type {
  border-top: 0;
  padding-top: 0;
}

.changelog-entry .changelog-date {
  position: sticky;
  top: 80px;
  align-self: start;
  display: grid;
  gap: 6px;
  align-content: start;
}

.changelog-entry .changelog-date time {
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}

.changelog-entry .changelog-version {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: max-content;
  height: 22px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
  font: 600 11px var(--mono);
  letter-spacing: 0.02em;
}

.changelog-entry .changelog-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  width: max-content;
  height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.changelog-entry .changelog-tag.is-feat { background: var(--violet-soft); color: var(--violet); }
.changelog-entry .changelog-tag.is-fix  { background: var(--green-soft);  color: var(--green); }
.changelog-entry .changelog-tag.is-warn { background: var(--amber-soft);  color: var(--amber); }

.changelog-entry h2 {
  margin: 0 0 12px;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}

.changelog-entry p,
.changelog-entry li {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.6;
}

.changelog-entry ul {
  padding-left: 22px;
}

.changelog-entry pre {
  margin: 14px 0;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--code-bg);
  color: var(--code-text);
  font: 400 12px/1.55 var(--mono);
  overflow-x: auto;
}

/* ───── shared page hero ───── */

.page-hero {
  padding: 56px 0 32px;
}

.page-hero .eyebrow {
  margin-bottom: 14px;
}

.page-hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--text-strong);
}

.page-hero p {
  max-width: 60ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.6;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

/* ───── security commitment grid ───── */

.commitment-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.commitment-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease);
}

.commitment-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
}

.commitment-card .commitment-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  background: var(--violet-soft);
  color: var(--violet);
}

.commitment-card .commitment-mark svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.75;
  fill: none;
}

.commitment-card h3 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: -0.005em;
  color: var(--text-strong);
}

.commitment-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}

.commitment-card .commitment-meta {
  margin-top: 4px;
  color: var(--faint);
  font: 500 11.5px var(--mono);
}

/* ───── testimonial / quote panel ───── */

.quote-panel {
  margin-top: 56px;
  padding: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(ellipse 60% 100% at 0% 0%, rgba(91, 92, 246, 0.06), transparent 60%),
    var(--surface);
  box-shadow: var(--shadow-sm);
}

.quote-panel blockquote {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}

.quote-panel blockquote::before {
  content: "“";
  display: block;
  font-size: 32px;
  line-height: 1;
  margin-bottom: 8px;
  color: var(--violet);
}

.quote-panel cite {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 13.5px;
  font-style: normal;
}

.quote-panel cite::before {
  content: "";
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--violet) 0%, var(--red) 100%);
}

.quote-panel cite strong {
  color: var(--text-strong);
  font-weight: 600;
  margin-right: 4px;
}

/* ───── shared content-grid + section-eyebrow + command-card ───── */

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

.section-eyebrow {
  display: inline-block;
  margin: 0 0 14px;
  color: var(--violet);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-title-display {
  margin: 0;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 600;
  color: var(--text-strong);
}

.section-copy {
  margin: 18px 0 0;
  max-width: 60ch;
  color: var(--muted);
  font-size: 15.5px;
  line-height: 1.6;
}

.command-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.command-card h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.command-card h3::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--violet);
}

.command-row {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 16px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line-soft);
  transition: background 160ms var(--ease);
}

.command-row:last-child {
  border-bottom: 0;
}

.command-row:hover {
  background: var(--bg-soft);
}

.command-row span {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.command-row code {
  color: var(--text);
  font-size: 12.5px;
  font-weight: 500;
}

/* responsive overrides for new sections */

@media (max-width: 1180px) {
  .stat-band,
  .pricing-grid,
  .commitment-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stat-cell {
    border-bottom: 1px solid var(--line-soft);
  }

  .stat-cell:nth-child(2) {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr));
    gap: 36px;
  }

  .footer-brand {
    grid-column: 1 / -1;
    max-width: none;
  }

  .docs-layout--with-toc {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .docs-toc {
    display: none;
  }

  .changelog-entry {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .changelog-entry .changelog-date {
    position: static;
    grid-template-columns: auto auto auto;
    gap: 8px;
    align-items: center;
  }
}

@media (max-width: 760px) {
  .stat-band,
  .pricing-grid,
  .commitment-grid {
    grid-template-columns: 1fr;
  }

  .stat-cell {
    border-right: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
    padding-bottom: 32px;
  }

  .footer-base {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .console-tabs {
    overflow-x: auto;
  }

  .doc-pagination {
    grid-template-columns: 1fr;
  }
}
