:root {
  --ink: #17231e;
  --muted: #65736c;
  --paper: #f4f1e9;
  --surface: #fffef9;
  --line: #dcded7;
  --green: #0f7055;
  --green-dark: #0a4d3b;
  --lime: #d9f184;
  --orange: #ed794c;
  --shadow: 0 24px 70px rgba(35, 53, 45, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
.hidden { display: none !important; }
.ambient { position: fixed; border-radius: 999px; filter: blur(1px); pointer-events: none; z-index: -1; }
.ambient-one { width: 420px; height: 420px; background: rgba(217,241,132,.2); top: 80px; right: -160px; }
.ambient-two { width: 300px; height: 300px; background: rgba(237,121,76,.09); top: 720px; left: -140px; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 74px; padding: 0 max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(23,35,30,.1);
  background: rgba(244,241,233,.88); backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--green); color: white; }
.brand-mark svg { width: 25px; fill: white; }
nav { display: flex; gap: 30px; color: #435149; font-size: 14px; }
nav a:hover { color: var(--green); }
.header-cta { justify-self: end; padding: 9px 17px; border: 1px solid var(--ink); border-radius: 999px; font-size: 13px; font-weight: 700; }

.section-shell { width: min(1240px, calc(100% - 48px)); margin: 0 auto; }
.hero { min-height: 720px; display: grid; grid-template-columns: 1.06fr .94fr; gap: 70px; align-items: center; padding: 80px 0 94px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 7px 12px; border: 1px solid #cdd4cc; border-radius: 999px; background: rgba(255,255,255,.62); font-size: 13px; font-weight: 700; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fa878; box-shadow: 0 0 0 5px rgba(47,168,120,.12); }
h1 { margin: 0; font-family: Georgia, "Songti SC", serif; font-size: clamp(48px, 5.4vw, 78px); line-height: 1.08; letter-spacing: -.055em; font-weight: 600; }
h1 span { color: var(--green); }
.hero-lead { max-width: 650px; margin: 30px 0; color: #4e5b54; font-size: 19px; line-height: 1.85; }
.hero-actions { display: flex; gap: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 14px; min-height: 50px; padding: 0 22px; border-radius: 9px; border: 1px solid transparent; font-weight: 800; 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 12px 30px rgba(15,112,85,.2); }
.button.primary:hover { background: var(--green-dark); }
.button.secondary { border-color: #b8c0b9; background: rgba(255,255,255,.55); }
.button.full { width: 100%; margin-top: 18px; }
.privacy-inline { color: #758179; font-size: 13px; }

.hero-console { padding: 23px; border: 1px solid #d8ddd7; border-radius: 24px; background: rgba(255,254,249,.92); box-shadow: var(--shadow); transform: rotate(1.2deg); }
.console-top, .console-agent { display: flex; align-items: center; }
.console-top { justify-content: space-between; padding-bottom: 17px; border-bottom: 1px solid #e4e6e0; }
.console-agent { gap: 11px; }
.console-agent small { display: block; color: var(--muted); font-size: 11px; }
.agent-avatar { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 13px; color: white; background: linear-gradient(145deg, #0f7055, #173f33); font-family: Georgia, serif; font-size: 21px; }
.status-pill { padding: 5px 10px; border-radius: 999px; background: #e2f3dc; color: #25724f; font-size: 11px; font-weight: 800; }
.message { max-width: 84%; margin-top: 18px; padding: 13px 16px; border-radius: 15px; font-size: 13px; }
.user-message { margin-left: auto; background: #e2ecff; border-bottom-right-radius: 4px; }
.agent-message { background: #eef0ea; border-bottom-left-radius: 4px; }
.agent-message p { margin: 5px 0 0; color: var(--muted); }
.mini-progress { display: flex; gap: 4px; margin-bottom: 10px; }
.mini-progress span { height: 4px; flex: 1; border-radius: 9px; background: var(--green); }
.score-row { display: grid; grid-template-columns: repeat(3,1fr); gap: 8px; margin-top: 18px; }
.score-row div { padding: 12px; border-radius: 12px; background: #faf8f1; text-align: center; }
.score-row span { display: block; color: var(--green); font: 700 25px Georgia, serif; }
.score-row small { color: var(--muted); }

.proof-strip { display: grid; grid-template-columns: repeat(5,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.proof-strip div { padding: 22px 25px; border-right: 1px solid var(--line); text-align: center; }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip strong { font-size: 14px; }
.proof-strip span { color: var(--muted); font-size: 12px; }

.demo-section, .workflow-section, .evidence-section, .capability-section, .boundary-section, .architecture-section { padding-top: 120px; }
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 42px; }
.section-heading > div { display: flex; align-items: center; gap: 17px; }
.section-index { color: var(--orange); font: 700 13px ui-monospace, monospace; letter-spacing: .1em; }
.section-heading h2 { margin: 0; font: 600 clamp(32px, 3.3vw, 48px)/1.15 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.section-heading p { max-width: 500px; margin: 0; color: var(--muted); }
.card { border: 1px solid var(--line); border-radius: 20px; background: var(--surface); box-shadow: 0 16px 45px rgba(35,53,45,.06); }
.demo-grid { display: grid; grid-template-columns: .78fr 1.22fr; gap: 20px; }
.demo-control { padding: 25px; }
.demo-label, .demo-control label { display: block; margin-bottom: 11px; font-size: 13px; font-weight: 800; }
.scenario-list { display: grid; gap: 8px; margin-bottom: 24px; }
.scenario { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px; border: 1px solid #e1e3dd; border-radius: 12px; background: #fbfaf5; color: var(--ink); text-align: left; cursor: pointer; }
.scenario.active { border-color: var(--green); background: #eef7ef; box-shadow: inset 3px 0 var(--green); }
.scenario-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; color: var(--green); background: white; font-weight: 900; }
.scenario strong, .scenario small { display: block; }
.scenario small { color: var(--muted); font-size: 11px; }
.url-input-wrap { position: relative; }
.url-input-wrap input { width: 100%; height: 48px; padding: 0 70px 0 13px; border: 1px solid #cfd5cf; border-radius: 9px; background: white; color: #3a4740; outline: none; }
.url-input-wrap input:focus { border-color: var(--green); box-shadow: 0 0 0 3px rgba(15,112,85,.1); }
.local-only { position: absolute; right: 10px; top: 12px; padding: 2px 7px; border-radius: 6px; color: #28694f; background: #e3f2e3; font-size: 10px; font-weight: 800; }
.input-note { margin: 8px 0 0; color: #7c8780; font-size: 11px; }
.demo-output { min-height: 548px; overflow: hidden; }
.output-header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 52px; padding: 0 18px; border-bottom: 1px solid var(--line); background: #f0eee7; color: #68746d; font: 700 10px ui-monospace, monospace; letter-spacing: .12em; }
.terminal-dot { display: inline-block; width: 8px; height: 8px; margin-right: 5px; border-radius: 50%; }
.terminal-dot.red { background: #e46d5b; }.terminal-dot.amber { background: #e8b64f; }.terminal-dot.green { background: #62a96f; }
.output-header button { justify-self: end; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 11px; }
.demo-idle { display: grid; place-items: center; align-content: center; height: 495px; text-align: center; }
.demo-idle p { margin-top: 4px; color: var(--muted); font-size: 13px; }
.idle-orbit { display: grid; place-items: center; width: 76px; height: 76px; margin-bottom: 18px; border: 1px dashed #9db0a5; border-radius: 50%; animation: spin 10s linear infinite; }
.idle-orbit span { display: grid; place-items: center; width: 49px; height: 49px; border-radius: 15px; color: white; background: var(--green); animation: spin 10s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.demo-running { padding: 22px 25px; }
.timeline { display: grid; gap: 9px; }
.timeline-step { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 9px; color: #77827c; font-size: 12px; transition: all .25s; }
.timeline-step .step-state { display: grid; place-items: center; width: 20px; height: 20px; border: 1px solid #ccd2cc; border-radius: 50%; font: 700 10px ui-monospace, monospace; }
.timeline-step.active { color: var(--ink); background: #f4f7ef; }
.timeline-step.active .step-state { border-color: var(--green); color: var(--green); animation: pulse 1s infinite; }
.timeline-step.done { color: var(--ink); }
.timeline-step.done .step-state { border-color: var(--green); color: white; background: var(--green); }
.timeline-step small { color: #94a099; }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px rgba(15,112,85,.12); } }
.demo-result { margin-top: 16px; padding: 16px; border: 1px solid #b9d8c5; border-radius: 12px; background: #eff9ef; }
.result-title { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.result-title strong { color: var(--green-dark); }
.result-title span { padding: 3px 8px; border-radius: 999px; background: white; color: var(--green); font-size: 10px; font-weight: 800; }
.demo-result p { margin: 7px 0 0; color: #597066; font-size: 12px; }
.demo-result.error { border-color: #edc1b3; background: #fff1ec; }
.demo-result.error strong { color: #a8462c; }

.workflow-track { display: grid; grid-template-columns: repeat(6,1fr); border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.workflow-track article { position: relative; min-height: 250px; padding: 24px 19px; border-right: 1px solid var(--line); }
.workflow-track article:last-child { border-right: 0; }
.workflow-track article > span { color: #9ba69f; font: 700 11px ui-monospace, monospace; }
.flow-icon { display: grid; place-items: center; width: 42px; height: 42px; margin: 40px 0 18px; border-radius: 13px; color: var(--green); background: #e7f2df; font-size: 20px; font-weight: 800; }
.workflow-track h3 { margin: 0 0 8px; font-size: 16px; }
.workflow-track p { margin: 0; color: var(--muted); font-size: 12px; }

.evidence-layout { display: grid; grid-template-columns: .75fr 1.25fr; gap: 20px; }
.run-proof { padding: 25px; }
.run-proof-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.run-proof-head > div { display: flex; align-items: center; gap: 9px; }
.run-proof-head time { color: var(--muted); font-size: 11px; }
.checkmark { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; color: white; background: var(--green); }
.run-facts { display: grid; gap: 18px; padding: 22px 0; }
.run-facts small, .run-facts strong, .run-facts span { display: block; }
.run-facts small { color: var(--orange); font: 700 10px ui-monospace, monospace; text-transform: uppercase; }
.run-facts strong { margin: 3px 0; }
.run-facts span { color: var(--muted); font-size: 12px; }
.validation-list { display: flex; flex-wrap: wrap; gap: 6px; }
.validation-list span { padding: 5px 8px; border-radius: 7px; color: #37624f; background: #ecf4e9; font-size: 10px; font-weight: 700; }
.result-table { overflow: hidden; }
.table-head { display: flex; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.table-head span { color: var(--muted); font-size: 11px; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 12px; }
th, td { padding: 14px 16px; border-bottom: 1px solid #e8e9e4; text-align: left; }
th { color: #77827c; background: #f6f5ef; font-size: 10px; }
tbody tr:hover { background: #fbfaf5; }
td:first-child { min-width: 270px; }
td b { font: 700 17px Georgia, serif; }
td em { padding: 3px 8px; border-radius: 999px; font-style: normal; font-size: 10px; }
td em.high { color: #24674b; background: #e4f3e3; }
td em.medium { color: #8a6220; background: #fff0c9; }

.capability-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.capability-grid article { min-height: 210px; padding: 25px; border: 1px solid var(--line); border-radius: 16px; background: rgba(255,254,249,.68); }
.capability-grid article > span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--green); background: #e4f0df; font-family: Georgia, serif; font-size: 18px; }
.capability-grid h3 { margin: 30px 0 8px; font-size: 17px; }
.capability-grid p { margin: 0; color: var(--muted); font-size: 13px; }

.boundary-card { display: grid; grid-template-columns: .82fr 1.18fr; gap: 60px; padding: 55px; border-radius: 28px; color: white; background: #123d31; box-shadow: var(--shadow); }
.section-index.light { color: var(--lime); }
.boundary-copy h2 { margin: 20px 0; font: 500 clamp(32px,3.4vw,48px)/1.18 Georgia, "Songti SC", serif; letter-spacing: -.035em; }
.boundary-copy > p { color: #b9cec4; }
.safety-note { display: flex; gap: 12px; align-items: center; margin-top: 40px; padding: 15px; border: 1px solid rgba(255,255,255,.14); border-radius: 13px; background: rgba(255,255,255,.06); }
.safety-note > span { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; color: var(--green-dark); background: var(--lime); font-size: 11px; font-weight: 900; }
.safety-note strong, .safety-note small { display: block; }
.safety-note small { color: #aac3b7; }
.boundary-list { display: grid; }
.boundary-list div { display: grid; grid-template-columns: 45px 1fr; align-items: center; border-bottom: 1px solid rgba(255,255,255,.14); }
.boundary-list span { color: var(--lime); font: 700 11px ui-monospace, monospace; }
.boundary-list p { margin: 15px 0; color: #d8e5df; font-size: 14px; }

.compact-heading { margin-bottom: 25px; }
.architecture { display: grid; grid-template-columns: repeat(9,auto); align-items: center; gap: 10px; padding: 23px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.architecture div { min-width: 0; text-align: center; }
.architecture strong, .architecture span { display: block; }
.architecture strong { font-size: 13px; }
.architecture span { color: var(--muted); font-size: 10px; }
.architecture i { color: var(--orange); font-style: normal; }

.final-cta { padding-top: 150px; padding-bottom: 150px; text-align: center; }
.final-cta > span { color: var(--orange); font: 700 11px ui-monospace, monospace; letter-spacing: .18em; }
.final-cta h2 { margin: 25px auto 35px; font: 500 clamp(38px,4.5vw,64px)/1.18 Georgia, "Songti SC", serif; letter-spacing: -.045em; }
footer { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 30px max(24px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
footer p:last-child { justify-self: end; }
.footer-brand { color: var(--ink); }
.footer-brand .brand-mark { width: 27px; height: 27px; border-radius: 8px; font-size: 12px; }

@media (max-width: 980px) {
  .site-header { grid-template-columns: 1fr auto; }
  nav { display: none; }
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 50px; }
  .hero-copy { max-width: 760px; }
  .hero-console { max-width: 680px; transform: none; }
  .proof-strip { grid-template-columns: repeat(3,1fr); }
  .proof-strip div:nth-child(3) { border-right: 0; }
  .demo-grid, .evidence-layout, .boundary-card { grid-template-columns: 1fr; }
  .workflow-track { grid-template-columns: repeat(3,1fr); }
  .workflow-track article:nth-child(3) { border-right: 0; }
  .workflow-track article:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .capability-grid { grid-template-columns: repeat(2,1fr); }
  .architecture { grid-template-columns: 1fr; }
  .architecture i { transform: rotate(90deg); }
}

@media (max-width: 640px) {
  .section-shell { width: min(100% - 28px, 1240px); }
  .site-header { height: 64px; padding: 0 14px; }
  .header-cta { display: none; }
  .hero { padding: 66px 0 70px; }
  h1 { font-size: 43px; }
  .hero-lead { font-size: 16px; }
  .hero-actions { flex-direction: column; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(3) { border-right: 1px solid var(--line); }
  .proof-strip div:nth-child(even) { border-right: 0; }
  .section-heading { display: block; }
  .section-heading > div { align-items: flex-start; }
  .section-heading p { margin-top: 16px; }
  .demo-section, .workflow-section, .evidence-section, .capability-section, .boundary-section, .architecture-section { padding-top: 85px; }
  .demo-output { min-height: 600px; }
  .workflow-track { grid-template-columns: 1fr 1fr; }
  .workflow-track article { min-height: 220px; border-bottom: 1px solid var(--line); }
  .workflow-track article:nth-child(3) { border-right: 1px solid var(--line); }
  .workflow-track article:nth-child(even) { border-right: 0; }
  .capability-grid { grid-template-columns: 1fr; }
  .boundary-card { padding: 30px 23px; gap: 30px; }
  .score-row { grid-template-columns: 1fr 1fr 1fr; }
  footer { grid-template-columns: 1fr; gap: 12px; text-align: center; }
  footer .brand { justify-content: center; }
  footer p { margin: 0; }
  footer p:last-child { justify-self: center; }
}

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