:root {
  color-scheme: dark;
  --bg: #07101d;
  --bg-soft: #0a1727;
  --panel: rgba(12, 28, 45, 0.88);
  --panel-solid: #0d1b2d;
  --line: rgba(154, 185, 207, 0.16);
  --line-strong: rgba(154, 185, 207, 0.3);
  --text: #f1f7f8;
  --muted: #96a9b8;
  --accent: #58e0b8;
  --accent-strong: #28c99b;
  --accent-dark: #0d6958;
  --blue: #72b8ff;
  --warning: #ffca68;
  --danger: #ff8d88;
  --radius: 22px;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.28);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 82% 9%, rgba(38, 153, 140, 0.13), transparent 25rem),
    radial-gradient(circle at 12% 40%, rgba(48, 106, 166, 0.11), transparent 30rem),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body::before {
  position: fixed;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image: linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}

a { color: inherit; }

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 99;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--accent);
  color: #04140f;
  transition: top 0.2s;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 40px));
  height: 72px;
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 16, 29, 0.76);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 730; text-decoration: none; letter-spacing: -0.02em; }

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(88, 224, 184, 0.35);
  border-radius: 10px;
  background: rgba(88, 224, 184, 0.1);
  color: var(--accent);
  font-size: 14px;
}

.brand-mark svg { width: 22px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.6; }

.nav-links { display: flex; gap: 30px; color: var(--muted); font-size: 14px; }
.nav-links a { text-decoration: none; transition: color 0.2s; }
.nav-links a:hover, .nav-links a:focus-visible { color: var(--text); }

.offline-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9c9d2;
  font-size: 12px;
}

.offline-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); }

.hero {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  min-height: 700px;
  margin: 0 auto;
  padding: 86px 0 112px;
  gap: 70px;
}

.eyebrow { display: flex; align-items: center; gap: 10px; margin: 0 0 22px; color: var(--accent); font-size: 11px; font-weight: 760; letter-spacing: 0.16em; }
.eyebrow > span { width: 24px; height: 1px; background: currentColor; }

h1, h2, h3, p { margin-top: 0; }

.hero h1 { margin-bottom: 28px; font-size: clamp(52px, 6.1vw, 84px); line-height: 1.02; letter-spacing: -0.065em; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero-lead { max-width: 620px; margin-bottom: 34px; color: #afbec8; font-size: 18px; line-height: 1.85; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 20px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; transition: transform 0.2s, border-color 0.2s, background 0.2s; }
.button:hover { transform: translateY(-2px); }
.button-primary { gap: 20px; background: var(--accent); color: #041711; }
.button-primary:hover { background: #71ebc7; }
.button-ghost { border: 1px solid var(--line-strong); color: #d9e5e9; }
.button-ghost:hover { border-color: rgba(88, 224, 184, 0.5); background: rgba(88, 224, 184, 0.06); }

.trust-list { display: flex; flex-wrap: wrap; gap: 18px; margin: 30px 0 0; padding: 0; color: #8094a4; font-size: 12px; list-style: none; }
.trust-list li { display: flex; align-items: center; gap: 6px; }
.trust-list span { color: var(--accent); }

.hero-visual { position: relative; min-height: 500px; }
.visual-glow { position: absolute; top: 14%; left: 15%; width: 70%; height: 65%; border-radius: 50%; background: rgba(39, 191, 159, 0.11); filter: blur(60px); }

.source-card {
  position: absolute;
  z-index: 3;
  top: 32px;
  left: 0;
  display: flex;
  align-items: center;
  width: 245px;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(10, 25, 41, 0.94);
  box-shadow: var(--shadow);
}

.source-icon { display: grid; width: 38px; height: 38px; margin-right: 12px; place-items: center; border-radius: 11px; background: linear-gradient(140deg, #437dff, #31b4ff); color: white; font-size: 14px; font-weight: 800; }
.source-card strong, .source-card small { display: block; }
.source-card strong { font-size: 13px; }
.source-card small { color: var(--muted); font-size: 11px; }
.pulse-dot { width: 8px; height: 8px; margin-left: auto; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 6px rgba(88, 224, 184, 0.08); }

.connector-line { position: absolute; z-index: 1; top: 82px; left: 120px; width: 190px; height: 115px; overflow: hidden; border-right: 1px dashed rgba(88, 224, 184, 0.4); border-bottom: 1px dashed rgba(88, 224, 184, 0.4); border-radius: 0 0 24px 0; }
.connector-line span { position: absolute; right: -3px; bottom: -3px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 12px var(--accent); animation: breathe 2s infinite; }

.result-card {
  position: absolute;
  z-index: 2;
  top: 135px;
  right: 0;
  width: min(100%, 445px);
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(18, 37, 57, 0.98), rgba(8, 22, 37, 0.98));
  box-shadow: var(--shadow);
  transform: rotate(1.2deg);
}

.window-bar { display: flex; align-items: center; gap: 6px; height: 44px; padding: 0 15px; border-bottom: 1px solid var(--line); background: rgba(3, 11, 21, 0.35); }
.window-bar span { width: 7px; height: 7px; border-radius: 50%; background: #496071; }
.window-bar small { margin-left: auto; color: #7c91a1; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.result-body { padding: 23px; }
.yaml-block { display: grid; padding: 16px; gap: 7px; border: 1px solid rgba(88, 224, 184, 0.13); border-radius: 12px; background: rgba(4, 14, 24, 0.6); }
.yaml-block code { color: #a6b6c1; font-size: 11px; }
.yaml-block b { color: #73aee7; font-weight: 500; }
.yaml-block i { color: var(--accent); font-style: normal; }
.document-lines { display: grid; margin-top: 19px; gap: 9px; }
.document-lines > span { height: 7px; border-radius: 10px; background: #263a4b; }
.w-86 { width: 86%; }.w-96 { width: 96%; }.w-72 { width: 72%; }.w-92 { width: 92%; }.w-64 { width: 64%; }
.image-placeholder { display: flex; align-items: flex-end; height: 92px; margin: 7px 0; padding: 12px; border: 1px dashed rgba(88, 224, 184, 0.3); border-radius: 10px; background: linear-gradient(135deg, rgba(46, 104, 104, 0.2), rgba(42, 74, 116, 0.2)); }
.image-placeholder span { display: grid; width: 32px; height: 24px; place-items: center; border-radius: 5px; background: rgba(88, 224, 184, 0.15); color: var(--accent); font-size: 8px; }
.image-placeholder i { margin-left: auto; color: #84a196; font-size: 9px; font-style: normal; }
.result-card footer { display: flex; align-items: center; padding: 14px 22px; border-top: 1px solid var(--line); color: #9db1bd; font-size: 11px; }
.result-card footer strong { margin-left: auto; color: #d4e2e6; }
.success-dot { width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--accent); }

.proof-strip { display: grid; grid-template-columns: repeat(4, 1fr); width: min(1180px, calc(100% - 40px)); margin: 0 auto; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip div { display: flex; min-height: 115px; padding: 25px; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong { font-size: 28px; font-weight: 670; letter-spacing: -0.04em; }
.proof-strip span { color: var(--muted); font-size: 12px; }

.section { width: min(1180px, calc(100% - 40px)); margin: 0 auto; padding: 125px 0; }
.section-heading { max-width: 700px; margin: 0 auto 54px; text-align: center; }
.section-heading.compact { margin-left: 0; text-align: left; }
.section-heading .eyebrow { justify-content: center; }
.section-heading.compact .eyebrow { justify-content: flex-start; }
.section-heading h2, .boundary-copy h2, .use-card h2 { margin-bottom: 18px; font-size: clamp(34px, 4vw, 52px); line-height: 1.14; letter-spacing: -0.045em; }
.section-heading > p:last-child, .boundary-copy > p:last-child, .use-card > div:first-child > p:last-child { color: var(--muted); }

.demo-layout { display: grid; grid-template-columns: 285px 1fr; min-height: 620px; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 24px; background: rgba(9, 22, 37, 0.82); box-shadow: var(--shadow); }
.scenario-panel { padding: 25px 18px; border-right: 1px solid var(--line); background: rgba(4, 14, 25, 0.5); }
.panel-label { margin: 0 8px 14px; color: #6f8696; font-size: 10px; font-weight: 750; letter-spacing: 0.13em; text-transform: uppercase; }
.scenario-button { display: grid; grid-template-columns: 40px 1fr 15px; align-items: center; width: 100%; margin-bottom: 8px; padding: 13px 11px; border: 1px solid transparent; border-radius: 13px; background: transparent; color: #dce7ea; text-align: left; cursor: pointer; transition: background 0.2s, border-color 0.2s; }
.scenario-button:hover { background: rgba(255, 255, 255, 0.035); }
.scenario-button.is-active { border-color: rgba(88, 224, 184, 0.23); background: rgba(88, 224, 184, 0.08); }
.scenario-button > span:nth-child(2) { padding-left: 10px; }
.scenario-button strong, .scenario-button small { display: block; }
.scenario-button strong { font-size: 13px; }
.scenario-button small { color: #8296a5; font-size: 10px; }
.scenario-button > i { color: #657a89; font-size: 20px; font-style: normal; }
.scenario-icon { display: grid; width: 38px; height: 38px; place-items: center; border-radius: 10px; font-size: 12px; font-weight: 800; }
.scenario-icon.green { background: rgba(73, 200, 119, 0.14); color: #70dc94; }
.scenario-icon.blue { background: rgba(80, 146, 255, 0.14); color: #84b4ff; }
.privacy-note { display: flex; margin: 28px 8px 0; gap: 10px; color: #708796; }
.privacy-note > span { color: var(--accent); }
.privacy-note p { font-size: 10px; line-height: 1.65; }
.privacy-note strong { display: block; color: #9fb0ba; }

.chat-shell { display: grid; grid-template-rows: auto 1fr auto; min-width: 0; }
.chat-header { display: flex; align-items: center; min-height: 74px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.agent-avatar, .mini-avatar { display: grid; place-items: center; border-radius: 11px; background: linear-gradient(145deg, #2d7d6c, #194740); color: #e2fff7; font-weight: 800; }
.agent-avatar { width: 42px; height: 42px; margin-right: 12px; }
.chat-header strong, .chat-header small { display: block; }
.chat-header strong { font-size: 14px; }
.chat-header small { color: #748b9a; font-size: 10px; }
.chat-header small i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--warning); }
.chat-status { margin-left: auto; padding: 5px 10px; border: 1px solid rgba(255, 202, 104, 0.22); border-radius: 999px; color: #d7b86d; font-size: 10px; }
.chat-body { min-height: 430px; max-height: 470px; overflow-y: auto; padding: 25px; scroll-behavior: smooth; }
.message { display: flex; align-items: flex-start; margin-bottom: 18px; animation: message-in 0.32s ease both; }
.message-user { justify-content: flex-end; }
.mini-avatar { width: 27px; height: 27px; margin-right: 9px; border-radius: 8px; font-size: 9px; flex: 0 0 auto; }
.bubble { max-width: min(76%, 590px); padding: 12px 15px; border-radius: 4px 14px 14px; background: #13283e; color: #d6e1e5; font-size: 12px; line-height: 1.7; }
.message-user .bubble { border-radius: 14px 4px 14px 14px; background: #205f55; color: #effffb; }
.bubble strong { color: white; }
.bubble .process-list { display: grid; margin: 8px 0 0; gap: 7px; }
.process-item { display: flex; align-items: center; color: #a9bbc4; }
.process-item i { display: grid; width: 16px; height: 16px; margin-right: 8px; place-items: center; border: 1px solid rgba(88, 224, 184, 0.25); border-radius: 50%; color: var(--accent); font-size: 9px; font-style: normal; }
.bubble.result-success { border: 1px solid rgba(88, 224, 184, 0.16); background: rgba(28, 81, 70, 0.42); }
.bubble.result-partial { border: 1px solid rgba(255, 202, 104, 0.17); background: rgba(89, 69, 31, 0.35); }
.result-title { display: flex; align-items: center; margin-bottom: 7px; gap: 7px; font-weight: 760; }
.result-title i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.result-partial .result-title i { background: var(--warning); box-shadow: 0 0 8px var(--warning); }
.result-details { display: grid; margin-top: 8px; gap: 4px; color: #9db5b0; font-size: 10px; }
.result-partial .result-details { color: #cabf9f; }
.typing-bubble { display: flex; align-items: center; min-height: 38px; gap: 4px; }
.typing-bubble i { width: 5px; height: 5px; border-radius: 50%; background: #7c94a4; animation: typing 1s infinite alternate; }
.typing-bubble i:nth-child(2) { animation-delay: 0.2s; }.typing-bubble i:nth-child(3) { animation-delay: 0.4s; }
.chat-controls { display: flex; align-items: center; min-height: 76px; padding: 14px 20px; border-top: 1px solid var(--line); background: rgba(5, 15, 26, 0.55); }
.chat-controls p { margin: 0; color: #657c8b; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.run-button, .reset-button { min-height: 38px; margin-left: auto; border: 0; border-radius: 10px; font-weight: 730; cursor: pointer; }
.run-button { display: inline-flex; align-items: center; padding: 0 7px 0 15px; gap: 12px; background: var(--accent); color: #061712; }
.run-button i { display: grid; width: 25px; height: 25px; place-items: center; border-radius: 7px; background: rgba(5, 29, 22, 0.15); font-style: normal; }
.run-button:disabled { opacity: 0.52; cursor: wait; }
.reset-button { padding: 0 15px; border: 1px solid var(--line-strong); background: transparent; color: #bccbd2; }

.workflow-section { border-bottom: 1px solid var(--line); }
.workflow-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); list-style: none; }
.workflow-grid li { min-height: 205px; padding: 25px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.workflow-grid li > span { display: block; margin-bottom: 42px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.workflow-grid strong { font-size: 15px; }
.workflow-grid p { margin: 7px 0 0; color: var(--muted); font-size: 12px; }

.capability-layout { display: grid; grid-template-columns: 1fr 360px; gap: 28px; }
.capability-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.capability-grid article, .quality-card { border: 1px solid var(--line); border-radius: 18px; background: rgba(12, 27, 44, 0.58); }
.capability-grid article { min-height: 245px; padding: 24px; }
.cap-icon { display: grid; width: 40px; height: 40px; margin-bottom: 44px; place-items: center; border: 1px solid rgba(88, 224, 184, 0.22); border-radius: 10px; color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 11px; }
.capability-grid h3 { margin-bottom: 8px; font-size: 15px; }
.capability-grid p { margin-bottom: 0; color: var(--muted); font-size: 12px; }
.quality-card { padding: 28px; background: linear-gradient(160deg, rgba(19, 54, 54, 0.52), rgba(10, 25, 40, 0.75)); }
.quality-card .panel-label { margin-left: 0; }
.quality-card h3 { margin: 8px 0 30px; font-size: 26px; letter-spacing: -0.03em; }
.quality-card ul { display: grid; margin: 0; padding: 0; gap: 15px; list-style: none; }
.quality-card li { display: flex; align-items: center; color: #b3c4ca; font-size: 12px; }
.quality-card li span { display: grid; width: 20px; height: 20px; margin-right: 10px; place-items: center; border-radius: 50%; background: rgba(88, 224, 184, 0.12); color: var(--accent); font-size: 10px; }
.quality-foot { margin: 31px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: #91a7b2; font-size: 10px; }

.evidence-section { border-top: 1px solid var(--line); }
.evidence-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.evidence-card { padding: 30px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: rgba(12, 27, 44, 0.64); }
.evidence-head { display: flex; align-items: center; margin-bottom: 35px; }
.evidence-head span { padding: 5px 9px; border-radius: 999px; font-size: 9px; font-weight: 760; }
.success-evidence .evidence-head span { background: rgba(88, 224, 184, 0.12); color: var(--accent); }
.partial-evidence .evidence-head span { background: rgba(255, 202, 104, 0.12); color: var(--warning); }
.evidence-head time { margin-left: auto; color: #6d8392; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.evidence-card h3 { margin-bottom: 8px; font-size: 23px; letter-spacing: -0.025em; }
.evidence-card > p { min-height: 48px; color: var(--muted); font-size: 12px; }
.metric-row { display: grid; grid-template-columns: 1fr 1fr; margin: 27px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric-row > div { padding: 18px 0; }
.metric-row > div + div { padding-left: 22px; border-left: 1px solid var(--line); }
.metric-row strong, .metric-row small { display: block; }
.metric-row strong { font-size: 20px; }
.metric-row small { color: #768c9a; font-size: 9px; }
.mini-code { display: grid; padding: 15px; gap: 5px; border-radius: 10px; background: rgba(3, 12, 21, 0.5); }
.mini-code code { color: #8399a7; font-size: 10px; }
.success-evidence .mini-code b { color: var(--accent); }
.partial-evidence .mini-code b { color: var(--warning); }

.boundaries-section { display: grid; grid-template-columns: 0.9fr 1.1fr; align-items: start; gap: 100px; border-top: 1px solid var(--line); }
.boundary-copy { position: sticky; top: 120px; }
.boundary-list { display: grid; }
.boundary-list article { display: grid; grid-template-columns: 42px 1fr; padding: 27px 0; border-bottom: 1px solid var(--line); }
.boundary-list article:first-child { border-top: 1px solid var(--line); }
.boundary-list > article > span { color: #567080; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; }
.boundary-list h3 { margin-bottom: 6px; font-size: 16px; }
.boundary-list p { margin: 0; color: var(--muted); font-size: 12px; }

.use-section { padding-top: 30px; }
.use-card { display: grid; grid-template-columns: 1.2fr 0.8fr; align-items: center; padding: 56px; border: 1px solid rgba(88, 224, 184, 0.2); border-radius: 24px; background: linear-gradient(135deg, rgba(21, 65, 59, 0.62), rgba(10, 31, 48, 0.8)); }
.use-card > div:first-child { padding-right: 50px; }
.use-example { display: flex; align-items: flex-start; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: rgba(5, 17, 29, 0.65); transform: rotate(1deg); }
.user-dot { display: grid; width: 33px; height: 33px; margin-right: 10px; place-items: center; border-radius: 50%; background: #31546b; font-size: 10px; }
.use-example p { margin: 0; color: #acbdc5; font-size: 12px; }
.use-example b { color: var(--accent); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 10px; font-weight: 500; }
.public-warning { display: flex; grid-column: 1 / -1; align-items: center; margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); }
.public-warning > span { display: grid; width: 25px; height: 25px; margin-right: 10px; place-items: center; border: 1px solid rgba(255, 202, 104, 0.28); border-radius: 50%; color: var(--warning); font-size: 11px; }
.public-warning p { margin: 0; color: #8ca0ac; font-size: 10px; }
.public-warning strong { margin-right: 10px; color: #d5dfe3; }

.site-footer { display: flex; align-items: center; width: min(1180px, calc(100% - 40px)); min-height: 120px; margin: 0 auto; border-top: 1px solid var(--line); color: #667d8c; font-size: 10px; }
.footer-brand { color: #aab9c0; font-size: 12px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 8px; }
.site-footer p { margin: 0 auto; }
.site-footer > a { text-decoration: none; }
.noscript { position: fixed; z-index: 100; right: 20px; bottom: 20px; max-width: 360px; padding: 14px; border-radius: 12px; background: #3e321c; color: #ffe1a2; font-size: 12px; }

@keyframes breathe { 50% { opacity: 0.45; transform: scale(0.65); } }
@keyframes typing { to { opacity: 0.25; transform: translateY(-2px); } }
@keyframes message-in { from { opacity: 0; transform: translateY(8px); } }

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 70px; }
  .hero-copy { max-width: 720px; }
  .hero-visual { width: min(100%, 600px); margin: -10px auto 0; }
  .workflow-grid { grid-template-columns: repeat(2, 1fr); }
  .capability-layout { grid-template-columns: 1fr; }
  .boundaries-section { gap: 50px; }
}

@media (max-width: 720px) {
  .site-header { width: calc(100% - 28px); }
  .nav-links { display: none; }
  .offline-badge { padding: 6px 9px; }
  .hero, .section, .proof-strip, .site-footer { width: calc(100% - 28px); }
  .hero { min-height: auto; padding: 60px 0 85px; gap: 36px; }
  .hero h1 { font-size: 50px; }
  .hero-lead { font-size: 15px; }
  .hero-visual { min-height: 440px; }
  .source-card { top: 8px; width: 215px; }
  .result-card { top: 110px; width: calc(100% - 14px); }
  .connector-line { top: 58px; }
  .proof-strip { grid-template-columns: repeat(2, 1fr); }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n + 2) { border-bottom: 1px solid var(--line); }
  .section { padding: 90px 0; }
  .section-heading { text-align: left; }
  .section-heading .eyebrow { justify-content: flex-start; }
  .demo-layout { grid-template-columns: 1fr; }
  .scenario-panel { display: grid; grid-template-columns: 1fr 1fr; padding: 12px; gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario-panel .panel-label, .privacy-note { display: none; }
  .scenario-button { grid-template-columns: 34px 1fr; margin: 0; padding: 9px; }
  .scenario-button > i { display: none; }
  .scenario-icon { width: 32px; height: 32px; }
  .chat-header { padding: 0 15px; }
  .chat-body { min-height: 430px; padding: 18px 14px; }
  .bubble { max-width: 86%; }
  .chat-controls { align-items: stretch; flex-direction: column; gap: 10px; }
  .run-button, .reset-button { width: 100%; margin-left: 0; justify-content: center; }
  .workflow-grid { grid-template-columns: 1fr; }
  .workflow-grid li { min-height: 145px; }
  .workflow-grid li > span { margin-bottom: 24px; }
  .capability-grid, .evidence-grid { grid-template-columns: 1fr; }
  .capability-grid article { min-height: 210px; }
  .cap-icon { margin-bottom: 28px; }
  .boundaries-section { grid-template-columns: 1fr; gap: 38px; }
  .boundary-copy { position: static; }
  .use-card { grid-template-columns: 1fr; padding: 30px 22px; }
  .use-card > div:first-child { padding-right: 0; }
  .use-example { margin-top: 25px; }
  .site-footer { flex-wrap: wrap; justify-content: space-between; padding: 30px 0; gap: 15px; }
  .site-footer p { order: 3; width: 100%; margin: 0; }
}

@media (max-width: 390px) {
  .hero h1 { font-size: 43px; }
  .trust-list { display: grid; gap: 8px; }
  .proof-strip strong { font-size: 23px; }
  .proof-strip div { min-height: 100px; padding: 18px; }
  .scenario-button small { display: none; }
  .chat-status { display: none; }
}

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