:root {
  --bg-primary: #0a0e14;
  --bg-secondary: #141a22;
  --bg-tertiary: #1c242e;
  --bg-card: #1e2730;
  --border-color: #2d3a47;
  --text-primary: #ffffff;
  --text-secondary: #a8b5c4;
  --text-muted: #6b7a8a;
  --accent-blue: #4da6ff;
  --accent-green: #4ade80;
  --accent-yellow: #fbbf24;
  --accent-red: #f87171;
  --accent-purple: #a78bfa;
  --clickhouse: #f2d21a;
  --clickhouse-light: #fff29b;
  --snowflake: #29b5e8;
  --snowflake-light: #9de2f8;
  --databricks: #ff3621;
  --databricks-light: #ff9a8d;
  --singlestore: #aa6cff;
  --singlestore-light: #d7b6ff;
  --mongodb: #00ed64;
  --mongodb-light: #9affc1;
  --vast: #57d3c8;
  --vast-light: #b8f2ed;
  --brand: #6f8cff;
  --brand-light: #a8b8ff;
  --sidebar-width: 250px;
  --right-panel-width: 310px;
  --radius: 11px;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.62;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 210;
  width: var(--sidebar-width);
  height: 100vh;
  overflow-y: auto;
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
}
.sidebar-header {
  padding: 26px 21px 22px;
  border-bottom: 1px solid var(--border-color);
  background: linear-gradient(145deg, var(--bg-tertiary), var(--bg-secondary));
}
.brand-lockup { display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 780; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--brand) 55%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 15%, var(--bg-tertiary));
  color: var(--brand-light);
  font-family: var(--mono);
  font-size: 17px;
}
.sidebar-header p { margin: 10px 0 0; color: var(--text-secondary); font-size: 12px; }
.as-of { margin-top: 12px; color: var(--text-muted); font: 700 9px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.nav-section { padding: 13px 0; border-bottom: 1px solid var(--border-color); }
.nav-section-title { padding: 7px 20px; color: var(--text-muted); font: 800 9px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 20px;
  border-left: 3px solid transparent;
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  transition: .18s ease;
}
.nav-item:hover, .nav-item.active { border-left-color: var(--brand); background: var(--bg-tertiary); color: var(--text-primary); }
.nav-icon { width: 22px; color: var(--text-muted); font: 700 9px var(--mono); }
.sidebar-glossary { padding: 18px 20px 28px; }
.sidebar-glossary-hdr { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.sidebar-glossary-title { color: var(--brand-light); font: 800 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.sidebar-glossary-all { border: 0; background: transparent; color: var(--text-muted); font-size: 10px; }
.glossary-mini { padding: 10px 0; border-top: 1px solid var(--border-color); }
.glossary-mini b { display: block; font-size: 11px; }
.glossary-mini span { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10px; line-height: 1.45; }

.main-content {
  width: calc(100% - var(--sidebar-width) - var(--right-panel-width));
  min-height: 100vh;
  margin-left: var(--sidebar-width);
  margin-right: var(--right-panel-width);
  padding: 38px 45px 90px;
}
.page { max-width: 1040px; margin: 0 auto; animation: fadeIn .35s ease; }
.page-header { padding-bottom: 28px; border-bottom: 1px solid var(--border-color); }
.page-header > .badge { margin-bottom: 20px; }
.eyebrow { color: var(--brand-light); font: 800 9px var(--mono); text-transform: uppercase; letter-spacing: .12em; }
.page-title { margin: 15px 0 16px; font-size: clamp(46px, 5vw, 72px); font-weight: 690; letter-spacing: -.055em; line-height: .96; }
.page-subtitle { max-width: 790px; margin: 0; color: var(--text-secondary); font-size: 16px; line-height: 1.55; }

.section-block { padding: 36px 0; scroll-margin-top: 24px; }
.section-divider { border-top: 1px solid var(--border-color); }
.section-heading { display: grid; grid-template-columns: minmax(210px, .7fr) 1fr; gap: 28px; align-items: start; margin-bottom: 20px; }
.section-heading h2 { margin: 0; font-size: 27px; line-height: 1.08; letter-spacing: -.025em; }
.section-heading p { margin: 2px 0 0; color: var(--text-secondary); font-size: 13px; font-style: italic; text-align: left; }

.card, .metric-card, .highlight-box, .hero-box, .viz-container, .decision-card, .timeline-block, .reference-block {
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: var(--bg-card);
}
.card { padding: 20px; }
.card h3 { margin: 0 0 8px; font-size: 15px; }
.card p { margin: 0; color: var(--text-secondary); font-size: 13px; line-height: 1.58; }

.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(340px, .95fr); gap: 14px; align-items: stretch; }
.hero-box {
  padding: 26px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 11%, var(--bg-card)), var(--bg-card));
  border-color: color-mix(in srgb, var(--brand) 30%, var(--border-color));
}
.hero-box h2 { margin: 12px 0 10px; font-size: 21px; line-height: 1.25; }
.hero-box p { max-width: 930px; margin: 10px 0 0; color: var(--text-secondary); font-size: 14px; line-height: 1.62; }
.highlight-box { padding: 21px 23px; }
.highlight-box .label { color: var(--brand-light); font: 800 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.highlight-box .big { margin: 5px 0 4px; font-size: 20px; font-weight: 760; letter-spacing: -.02em; }
.highlight-box > p { margin: 0; color: var(--text-secondary); font-size: 13px; }

.kpi-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 12px; border-radius: var(--radius); overflow: hidden; }
.metric-card { min-height: 105px; padding: 16px; border-radius: 0; border-right: 0; }
.metric-card:first-child { border-radius: var(--radius) 0 0 var(--radius); }
.metric-card:last-child { border-right: 1px solid var(--border-color); border-radius: 0 var(--radius) var(--radius) 0; }
.metric-value { font-size: 20px; font-weight: 800; letter-spacing: -.025em; }
.metric-label { margin-top: 2px; color: var(--text-secondary); font-size: 11px; }
.metric-note { margin-top: 10px; color: var(--text-muted); font-size: 9px; line-height: 1.4; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(270px, .65fr); gap: 12px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.badge, .evidence-chip, .ref-chip, .source-tier {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  white-space: nowrap;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .05em;
}
.badge { padding: 6px 10px; border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-light); }
.badge.good, .badge.warn, .badge.risk { color: var(--brand-light); border-color: color-mix(in srgb, var(--brand) 45%, transparent); }
.evidence-chip, .ref-chip { justify-content: center; width: 18px; height: 18px; margin-left: 3px; padding: 0; border: 1px solid var(--border-color); background: var(--bg-tertiary); color: var(--brand-light); text-decoration: none; vertical-align: .08em; letter-spacing: 0; }
.evidence-chip:hover, .ref-chip:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, var(--bg-tertiary)); }
.source-tier { padding: 3px 7px; border: 1px solid var(--border-color); color: var(--text-muted); }

.flow-line { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 15px; }
.flow-step { position: relative; padding: 13px 11px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-primary); color: var(--text-secondary); font-size: 11px; text-align: left; }
.flow-step span { display: block; margin-bottom: 4px; color: var(--brand-light); font: 800 9px var(--mono); }
.flow-step::after { content: "→"; position: absolute; top: 50%; right: -7px; color: var(--text-muted); transform: translateY(-50%); }
.flow-step:last-child::after { display: none; }
.flow-step.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--bg-primary)); }
.demo-button { margin-top: 13px; padding: 9px 12px; border: 1px solid var(--brand); border-radius: 7px; background: var(--brand); color: #07111e; font-size: 10px; font-weight: 800; }

.product-stack { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.product-card { padding: 15px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-primary); }
.product-card .product-top { display: block; }
.product-card h4 { margin: 0; font-size: 13px; }
.product-card .price { display: block; margin-top: 3px; color: var(--brand-light); font: 750 8px var(--mono); letter-spacing: .05em; }
.product-card p { margin-top: 8px; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.assumption-note { margin-top: 12px; color: var(--text-muted); font-size: 10px; line-height: 1.45; }

.viz-container { padding: 20px; }
.viz-container h3 { margin: 0 0 8px; font-size: 15px; }
.viz-container .flow-line { grid-template-columns: 1fr; }
.viz-container .flow-step::after { content: "↓"; top: auto; right: 50%; bottom: -14px; transform: translateX(50%); }
.callout { margin-top: 15px; padding: 14px 16px; border-left: 3px solid var(--brand); background: color-mix(in srgb, var(--brand) 6%, var(--bg-primary)); }
.callout p { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }

.timeline-block { margin-top: 12px; padding: 17px 19px; }
.timeline-item { display: grid; grid-template-columns: 105px 1fr; gap: 15px; padding: 13px 0; border-top: 1px solid var(--border-color); }
.timeline-item:first-child { border-top: 0; }
.timeline-date { color: var(--brand-light); font: 800 10px var(--mono); }
.timeline-copy { color: var(--text-secondary); font-size: 12px; line-height: 1.55; }

.cost-scenarios { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.cost-btn { padding: 7px 10px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--bg-primary); color: var(--text-secondary); font-size: 10px; }
.cost-btn:hover, .cost-btn.active { border-color: var(--brand); color: var(--text-primary); background: color-mix(in srgb, var(--brand) 10%, var(--bg-primary)); }
.control-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; }
.control label { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 7px; color: var(--text-secondary); font-size: 10px; }
.control input[type="range"] { width: 100%; accent-color: var(--brand); }
.economics-output { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 15px; }
.economics-output .metric-card { min-height: 90px; }

.table-scroll { overflow-x: auto; border: 1px solid var(--border-color); border-radius: 9px; }
.compare-table { width: 100%; min-width: 1120px; border: 0; border-collapse: collapse; background: transparent; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.compare-table th, .compare-table td { padding: 13px 14px; border-right: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); text-align: left; vertical-align: top; }
.compare-table th:last-child, .compare-table td:last-child { border-right: 0; }
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table thead th { position: sticky; top: 0; z-index: 1; background: var(--bg-tertiary); color: var(--text-muted); font: 800 8px var(--mono); text-transform: uppercase; letter-spacing: .07em; }
.compare-table tbody td:first-child { min-width: 100px; color: var(--text-primary); font-size: 12px; font-weight: 750; }
.compare-table tbody td:nth-child(2) { min-width: 120px; color: var(--brand-light); font-weight: 700; }
.compare-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 5%, transparent); }
.compare-table tr.target { background: color-mix(in srgb, var(--brand) 8%, transparent); }
#competition > .card { padding: 0; border: 0; background: transparent; }
#competition > .card > .callout { margin-inline: 0; }

.signal-animation-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.signal-card { min-height: 160px; padding: 17px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); }
.signal-card h3 { margin: 0; font-size: 14px; }
.signal-card p { margin: 8px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.decision-card { margin-top: 12px; padding: 20px; }
.decision-state { display: flex; justify-content: space-between; gap: 20px; align-items: start; }
.decision-state .verdict { margin-top: 6px; color: var(--brand-light); font-size: 21px; font-weight: 800; }
.decision-bars { display: grid; gap: 9px; margin-top: 17px; }
.decision-bar { display: grid; grid-template-columns: 150px 1fr 32px; gap: 10px; align-items: center; color: var(--text-secondary); font-size: 11px; }
.bar-track { height: 6px; border-radius: 99px; background: var(--bg-primary); overflow: hidden; }
.bar-fill { height: 100%; background: var(--brand); }

.reference-block { padding: 20px; }
.reference-list { display: grid; gap: 0; margin-top: 12px; }
.reference-item { padding: 12px 0; border-top: 1px solid var(--border-color); }
.reference-title { color: var(--text-primary); font-size: 12px; text-decoration: none; }
.reference-meta { display: block; margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.term { position: relative; border-bottom: 1px dotted var(--brand-light); cursor: help; }
.term:hover::after { content: attr(data-definition); position: absolute; bottom: 125%; left: 0; z-index: 70; width: 250px; padding: 10px; border: 1px solid var(--border-color); border-radius: 8px; background: #111821; color: var(--text-secondary); font-size: 10px; box-shadow: 0 12px 30px rgba(0,0,0,.32); }

.right-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 205;
  width: var(--right-panel-width);
  height: 100vh;
  overflow-y: auto;
  padding: 27px 23px 36px;
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-color);
}
.right-panel > * { animation: rp-fade-in .28s ease both; }
.rp-kicker { color: var(--brand-light); font: 800 9px var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.rp-title { margin: 11px 0 13px; font-size: 23px; line-height: 1.08; letter-spacing: -.025em; }
.rp-summary { margin: 0; color: var(--text-secondary); font-size: 12px; line-height: 1.55; }
.rp-progress-track { display: none; }
.rp-nums-list { margin-top: 20px; }
.rp-num { padding: 13px 0; border-top: 1px solid var(--border-color); }
.rp-num b { display: block; font-size: 15px; }
.rp-num span { display: block; margin-top: 3px; color: var(--text-muted); font-size: 10px; line-height: 1.4; }
.rp-insight-block, .rp-flag { margin-top: 16px; padding: 15px; border-radius: 9px; }
.rp-insight-block { border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--border-color)); background: color-mix(in srgb, var(--brand) 8%, var(--bg-card)); }
.rp-flag { border: 1px solid var(--border-color); background: var(--bg-card); }
.rp-insight-block b, .rp-flag b { display: block; color: var(--text-primary); font-size: 10px; }
.rp-insight-block p, .rp-flag p { margin: 6px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.5; }
.mobile-nav-toggle, .mobile-overlay { display: none; }
.confidence-badge, .comparison-logo-row { display: inline-flex; align-items: center; }

.section-kicker {
  display: block;
  color: var(--brand-light);
  font: 800 9px var(--mono);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.hero-copy {
  min-height: 410px;
  padding: 32px;
  border: 1px solid color-mix(in srgb, var(--brand) 30%, var(--border-color));
  border-radius: var(--radius);
  background: linear-gradient(150deg, color-mix(in srgb, var(--brand) 9%, var(--bg-card)), var(--bg-card) 48%);
}
.hero-copy h2 { max-width: 650px; margin: 16px 0 14px; font-size: clamp(30px, 3.2vw, 45px); line-height: 1.02; letter-spacing: -.045em; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--text-secondary); font-size: 15px; line-height: 1.55; }
.usecase-tabs { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 26px; }
.usecase-btn, .product-btn, .filter-btn {
  border: 1px solid var(--border-color);
  background: var(--bg-primary);
  color: var(--text-secondary);
  transition: border-color .18s ease, color .18s ease, background .18s ease, transform .18s ease;
}
.usecase-btn { padding: 8px 12px; border-radius: 999px; font-size: 10px; font-weight: 750; }
.usecase-btn:hover, .usecase-btn.active, .filter-btn:hover, .filter-btn.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 11%, var(--bg-primary)); color: var(--text-primary); }
.usecase-btn:active, .product-btn:active, .filter-btn:active { transform: translateY(1px); }
.usecase-detail { display: grid; grid-template-columns: 1.35fr .65fr 1.35fr; gap: 1px; margin-top: 14px; overflow: hidden; border: 1px solid var(--border-color); border-radius: 9px; background: var(--border-color); }
.usecase-detail > div { min-height: 90px; padding: 13px; background: var(--bg-primary); }
.usecase-detail span, .product-output span, .ecosystem-strip span, .system-node span { display: block; color: var(--text-muted); font: 800 8px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.usecase-detail b { display: block; margin-top: 7px; color: var(--text-secondary); font-size: 10px; line-height: 1.45; }

.web-map {
  position: relative;
  display: grid;
  grid-template-columns: minmax(70px, .8fr) 24px 112px 24px minmax(90px, .9fr);
  align-items: center;
  min-height: 410px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 40%), var(--bg-card);
}
.web-map::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(var(--border-color) 1px, transparent 1px), linear-gradient(90deg, var(--border-color) 1px, transparent 1px); background-size: 34px 34px; mask-image: radial-gradient(circle, #000, transparent 72%); }
.map-node { position: relative; z-index: 2; padding: 12px; border: 1px solid var(--border-color); border-radius: 9px; background: color-mix(in srgb, var(--bg-primary) 88%, transparent); box-shadow: 0 14px 35px rgba(0,0,0,.2); }
.map-node span { display: block; color: var(--brand-light); font: 800 8px var(--mono); }
.map-node b, .map-node small { display: block; }
.map-node b { margin-top: 3px; font-size: 11px; }
.map-node small { margin-top: 2px; color: var(--text-muted); font-size: 8px; line-height: 1.35; }
.map-output-stack { position: relative; z-index: 2; display: grid; gap: 8px; }
.parallel-core { position: relative; z-index: 3; display: grid; width: 112px; height: 112px; place-content: center; justify-self: center; border: 1px solid color-mix(in srgb, var(--brand) 65%, var(--border-color)); border-radius: 50%; background: color-mix(in srgb, var(--brand) 17%, var(--bg-primary)); text-align: center; box-shadow: 0 0 55px color-mix(in srgb, var(--brand) 20%, transparent); }
.parallel-core .core-mark { color: var(--brand-light); font: 800 20px var(--mono); }
.parallel-core b { margin-top: 2px; font-size: 13px; }
.parallel-core small { color: var(--text-muted); font-size: 8px; }
.orbit-ring { position: absolute; inset: -15px; border: 1px dashed color-mix(in srgb, var(--brand) 42%, transparent); border-radius: 50%; pointer-events: none; }
.orbit-two { inset: -29px; border-color: color-mix(in srgb, var(--brand) 23%, transparent); }
.orbit-ring::after { content: ""; position: absolute; top: 11%; left: 11%; width: 6px; height: 6px; border-radius: 50%; background: var(--brand-light); box-shadow: 0 0 12px var(--brand); }
.signal-line { position: relative; z-index: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--brand), transparent); }
.signal-line::after { content: ""; position: absolute; top: -2px; left: 0; width: 5px; height: 5px; border-radius: 50%; background: var(--brand-light); animation: flowPulse 2.4s linear infinite; }
.line-out::after { animation-delay: .9s; }

.summary-details, .timeline-details { margin-top: 12px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-secondary); }
.summary-details summary, .timeline-details summary { position: relative; padding: 14px 42px 14px 17px; color: var(--text-secondary); font-size: 11px; font-weight: 750; list-style: none; cursor: pointer; }
.summary-details summary::-webkit-details-marker, .timeline-details summary::-webkit-details-marker { display: none; }
.summary-details summary::after, .timeline-details summary::after { content: "+"; position: absolute; top: 50%; right: 17px; color: var(--brand-light); font: 700 16px var(--mono); transform: translateY(-50%); }
.summary-details[open] summary::after, .timeline-details[open] summary::after { content: "−"; }
.summary-content { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding: 0 17px 17px; border-top: 1px solid var(--border-color); }
.summary-content p { margin: 15px 0 0; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }

.product-explorer { display: grid; grid-template-columns: 190px minmax(250px, 1fr) minmax(280px, .9fr); min-height: 390px; padding: 0; overflow: hidden; }
.product-selector { display: grid; align-content: start; padding: 12px; border-right: 1px solid var(--border-color); background: var(--bg-secondary); }
.product-btn { padding: 11px 12px; border-color: transparent; border-radius: 8px; text-align: left; font-size: 12px; font-weight: 750; }
.product-btn span { display: block; margin-bottom: 2px; color: var(--text-muted); font: 750 7px var(--mono); text-transform: uppercase; letter-spacing: .08em; }
.product-btn:hover, .product-btn.active { border-color: var(--border-color); background: var(--bg-tertiary); color: var(--text-primary); }
.product-btn.active { border-left-color: var(--brand); }
.product-focus { display: flex; flex-direction: column; justify-content: center; min-height: 340px; padding: 34px; }
.product-focus h3 { margin: 10px 0 12px; font-size: 36px; letter-spacing: -.04em; }
.product-focus > p { max-width: 480px; color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.product-output { margin-top: 23px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.product-output b { display: block; margin-top: 5px; color: var(--brand-light); font-size: 11px; }
.example-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 13px; }
.example-chips span { padding: 6px 8px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-muted); font-size: 9px; }
.product-system-map { display: grid; grid-template-columns: 1fr; align-content: center; gap: 4px; padding: 25px; border-left: 1px solid var(--border-color); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--brand) 10%, transparent), transparent 65%), var(--bg-primary); }
.product-system-map > i { color: var(--text-muted); font-style: normal; text-align: center; transform: rotate(90deg); }
.system-node { padding: 13px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); }
.system-node.active { border-color: color-mix(in srgb, var(--brand) 55%, var(--border-color)); box-shadow: inset 3px 0 0 var(--brand); }
.system-node b { display: block; margin-top: 4px; font-size: 11px; }
.ecosystem-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; margin-top: 10px; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--border-color); }
.ecosystem-strip > div { padding: 14px; background: var(--bg-secondary); }
.ecosystem-strip b { display: block; margin-top: 4px; font-size: 10px; }
.section-footnote { margin: 10px 2px 0; color: var(--text-muted); font-size: 9px; line-height: 1.45; }

.proof-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.proof-card { min-height: 178px; padding: 21px; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); }
.proof-card > span { color: var(--brand-light); font: 800 8px var(--mono); letter-spacing: .1em; }
.proof-card strong { display: block; margin-top: 11px; font-size: 35px; line-height: 1; letter-spacing: -.045em; }
.proof-card p { margin: 14px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.ecosystem-map { display: grid; grid-template-columns: minmax(230px, .7fr) minmax(430px, 1.3fr); gap: 24px; align-items: center; min-height: 390px; margin-top: 12px; overflow: hidden; }
.ecosystem-copy h3 { max-width: 360px; margin: 12px 0; font-size: 28px; line-height: 1.1; letter-spacing: -.035em; }
.ecosystem-copy p { max-width: 360px; color: var(--text-secondary); font-size: 12px; line-height: 1.6; }
.ecosystem-network { position: relative; min-height: 330px; border: 1px solid var(--border-color); border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--brand) 12%, transparent), transparent 58%); }
.ecosystem-network::before, .ecosystem-network::after { content: ""; position: absolute; inset: 20%; border: 1px dashed color-mix(in srgb, var(--brand) 24%, var(--border-color)); border-radius: 50%; }
.ecosystem-network::after { inset: 38%; border-style: solid; }
.network-core { position: absolute; z-index: 3; top: 50%; left: 50%; display: grid; width: 88px; height: 88px; place-content: center; border: 1px solid var(--brand); border-radius: 50%; background: var(--bg-primary); text-align: center; transform: translate(-50%, -50%); box-shadow: 0 0 40px color-mix(in srgb, var(--brand) 19%, transparent); }
.network-core span { color: var(--brand-light); font: 800 15px var(--mono); }
.network-core b { font-size: 11px; }
.network-node { position: absolute; z-index: 2; width: 112px; padding: 9px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-primary); text-align: center; animation: cellPulse 4s ease-in-out infinite; }
.network-node b, .network-node small { display: block; }
.network-node b { font-size: 10px; }
.network-node small { margin-top: 2px; color: var(--text-muted); font-size: 7px; }
.node-mcp { top: 10%; left: 50%; transform: translateX(-50%); }
.node-cli { top: 35%; left: 3%; animation-delay: .4s; }
.node-mpp { right: 3%; bottom: 16%; animation-delay: .8s; }
.node-cloud { top: 35%; right: 3%; animation-delay: 1.2s; }
.node-index { bottom: 8%; left: 27%; animation-delay: 1.6s; }
.timeline-details .timeline-block { margin: 0; border-width: 1px 0 0; border-radius: 0 0 var(--radius) var(--radius); }

.competition-filters { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 10px; }
.filter-btn { padding: 7px 10px; border-radius: 999px; font-size: 9px; font-weight: 750; }
.compare-table tr[hidden] { display: none; }

.question-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.question-card { position: relative; min-height: 245px; padding: 20px; overflow: hidden; border: 1px solid var(--border-color); border-radius: var(--radius); background: var(--bg-card); }
.question-card > span { color: var(--text-muted); font: 800 9px var(--mono); }
.question-icon { display: grid; width: 52px; height: 52px; margin: 25px 0 22px; place-items: center; border: 1px solid color-mix(in srgb, var(--brand) 42%, var(--border-color)); border-radius: 50%; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand-light); font-size: 22px; }
.question-card h3 { margin: 0; font-size: 15px; line-height: 1.25; }
.question-card p { margin: 9px 0 0; color: var(--text-secondary); font-size: 11px; line-height: 1.55; }
.evidence-gates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.evidence-gates span { position: relative; padding: 12px 12px 12px 33px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-secondary); color: var(--text-secondary); font-size: 9px; line-height: 1.4; }
.evidence-gates span::before { content: ""; position: absolute; top: 13px; left: 12px; width: 10px; height: 10px; border: 1px solid var(--brand); border-radius: 3px; }

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes flowPulse { 0% { left: 0; opacity: 0; } 15%, 80% { opacity: 1; } 100% { left: 100%; opacity: 0; } }
@keyframes cellPulse { 0%, 100% { border-color: var(--border-color); } 50% { border-color: color-mix(in srgb, var(--brand) 48%, var(--border-color)); } }
@keyframes rp-fade-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1450px) {
  .product-explorer { grid-template-columns: 165px 1fr; }
  .product-system-map { grid-column: 1 / -1; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; border-top: 1px solid var(--border-color); border-left: 0; }
  .product-system-map > i { transform: none; }
  .ecosystem-map { grid-template-columns: 1fr; }
  .ecosystem-copy h3, .ecosystem-copy p { max-width: none; }
  .ecosystem-network { max-width: 520px; width: 100%; justify-self: center; }
}

@media (max-width: 1350px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
}

@media (max-width: 1180px) {
  :root { --sidebar-width: 220px; --right-panel-width: 280px; }
  .main-content { padding: 32px 28px 75px; }
  .section-heading { grid-template-columns: 1fr; gap: 8px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { min-height: auto; }
  .kpi-strip { grid-template-columns: repeat(3, 1fr); border-radius: 0; }
  .metric-card, .metric-card:first-child, .metric-card:last-child { border: 1px solid var(--border-color); border-radius: var(--radius); }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3, .signal-animation-grid { grid-template-columns: 1fr; }
  .product-explorer { grid-template-columns: 155px 1fr; }
  .product-system-map { grid-column: 1 / -1; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; border-top: 1px solid var(--border-color); border-left: 0; }
  .product-system-map > i { transform: none; }
  .ecosystem-map { grid-template-columns: 1fr; }
  .ecosystem-copy h3, .ecosystem-copy p { max-width: none; }
  .ecosystem-network { max-width: 520px; width: 100%; justify-self: center; }
  .ecosystem-strip, .evidence-gates { grid-template-columns: repeat(2, 1fr); }
  .viz-container .flow-line { grid-template-columns: repeat(4, 1fr); }
  .viz-container .flow-step::after { content: "→"; top: 50%; right: -7px; bottom: auto; transform: translateY(-50%); }
  .viz-container .flow-step:last-child::after { display: none; }
}

@media (max-width: 860px) {
  :root { --sidebar-width: 250px; --right-panel-width: 0px; }
  body { padding-top: 54px; }
  .main-content { width: 100%; margin: 0; padding: 26px 20px 65px; }
  .sidebar { transform: translateX(-101%); transition: transform .22s ease; }
  .sidebar.open { transform: none; }
  .right-panel { position: relative; width: 100%; height: auto; padding: 28px 20px 45px; border-top: 1px solid var(--border-color); border-left: 0; }
  .mobile-nav-toggle { display: block; position: fixed; top: 10px; left: 12px; z-index: 300; padding: 8px 11px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-card); color: var(--text-primary); }
  .mobile-overlay.open { display: block; position: fixed; inset: 0; z-index: 209; border: 0; background: rgba(0,0,0,.58); }
  .page-title { font-size: 48px; }
  .web-map { min-height: 390px; }
  .product-explorer { grid-template-columns: 150px 1fr; }
  .product-system-map { grid-template-columns: 1fr auto 1fr; }
  .product-system-map .system-node:nth-of-type(3), .product-system-map .system-node:nth-of-type(4), .product-system-map i:nth-of-type(2), .product-system-map i:nth-of-type(3) { display: none; }
  .flow-line, .viz-container .flow-line { grid-template-columns: repeat(2, 1fr); }
  .flow-step:nth-child(2)::after { display: none; }
  .grid-3, .signal-animation-grid { grid-template-columns: 1fr; }
  .control-row { grid-template-columns: 1fr; }
  .economics-output { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .main-content { padding-inline: 15px; }
  .page-title { font-size: 41px; }
  .page-subtitle { font-size: 14px; }
  .hero-box, .highlight-box, .card, .viz-container, .decision-card, .reference-block { padding: 17px; }
  .hero-copy { min-height: auto; padding: 22px; }
  .hero-copy h2 { font-size: 32px; }
  .usecase-detail { grid-template-columns: 1fr; }
  .usecase-detail > div { min-height: auto; }
  .web-map { grid-template-columns: 1fr; gap: 11px; min-height: auto; padding: 22px; }
  .map-input, .map-output-stack { width: 100%; }
  .parallel-core { margin-block: 20px; }
  .signal-line { width: 1px; height: 24px; justify-self: center; background: linear-gradient(transparent, var(--brand), transparent); }
  .signal-line::after { top: 0; left: -2px; animation: none; }
  .summary-content { grid-template-columns: 1fr; gap: 0; }
  .product-explorer { grid-template-columns: 1fr; }
  .product-selector { grid-template-columns: repeat(3, 1fr); border-right: 0; border-bottom: 1px solid var(--border-color); }
  .product-btn { padding: 9px; text-align: center; }
  .product-focus { min-height: 320px; padding: 25px; }
  .product-system-map { display: none; }
  .ecosystem-strip, .proof-grid, .question-grid, .evidence-gates { grid-template-columns: 1fr; }
  .ecosystem-network { min-height: 300px; }
  .network-node { width: 98px; }
  .node-cli { left: 0; }
  .node-cloud, .node-mpp { right: 0; }
  .node-index { left: 20%; }
  .kpi-strip, .product-stack, .economics-output, .flow-line, .viz-container .flow-line { grid-template-columns: 1fr; }
  .flow-step::after, .viz-container .flow-step::after { content: "↓"; top: auto; right: 50%; bottom: -14px; transform: translateX(50%); }
  .flow-step:last-child::after { display: none; }
  .timeline-item { grid-template-columns: 1fr; gap: 4px; }
  .decision-state { display: block; }
  .decision-bar { grid-template-columns: 110px 1fr 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* Custom workflow composer */
.workflow-builder { padding: 0; overflow: hidden; }
.workflow-builder-controls { display: grid; grid-template-columns: 1fr auto; align-items: stretch; border-bottom: 1px solid var(--border-color); }
.workflow-recipes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.workflow-recipe-btn { min-height: 92px; padding: 16px 18px; border: 0; border-right: 1px solid var(--border-color); border-radius: 0; background: transparent; text-align: left; }
.workflow-recipe-btn span, .workflow-recipe-btn small { display: block; }
.workflow-recipe-btn span { color: var(--text-primary); font-weight: 800; }
.workflow-recipe-btn small { margin-top: 7px; color: var(--text-muted); font-size: .66rem; line-height: 1.4; }
.workflow-recipe-btn.active { box-shadow: inset 0 -3px 0 var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
.workflow-mode { display: grid; grid-template-columns: 1fr; min-width: 128px; }
.workflow-mode button { border: 0; border-bottom: 1px solid var(--border-color); border-radius: 0; background: var(--bg-secondary); color: var(--text-muted); font-size: .68rem; font-weight: 750; text-transform: uppercase; }
.workflow-mode button:last-child { border-bottom: 0; }
.workflow-mode button.active { background: var(--brand); color: #071014; }
.workflow-live { padding: 24px; }
.workflow-live-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.workflow-live-head h3 { margin: 6px 0 8px; font-size: clamp(1.7rem, 3.4vw, 3rem); }
.workflow-live-head p { max-width: 740px; margin: 0; color: var(--text-secondary); }
.workflow-stage-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin: 24px 0 12px; }
.workflow-stage { position: relative; min-height: 158px; padding: 15px; border: 1px solid var(--border-color); background: var(--bg-secondary); transition: border-color .25s ease, background .25s ease, transform .25s ease; }
.workflow-stage::after { content: "→"; position: absolute; top: 50%; right: -9px; z-index: 2; color: var(--text-muted); transform: translate(50%, -50%); }
.workflow-stage:last-child::after { display: none; }
.workflow-stage span, .workflow-stage b, .workflow-stage small { display: block; }
.workflow-stage span { color: var(--brand-light); font-size: .62rem; font-weight: 800; }
.workflow-stage b { margin: 24px 0 8px; font-size: .86rem; }
.workflow-stage small { color: var(--text-muted); font-size: .67rem; line-height: 1.45; }
.workflow-stage.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 14%, var(--bg-secondary)); transform: translateY(-4px); animation: flowPulse 1s ease-in-out infinite; }
.workflow-stage.complete { border-color: rgba(74, 222, 128, .55); }
.workflow-stage.complete span { color: var(--accent-green); }
.workflow-build-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 10px; }
.workflow-config, .workflow-result { min-height: 194px; padding: 20px; border: 1px solid var(--border-color); background: #080c11; }
.workflow-config > span, .workflow-result > span { color: var(--text-muted); font-size: .62rem; font-weight: 800; letter-spacing: .08em; }
.workflow-config code { display: block; margin-top: 16px; overflow-wrap: anywhere; color: #b7e9dc; font-size: .7rem; line-height: 1.65; white-space: normal; }
.workflow-result { background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 12%, var(--bg-secondary)), var(--bg-secondary)); }
.workflow-result b { display: block; margin: 18px 0 10px; font-size: 1.12rem; line-height: 1.35; }
.workflow-result p { margin: 0; color: var(--text-secondary); font-size: .75rem; line-height: 1.55; }
.workflow-readthrough { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; border: 1px solid var(--border-color); }
.workflow-readthrough > div { padding: 18px; border-right: 1px solid var(--border-color); }
.workflow-readthrough > div:last-child { border-right: 0; }
.workflow-readthrough span { color: var(--brand-light); font-size: .62rem; font-weight: 800; }
.workflow-readthrough b { display: block; margin: 18px 0 7px; }
.workflow-readthrough p { margin: 0; color: var(--text-muted); font-size: .72rem; line-height: 1.5; }

@media (max-width: 1120px) {
  .workflow-stage-grid { grid-template-columns: 1fr; }
  .workflow-stage { min-height: 0; }
  .workflow-stage::after { top: auto; right: 50%; bottom: -9px; transform: translate(50%, 50%) rotate(90deg); }
}

@media (max-width: 760px) {
  .workflow-builder-controls, .workflow-build-grid, .workflow-readthrough { grid-template-columns: 1fr; }
  .workflow-recipes { grid-template-columns: 1fr; }
  .workflow-recipe-btn { min-height: 0; border-right: 0; border-bottom: 1px solid var(--border-color); }
  .workflow-mode { grid-template-columns: 1fr 1fr; }
  .workflow-live { padding: 18px; }
  .workflow-live-head { align-items: stretch; flex-direction: column; }
  .workflow-readthrough > div { border-right: 0; border-bottom: 1px solid var(--border-color); }
}

@media print {
  @page { size: A3 landscape; margin: 9mm; }
  body { background: #fff; color: #111; font-size: 10px; }
  .sidebar, .right-panel, .mobile-nav-toggle, .mobile-overlay, .demo-button, .cost-scenarios, .control-row { display: none !important; }
  .main-content { width: 100%; margin: 0; padding: 0; }
  .page { max-width: none; }
  .page-title { color: #111; font-size: 30px; }
  .page-subtitle, .card p, .hero-box p, .metric-label, .metric-note, .product-card p, .signal-card p, .timeline-copy, .compare-table td { color: #333; }
  .section-block { padding: 12px 0; break-inside: avoid; }
  .card, .metric-card, .highlight-box, .hero-box, .viz-container, .decision-card, .timeline-block, .reference-block { background: #fff; border-color: #bbb; }
  #sources { display: none; }
}

/* Enterprise Coding Context-inspired minimalist reading theme */
:root {
  --bg-primary: #f5f1e8;
  --bg-secondary: #ebe6da;
  --bg-tertiary: #e3ded2;
  --bg-card: #ffffff;
  --border-color: #cbc5b8;
  --text-primary: #071223;
  --text-secondary: #59626f;
  --text-muted: #7a828d;
  --accent-blue: #3b6cff;
  --accent-green: #2f8f5b;
  --accent-yellow: #a76b00;
  --accent-red: #c84b3a;
  --accent-purple: #7457d9;
  --brand: #3b6cff;
  --brand-light: #244fd1;
  --sidebar-width: 0px;
  --right-panel-width: 0px;
  --radius: 0px;
}
body { background: var(--bg-primary); color: var(--text-primary); font-size: 16px; line-height: 1.58; }
.sidebar {
  inset: 0 0 auto 0;
  width: 100%;
  height: 72px;
  display: flex;
  align-items: stretch;
  overflow: hidden;
  padding: 0 4.7vw;
  background: rgba(245, 241, 232, .94);
  border: 0;
  border-bottom: 1px solid var(--border-color);
  backdrop-filter: blur(16px);
}
.sidebar-header {
  width: 176px;
  flex: 0 0 176px;
  display: flex;
  align-items: center;
  padding: 0;
  border: 0;
  background: transparent;
}
.brand-lockup { gap: 9px; font-size: 14px; letter-spacing: -.01em; }
.brand-mark {
  width: 18px;
  height: 18px;
  border: 0;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-size: 10px;
  box-shadow: none;
}
.sidebar-header p, .as-of, .nav-section-title, .sidebar-glossary { display: none; }
#nav-sections { min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; }
#nav-sections::-webkit-scrollbar { display: none; }
.nav-section { height: 72px; display: flex; justify-content: flex-end; padding: 0; border: 0; }
.nav-item {
  width: auto;
  min-width: max-content;
  height: 72px;
  gap: 7px;
  padding: 0 12px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #626a75;
  font-size: 12px;
}
.nav-item:hover, .nav-item.active {
  border-left-color: transparent;
  border-bottom-color: var(--brand);
  background: transparent;
  color: var(--text-primary);
}
.nav-icon { width: auto; color: #9298a0; font-size: 8px; }
.mobile-nav-toggle, .mobile-overlay, .right-panel { display: none !important; }

.main-content {
  width: 100%;
  margin: 0;
  padding: 72px 4.7vw 110px;
}
.page { max-width: 1320px; }
.page-header {
  min-height: 560px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 82px 0 72px;
  border-color: var(--border-color);
}
.page-title {
  max-width: 1120px;
  margin: 18px 0 24px;
  font-size: clamp(58px, 7.2vw, 108px);
  font-weight: 560;
  line-height: .9;
  letter-spacing: -.065em;
}
.page-subtitle { max-width: 900px; color: var(--text-secondary); font-size: clamp(18px, 1.6vw, 23px); line-height: 1.48; }
.eyebrow, .section-kicker { color: var(--brand); font-family: var(--mono); font-size: 10px; letter-spacing: .14em; }
.badge {
  width: max-content;
  padding: 7px 11px;
  border-color: color-mix(in srgb, var(--brand) 42%, var(--border-color));
  background: transparent;
  color: var(--brand);
}
.section-block { padding: 88px 0; }
.section-divider { height: 1px; background: var(--border-color); }
.section-heading { grid-template-columns: minmax(380px, .85fr) minmax(0, 1.15fr); gap: 42px; margin-bottom: 42px; }
.section-heading h2, .hero-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4.6vw, 68px);
  font-weight: 560;
  line-height: .98;
  letter-spacing: -.052em;
}
.section-heading p, .hero-copy > p { margin: 2px 0 0; color: var(--text-secondary); font-size: 17px; line-height: 1.55; font-style: normal; }

.card, .metric-card, .highlight-box, .hero-box, .viz-container, .decision-card, .timeline-block, .reference-block,
.signal-card, .glossary-card {
  background: rgba(255,255,255,.72);
  border-color: var(--border-color);
  border-radius: 0;
  box-shadow: none;
}
.card:hover, .signal-card:hover { transform: none; box-shadow: none; }
.hero-box { background: #fff; border-color: var(--border-color); }
.hero-grid { gap: 20px; }
.kpi-strip, .table-scroll { border-radius: 0; }
.metric-card:first-child, .metric-card:last-child { border-radius: 0; }
.flow-step, .product-card, .cost-btn, .control input, .data-cell { background: #fff; color: var(--text-secondary); }
.callout, .scenario-copy { background: color-mix(in srgb, var(--brand) 6%, #fff); }
.compare-table thead th { background: var(--bg-secondary); }
.compare-table tbody tr:hover, .compare-table tr.target { background: color-mix(in srgb, var(--brand) 6%, transparent); }
.term:hover::after { background: #fff; color: var(--text-secondary); box-shadow: 0 14px 30px rgba(7,18,35,.14); }

button, .scenario-btn, .product-tab, .filter-btn, .plan-toggle button, .cost-btn {
  border-color: var(--border-color);
  background: transparent;
  color: var(--text-secondary);
  box-shadow: none;
}
button:hover, .scenario-btn:hover, .product-tab:hover, .filter-btn:hover, .plan-toggle button:hover, .cost-btn:hover { border-color: var(--brand); color: var(--text-primary); }
.scenario-btn.active, .product-tab.active, .filter-btn.active, .plan-toggle button.active,
.cost-btn.active, .primary-btn, .demo-button {
  border-color: var(--text-primary);
  background: var(--text-primary);
  color: #fff;
}

.workflow-builder { background: #fff; }
.workflow-recipe-btn, .workflow-mode button { background: #fff; }
.workflow-mode button.active { background: var(--text-primary); color: #fff; }
.workflow-live { background: #fff; }
.workflow-stage { background: var(--bg-primary); }
.workflow-stage.active { background: color-mix(in srgb, var(--brand) 9%, #fff); }
.workflow-config, .workflow-result { background: var(--bg-primary); }
.workflow-config code { color: #16644b; }
.workflow-readthrough { background: rgba(255,255,255,.45); }

@media (max-width: 980px) {
  .sidebar { padding: 0 20px; }
  .sidebar-header { width: 135px; flex-basis: 135px; }
  .nav-section { justify-content: flex-start; }
  .main-content { padding-inline: 24px; }
  .page-header { min-height: 500px; }
  .section-heading { grid-template-columns: 1fr; gap: 15px; }
}
@media (max-width: 620px) {
  .sidebar { height: 64px; padding: 0 14px; transform: none !important; }
  .sidebar-header { width: 112px; flex-basis: 112px; }
  .brand-lockup { font-size: 12px; }
  .nav-section, .nav-item { height: 64px; }
  .nav-item { padding-inline: 10px; font-size: 11px; }
  .main-content { width: 100%; padding: 64px 16px 70px; }
  .page-header { min-height: 450px; padding: 64px 0 48px; }
  .page-title { font-size: clamp(48px, 16vw, 74px); }
  .section-block { padding: 62px 0; }
  .section-heading h2, .hero-copy h2 { font-size: 39px; }
}
