:root {
  --bg: #070b13;
  --bg-soft: #0c121f;
  --panel: rgba(14, 21, 34, 0.88);
  --panel-solid: #101827;
  --panel-2: #151f30;
  --border: rgba(153, 174, 207, 0.16);
  --text: #f7f9fc;
  --muted: #94a3b8;
  --muted-2: #64748b;
  --red: #f63b55;
  --red-2: #b81532;
  --red-soft: rgba(246, 59, 85, 0.12);
  --green: #47d7a3;
  --green-soft: rgba(71, 215, 163, 0.12);
  --amber: #ffbf5b;
  --amber-soft: rgba(255, 191, 91, 0.12);
  --blue: #6da7ff;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.32);
  --radius: 22px;
  --radius-small: 14px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 75% 7%, rgba(246, 59, 85, .12), transparent 28%),
    radial-gradient(circle at 10% 30%, rgba(42, 88, 157, .10), transparent 24%),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  overflow-x: hidden;
}

button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
.hidden { display: none !important; }

.ambient { position: fixed; pointer-events: none; border-radius: 999px; filter: blur(100px); opacity: .2; z-index: -1; }
.ambient-one { width: 360px; height: 360px; background: var(--red); right: -200px; top: 20%; }
.ambient-two { width: 300px; height: 300px; background: #1f6feb; left: -210px; top: 62%; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 0 clamp(20px, 5vw, 76px);
  border-bottom: 1px solid var(--border);
  background: rgba(7, 11, 19, .78);
  backdrop-filter: blur(20px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-size: 20px; letter-spacing: -.02em; width: max-content; }
.brand strong { color: var(--red); }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; color: var(--red); }
.brand-mark svg { width: 100%; height: 100%; }
.brand-mark.small { width: 26px; height: 26px; font-size: 11px; letter-spacing: -4px; }

.topnav { display: flex; gap: 28px; color: var(--muted); font-size: 14px; }
.topnav a:hover { color: var(--text); }
.cloud-state { justify-self: end; display: flex; align-items: center; gap: 9px; font-size: 12px; color: var(--muted); padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px currentColor; }
.cloud-state.ready .status-dot { background: var(--green); }
.cloud-state.demo .status-dot { background: var(--blue); }

main { width: min(1500px, 100%); margin: 0 auto; }
.hero { min-height: 630px; display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(32px, 6vw, 100px); padding: 78px clamp(24px, 6vw, 90px) 54px; }
.eyebrow { margin: 0 0 12px; color: var(--red); text-transform: uppercase; letter-spacing: .15em; font-weight: 800; font-size: 12px; }
.hero h1 { max-width: 760px; margin: 0; font-size: clamp(48px, 6vw, 88px); line-height: .98; letter-spacing: -.065em; }
.hero h1 span { display: block; color: var(--red); }
.hero-lead { max-width: 680px; margin: 26px 0 0; font-size: clamp(18px, 2vw, 22px); color: #c0cad8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent; font-weight: 750; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.button-primary { color: white; background: linear-gradient(135deg, var(--red), #d71d3c); box-shadow: 0 12px 32px rgba(246, 59, 85, .2); }
.button-primary:hover { background: linear-gradient(135deg, #ff5068, var(--red-2)); }
.button-secondary { color: var(--text); background: var(--panel-2); border-color: var(--border); }
.button-secondary:hover { border-color: rgba(246, 59, 85, .5); }
.button-danger { color: #ffb2bd; background: rgba(246, 59, 85, .08); border-color: rgba(246, 59, 85, .35); }
.button-ghost { color: var(--red); background: transparent; border-color: rgba(246, 59, 85, .35); width: 100%; margin-top: 18px; }
.button-icon { font-size: 12px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 28px; }
.trust-row span { padding: 7px 10px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 700; }

.hero-visual { position: relative; min-height: 480px; display: grid; place-items: center; }
.agent-orbit { width: min(430px, 90vw); aspect-ratio: 1; position: relative; display: grid; place-items: center; }
.orbit { position: absolute; inset: 10%; border: 1px solid rgba(246, 59, 85, .25); border-radius: 50%; animation: spin 24s linear infinite; }
.orbit::before, .orbit::after { content: ""; position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 18px var(--red); }
.orbit::before { left: 12%; top: 12%; }
.orbit::after { right: 7%; bottom: 20%; }
.orbit-two { inset: 21%; border-style: dashed; animation-direction: reverse; animation-duration: 18s; opacity: .75; }
.agent-core { position: relative; z-index: 2; width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 35% 25%, #25334a, #0d1421 70%); border: 1px solid rgba(255,255,255,.13); box-shadow: 0 0 0 18px rgba(246,59,85,.035), 0 30px 80px rgba(0,0,0,.45); }
.agent-core::before { content: ""; position: absolute; inset: -8px; border: 1px solid rgba(246,59,85,.28); border-radius: inherit; }
.agent-core span { position: absolute; bottom: 24px; color: var(--red); font-size: 10px; letter-spacing: .25em; font-weight: 900; }
.agent-face { width: 72px; height: 52px; margin-top: -12px; border-radius: 22px; background: #d9e1ec; display: flex; align-items: center; justify-content: center; gap: 14px; box-shadow: inset 0 -6px 14px rgba(0,0,0,.15); }
.agent-face i { width: 10px; height: 14px; border-radius: 50%; background: #192132; }
.agent-face::before { content: ""; position: absolute; width: 4px; height: 24px; background: #d9e1ec; top: 23px; }
.agent-face::after { content: ""; position: absolute; width: 12px; height: 12px; background: var(--red); border-radius: 50%; top: 15px; box-shadow: 0 0 14px var(--red); }
.orbit-node { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--panel-solid); border: 1px solid var(--border); color: #ccd6e5; font-size: 10px; font-weight: 900; box-shadow: var(--shadow); }
.node-a { left: 2%; top: 31%; }
.node-b { right: 1%; top: 25%; }
.node-c { right: 15%; bottom: 7%; color: var(--green); font-size: 20px; }
.node-d { left: 9%; bottom: 12%; }
.mini-card { position: absolute; min-width: 185px; padding: 16px; border-radius: 16px; background: rgba(16, 24, 39, .92); border: 1px solid var(--border); box-shadow: var(--shadow); backdrop-filter: blur(10px); }
.mini-card-left { left: -4%; top: 12%; }
.mini-card-right { right: -5%; bottom: 10%; }
.mini-card span, .mini-card small { display: block; }
.mini-label { color: var(--muted); font-size: 11px; margin-bottom: 3px; }
.mini-card strong { font-size: 20px; }
.mini-card small { color: var(--muted-2); margin-top: 3px; }
.success-text { color: var(--green) !important; }

.workflow-ribbon { margin: 0 clamp(20px, 4vw, 60px); padding: 18px 24px; display: flex; align-items: center; justify-content: center; gap: 14px; border: 1px solid var(--border); background: rgba(12, 18, 31, .78); border-radius: var(--radius); box-shadow: var(--shadow); }
.ribbon-step { display: flex; align-items: center; gap: 10px; min-width: 135px; }
.ribbon-step > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--border); color: var(--muted); font-size: 12px; font-weight: 900; }
.ribbon-step.active > span { color: white; border-color: var(--red); background: var(--red); }
.ribbon-step strong, .ribbon-step small { display: block; }
.ribbon-step strong { font-size: 13px; }
.ribbon-step small { color: var(--muted-2); font-size: 10px; }
.workflow-ribbon > i { width: 36px; height: 1px; background: linear-gradient(90deg, var(--red), rgba(246,59,85,.08)); }

.workspace-section, .upload-section, .architecture-section { padding: 110px clamp(20px, 4vw, 60px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 32px; }
.section-heading h2, .upload-copy h2 { margin: 0; font-size: clamp(34px, 4vw, 55px); letter-spacing: -.045em; line-height: 1.04; }
.section-heading.centered { justify-content: center; text-align: center; }
.section-lead { color: var(--muted); margin: 14px auto 0; max-width: 600px; }
.scenario-switcher { display: flex; padding: 5px; border-radius: 14px; border: 1px solid var(--border); background: var(--bg-soft); }
.scenario-chip { border: 0; padding: 9px 14px; border-radius: 9px; color: var(--muted); background: transparent; font-weight: 750; }
.scenario-chip.active { color: white; background: var(--red-soft); }

.empty-state { min-height: 430px; display: grid; place-items: center; align-content: center; text-align: center; border: 1px dashed rgba(153,174,207,.25); border-radius: var(--radius); background: rgba(12,18,31,.45); }
.empty-icon { width: 68px; height: 68px; display: grid; place-items: center; border-radius: 22px; color: var(--red); background: var(--red-soft); font-size: 28px; }
.empty-state h3 { margin: 18px 0 4px; font-size: 25px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); max-width: 480px; }

.metric-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 14px; }
.metric-card { padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--panel); }
.metric-card span, .metric-card small { display: block; color: var(--muted); font-size: 11px; }
.metric-card strong { display: block; margin: 6px 0 1px; font-size: 22px; letter-spacing: -.03em; overflow: hidden; text-overflow: ellipsis; }
.metric-card.accent { border-color: rgba(246,59,85,.28); background: linear-gradient(145deg, rgba(246,59,85,.11), var(--panel)); }

.workspace-grid { display: grid; grid-template-columns: 1.12fr .88fr; gap: 14px; }
.panel { min-width: 0; padding: 24px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel); box-shadow: 0 18px 50px rgba(0,0,0,.13); }
.panel-header { display: flex; align-items: start; justify-content: space-between; gap: 18px; margin-bottom: 22px; }
.panel-kicker { display: block; color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; }
.panel h3 { margin: 4px 0 0; font-size: 20px; letter-spacing: -.025em; }
.pill { padding: 6px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--muted); background: rgba(255,255,255,.025); font-size: 10px; font-weight: 800; white-space: nowrap; }
.pill-good { color: var(--green); border-color: rgba(71,215,163,.25); background: var(--green-soft); }
.pill-warning { color: var(--amber); border-color: rgba(255,191,91,.25); background: var(--amber-soft); }
.pill-danger { color: #ff8da0; border-color: rgba(246,59,85,.35); background: var(--red-soft); }

.document-preview { display: grid; place-items: center; min-height: 330px; padding: 24px; border-radius: 18px; background: radial-gradient(circle at 50% 10%, rgba(255,255,255,.06), transparent 60%), #0a101a; border: 1px solid rgba(255,255,255,.05); }
.document-paper { width: min(100%, 390px); min-height: 285px; padding: 24px; background: #f6f7fa; color: #1d2430; border-radius: 4px; box-shadow: 0 22px 50px rgba(0,0,0,.35); transform: rotate(-.6deg); }
.paper-brand { display: flex; align-items: center; gap: 10px; }
.paper-logo { width: 36px; height: 36px; display: grid; place-items: center; color: white; background: var(--red); border-radius: 10px; font-weight: 900; }
.paper-brand strong, .paper-brand small { display: block; }
.paper-brand small { color: #778294; font-size: 9px; }
.paper-title { text-align: right; margin-top: -25px; font-size: 22px; font-weight: 900; letter-spacing: .1em; color: #687486; }
.paper-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 34px 0 22px; padding-bottom: 16px; border-bottom: 1px solid #dce1e8; }
.paper-meta span, .paper-meta strong { display: block; }
.paper-meta span { color: #7d8796; font-size: 8px; text-transform: uppercase; }
.paper-meta strong { margin-top: 3px; color: #202836; font-size: 10px; text-transform: none; }
.paper-lines > div { display: grid; grid-template-columns: 1fr auto; gap: 12px; padding: 8px 0; }
.paper-lines > div:first-child { color: #8892a0; font-size: 8px; text-transform: uppercase; border-bottom: 1px solid #e0e4e9; }
.paper-lines strong { font-size: 10px; }
.paper-totals { margin: 20px 0 0 auto; width: 55%; }
.paper-totals span { display: flex; justify-content: space-between; padding: 5px 0; font-size: 10px; }
.paper-total { margin-top: 4px; padding-top: 9px !important; border-top: 2px solid #232c39; font-size: 12px !important; }
.extraction-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 14px; }
.extraction-grid > div { padding: 13px; border-radius: 12px; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.04); }
.extraction-grid span, .extraction-grid strong { display: block; }
.extraction-grid span { color: var(--muted); font-size: 9px; text-transform: uppercase; letter-spacing: .08em; }
.extraction-grid strong { margin-top: 4px; font-size: 12px; }

.decision-graphic { display: flex; align-items: center; gap: 20px; padding: 20px; border-radius: 18px; background: rgba(255,255,255,.024); border: 1px solid rgba(255,255,255,.05); }
.score-ring { --risk: 20%; flex: 0 0 auto; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: radial-gradient(circle at center, var(--panel-solid) 55%, transparent 57%), conic-gradient(var(--red) var(--risk), rgba(255,255,255,.08) 0); }
.score-ring span { font-size: 26px; font-weight: 900; line-height: 1; }
.score-ring small { color: var(--muted); font-size: 9px; text-transform: uppercase; }
.decision-copy h4 { margin: 0 0 5px; font-size: 20px; }
.decision-copy p { margin: 0; color: var(--muted); font-size: 13px; }
.reason-list { display: grid; gap: 9px; padding: 0; margin: 18px 0 0; list-style: none; }
.reason-list li { position: relative; padding: 11px 12px 11px 36px; border-radius: 11px; background: rgba(255,255,255,.022); color: #c2ccda; font-size: 12px; }
.reason-list li::before { content: "✓"; position: absolute; left: 12px; color: var(--green); font-weight: 900; }
.approval-form { display: grid; gap: 12px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.approval-form label, .upload-card label { display: grid; gap: 7px; color: var(--muted); font-size: 11px; font-weight: 700; }
input, textarea { width: 100%; color: var(--text); background: #080e18; border: 1px solid var(--border); border-radius: 10px; padding: 11px 12px; outline: none; resize: vertical; }
input:focus, textarea:focus { border-color: rgba(246,59,85,.55); box-shadow: 0 0 0 3px rgba(246,59,85,.08); }
.approval-actions { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.evidence-action { margin-top: 18px; padding: 15px; border-radius: 13px; background: var(--red-soft); border: 1px solid rgba(246,59,85,.2); }
.evidence-action p { margin: 0 0 12px; color: #e1a5af; font-size: 12px; }

.candidate-list { display: grid; gap: 10px; }
.candidate { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; padding: 16px; border: 1px solid var(--border); border-radius: 15px; background: rgba(255,255,255,.018); }
.candidate:first-child { border-color: rgba(71,215,163,.28); background: linear-gradient(135deg, rgba(71,215,163,.07), rgba(255,255,255,.018)); }
.candidate-score { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 15px; color: var(--green); background: var(--green-soft); font-size: 18px; font-weight: 900; }
.candidate-main strong, .candidate-main small { display: block; }
.candidate-main strong { font-size: 13px; }
.candidate-main small { color: var(--muted); font-size: 11px; margin-top: 2px; }
.candidate-amount { text-align: right; }
.candidate-amount strong, .candidate-amount small { display: block; }
.candidate-amount small { color: var(--muted); font-size: 9px; }
.factor-row { grid-column: 2 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
.factor { padding: 4px 7px; border: 1px solid rgba(255,255,255,.06); border-radius: 999px; color: var(--muted); font-size: 9px; }

.timeline { display: grid; }
.timeline-event { position: relative; display: grid; grid-template-columns: 27px 1fr auto; gap: 11px; padding-bottom: 18px; }
.timeline-event:not(:last-child)::after { content: ""; position: absolute; left: 13px; top: 27px; bottom: 0; width: 1px; background: var(--border); }
.timeline-dot { position: relative; z-index: 1; width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: var(--panel-2); border: 1px solid rgba(246,59,85,.35); color: var(--red); font-size: 9px; font-weight: 900; }
.timeline-copy strong, .timeline-copy small { display: block; }
.timeline-copy strong { font-size: 12px; }
.timeline-copy small { margin-top: 3px; color: var(--muted); font-size: 10px; }
.timeline-time { color: var(--muted-2); font-size: 9px; }

.upload-section { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 8vw, 120px); align-items: center; background: linear-gradient(180deg, transparent, rgba(13,19,31,.72), transparent); }
.upload-copy p:not(.eyebrow) { color: var(--muted); max-width: 520px; }
.upload-card { display: grid; gap: 16px; padding: 26px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel); }
.dropzone { min-height: 155px; place-items: center; align-content: center; text-align: center; border: 1px dashed rgba(246,59,85,.4); border-radius: 16px; background: rgba(246,59,85,.035); cursor: pointer; }
.dropzone input { position: absolute; opacity: 0; pointer-events: none; }
.dropzone strong, .dropzone small { display: block; }
.dropzone small { color: var(--muted-2); font-weight: 500; }
.drop-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; color: var(--red); background: var(--red-soft); font-size: 22px; }
.form-message { min-height: 20px; margin: 0; color: var(--muted); font-size: 12px; }

.architecture-map { display: grid; grid-template-columns: 1fr auto 1.65fr auto 1fr; gap: 20px; align-items: center; max-width: 1150px; margin: 50px auto 0; }
.architecture-column, .architecture-center { display: grid; gap: 10px; }
.architecture-label { color: var(--red); font-size: 10px; font-weight: 900; letter-spacing: .13em; text-transform: uppercase; text-align: center; }
.architecture-box { padding: 16px; border: 1px solid var(--border); border-radius: 13px; background: var(--panel); text-align: center; font-size: 12px; font-weight: 750; }
.architecture-arrow { color: var(--red); font-size: 24px; }
.architecture-center { padding: 22px; border: 1px solid rgba(246,59,85,.28); border-radius: 22px; background: linear-gradient(145deg, rgba(246,59,85,.08), var(--panel)); }
.architecture-core { padding: 22px; border-radius: 16px; background: #0a101a; text-align: center; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); }
.architecture-core strong, .architecture-core small { display: block; }
.architecture-core strong { font-size: 22px; }
.architecture-core small { color: var(--red); }
.specialist-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.specialist-grid span { padding: 9px 5px; border-radius: 8px; background: rgba(255,255,255,.035); color: var(--muted); text-align: center; font-size: 9px; }
.cloud-services { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.cloud-services span { padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); color: var(--muted); font-size: 11px; }

footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 34px clamp(20px, 5vw, 76px); border-top: 1px solid var(--border); color: var(--muted); font-size: 11px; }
.footer-brand { font-size: 15px; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 100; max-width: 380px; padding: 14px 18px; border-radius: 12px; background: #1a2434; border: 1px solid var(--border); box-shadow: var(--shadow); opacity: 0; transform: translateY(12px); pointer-events: none; transition: .2s ease; font-size: 13px; }
.toast.visible { opacity: 1; transform: none; }
.toast.error { border-color: rgba(246,59,85,.4); color: #ffacb8; }
.loading-overlay { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; align-content: center; gap: 12px; background: rgba(5,8,14,.78); backdrop-filter: blur(12px); }
.loading-overlay span { color: var(--muted); font-size: 12px; }
.loader { width: 56px; height: 56px; border-radius: 50%; border: 3px solid rgba(255,255,255,.08); border-top-color: var(--red); animation: spin .9s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 1050px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topnav { display: none; }
  .hero { grid-template-columns: 1fr; text-align: center; padding-top: 70px; }
  .hero-copy { display: grid; justify-items: center; }
  .hero-visual { min-height: 430px; }
  .mini-card-left { left: 5%; }
  .mini-card-right { right: 5%; }
  .workflow-ribbon { overflow-x: auto; justify-content: flex-start; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .workspace-grid { grid-template-columns: 1fr; }
  .upload-section { grid-template-columns: 1fr; }
  .architecture-map { grid-template-columns: 1fr; }
  .architecture-arrow { transform: rotate(90deg); justify-self: center; }
}

@media (max-width: 650px) {
  .topbar { padding: 0 16px; }
  .cloud-state { display: none; }
  .hero { padding-inline: 20px; min-height: auto; }
  .hero h1 { font-size: 48px; }
  .hero-actions { display: grid; width: 100%; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 370px; transform: scale(.88); margin-inline: -25px; }
  .mini-card { min-width: 155px; padding: 12px; }
  .mini-card-left { left: 0; top: 8%; }
  .mini-card-right { right: 0; bottom: 4%; }
  .workflow-ribbon { margin-inline: 12px; }
  .workspace-section, .upload-section, .architecture-section { padding: 80px 14px; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .scenario-switcher { overflow-x: auto; }
  .metric-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .extraction-grid { grid-template-columns: 1fr; }
  .decision-graphic { align-items: flex-start; flex-direction: column; }
  .candidate { grid-template-columns: auto 1fr; }
  .candidate-amount { grid-column: 2; text-align: left; }
  .factor-row { grid-column: 1 / -1; }
  .paper-meta { grid-template-columns: 1fr; }
  .document-paper { min-height: 370px; }
  footer { flex-direction: column; align-items: flex-start; }
}
