@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes grow {
  from { height: 0; }
  to { height: var(--bar-height); }
}

:root {
  --ink: #17201d;
  --muted: #66706b;
  --paper: #f3f1ea;
  --white: #fffefa;
  --line: #d8d6cf;
  --green: #146b4a;
  --green-soft: #cbe3d5;
  --coral: #e6674c;
  --yellow: #e9c75f;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Manrope", sans-serif;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
svg { width: 18px; height: 18px; stroke-width: 1.8; }

.site-header {
  min-height: 72px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(243, 241, 234, 0.94);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
}
.brand, nav, .header-cta, .stage-cta, .closing-band a { display: flex; align-items: center; }
.brand { gap: 12px; font-weight: 800; }
.brand-mark {
  width: 35px;
  height: 35px;
  display: grid;
  place-items: center;
  background: var(--ink);
  color: var(--white);
  font: 500 12px "DM Mono", monospace;
}
.brand-section { color: var(--muted); font-weight: 500; padding-left: 12px; border-left: 1px solid var(--line); }
nav { gap: 24px; font-size: 14px; font-weight: 600; }
.header-cta { gap: 7px; border: 1px solid var(--ink); padding: 10px 14px; }

main { overflow: hidden; }
.intro {
  min-height: 390px;
  padding: 72px clamp(20px, 6vw, 96px) 58px;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  align-items: end;
  gap: 80px;
  background-image: linear-gradient(rgba(23,32,29,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(23,32,29,.045) 1px, transparent 1px);
  background-size: 32px 32px;
}
.eyebrow, .stage-kicker {
  margin: 0 0 18px;
  color: var(--green);
  font: 500 12px "DM Mono", monospace;
  text-transform: uppercase;
}
h1 { margin: 0; font-size: clamp(44px, 6.4vw, 94px); line-height: .96; letter-spacing: 0; }
h1 span { color: var(--green); }
.intro-copy > p { margin: 0 0 34px; color: #3d4743; font-size: clamp(17px, 1.5vw, 21px); line-height: 1.6; }
.proof-row { display: flex; gap: 30px; }
.proof-row span { color: var(--muted); font-size: 12px; }
.proof-row strong { display: block; color: var(--ink); font-size: 24px; }

.demo-workbench { display: grid; grid-template-columns: 300px minmax(0, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scenario-nav { background: var(--ink); color: var(--white); padding: 24px 0; }
.scenario-heading { display: flex; justify-content: space-between; padding: 0 22px 20px; color: #9ba49f; font: 400 11px "DM Mono", monospace; text-transform: uppercase; }
.scenario-list { display: flex; flex-direction: column; }
.scenario-button {
  width: 100%;
  min-height: 70px;
  display: grid;
  grid-template-columns: 38px 1fr 20px;
  gap: 10px;
  align-items: center;
  text-align: left;
  border: 0;
  border-top: 1px solid #34403b;
  padding: 12px 18px;
  background: transparent;
  color: #dfe4e1;
  cursor: pointer;
}
.scenario-button:last-child { border-bottom: 1px solid #34403b; }
.scenario-button:hover, .scenario-button.active { background: #25312d; }
.scenario-button.active { box-shadow: inset 3px 0 var(--yellow); }
.scenario-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid #46524d; }
.scenario-button.active .scenario-icon { background: var(--yellow); color: var(--ink); border-color: var(--yellow); }
.scenario-button strong, .scenario-button small { display: block; }
.scenario-button strong { font-size: 13px; }
.scenario-button small { margin-top: 4px; color: #8e9994; font-size: 10px; }
.scenario-arrow { opacity: 0; }
.scenario-button.active .scenario-arrow { opacity: 1; }

.demo-stage { min-width: 0; background: var(--white); }
.stage-enter .stage-copy > *, .stage-enter .product-frame { animation: rise .35s backwards; }
.stage-enter .stage-copy > *:nth-child(2) { animation-delay: 40ms; }
.stage-enter .stage-copy > *:nth-child(3) { animation-delay: 80ms; }
.stage-enter .product-frame { animation-delay: 100ms; }
.stage-topbar { height: 50px; padding: 0 18px; display: flex; align-items: center; border-bottom: 1px solid var(--line); font: 400 10px "DM Mono", monospace; color: var(--muted); }
.window-controls { display: flex; gap: 5px; margin-right: 20px; }
.window-controls span { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.window-controls span:first-child { background: var(--coral); }
.window-controls span:nth-child(2) { background: var(--yellow); }
.window-controls span:last-child { background: #75b791; }
.live-pill { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.live-pill span { width: 6px; height: 6px; border-radius: 50%; background: #25a36f; }
.stage-content { min-height: 650px; padding: clamp(28px, 5vw, 72px); display: grid; grid-template-columns: minmax(250px, .7fr) minmax(430px, 1.3fr); gap: clamp(28px, 5vw, 76px); align-items: center; }
.stage-copy h2 { margin: 0 0 20px; font-size: clamp(30px, 3.3vw, 51px); line-height: 1.07; letter-spacing: 0; }
.stage-copy > p:not(.stage-kicker) { color: var(--muted); line-height: 1.7; font-size: 15px; }
.outcome-list { display: grid; gap: 10px; margin: 26px 0 32px; }
.outcome-list span { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
.outcome-list svg { width: 15px; color: var(--green); }
.stage-cta { width: fit-content; gap: 9px; background: var(--green); color: white; padding: 13px 16px; font-size: 13px; font-weight: 700; }

.product-frame { min-width: 0; display: grid; grid-template-columns: 48px minmax(0, 1fr); border: 1px solid #bbc3bf; box-shadow: 14px 14px 0 var(--green-soft); background: #f8faf8; }
.product-sidebar { padding: 14px 0; display: flex; align-items: center; flex-direction: column; gap: 21px; background: #1e2925; color: #98a39e; }
.product-sidebar svg:nth-of-type(1) { color: white; }
.mini-logo { width: 25px; height: 25px; margin-bottom: 8px; display: grid; place-items: center; background: var(--yellow); color: var(--ink); font: 500 11px "DM Mono", monospace; }
.product-main { min-width: 0; }
.product-header { height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #dfe4e1; color: var(--muted); font-size: 10px; }
.status-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #27a871; }
.question-block { margin: 18px 18px 12px 52px; padding: 13px 15px; background: #e8eee9; border-left: 2px solid var(--green); }
.question-block span { font: 500 8px "DM Mono", monospace; color: var(--green); }
.question-block p { margin: 5px 0 0; font-size: 11px; line-height: 1.5; }
.agent-row { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin: 0 18px 14px; }
.agent-avatar { width: 28px; height: 28px; display: grid; place-items: center; background: var(--green); color: white; font: 500 8px "DM Mono", monospace; }
.agent-row strong { font-size: 10px; }
.agent-row p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.5; }
.chart-panel { margin: 0 18px; padding: 16px; border: 1px solid #dce1de; background: white; }
.chart-heading { display: flex; justify-content: space-between; align-items: start; }
.chart-heading span, .chart-heading strong { display: block; }
.chart-heading span { color: var(--muted); font: 500 8px "DM Mono", monospace; }
.chart-heading strong { margin-top: 5px; font-size: 20px; }
.chart-bars { height: 125px; padding: 18px 8px 0; display: grid; grid-template-columns: repeat(4, 1fr); align-items: end; gap: 12px; border-bottom: 1px solid #cbd2ce; background-image: linear-gradient(#edf0ee 1px, transparent 1px); background-size: 100% 32px; }
.chart-bars span { height: var(--bar-height); background: var(--green); animation: grow .45s var(--delay) ease-out both; }
.chart-bars span:nth-child(2) { background: #3f886b; }
.chart-bars span:nth-child(3) { background: var(--yellow); }
.chart-bars span:nth-child(4) { background: var(--coral); }
.chart-labels { padding: 7px 8px 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; color: var(--muted); font: 400 8px "DM Mono", monospace; text-align: center; }
.evidence-row { display: flex; gap: 16px; margin: 14px 18px 18px; color: var(--muted); font-size: 8px; }
.evidence-row span { display: flex; align-items: center; gap: 4px; }
.evidence-row svg { width: 11px; }

.capability-strip { padding: 80px clamp(20px, 6vw, 96px); }
.capability-grid { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.capability-grid > div { min-height: 220px; padding: 24px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.capability-grid span { display: block; color: var(--coral); font: 500 11px "DM Mono", monospace; }
.capability-grid strong { display: block; margin: 45px 0 12px; font-size: 20px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.closing-band { padding: 70px clamp(20px, 6vw, 96px); display: flex; align-items: end; justify-content: space-between; gap: 30px; background: var(--green); color: white; }
.closing-band .eyebrow { color: var(--green-soft); }
.closing-band h2 { margin: 0; font-size: clamp(35px, 5vw, 70px); line-height: 1; }
.closing-band a { gap: 10px; flex: 0 0 auto; padding: 14px 16px; background: var(--yellow); color: var(--ink); font-weight: 700; font-size: 13px; }
footer { min-height: 76px; padding: 0 clamp(20px, 6vw, 96px); display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 11px; }

@media (max-width: 980px) {
  .intro { grid-template-columns: 1fr; gap: 36px; }
  .demo-workbench { grid-template-columns: 240px minmax(0, 1fr); }
  .stage-content { grid-template-columns: 1fr; }
  .capability-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .brand-section, nav > a:first-child { display: none; }
  .site-header { min-height: 62px; }
  .intro { min-height: 420px; padding-top: 54px; }
  .proof-row { gap: 18px; }
  .demo-workbench { display: block; }
  .scenario-nav { padding-bottom: 14px; }
  .scenario-list { padding: 0 14px 10px; flex-direction: row; overflow-x: auto; scrollbar-width: none; }
  .scenario-button { min-width: 158px; min-height: 98px; grid-template-columns: 34px 1fr; border: 1px solid #34403b; border-right: 0; }
  .scenario-button:last-child { border-right: 1px solid #34403b; }
  .scenario-arrow { display: none; }
  .stage-content { min-height: 0; padding: 34px 20px 48px; }
  .product-frame { grid-template-columns: 38px minmax(0, 1fr); box-shadow: 8px 8px 0 var(--green-soft); }
  .product-sidebar { gap: 18px; }
  .question-block { margin-left: 18px; }
  .evidence-row { gap: 8px; flex-wrap: wrap; }
  .capability-strip { padding-top: 58px; padding-bottom: 58px; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-grid > div { min-height: 160px; }
  .capability-grid strong { margin-top: 28px; }
  .closing-band { align-items: start; flex-direction: column; }
  footer { padding: 22px 20px; align-items: start; flex-direction: column; gap: 8px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; scroll-behavior: auto !important; }
}