:root {
  --bg: #ffffff;
  --soft: #f7f8fa;
  --line: #e4e7ec;
  --line-2: #d0d5dd;
  --text: #101828;
  --text-2: #475467;
  --text-3: #667085;
  --ink: #111827;
  --ok: #067647; --ok-node: #12b76a; --ok-fill: #079455; --ok-bg: #ecfdf3;
  --wait: #b54708; --wait-node: #f79009; --wait-bg: #fffaeb;
  --deny: #b42318; --deny-node: #d92d20; --deny-bg: #fef3f2;
  --appr: #5925dc; --appr-bg: #f4f3ff;
  --a: #1570ef; --a-bg: #eff8ff;
  --b: #7a5af8; --b-bg: #f4f3ff;
  --font: "IBM Plex Sans", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
:focus-visible { outline: 2px solid #3e63dd; outline-offset: 3px; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }
code, pre { font-family: var(--mono); }
code { font-size: .9em; background: #f2f4f7; padding: 1px 5px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 5; background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 62px; max-width: 1360px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 18px; text-decoration: none; }
.nav nav { display: flex; gap: 22px; margin-left: 8px; }
.nav nav a { text-decoration: none; color: var(--text-2); font-size: 15px; }
.nav nav a:hover { color: var(--text); }
.nav .right { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 42px; padding: 0 18px; border-radius: 8px; font: 500 15.5px var(--font); text-decoration: none; border: 1px solid var(--ink); background: var(--ink); color: #fff; cursor: pointer; }
.btn:hover { background: #273142; }
.btn:disabled { opacity: .4; cursor: default; }
.btn.ghost { background: #fff; color: var(--text); border-color: var(--line-2); }
.btn.ghost:hover:not(:disabled) { background: var(--soft); }
.btn.ok { background: var(--ok-fill); border-color: var(--ok-fill); }
.btn.ok:hover { background: #067647; }
.btn.small { height: 36px; padding: 0 14px; font-size: 14.5px; }

/* hero */
.hero { padding: 60px 0 72px; }
.hero-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px; align-items: end; }
.hero h1 { font-size: 54px; line-height: 1.07; letter-spacing: -1.5px; margin: 0; font-weight: 600; max-width: 13em; }
.hero .sub { font-size: 18px; color: var(--text-2); margin: 0 0 24px; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.stage-wrap { max-width: 1360px; margin: 44px auto 0; padding: 0 28px; }
.window { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(16,24,40,.05), 0 28px 56px -16px rgba(16,24,40,.16); }
.window .bar { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #fbfbfc; font-size: 14px; color: var(--text-2); }
.window .bar .live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; }
.window .bar .live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok-node); box-shadow: 0 0 0 3px #d1fadf; animation: blink 2s ease-in-out infinite; }
@keyframes blink { 50% { box-shadow: 0 0 0 5px #ecfdf3; } }
.window .bar .where { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.window .bar a { margin-left: auto; color: var(--text); font-weight: 500; white-space: nowrap; }
.window iframe { display: block; width: 100%; border: 0; }
.hero-frame { height: 620px; }
.readout { display: grid; grid-template-columns: repeat(5, 1fr); border-top: 1px solid var(--line); }
.readout div { padding: 12px 18px; border-left: 1px solid var(--line); }
.readout div:first-child { border-left: 0; }
.readout b { display: block; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.3px; }
.readout span { font-size: 13.5px; color: var(--text-3); }

/* sections */
section.block { padding: 88px 0; border-top: 1px solid var(--line); }
section.block.soft { background: var(--soft); }
.head { margin-bottom: 40px; max-width: 760px; }
.head h2 { font-size: 36px; line-height: 1.15; letter-spacing: -0.8px; margin: 0 0 12px; font-weight: 600; }
.head .lead { font-size: 18.5px; color: var(--text-2); margin: 0; }

/* explainer */
.explainer { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 28px; align-items: stretch; margin-bottom: 64px; }
.ex-figure { border: 1px solid var(--line); border-radius: 12px; background: #fff radial-gradient(#e7eaee 1px, transparent 1px) 0 0 / 18px 18px; padding: 8px; display: flex; align-items: center; }
.ex { width: 100%; height: auto; display: block; }
.ex-edges path { fill: none; stroke: #c7ccd4; stroke-width: 1.6; transition: stroke 400ms, stroke-width 400ms; }
.ex-edges path.a { stroke: var(--a); stroke-width: 2.6; }
.ex-edges path.b { stroke: var(--b); stroke-width: 2.6; }
.ex-edges path.red { stroke: var(--deny-node); stroke-width: 2.6; }
.ex-edges path.z { stroke: #f8b24c; stroke-width: 2.4; }
.ex-node rect { fill: #fff; stroke: var(--line-2); stroke-width: 1.2; transition: fill 400ms, stroke 400ms; }
.ex-node text { font: 500 15px var(--font); fill: #344054; text-anchor: middle; transition: fill 400ms; }
.ex-node .t1 { fill: var(--deny-node); stroke: #fff; stroke-width: 2; }
.ex-node.tA rect { stroke: var(--a); stroke-width: 2.4; fill: var(--a-bg); }
.ex-node.tB rect { stroke: var(--b); stroke-width: 2.4; fill: var(--b-bg); }
.ex-node.zA rect { stroke: var(--a); stroke-dasharray: 5 4; stroke-width: 1.8; }
.ex-node.both rect { stroke: var(--deny-node); stroke-width: 2.4; fill: var(--deny-bg); }
.ex-node.both text { fill: var(--deny); font-weight: 600; }
.ex-node.run rect { fill: var(--ok-fill); stroke: #067647; }
.ex-node.run text { fill: #fff; font-weight: 600; }
.ex-node.zone rect { fill: var(--wait-bg); stroke: #fdb022; }
.ex-node.zone text { fill: #93370d; }
.ex-node.wait rect { fill: #fff; stroke: var(--wait-node); stroke-width: 2; stroke-dasharray: 6 4; }
.ex-node.wait text { fill: #93370d; }
.ex-node.fail rect { fill: var(--deny-node); stroke: var(--deny); animation: fail 1s ease-in-out infinite; }
.ex-node.fail text { fill: #fff; font-weight: 600; }
@keyframes fail { 50% { fill: #f97066; } }
.ex-agent rect { fill: #101828; transition: fill 400ms, stroke 400ms; }
.ex-agent text { font: 500 12.5px var(--mono); fill: #fff; }
.ex-agent circle { fill: #98a2b3; transition: fill 400ms; }
.ex-agent.a circle { fill: #53b1fd; }
.ex-agent.b circle { fill: #9b8afb; }
.ex-agent.run circle { fill: #32d583; }
.ex-agent.wait rect { fill: #fff; stroke: var(--wait-node); stroke-width: 1.5; }
.ex-agent.wait text { fill: #93370d; }
.ex-agent.wait circle { fill: var(--wait-node); }
.ex-agent.done rect { fill: #f2f4f7; }
.ex-agent.done text { fill: var(--text-3); }
.ex-note text { font: 600 13px var(--font); fill: var(--deny); text-anchor: middle; }
.ex-note { opacity: 0; transition: opacity 400ms; }
.ex-note.on { opacity: 1; }
.ex-legend text { font: 12.5px var(--font); fill: var(--text-3); }
.ex-side { display: flex; flex-direction: column; }
.ex-steps { list-style: none; margin: 0; padding: 0; flex: 1; }
.ex-steps li { border-top: 1px solid var(--line); }
.ex-steps li:first-child { border-top: 0; }
.ex-steps button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 0; border: 0; background: none; font: 500 16.5px var(--font); color: var(--text-3); text-align: left; cursor: pointer; }
.ex-steps button:hover { color: var(--text); }
.ex-steps .n { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--text-3); background: #fff; }
.ex-steps li.past .n { background: #f2f4f7; }
.ex-steps li.on button { color: var(--text); font-weight: 600; }
.ex-steps li.on .n { background: var(--ink); border-color: var(--ink); color: #fff; }
.ex-steps p { margin: -4px 0 14px 38px; color: var(--text-2); font-size: 16.5px; }
.ex-controls { display: flex; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

/* quotes */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.quotes figure { margin: 0; padding-top: 18px; border-top: 2px solid var(--text); }
.quotes blockquote { margin: 0 0 10px; font-size: 20px; line-height: 1.35; font-weight: 500; letter-spacing: -0.2px; }
.quotes figcaption { color: var(--text-3); font-size: 14.5px; }
.quotes .fix { color: var(--text-2); font-size: 15.5px; margin: 10px 0 0; }

/* scenarios */
.scn-grid { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 24px; align-items: start; }
.scn-list { display: grid; gap: 8px; }
.scn-list button { display: grid; gap: 2px; text-align: left; padding: 13px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: inherit; }
.scn-list button:hover { border-color: var(--line-2); }
.scn-list button b { font-weight: 600; font-size: 16px; }
.scn-list button span { color: var(--text-3); font-size: 14.5px; line-height: 1.4; }
.scn-list button[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.scn-frame { height: 470px; }
.scn-panel { margin-top: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.scn-text h3 { margin: 0 0 4px; font-size: 19px; font-weight: 600; }
.scn-text p { margin: 0; color: var(--text-2); font-size: 16px; }
.scn-actions { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.scn-actions .hint { color: var(--wait); font-size: 14.5px; margin-left: 4px; }
.scn-log { list-style: none; margin: 14px 0 0; padding: 0; }
.scn-log:empty { display: none; }
.scn-log li { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14.5px; }
.scn-log .t { font: 500 13px var(--mono); color: var(--text); padding-top: 1px; overflow: hidden; text-overflow: ellipsis; }
.scn-log p { margin: 0; color: var(--text-2); }
.badge { display: inline-flex; align-items: center; height: 21px; padding: 0 7px; border-radius: 4px; font-size: 12.5px; font-weight: 500; background: #f2f4f7; color: #344054; vertical-align: 1px; }
.badge.granted, .badge.approved, .badge.done { background: var(--ok-bg); color: var(--ok); }
.badge.waiting { background: var(--wait-bg); color: var(--wait); }
.badge.denied, .badge.rejected { background: var(--deny-bg); color: var(--deny); }
.badge.needs_approval { background: var(--appr-bg); color: var(--appr); }

/* benchmark */
.bench { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 26px 28px 20px; }
.bench-row { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 20px; align-items: center; margin-bottom: 18px; }
.bench-name { font-weight: 600; font-size: 16.5px; line-height: 1.3; }
.bench-name span { display: block; font-weight: 400; color: var(--text-3); font-size: 14.5px; }
.bench-bar { display: flex; align-items: center; gap: 2px; height: 44px; }
.seg { height: 100%; width: calc(var(--n) / 255 * 100%); display: flex; align-items: center; padding: 0 12px; color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; }
.seg.l { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.seg.r { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.seg.clean { background: var(--ok-fill); }
.seg.clash { background: var(--deny-node); }
.seg-note { margin-left: 14px; color: var(--text-2); font-size: 15px; }
.bench-key { display: flex; gap: 22px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 14.5px; margin-left: 210px; }
.bench-key span { display: inline-flex; align-items: center; gap: 8px; }
.bench-key i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.k-clean { background: var(--ok-fill); } .k-clash { background: var(--deny-node); }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin: 20px 0 0; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.facts div { padding: 16px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts dt { color: var(--text-3); font-size: 14.5px; }
.facts dd { margin: 4px 0 0; font-size: 16px; color: var(--text-2); }
.facts b { font-size: 22px; color: var(--text); font-variant-numeric: tabular-nums; }
.facts b.bad { color: var(--deny); } .facts b.good { color: var(--ok); }
.note { color: var(--text-3); font-size: 15px; margin: 16px 0 0; max-width: 62em; }

/* how it works */
.how { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 28px; align-items: start; }
.how-steps { display: grid; gap: 8px; }
.how-steps button { display: flex; gap: 14px; text-align: left; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font: inherit; color: var(--text-2); font-size: 15.5px; line-height: 1.45; }
.how-steps button b { display: block; color: var(--text); font-size: 16.5px; font-weight: 600; margin-bottom: 2px; }
.how-steps button:hover { border-color: var(--line-2); }
.how-steps button[aria-selected="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.how-steps .n { display: inline-grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7px; background: #f2f4f7; color: var(--text); font-weight: 600; font-size: 14px; }
.how-steps button[aria-selected="true"] .n { background: var(--ink); color: #fff; }
pre.code { margin: 0; padding: 20px 22px; border-radius: 12px; background: #0f1623; color: #e6e9ef; font-size: 13.5px; line-height: 1.65; overflow-x: auto; }
pre.code .k { color: #8fb4ff; } pre.code .c { color: #8792a6; } pre.code .s { color: #9fe0b4; }
.how-code pre.code { min-height: 372px; }

/* graph model */
.schema-scroll { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 16px; overflow-x: auto; }
.schema { display: block; width: 100%; min-width: 760px; height: auto; }
.schema .rel path { fill: none; stroke: #98a2b3; stroke-width: 1.5; }
.schema .rel-lbl text { font: 500 12px var(--mono); fill: #475467; text-anchor: middle; paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.schema .rel-lbl text.start { text-anchor: start; }
.schema .ent rect { fill: #fff; stroke: #98a2b3; stroke-width: 1.3; }
.schema .ent text { font: 600 16px var(--font); fill: var(--text); text-anchor: middle; }
.schema .ent text.p { font: 400 12.5px var(--font); fill: var(--text-3); }
.schema .ent.core rect { fill: #101828; stroke: #101828; }
.schema .ent.core text { fill: #fff; }
.schema .ent.core text.p { fill: #c0c6d1; }
.model-notes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 24px; }
.model-notes p { margin: 0; color: var(--text-2); font-size: 15.5px; }
.model-notes b { color: var(--text); }

/* policies */
.policies { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; }
.policies div { padding: 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.policies div:nth-child(3n) { border-right: 0; }
.policies div:nth-last-child(-n+3) { border-bottom: 0; }
.policies b { display: block; margin-bottom: 4px; font-weight: 600; }
.policies span { color: var(--text-2); font-size: 15.5px; }

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

.cta { padding: 72px 0 80px; border-top: 1px solid var(--line); }
.cta .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.cta h2 { margin: 0; font-size: 30px; letter-spacing: -0.6px; font-weight: 600; }
.cta p { margin: 6px 0 0; color: var(--text-2); }
footer { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--text-3); font-size: 14.5px; }
footer .wrap { display: flex; gap: 20px; flex-wrap: wrap; justify-content: space-between; }

/* smaller screens */
@media (max-width: 1100px) {
  .nav nav { display: none; }
  .hero-head, .explainer, .how, .split { grid-template-columns: minmax(0, 1fr); }
  .hero-head { gap: 20px; }
  .hero h1 { font-size: 44px; }
  .scn-grid { grid-template-columns: minmax(0, 1fr); }
  .scn-list { grid-template-columns: 1fr 1fr; }
  .quotes, .model-notes { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .policies { grid-template-columns: 1fr 1fr; }
  .policies div:nth-child(3n) { border-right: 1px solid var(--line); }
  .policies div:nth-child(2n) { border-right: 0; }
  .policies div:nth-last-child(-n+3) { border-bottom: 1px solid var(--line); }
  .policies div:nth-last-child(-n+2) { border-bottom: 0; }
  .how-code pre.code { min-height: 0; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap, .stage-wrap { padding: 0 16px; }
  .nav .btn.ghost { display: none; }
  .hero { padding: 32px 0 48px; }
  .hero h1 { font-size: 34px; letter-spacing: -0.8px; }
  .hero .sub { font-size: 16.5px; }
  .stage-wrap { margin-top: 28px; }
  .window .bar .where { display: none; }
  .hero-frame { height: 340px; }
  .scn-frame { height: 320px; }
  .readout { grid-template-columns: 1fr 1fr; }
  .readout div:nth-child(odd) { border-left: 0; }
  .readout div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .readout div:last-child { grid-column: span 2; }
  section.block { padding: 56px 0; }
  .head { margin-bottom: 28px; }
  .head h2 { font-size: 28px; }
  .head .lead { font-size: 16.5px; }
  .scn-list { grid-template-columns: minmax(0, 1fr); }
  .scn-log li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .bench { padding: 18px 16px 14px; }
  .bench-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .bench-key { margin-left: 0; flex-direction: column; gap: 6px; }
  .seg-note { font-size: 13.5px; margin-left: 10px; }
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { border-left: 0; border-top: 1px solid var(--line); }
  .facts div:first-child { border-top: 0; }
  .policies { grid-template-columns: minmax(0, 1fr); }
  .policies div { border-right: 0 !important; border-bottom: 1px solid var(--line) !important; }
  .policies div:last-child { border-bottom: 0 !important; }
  pre.code { font-size: 12.5px; padding: 16px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
