:root {
  color-scheme: light;
  --ink: #111827;
  --muted: #667085;
  --navy: #07192d;
  --blue: #175cd3;
  --cyan: #36bffa;
  --green: #067647;
  --amber: #b54708;
  --red: #b42318;
  --paper: #fff;
  --canvas: #f5f7fa;
  --line: #e4e7ec;
  --shadow: 0 18px 50px rgb(16 24 40 / .08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--canvas);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-width: 320px; margin: 0; background: var(--canvas); }
a { color: inherit; }
button { min-height: 46px; padding: 10px 14px; color: #fff; background: var(--blue); border: 0; border-radius: 9px; font: inherit; font-weight: 750; cursor: pointer; }
button:hover:not(:disabled) { background: #004eeb; }
button:disabled { color: #475467; background: #eaecf0; cursor: not-allowed; opacity: 1; }
button:focus-visible, a:focus-visible { outline: 3px solid #84caff; outline-offset: 3px; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; transform: translateY(-180%); padding: 10px 14px; color: #fff; background: var(--navy); border-radius: 8px; }
.skip-link:focus { transform: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.site-header { min-height: 78px; padding: 13px clamp(20px, 6vw, 92px); display: flex; align-items: center; justify-content: space-between; gap: 20px; background: rgb(255 255 255 / .92); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, #102a43, var(--blue)); border-radius: 14px 14px 14px 5px; font-weight: 850; }
.brand strong, .brand small { display: block; }
.brand small, .demo-label { margin-top: 2px; color: var(--muted); font-size: 11px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.demo-label { padding: 8px 11px; background: #f2f4f7; border-radius: 999px; }
.hero { padding: clamp(68px, 8vw, 120px) clamp(20px, 7vw, 108px); display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(340px, .85fr); align-items: center; gap: clamp(36px, 7vw, 100px); color: #fff; background: radial-gradient(circle at 80% 20%, rgb(54 191 250 / .22), transparent 28%), linear-gradient(135deg, #061424, #102a43 58%, #07192d); }
.eyebrow { margin: 0 0 10px; color: var(--blue); font-size: 11px; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.hero .eyebrow, .trust-boundary .eyebrow { color: #84caff; }
h1 { margin: 0; max-width: 900px; font-size: clamp(45px, 6.3vw, 84px); line-height: .98; letter-spacing: -.055em; }
h1 span { color: #7cd4fd; }
.hero-lede { max-width: 800px; margin: 26px 0 0; color: #d1e9ff; font-size: clamp(17px, 1.6vw, 21px); line-height: 1.58; }
.role-split { display: grid; gap: 12px; }
.role-split article { padding: 19px; display: grid; grid-template-columns: 42px 1fr; column-gap: 13px; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .15); border-radius: 14px; }
.role-split span { grid-row: 1 / 3; color: #7cd4fd; font: 800 13px ui-monospace, monospace; }
.role-split p { margin: 5px 0 0; color: #b2ddff; font-size: 13px; line-height: 1.45; }
.status-strip { padding: 18px clamp(20px, 7vw, 108px); display: grid; grid-template-columns: 1fr repeat(3, auto); align-items: center; gap: clamp(18px, 4vw, 58px); background: #fff; border-bottom: 1px solid var(--line); }
.mcp-status { display: flex; align-items: center; gap: 12px; }
.mcp-status i { width: 12px; height: 12px; background: #f79009; border-radius: 50%; box-shadow: 0 0 0 5px rgb(247 144 9 / .12); }
.mcp-status[data-state="ready"] i { background: #12b76a; box-shadow: 0 0 0 5px rgb(18 183 106 / .12); }
.mcp-status[data-state="unavailable"] i, .mcp-status[data-state="error"] i { background: var(--blue); box-shadow: 0 0 0 5px rgb(23 92 211 / .12); }
.mcp-status strong, .mcp-status span { display: block; }
.mcp-status span { margin-top: 3px; color: var(--muted); font-size: 13px; }
.status-fact { min-width: 82px; padding-left: 22px; border-left: 1px solid var(--line); }
.status-fact span, .status-fact small { display: block; }
.status-fact span { font-size: 22px; font-weight: 850; }
.status-fact small { color: var(--muted); }
.support-banner, .non-transmission { margin: 0; padding: 13px clamp(20px, 7vw, 108px); text-align: center; }
.support-banner { color: #1849a9; background: #eff8ff; border-bottom: 1px solid #b2ddff; }
.non-transmission { color: #344054; background: #ecfdf3; border-bottom: 1px solid #abefc6; }
.prompt-strip, .demo-controls, .workspace { padding: clamp(58px, 7vw, 96px) clamp(20px, 7vw, 108px); }
.prompt-strip { display: grid; grid-template-columns: minmax(220px, .65fr) 1.35fr; gap: 30px; background: #fff; }
.prompt-strip h2, .section-heading h2, .trust-boundary h2, .workspace-results h2 { margin: 0; letter-spacing: -.035em; }
.prompt-strip h2, .section-heading h2 { font-size: clamp(30px, 4vw, 48px); }
.prompt-strip ul { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.prompt-strip li { padding: 14px 16px; color: #344054; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.demo-controls { background: #eef4fb; }
.section-heading { margin-bottom: 30px; display: grid; grid-template-columns: 1fr minmax(280px, 520px); align-items: end; gap: 30px; }
.section-heading > p { margin: 0; color: var(--muted); line-height: 1.62; }
.control-grid { margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; counter-reset: controls; }
.control-grid li { padding: 14px; display: grid; grid-template-columns: 26px 1fr; align-items: start; gap: 8px; background: #fff; border: 1px solid #dbe5f0; border-radius: 12px; }
.control-grid li > span { width: 24px; height: 24px; display: grid; place-items: center; color: var(--blue); background: #eff8ff; border-radius: 50%; font-size: 11px; font-weight: 850; }
.control-grid button { width: 100%; }
.control-grid small { grid-column: 2; color: var(--muted); line-height: 1.4; }
.control-approval { border-color: #fec84b !important; box-shadow: inset 0 0 0 1px #fec84b; }
.control-approval button:not(:disabled) { background: #9a3412; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1fr) 350px; align-items: start; gap: 20px; }
.workspace-results { display: grid; gap: 18px; }
.workspace-results > section, .empty-state, .activity-panel { padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.result-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.result-heading h2 { font-size: 25px; }
.results-grid { margin-top: 18px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vehicle-card { padding: 17px; background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; }
.card-topline { display: flex; justify-content: space-between; color: var(--blue); font: 800 11px ui-monospace, monospace; }
.vehicle-card h3 { margin: 15px 0 6px; font-size: 17px; }
.vehicle-price { margin: 0 0 16px; font-size: 21px; font-weight: 850; }
.facts, .draft-facts, .condition-facts, .policy-proof { margin: 0; display: grid; gap: 10px; }
.facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.facts dd { font-size: 11px; }
.chips { margin: 16px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; list-style: none; }
.chips li { padding: 5px 7px; background: #eef2f6; border-radius: 5px; font-size: 10px; }
.boundary-note { margin: 17px 0 0; color: var(--muted); font-size: 12px; line-height: 1.55; }
.comparison-grid { margin-top: 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.comparison-grid article { padding: 16px; background: #f8fafc; border: 1px solid var(--line); border-radius: 10px; }
.comparison-grid span { color: var(--blue); font: 800 11px ui-monospace, monospace; }
.comparison-grid h3 { margin: 8px 0 12px; }
.comparison-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }
.condition-facts { margin-top: 18px; grid-template-columns: repeat(2, 1fr); }
.condition-facts div, .draft-facts div, .policy-proof div { padding: 13px; background: #f8fafc; border-radius: 9px; }
.draft-facts { margin-top: 18px; grid-template-columns: repeat(3, 1fr); }
.boundary-box { margin-top: 18px; padding: 15px; color: #344054; background: #f2f4f7; border-left: 4px solid var(--navy); border-radius: 7px; }
.boundary-box p { margin: 5px 0 0; color: var(--muted); }
.badge, .live-dot, .basis-points { padding: 6px 9px; border-radius: 999px; font-size: 11px; font-weight: 850; white-space: nowrap; }
.badge--safe, .live-dot { color: var(--green); background: #ecfdf3; }
.badge--pending { color: var(--amber); background: #fffaeb; }
.decision { border-left: 5px solid var(--blue) !important; }
.decision-explanation { font-size: 18px; line-height: 1.55; }
.counter-price { padding: 14px; background: #eff8ff; border-radius: 9px; }
.basis-points { color: #1849a9; background: #eff8ff; font-family: ui-monospace, monospace; }
.policy-proof { grid-template-columns: 1fr 1fr 2fr; }
.policy-proof code { font-size: 10px; }
.override-proof { margin-top: 16px; padding: 14px; display: grid; gap: 4px; color: var(--red); background: #fef3f2; border-radius: 9px; }
.override-proof--success { color: var(--green); background: #ecfdf3; }
.receipt pre { max-height: 340px; margin: 18px 0 0; padding: 16px; overflow: auto; color: #d1e9ff; background: var(--navy); border-radius: 10px; font-size: 11px; }
.receipt--empty p:last-child { color: var(--muted); }
.empty-state { min-height: 200px; display: grid; place-content: center; text-align: center; border-style: dashed; box-shadow: none; }
.empty-state span { margin-top: 7px; color: var(--muted); }
.activity-panel { position: sticky; top: 18px; padding: 0; overflow: hidden; }
.panel-heading { padding: 18px; display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid var(--line); }
.panel-heading h2 { margin: 0; font-size: 22px; }
.activity-log { max-height: 740px; margin: 0; padding: 0; overflow: auto; list-style: none; }
.activity-log li { padding: 16px 18px; display: grid; gap: 6px; border-bottom: 1px solid var(--line); }
.activity-log li[data-outcome="blocked"] { background: #fffaeb; border-left: 4px solid #f79009; }
.activity-log li[data-outcome="error"] { background: #fef3f2; border-left: 4px solid #f04438; }
.activity-meta { display: flex; align-items: center; gap: 6px; }
.activity-meta time, .source, .activity-log small { color: var(--muted); font: 10px ui-monospace, monospace; }
.activity-log > li > span { color: #475467; font-size: 12px; line-height: 1.45; }
.outcome { padding: 3px 6px; border-radius: 999px; font-size: 9px; font-weight: 850; text-transform: uppercase; }
.outcome--success { color: var(--green); background: #ecfdf3; }
.outcome--blocked { color: var(--amber); background: #fef0c7; }
.outcome--error { color: var(--red); background: #fee4e2; }
.source { margin-left: auto; }
.trust-boundary { padding: clamp(50px, 7vw, 88px) clamp(20px, 7vw, 108px); color: #fff; background: var(--navy); }
.trust-boundary h2 { max-width: 900px; font-size: clamp(36px, 5vw, 64px); }
.trust-boundary > p:last-child { max-width: 850px; color: #b2ddff; font-size: 17px; line-height: 1.65; }
footer { padding: 25px clamp(20px, 7vw, 108px); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); background: #fff; font-size: 12px; }

@media (max-width: 1020px) {
  .hero { grid-template-columns: 1fr; }
  .role-split { grid-template-columns: repeat(3, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .activity-panel { position: static; }
  .control-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 720px) {
  .demo-label { display: none; }
  .status-strip { grid-template-columns: repeat(3, 1fr); }
  .mcp-status { grid-column: 1 / -1; }
  .status-fact { padding: 0; border: 0; }
  .prompt-strip, .section-heading { grid-template-columns: 1fr; }
  .prompt-strip ul, .role-split, .control-grid, .results-grid, .comparison-grid, .condition-facts, .draft-facts, .policy-proof { grid-template-columns: 1fr; }
  footer { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
