:root {
  --ink: #15211d;
  --muted: #65716c;
  --paper: #f7f8f4;
  --card: #ffffff;
  --line: #dce3de;
  --green: #0d6b53;
  --green-2: #118466;
  --green-soft: #e6f4ed;
  --lime: #bde269;
  --amber: #b16a06;
  --amber-soft: #fff2d8;
  --red: #ad4039;
  --red-soft: #fbe9e7;
  --blue: #3e67bd;
  --shadow: 0 24px 70px rgba(25, 49, 39, .11);
  --radius: 22px;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 4%, rgba(189, 226, 105, .18), transparent 24rem),
    var(--paper);
  font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.65;
}
button, a { font: inherit; }
a { color: inherit; }
button { color: inherit; }
.skip-link { position: fixed; left: 12px; top: -100px; z-index: 99; padding: 9px 14px; background: #fff; }
.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 36px;
  padding: 10px clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(220, 227, 222, .85);
  background: rgba(247, 248, 244, .9);
  backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; margin-right: auto; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--green); }
.brand-mark svg { width: 26px; fill: none; stroke: white; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.brand-mark .brand-cut { stroke: var(--lime); stroke-width: 3; }
.brand > span:last-child { display: grid; line-height: 1.3; }
.brand strong { font-size: 15px; }
.brand small { color: var(--muted); font-size: 11px; letter-spacing: .03em; }
nav { display: flex; gap: 24px; }
nav a { color: #44514c; font-size: 14px; font-weight: 700; text-decoration: none; }
nav a:hover, nav a:focus-visible { color: var(--green); }
.display-badge { padding: 6px 11px; border: 1px solid #b8ccc1; border-radius: 999px; color: var(--green); background: #f4fbf7; font-size: 12px; font-weight: 800; white-space: nowrap; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 680px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: clamp(48px, 7vw, 90px);
  align-items: center;
  padding: 76px 0 64px;
}
.eyebrow { margin: 0 0 15px; color: var(--green); font-size: 12px; font-weight: 900; letter-spacing: .17em; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 25px; font-size: clamp(48px, 6vw, 76px); line-height: 1.08; letter-spacing: -.055em; }
h1 span { color: var(--green); }
.hero-lead { max-width: 640px; color: #4f5d57; font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 26px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 19px;
  border: 0;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background .2s;
}
.button:hover { transform: translateY(-2px); }
.button.primary { color: white; background: var(--green); box-shadow: 0 10px 26px rgba(13,107,83,.22); }
.button.primary:hover { background: var(--green-2); }
.button.secondary { border: 1px solid var(--line); background: white; }
.button.ghost { color: var(--muted); background: transparent; }
.button.confirm { color: #163c2e; background: var(--lime); }
.button:focus-visible, .scenario:focus-visible, a:focus-visible { outline: 3px solid rgba(17,132,102,.3); outline-offset: 3px; }
.trust-list { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 0; margin: 0; color: #53615b; font-size: 13px; list-style: none; }
.trust-list li::before { content: "✓"; margin-right: 7px; color: var(--green); font-weight: 900; }

.hero-console { overflow: hidden; border: 1px solid #d8e3dc; border-radius: 25px; background: #fff; box-shadow: var(--shadow); transform: rotate(1.2deg); }
.console-top { display: flex; align-items: center; gap: 7px; height: 48px; padding: 0 17px; border-bottom: 1px solid #e8ece9; background: #f5f7f5; }
.console-top > span { width: 8px; height: 8px; border-radius: 50%; background: #c9d1cc; }
.console-top p { margin: 0 auto 0 8px; color: #738079; font-size: 12px; font-weight: 800; }
.console-body { padding: 24px; }
.file-chip { display: flex; align-items: center; gap: 13px; padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fbfcfb; }
.file-chip > div { display: grid; margin-right: auto; }
.file-chip small { color: var(--muted); }
.file-chip em { color: var(--green); font-size: 12px; font-style: normal; font-weight: 900; }
.pdf-icon { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 8px; color: white; background: #d95048; font-size: 11px; font-weight: 900; }
.scan-line { display: flex; justify-content: space-between; padding: 12px 2px; border-bottom: 1px dashed #e0e6e2; font-size: 13px; }
.scan-line b { color: var(--green); }
.console-progress { height: 7px; margin: 16px 0; overflow: hidden; border-radius: 9px; background: #e8eee9; }
.console-progress i { display: block; width: 88%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--green), var(--lime)); }
.lesson-mini { padding: 3px 0; }
.lesson-mini p { display: flex; gap: 9px; margin: 7px 0; font-size: 13px; }
.lesson-mini span { color: var(--green); font-family: ui-monospace, monospace; font-weight: 900; }
.lesson-mini em { margin-left: auto; color: #78837e; font-style: normal; }
.confirmation { display: flex; justify-content: space-between; margin-top: 18px; padding: 12px 14px; border-radius: 12px; background: var(--amber-soft); color: #7d5317; font-size: 12px; }

.statement { display: flex; align-items: center; gap: 18px; padding: 18px max(20px, calc((100% - 1140px)/2)); color: #ddeae4; background: #183e32; }
.statement strong { flex: 0 0 auto; color: var(--lime); }
.statement p { margin: 0; font-size: 14px; }
.metrics { width: min(1140px, calc(100% - 40px)); margin: 54px auto 0; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: white; box-shadow: 0 12px 35px rgba(25,49,39,.05); }
.metrics article { padding: 24px; border-right: 1px solid var(--line); }
.metrics article:last-child { border-right: 0; }
.metrics article > strong { color: var(--green); font-family: ui-monospace, monospace; font-size: 12px; }
.metrics h3 { margin: 9px 0 4px; font-size: 16px; }
.metrics p { margin: 0; color: var(--muted); font-size: 13px; }

.section { width: min(1140px, calc(100% - 40px)); margin: 0 auto; padding: 105px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.section-heading h2, .output-copy h2, .privacy-section h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); line-height: 1.17; letter-spacing: -.035em; }
.section-heading > p { max-width: 460px; margin: 0; color: var(--muted); }

.demo-layout { display: grid; grid-template-columns: 340px 1fr; overflow: hidden; min-height: 620px; border: 1px solid var(--line); border-radius: 28px; background: white; box-shadow: var(--shadow); }
.scenario-list { padding: 20px; border-right: 1px solid var(--line); background: #f1f4f0; }
.scenario { width: 100%; display: grid; grid-template-columns: 36px 1fr; gap: 2px 10px; align-items: center; margin-bottom: 10px; padding: 16px 14px; border: 1px solid transparent; border-radius: 15px; text-align: left; background: transparent; cursor: pointer; }
.scenario:hover { background: #fff; }
.scenario.active { border-color: #b7d1c3; background: #fff; box-shadow: 0 7px 20px rgba(25,49,39,.06); }
.scenario > span { grid-row: 1/3; color: #6e7b75; font-family: ui-monospace, monospace; font-size: 12px; }
.scenario div { display: grid; }
.scenario small { color: var(--muted); font-size: 11px; }
.scenario em { grid-column: 2; justify-self: start; margin-top: 8px; padding: 2px 7px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 10px; font-style: normal; font-weight: 900; }
.scenario-note { margin-top: 24px; padding: 15px; border-radius: 14px; color: #53605a; background: #e5eae6; font-size: 12px; }
.scenario-note p { margin: 5px 0 0; }
.chat-shell { min-width: 0; display: grid; grid-template-rows: auto 1fr auto; background: #f7f8f7; }
.chat-header { display: flex; align-items: center; gap: 11px; min-height: 70px; padding: 12px 20px; border-bottom: 1px solid var(--line); background: white; }
.agent-avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; color: white; background: var(--green); font-weight: 900; }
.chat-header > div:nth-child(2) { display: grid; margin-right: auto; }
.chat-header small { color: var(--muted); }
.chat-header small i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #33b47b; }
.chat-header > span { padding: 4px 8px; border-radius: 6px; color: var(--green); background: var(--green-soft); font-size: 10px; font-weight: 900; }
.chat-window { min-height: 465px; max-height: 535px; overflow-y: auto; padding: 24px; scroll-behavior: smooth; }
.message { display: flex; gap: 9px; max-width: 86%; margin-bottom: 16px; animation: message-in .28s ease both; }
.message.user { margin-left: auto; flex-direction: row-reverse; }
.message .bubble { padding: 12px 15px; border: 1px solid var(--line); border-radius: 5px 15px 15px 15px; background: white; font-size: 13px; box-shadow: 0 5px 14px rgba(25,49,39,.04); }
.message.user .bubble { border: 0; border-radius: 15px 5px 15px 15px; color: white; background: var(--green); }
.message .bubble p { margin: 0 0 7px; }
.message .bubble p:last-child { margin-bottom: 0; }
.message .bubble strong { color: var(--green); }
.message.user .bubble strong { color: white; }
.message-avatar { display: grid; place-items: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; color: white; background: var(--green); font-size: 10px; font-weight: 900; }
.message.user .message-avatar { color: var(--green); background: #dce7e1; }
.progress-card, .preview-card, .result-card, .warning-card { width: min(100%, 520px); margin: 5px 0 18px 35px; padding: 15px; border: 1px solid var(--line); border-radius: 14px; background: white; font-size: 12px; animation: message-in .28s ease both; }
.progress-card li, .preview-card li, .result-card li { list-style: none; padding: 5px 0; border-bottom: 1px dashed #e5e9e6; }
.progress-card ul, .preview-card ul, .result-card ul { padding: 0; margin: 0; }
.preview-card li { display: flex; gap: 10px; }
.preview-card li em { margin-left: auto; color: var(--muted); font-style: normal; }
.warning-card { border-color: #efd08f; background: var(--amber-soft); color: #744c12; }
.result-card { border-color: #b7d7c6; background: #f3fbf7; }
.demo-controls { display: flex; flex-wrap: wrap; gap: 9px; min-height: 70px; padding: 12px 20px; border-top: 1px solid var(--line); background: white; }
.hidden { display: none !important; }

.workflow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; padding: 0; margin: 0; list-style: none; }
.workflow li { position: relative; padding: 22px 20px 22px 0; border-top: 1px solid #bfcac4; }
.workflow li::after { content: ""; position: absolute; top: -4px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--green); }
.workflow span { color: var(--green); font-family: ui-monospace, monospace; font-weight: 900; }
.workflow h3 { margin: 18px 0 8px; font-size: 17px; }
.workflow p { margin: 0; color: var(--muted); font-size: 13px; }

.output-section { display: grid; grid-template-columns: .9fr 1.1fr; gap: 70px; align-items: center; }
.output-copy > p:not(.eyebrow) { color: var(--muted); }
.check-list { padding: 0; list-style: none; }
.check-list li { padding: 7px 0; }
.check-list li::before { content: "✓"; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 9px; border-radius: 50%; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 900; }
.file-tree { overflow: hidden; border-radius: 20px; color: #d8e7df; background: #17342b; box-shadow: var(--shadow); }
.tree-top { display: flex; justify-content: space-between; padding: 15px 20px; border-bottom: 1px solid #2d4a41; font-size: 13px; }
.tree-top em { color: var(--lime); font-style: normal; font-size: 11px; }
.file-tree pre { overflow-x: auto; margin: 0; padding: 25px; line-height: 1.9; font-family: "Cascadia Code", Consolas, monospace; font-size: 13px; }
.file-tree .folder { color: #d8e68c; }
.file-tree .pdf { color: #ffafa9; }
.file-tree .json { color: #8cc9ff; }

.boundaries-section { border-top: 1px solid var(--line); }
.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.boundary-grid article { padding: 26px; border: 1px solid var(--line); border-radius: 20px; background: white; }
.boundary-title { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.boundary-title > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; font-size: 20px; font-weight: 900; }
.can-do .boundary-title > span { color: var(--green); background: var(--green-soft); }
.cannot-do .boundary-title > span { color: var(--red); background: var(--red-soft); }
.human-needed .boundary-title > span { color: var(--amber); background: var(--amber-soft); }
.boundary-title h3, .boundary-title p { margin: 0; }
.boundary-title p { color: var(--muted); font-size: 12px; }
.boundary-grid ul { padding-left: 19px; margin-bottom: 0; color: #4f5c56; font-size: 14px; }
.boundary-grid li { margin: 9px 0; }

.evidence-section { border-top: 1px solid var(--line); }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.evidence-grid article { padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: white; }
.evidence-grid h3 { margin: 18px 0 8px; }
.evidence-grid p { color: var(--muted); font-size: 14px; }
.evidence-grid small { color: #7e8883; }
.status-pass, .status-pending { padding: 4px 8px; border-radius: 7px; font-size: 11px; font-weight: 900; }
.status-pass { color: var(--green); background: var(--green-soft); }
.status-pending { color: var(--amber); background: var(--amber-soft); }
.privacy-section { margin-top: 20px; padding: 70px max(20px, calc((100% - 1140px)/2)); color: #edf5f1; background: #173c31; }
.privacy-section .eyebrow { color: var(--lime); }
.privacy-section ul { display: flex; flex-wrap: wrap; gap: 9px; padding: 0; margin: 26px 0; list-style: none; }
.privacy-section li { padding: 7px 11px; border: 1px solid #4b6b60; border-radius: 999px; font-size: 12px; }
.privacy-section > p { max-width: 850px; margin: 0; color: #b8ccc4; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 36px max(20px, calc((100% - 1140px)/2)); color: #cad5d0; background: #0f2b23; }
footer p { margin: 5px 0 0; color: #879c93; font-size: 12px; }
.footer-meta { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px 16px; align-content: center; font-size: 11px; }

@keyframes message-in { from { opacity: 0; transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
@media (max-width: 940px) {
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; }
  .hero-console { max-width: 620px; transform: none; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-layout { grid-template-columns: 1fr; }
  .scenario-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; border-right: 0; border-bottom: 1px solid var(--line); }
  .scenario { margin: 0; grid-template-columns: 1fr; }
  .scenario > span, .scenario em { grid-row: auto; grid-column: auto; }
  .scenario-note { grid-column: 1/-1; margin-top: 6px; }
  .workflow { grid-template-columns: 1fr 1fr; gap: 20px; }
  .output-section { grid-template-columns: 1fr; }
  .boundary-grid, .evidence-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { min-height: 62px; padding: 9px 16px; }
  .brand-mark { width: 36px; height: 36px; }
  .brand small, .display-badge { display: none; }
  .hero { width: min(100% - 30px, 1180px); padding: 58px 0; }
  h1 { font-size: 41px; line-height: 1.17; }
  .hero-lead { font-size: 16px; }
  .statement { align-items: flex-start; flex-direction: column; gap: 4px; }
  .metrics { width: calc(100% - 30px); grid-template-columns: 1fr; }
  .metrics article { border-right: 0; border-bottom: 1px solid var(--line); }
  .metrics article:last-child { border-bottom: 0; }
  .section { width: calc(100% - 30px); padding: 76px 0; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 18px; }
  .section-heading h2, .output-copy h2, .privacy-section h2 { font-size: 34px; }
  .scenario-list { grid-template-columns: 1fr; }
  .scenario { grid-template-columns: 36px 1fr; }
  .scenario > span { grid-row: 1/3; }
  .scenario em { grid-column: 2; }
  .chat-window { min-height: 510px; padding: 16px; }
  .message { max-width: 94%; }
  .progress-card, .preview-card, .result-card, .warning-card { margin-left: 0; }
  .workflow { grid-template-columns: 1fr; }
  .output-section { gap: 35px; }
  .file-tree pre { font-size: 11px; }
  footer { flex-direction: column; }
  .footer-meta { justify-content: flex-start; }
}
