:root {
  color-scheme: dark;
  --bg: #070a0f;
  --bg-raised: #0d1119;
  --panel: #111722;
  --panel-2: #151c28;
  --panel-3: #1a2230;
  --line: rgba(164, 188, 221, 0.14);
  --line-strong: rgba(164, 188, 221, 0.24);
  --text: #f4f7fb;
  --muted: #93a1b4;
  --muted-2: #68778b;
  --blue: #58a6ff;
  --blue-2: #2f7eea;
  --cyan: #45d8e5;
  --green: #43d18b;
  --amber: #f3b856;
  --red: #ff6f78;
  --violet: #9d86ff;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.36);
  --radius: 18px;
  --font: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 75% -10%, rgba(40, 118, 220, 0.11), transparent 34%),
    linear-gradient(180deg, #080b11 0%, var(--bg) 28%, #080b10 100%);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
}
button, input, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
[hidden] { display: none !important; }
.section-shell { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.ambient { position: fixed; z-index: -1; width: 420px; height: 420px; border-radius: 50%; filter: blur(90px); opacity: .08; pointer-events: none; }
.ambient-one { top: 18%; left: -240px; background: var(--blue); }
.ambient-two { top: 52%; right: -260px; background: var(--violet); }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 30px;
  min-height: 72px; padding: 0 max(24px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 15, .86);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 11px; min-width: 215px; }
.brand > span:last-child { display: flex; flex-direction: column; line-height: 1.15; }
.brand strong { font-size: 14px; letter-spacing: .01em; }
.brand small { margin-top: 4px; color: var(--muted-2); font-size: 10px; letter-spacing: .11em; text-transform: uppercase; }
.brand-mark {
  display: grid; grid-template-columns: repeat(3, 5px); align-items: end; gap: 3px;
  width: 27px; height: 27px; padding: 6px;
  border: 1px solid rgba(88, 166, 255, .3); border-radius: 8px;
  background: rgba(39, 113, 216, .14);
}
.brand-mark span { display: block; width: 4px; border-radius: 4px; background: linear-gradient(180deg, var(--cyan), var(--blue)); }
.brand-mark span:nth-child(1) { height: 7px; }
.brand-mark span:nth-child(2) { height: 14px; }
.brand-mark span:nth-child(3) { height: 10px; }
.site-header nav { display: flex; align-items: center; gap: 26px; margin: 0 auto; }
.site-header nav a { color: var(--muted); font-size: 13px; transition: color .2s ease; }
.site-header nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.synthetic-chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px;
  border: 1px solid rgba(67, 209, 139, .2); border-radius: 999px;
  color: #a7e9c8; background: rgba(67, 209, 139, .07); font-size: 11px;
}
.synthetic-chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }

.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 17px;
  border: 1px solid var(--line-strong); border-radius: 10px;
  background: var(--panel-2); color: var(--text); cursor: pointer;
  font-size: 12px; font-weight: 650; letter-spacing: .01em;
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}
.button:hover:not(:disabled) { transform: translateY(-1px); border-color: rgba(88, 166, 255, .5); }
.button:disabled { cursor: not-allowed; opacity: .45; }
.button-primary { border-color: #347fdf; background: linear-gradient(135deg, #3487ec, #2564c6); box-shadow: 0 10px 26px rgba(38, 106, 200, .25); }
.button-secondary { background: rgba(20, 27, 39, .9); }
.button-quiet { min-height: 36px; padding-inline: 12px; background: transparent; }
.button-live { border-color: rgba(157, 134, 255, .42); background: rgba(117, 85, 216, .13); color: #d9d0ff; }
.button-full { width: 100%; }
.play-icon { font-size: 9px; }

.hero { display: grid; grid-template-columns: 1.02fr .98fr; align-items: center; gap: 48px; min-height: 620px; padding: 78px 0 70px; }
.eyebrow { color: var(--blue); font-size: 11px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.eyebrow span { margin-right: 9px; padding: 5px 8px; border: 1px solid rgba(88, 166, 255, .25); border-radius: 6px; background: rgba(88, 166, 255, .08); color: #9dccff; }
.hero h1 { max-width: 700px; margin: 24px 0 20px; font-size: clamp(44px, 5.2vw, 72px); line-height: .99; letter-spacing: -.055em; font-weight: 660; }
.hero h1 em { color: #8797aa; font-style: normal; font-weight: 540; }
.hero-lede { max-width: 630px; margin: 0; color: #aeb9c8; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; gap: 12px; margin-top: 34px; }
.hero-proof { display: flex; gap: 32px; margin-top: 42px; }
.hero-proof div { display: flex; flex-direction: column; }
.hero-proof strong { color: #dbe8f9; font-size: 19px; }
.hero-proof span { color: var(--muted-2); font-size: 11px; }
.hero-visual { min-width: 0; }
.route-map {
  position: relative; overflow: hidden; min-height: 430px;
  border: 1px solid var(--line); border-radius: 28px;
  background:
    linear-gradient(rgba(118, 148, 185, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118, 148, 185, .045) 1px, transparent 1px),
    radial-gradient(circle at 50% 40%, rgba(40, 112, 205, .12), transparent 48%),
    #0b1018;
  background-size: 34px 34px, 34px 34px, auto, auto;
  box-shadow: var(--shadow);
}
.route-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,.025), transparent 34%); pointer-events: none; }
.map-label { position: absolute; display: flex; flex-direction: column; z-index: 2; }
.map-label span { font-size: 12px; font-weight: 650; }
.map-label small { color: var(--muted-2); font-size: 9px; }
.map-label-origin { left: 12%; top: 20%; }
.map-label-recovery { left: 19%; bottom: 24%; }
.map-label-customer { right: 7%; top: 45%; text-align: right; }
.map-node { position: absolute; z-index: 3; width: 18px; height: 18px; border: 4px solid #0d1420; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 1px rgba(88,166,255,.55), 0 0 20px rgba(88,166,255,.4); }
.map-node i { position: absolute; inset: 3px; border-radius: 50%; background: white; }
.node-origin { left: 23%; top: 30%; }
.node-recovery { left: 30%; bottom: 29%; background: var(--green); box-shadow: 0 0 0 1px rgba(67,209,139,.55), 0 0 20px rgba(67,209,139,.32); }
.node-customer { right: 18%; top: 52%; background: var(--amber); box-shadow: 0 0 0 1px rgba(243,184,86,.55), 0 0 20px rgba(243,184,86,.3); }
.route { position: absolute; height: 2px; transform-origin: left; border-top: 2px dashed; }
.route-delayed { left: 25%; top: 32%; width: 60%; transform: rotate(16deg); border-color: rgba(255,111,120,.6); }
.route-recovery { left: 32%; bottom: 31%; width: 54%; transform: rotate(-21deg); border-color: rgba(67,209,139,.7); }
.shipment-pulse, .agent-badge {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--line-strong); border-radius: 13px;
  background: rgba(16, 23, 34, .94); box-shadow: 0 15px 34px rgba(0,0,0,.3);
}
.shipment-pulse { top: 12%; right: 8%; padding: 11px 13px; }
.pulse-icon { display: grid; place-items: center; width: 27px; height: 27px; border-radius: 8px; background: rgba(255,111,120,.15); color: var(--red); font-weight: 800; }
.shipment-pulse div, .agent-badge div { display: flex; flex-direction: column; }
.shipment-pulse strong, .agent-badge strong { font-size: 11px; }
.shipment-pulse small, .agent-badge small { color: var(--muted-2); font-size: 9px; }
.agent-badge { left: 10%; right: 10%; bottom: 8%; padding: 14px 16px; }
.agent-orb, .empty-orb, .progress-orb {
  position: relative; display: grid; place-items: center; flex: 0 0 auto;
  width: 35px; height: 35px; border: 1px solid rgba(88,166,255,.42); border-radius: 11px;
  background: radial-gradient(circle at 35% 30%, #6fe9f0, #3c7fe3 45%, #4f39a6 100%);
  box-shadow: 0 0 22px rgba(75, 142, 232, .28);
}
.agent-orb::before, .empty-orb::before, .progress-orb::before { content: ""; width: 13px; height: 13px; border: 2px solid rgba(255,255,255,.9); border-radius: 50%; }
.agent-orb i, .empty-orb i, .progress-orb i { position: absolute; width: 4px; height: 4px; border-radius: 50%; background: white; }
.thinking-dots, .progress-dots { display: flex; gap: 4px; margin-left: auto; }
.thinking-dots i, .progress-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--blue); animation: blink 1.2s infinite; }
.thinking-dots i:nth-child(2), .progress-dots i:nth-child(2) { animation-delay: .2s; }
.thinking-dots i:nth-child(3), .progress-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }

.metrics-strip { border-block: 1px solid var(--line); background: rgba(12, 17, 25, .55); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.metrics-grid article { display: flex; align-items: center; justify-content: center; gap: 13px; min-height: 104px; border-right: 1px solid var(--line); }
.metrics-grid article:last-child { border-right: 0; }
.metrics-grid article div { display: flex; flex-direction: column; }
.metrics-grid strong { font-size: 24px; line-height: 1.1; }
.metrics-grid small { margin-top: 5px; color: var(--muted); font-size: 10px; }
.metric-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; font-weight: 800; }
.metric-icon.blue { color: var(--blue); background: rgba(88,166,255,.1); }
.metric-icon.amber { color: var(--amber); background: rgba(243,184,86,.1); }
.metric-icon.violet { color: var(--violet); background: rgba(157,134,255,.1); }
.metric-icon.green { color: var(--green); background: rgba(67,209,139,.1); }

.control-section { padding: 100px 0 110px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 28px; margin-bottom: 34px; }
.section-heading h2, .questions-copy h2, .safety-intro h2 { margin: 9px 0 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.13; letter-spacing: -.04em; }
.section-heading > p { max-width: 470px; margin: 0; color: var(--muted); }
.mode-indicator { display: flex; align-items: center; gap: 10px; min-width: 195px; padding: 10px 13px; border: 1px solid var(--line); border-radius: 11px; background: var(--panel); }
.mode-indicator > span { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px rgba(67,209,139,.55); }
.mode-indicator div { display: flex; flex-direction: column; }
.mode-indicator strong { font-size: 11px; }
.mode-indicator small { color: var(--muted-2); font-size: 9px; }
.mode-indicator.live > span { background: var(--violet); box-shadow: 0 0 10px rgba(157,134,255,.7); }
.control-layout { display: grid; grid-template-columns: 285px minmax(0, 1fr); gap: 16px; align-items: start; }
.scenario-panel, .incident-workspace {
  overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(13, 18, 27, .9); box-shadow: 0 20px 55px rgba(0,0,0,.22);
}
.scenario-panel { position: sticky; top: 88px; }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; border-bottom: 1px solid var(--line); }
.panel-heading > div { display: flex; flex-direction: column; }
.panel-heading strong { font-size: 13px; }
.panel-heading.compact { padding: 15px 17px; }
.panel-kicker { color: var(--muted-2); font-size: 8px; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.live-count, .token-chip { padding: 4px 7px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font-size: 8px; }
.scenario-list { padding: 8px; }
.scenario-button {
  display: grid; grid-template-columns: 8px 1fr auto; align-items: center; gap: 10px;
  width: 100%; padding: 13px 10px; border: 1px solid transparent; border-radius: 10px;
  background: transparent; text-align: left; cursor: pointer;
}
.scenario-button:hover { background: rgba(255,255,255,.025); }
.scenario-button.active { border-color: rgba(88,166,255,.25); background: rgba(61, 126, 216, .09); }
.scenario-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--muted-2); }
.scenario-button[data-severity="High"] .scenario-dot { background: var(--red); box-shadow: 0 0 8px rgba(255,111,120,.45); }
.scenario-button[data-severity="Medium"] .scenario-dot { background: var(--amber); }
.scenario-button div { display: flex; flex-direction: column; min-width: 0; }
.scenario-button strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.scenario-button small { color: var(--muted-2); font-size: 9px; }
.scenario-button > span:last-child { color: var(--muted-2); font-size: 12px; }
.run-controls { display: grid; gap: 9px; padding: 14px; border-top: 1px solid var(--line); background: rgba(4, 7, 11, .22); }
.run-controls p { margin: 2px 4px 0; color: var(--muted-2); font-size: 9px; line-height: 1.5; text-align: center; }
.workspace-topbar { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); background: rgba(5, 9, 14, .26); }
.workspace-title, .workspace-state { display: flex; align-items: center; gap: 9px; }
.severity-badge { padding: 4px 7px; border-radius: 5px; font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.severity-high { color: #ffadb2; background: rgba(255,111,120,.11); }
.severity-medium { color: #f7cf8d; background: rgba(243,184,86,.11); }
.severity-low { color: #91bfff; background: rgba(88,166,255,.1); }
.incident-number { color: var(--muted-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 9px; }
.workspace-state span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted-2); }
.workspace-state strong { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.workspace-state[data-status="investigating"] span, .workspace-state[data-status="continuing"] span { background: var(--blue); box-shadow: 0 0 9px rgba(88,166,255,.55); animation: softpulse 1.5s infinite; }
.workspace-state[data-status="awaiting_approval"] span { background: var(--amber); box-shadow: 0 0 9px rgba(243,184,86,.55); }
.workspace-state[data-status="completed"] span { background: var(--green); box-shadow: 0 0 9px rgba(67,209,139,.55); }
.workspace-state[data-status="degraded"] span, .workspace-state[data-status="continuation_failed"] span { background: var(--red); }
@keyframes softpulse { 50% { opacity: .4; } }
.incident-summary { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 24px 22px; border-bottom: 1px solid var(--line); }
.incident-summary h3 { margin: 5px 0 7px; font-size: 22px; line-height: 1.2; letter-spacing: -.025em; }
.incident-summary p { max-width: 640px; margin: 0; color: var(--muted); font-size: 12px; }
.impact-card { display: flex; flex-direction: column; min-width: 174px; padding: 12px 14px; border: 1px solid rgba(255,111,120,.16); border-radius: 10px; background: rgba(255,111,120,.055); }
.impact-card span { color: var(--muted-2); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.impact-card strong { margin-top: 3px; color: #ffacb2; font-size: 14px; }
.impact-card small { margin-top: 2px; color: var(--muted); font-size: 9px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(230px, .8fr); min-height: 370px; }
.activity-panel { border-right: 1px solid var(--line); }
.empty-activity { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 300px; padding: 30px; text-align: center; }
.empty-orb { width: 48px; height: 48px; margin-bottom: 17px; border-radius: 15px; opacity: .72; }
.empty-activity strong { font-size: 13px; }
.empty-activity p { max-width: 310px; margin: 7px 0 0; color: var(--muted-2); font-size: 10px; }
.activity-timeline { display: none; margin: 0; padding: 18px 20px 20px 24px; list-style: none; }
.activity-timeline.has-events { display: block; }
.activity-event { position: relative; display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; min-height: 60px; padding-bottom: 13px; animation: rise .3s ease both; }
.activity-event::before { content: ""; position: absolute; left: 13px; top: 27px; bottom: -2px; width: 1px; background: var(--line); }
.activity-event:last-child::before { display: none; }
.event-icon { z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--panel-2); color: var(--blue); font-size: 10px; }
.activity-event[data-stage="acted"] .event-icon { color: var(--violet); }
.activity-event[data-stage="waiting"] .event-icon { color: var(--amber); }
.activity-event[data-stage="verified"] .event-icon { color: var(--green); }
.event-copy { min-width: 0; padding-top: 2px; }
.event-copy strong { display: block; font-size: 11px; }
.event-copy p { margin: 3px 0 0; color: var(--muted); font-size: 9px; line-height: 1.55; }
.event-time { padding-top: 3px; color: var(--muted-2); font-size: 8px; }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
.evidence-list { display: grid; gap: 8px; padding: 14px; }
.evidence-placeholder { padding: 20px 10px; color: var(--muted-2); font-size: 9px; text-align: center; }
.evidence-item { position: relative; padding: 10px 10px 10px 27px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.018); color: #aeb9c8; font-size: 9px; line-height: 1.5; }
.evidence-item::before { content: "✓"; position: absolute; left: 9px; top: 10px; color: var(--green); font-size: 9px; }
.recommendation-card { margin: 4px 14px 15px; padding: 13px; border: 1px solid rgba(88,166,255,.24); border-radius: 10px; background: rgba(58,126,224,.07); }
.recommendation-card > span { color: var(--blue); font-size: 8px; text-transform: uppercase; letter-spacing: .1em; }
.recommendation-card > strong { display: block; margin-top: 5px; font-size: 10px; line-height: 1.55; }
.recommendation-meta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.recommendation-meta span { padding: 4px 6px; border-radius: 5px; background: rgba(255,255,255,.04); color: var(--muted); font-size: 8px; }
.agent-progress { display: flex; align-items: center; gap: 12px; margin: 0 18px 18px; padding: 13px; border: 1px solid rgba(88,166,255,.22); border-radius: 11px; background: rgba(55,121,215,.07); }
.progress-orb { width: 31px; height: 31px; border-radius: 9px; }
.agent-progress > div:nth-child(2) { display: flex; flex-direction: column; }
.agent-progress strong { font-size: 10px; }
.agent-progress span { color: var(--muted); font-size: 9px; }
.approval-zone { padding: 18px; border-top: 1px solid var(--line); background: rgba(6, 9, 14, .38); }
.teams-window { display: grid; grid-template-columns: 45px 1fr; overflow: hidden; min-height: 340px; border: 1px solid #2b3340; border-radius: 12px; background: #1f1f1f; box-shadow: 0 16px 38px rgba(0,0,0,.28); }
.teams-rail { display: flex; flex-direction: column; align-items: center; gap: 18px; padding-top: 13px; border-right: 1px solid #303030; background: #242424; }
.teams-logo { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 6px; background: #6264a7; font-size: 12px; font-weight: 800; }
.teams-rail i { width: 17px; height: 17px; border-radius: 5px; background: #393939; }
.teams-main { min-width: 0; }
.teams-header { display: flex; align-items: center; justify-content: space-between; height: 54px; padding: 0 16px; border-bottom: 1px solid #303030; background: #242424; }
.teams-header div { display: flex; flex-direction: column; }
.teams-header strong { font-size: 12px; }
.teams-header span { color: #aaa; font-size: 9px; }
.teams-header small { color: #8d8d8d; font-size: 7px; letter-spacing: .1em; }
.teams-conversation { padding: 20px; }
.teams-post { display: flex; gap: 10px; }
.bot-avatar { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 6px; background: #4f6bed; font-size: 9px; font-weight: 800; }
.teams-post-body { min-width: 0; width: min(100%, 600px); }
.post-author { display: flex; align-items: baseline; gap: 7px; margin-bottom: 7px; }
.post-author strong { font-size: 10px; }
.post-author span { color: #8d8d8d; font-size: 8px; }
.adaptive-card { position: relative; overflow: hidden; padding: 16px; border: 1px solid #3a3a3a; border-radius: 5px; background: #2b2b2b; }
.card-accent { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: #4f6bed; }
.card-label { color: #a5b4ff; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.adaptive-card h4 { margin: 5px 0 7px; font-size: 15px; }
.adaptive-card p { margin: 0; color: #c8c8c8; font-size: 9px; line-height: 1.55; }
.adaptive-card dl { display: grid; gap: 6px; margin: 13px 0; padding: 10px; background: #252525; }
.adaptive-card dl div { display: grid; grid-template-columns: 105px 1fr; gap: 10px; }
.adaptive-card dt { color: #8d8d8d; font-size: 8px; }
.adaptive-card dd { margin: 0; font-size: 8px; }
.card-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.card-actions button { min-height: 30px; padding: 0 10px; border: 1px solid #565656; border-radius: 3px; background: #333; color: white; cursor: pointer; font-size: 8px; }
.card-actions button:hover { border-color: #888; }
.card-actions .teams-primary { border-color: #6264a7; background: #6264a7; }
.card-actions button:disabled { opacity: .45; cursor: not-allowed; }
.card-disclaimer { display: block; margin-top: 10px; color: #888; font-size: 7px; }

.questions-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; padding: 95px 0; }
.questions-copy h2 { font-size: 36px; }
.questions-copy p { max-width: 450px; color: var(--muted); }
.question-console { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); }
.question-tabs { display: flex; gap: 4px; overflow-x: auto; padding: 10px; border-bottom: 1px solid var(--line); }
.question-tabs button { flex: 0 0 auto; padding: 8px 10px; border: 1px solid var(--line); border-radius: 7px; background: var(--panel-2); color: var(--muted); cursor: pointer; font-size: 9px; }
.question-tabs button:hover, .question-tabs button.active { border-color: rgba(88,166,255,.35); background: rgba(88,166,255,.09); color: #cce3ff; }
.answer-panel { display: flex; gap: 14px; min-height: 220px; padding: 25px; }
.answer-orb { width: 38px; height: 38px; }
.answer-panel h3 { margin: 6px 0 8px; font-size: 17px; }
.answer-panel p { margin: 0; color: #adb9c9; font-size: 11px; line-height: 1.7; }
.answer-evidence { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 15px; }
.answer-evidence span { padding: 5px 7px; border: 1px solid var(--line); border-radius: 6px; color: var(--muted); background: rgba(255,255,255,.02); font-size: 8px; }

.architecture-section { padding: 100px 0; border-block: 1px solid var(--line); background: rgba(12, 17, 25, .58); }
.agent-flow { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 45px; }
.agent-flow article { position: relative; min-height: 220px; padding: 21px; border: 1px solid var(--line); border-right: 0; background: linear-gradient(155deg, rgba(255,255,255,.025), rgba(255,255,255,.006)); }
.agent-flow article:first-child { border-radius: 14px 0 0 14px; }
.agent-flow article:last-child { border-right: 1px solid var(--line); border-radius: 0 14px 14px 0; }
.agent-flow article::after { content: "→"; position: absolute; z-index: 2; right: -12px; top: 44%; display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line); border-radius: 50%; background: var(--panel); color: var(--muted-2); font-size: 9px; }
.agent-flow article:last-child::after { display: none; }
.agent-flow article > span { color: var(--muted-2); font-family: ui-monospace, monospace; font-size: 9px; }
.flow-icon { display: grid; place-items: center; width: 40px; height: 40px; margin: 25px 0 15px; border: 1px solid rgba(88,166,255,.22); border-radius: 10px; background: rgba(88,166,255,.08); color: var(--blue); font-style: normal; font-size: 18px; }
.agent-flow strong { display: block; font-size: 13px; }
.agent-flow p { margin: 7px 0 0; color: var(--muted); font-size: 9px; line-height: 1.65; }

.safety-section { padding: 100px 0 115px; }
.safety-card { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(145deg, rgba(20,28,41,.95), rgba(10,15,23,.95)); box-shadow: var(--shadow); }
.safety-intro { display: flex; align-items: center; gap: 23px; padding: 35px; border-bottom: 1px solid var(--line); }
.shield-icon { display: grid; place-items: center; flex: 0 0 58px; width: 58px; height: 58px; border: 1px solid rgba(88,166,255,.3); border-radius: 17px; background: rgba(88,166,255,.08); color: var(--blue); font-size: 27px; }
.safety-intro h2 { font-size: 34px; }
.safety-intro p { margin: 7px 0 0; color: var(--muted); }
.authority-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.authority-grid article { min-height: 170px; padding: 25px; border-right: 1px solid var(--line); }
.authority-grid article:last-child { border-right: 0; }
.authority-grid span { display: inline-block; padding: 4px 7px; border-radius: 5px; font-size: 7px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.authority-grid strong { display: block; margin-top: 17px; font-size: 12px; }
.authority-grid p { margin: 7px 0 0; color: var(--muted); font-size: 9px; }
.authority-auto span { color: #9be6c0; background: rgba(67,209,139,.1); }
.authority-reversible span { color: #9dccff; background: rgba(88,166,255,.1); }
.authority-approval span { color: #f7cf8d; background: rgba(243,184,86,.1); }
.authority-never span { color: #ffadb2; background: rgba(255,111,120,.1); }

footer { border-top: 1px solid var(--line); background: #06090d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; min-height: 110px; gap: 30px; }
.footer-inner p { color: var(--muted-2); font-size: 9px; }
.footer-brand { min-width: 0; }
.toast-stack { position: fixed; z-index: 50; right: 18px; bottom: 18px; display: grid; gap: 9px; width: min(350px, calc(100vw - 36px)); }
.toast { display: flex; gap: 10px; padding: 13px; border: 1px solid var(--line-strong); border-radius: 11px; background: rgba(19,26,38,.97); box-shadow: 0 16px 38px rgba(0,0,0,.36); animation: toastin .25s ease both; }
.toast > span { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border-radius: 7px; background: rgba(88,166,255,.1); color: var(--blue); font-size: 10px; }
.toast.error > span { color: var(--red); background: rgba(255,111,120,.1); }
.toast.success > span { color: var(--green); background: rgba(67,209,139,.1); }
.toast div { display: flex; flex-direction: column; }
.toast strong { font-size: 10px; }
.toast small { color: var(--muted); font-size: 8px; }
@keyframes toastin { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 980px) {
  .site-header nav, .synthetic-chip { display: none; }
  .site-header { justify-content: space-between; }
  .header-actions { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-top: 60px; }
  .hero-copy { text-align: center; }
  .hero-lede { margin-inline: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .hero-visual { width: min(650px, 100%); margin: 0 auto; }
  .control-layout { grid-template-columns: 1fr; }
  .scenario-panel { position: static; }
  .scenario-list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .run-controls { grid-template-columns: 1fr 1fr; }
  .run-controls p { grid-column: 1 / -1; }
  .questions-section { grid-template-columns: 1fr; gap: 35px; }
  .agent-flow { grid-template-columns: 1fr 1fr; gap: 10px; }
  .agent-flow article, .agent-flow article:first-child, .agent-flow article:last-child { border: 1px solid var(--line); border-radius: 12px; }
  .agent-flow article::after { display: none; }
  .authority-grid { grid-template-columns: 1fr 1fr; }
  .authority-grid article { border-bottom: 1px solid var(--line); }
}

@media (max-width: 700px) {
  .section-shell { width: min(100% - 24px, 1180px); }
  .site-header { min-height: 62px; padding: 0 12px; }
  .brand { min-width: 0; }
  .brand small { display: none; }
  .hero { min-height: auto; padding: 54px 0; }
  .hero h1 { font-size: 43px; }
  .hero-lede { font-size: 15px; }
  .hero-actions { flex-direction: column; }
  .hero-proof { gap: 18px; }
  .hero-proof span { font-size: 9px; }
  .route-map { min-height: 350px; }
  .map-label-customer { right: 4%; }
  .shipment-pulse { right: 4%; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .metrics-grid article { border-bottom: 1px solid var(--line); }
  .control-section { padding: 70px 0; }
  .section-heading { align-items: start; flex-direction: column; }
  .mode-indicator { width: 100%; }
  .scenario-list { grid-template-columns: 1fr; }
  .run-controls { grid-template-columns: 1fr; }
  .incident-summary { align-items: start; flex-direction: column; }
  .impact-card { width: 100%; }
  .workspace-grid { grid-template-columns: 1fr; }
  .activity-panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .workspace-topbar { align-items: start; flex-direction: column; gap: 8px; padding-block: 11px; }
  .teams-window { grid-template-columns: 1fr; }
  .teams-rail { display: none; }
  .teams-conversation { padding: 12px; }
  .adaptive-card dl div { grid-template-columns: 1fr; gap: 1px; }
  .questions-section { padding: 70px 0; }
  .answer-panel { padding: 18px; }
  .architecture-section { padding: 70px 0; }
  .agent-flow { grid-template-columns: 1fr; }
  .authority-grid { grid-template-columns: 1fr; }
  .authority-grid article { border-right: 0; }
  .safety-section { padding: 70px 0; }
  .safety-intro { align-items: start; padding: 25px; }
  .shield-icon { width: 44px; height: 44px; flex-basis: 44px; }
  .footer-inner { align-items: start; flex-direction: column; justify-content: center; }
}

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