:root {
  --ink: #18322b;
  --muted: #667771;
  --paper: #f3f7f3;
  --surface: #ffffff;
  --line: #dbe6df;
  --mint: #b9dfc9;
  --mint-deep: #237454;
  --coral: #e87961;
  --coral-soft: #ffe5de;
  --gold: #d9a744;
  --night: #17342c;
  --shadow: 0 18px 50px rgba(24, 50, 43, .08);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.topbar { height: 72px; padding: 0 clamp(20px, 4vw, 72px); display: flex; align-items: center; justify-content: space-between; background: rgba(243,247,243,.94); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-size: 15px; font-weight: 800; letter-spacing: .02em; }
.brand-mark { display: flex; align-items: end; gap: 3px; width: 24px; height: 24px; padding: 4px; background: var(--night); border-radius: 6px; }
.brand-mark i { display: block; flex: 1; background: var(--mint); border-radius: 2px 2px 1px 1px; }
.brand-mark i:nth-child(1) { height: 42%; }
.brand-mark i:nth-child(2) { height: 68%; background: #f4c45a; }
.brand-mark i:nth-child(3) { height: 92%; background: var(--coral); }
.topbar-meta { display: flex; align-items: center; gap: 22px; font-size: 13px; color: var(--muted); }
.demo-status { display: inline-flex; align-items: center; gap: 7px; color: var(--mint-deep); font-weight: 700; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #44a96f; box-shadow: 0 0 0 4px rgba(68,169,111,.12); }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; color: var(--mint-deep); font-weight: 700; }

.section-shell { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { min-height: 575px; display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr); gap: 72px; align-items: center; padding-top: 74px; padding-bottom: 72px; }
.eyebrow { margin: 0 0 14px; color: var(--mint-deep); font-size: 11px; letter-spacing: .16em; font-weight: 900; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 670px; margin-bottom: 23px; font-size: clamp(38px, 5vw, 68px); line-height: 1.08; letter-spacing: -.035em; font-weight: 850; }
.hero-lede { max-width: 610px; margin-bottom: 28px; color: #52655e; font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px; padding: 0 18px; border-radius: 7px; text-decoration: none; font-size: 14px; font-weight: 800; transition: transform .18s ease, box-shadow .18s ease, background .18s ease; }
.button:hover { transform: translateY(-2px); }
.button-primary { color: #fff; background: var(--night); box-shadow: 0 9px 18px rgba(23,52,44,.16); }
.button-primary:hover { box-shadow: 0 12px 24px rgba(23,52,44,.23); }
.button-quiet { color: var(--mint-deep); background: transparent; border: 1px solid var(--line); }
.button-quiet:hover { background: #fff; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 24px 0 0; color: #809089; font-size: 12px; }
.lock-mark { color: var(--coral); font-size: 15px; }
.hero-visual { min-height: 364px; padding: 25px 25px 20px; border-radius: 12px; background: var(--night); color: white; box-shadow: 0 25px 70px rgba(23,52,44,.23); position: relative; overflow: hidden; }
.hero-visual::after { content: ""; position: absolute; inset: auto -90px -125px auto; width: 270px; height: 270px; border: 1px solid rgba(185,223,201,.22); border-radius: 50%; }
.visual-head, .visual-foot { display: flex; align-items: start; justify-content: space-between; gap: 14px; position: relative; z-index: 1; }
.panel-kicker, .mini-date { display: block; color: #93b8a7; font-size: 10px; letter-spacing: .15em; font-weight: 800; }
.visual-head strong { display: block; margin-top: 5px; font-size: 18px; }
.mini-date { color: #efc76b; padding-top: 3px; }
.market-chart { display: block; width: 100%; height: 220px; margin: 12px 0 5px; overflow: visible; }
.grid-line { fill: none; stroke: rgba(185,223,201,.12); stroke-width: 1; }
.chart-area { fill: rgba(185,223,201,.12); }
.chart-line { fill: none; stroke: var(--mint); stroke-width: 3; stroke-linecap: round; }
.chart-point { fill: var(--coral); stroke: #fff; stroke-width: 3; }
.visual-foot { align-items: center; color: #a9c5b8; font-size: 11px; }
.visual-foot span { display: inline-flex; align-items: center; gap: 6px; }
.legend-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--mint); }
.legend-dot.coral { background: var(--coral); }
.visual-foot strong { color: #fff; font-size: 24px; line-height: 1; }
.visual-foot small { display: block; color: #94b2a5; font-size: 9px; font-weight: 600; line-height: 1.4; }

.metrics { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); overflow: hidden; }
.metric { min-height: 128px; padding: 23px 25px; border-right: 1px solid var(--line); }
.metric:last-child { border-right: 0; }
.metric-label { display: block; color: var(--muted); font-size: 12px; font-weight: 700; }
.metric strong { display: block; margin: 5px 0 1px; color: var(--ink); font-size: 33px; line-height: 1; letter-spacing: -.04em; }
.metric small { color: #87968f; font-size: 11px; }

.demo-section, .coverage, .workflow, .report-section, .boundary-section { padding-top: 120px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 28px; }
h2 { margin-bottom: 0; font-size: clamp(28px, 3.3vw, 43px); line-height: 1.1; letter-spacing: -.03em; }
.section-tag { padding: 7px 10px; color: var(--mint-deep); background: #e0f1e7; border-radius: 4px; font-size: 11px; font-weight: 800; white-space: nowrap; }
.heading-side { max-width: 365px; margin-bottom: 2px; color: var(--muted); font-size: 13px; text-align: right; }
.demo-grid { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr); gap: 18px; }
.panel-surface { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); }
.demo-console, .run-panel { min-height: 515px; padding: 20px; }
.console-top, .run-panel-head, .result-top { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.console-label { color: var(--ink); font-size: 12px; font-weight: 900; letter-spacing: .03em; }
.console-state { color: #7d8d86; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.conversation { min-height: 300px; padding: 24px 5px 5px; }
.message { display: flex; gap: 10px; max-width: 88%; margin-bottom: 18px; }
.message-user { margin-left: auto; flex-direction: row-reverse; }
.message-avatar { display: grid; place-items: center; flex: 0 0 27px; width: 27px; height: 27px; border-radius: 7px; background: var(--night); color: var(--mint); font-size: 11px; font-weight: 900; }
.message-user .message-avatar { background: var(--coral-soft); color: #bb4d39; }
.message small { display: block; margin-bottom: 3px; color: #84918b; font-size: 10px; }
.message p { margin: 0; padding: 10px 12px; background: #f1f6f2; border-radius: 3px 9px 9px 9px; color: #44564f; font-size: 13px; }
.message-user p { background: var(--night); color: #fff; border-radius: 9px 3px 9px 9px; }
.prompt-row { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 5px 14px; }
.prompt-chip { padding: 7px 9px; border: 1px solid var(--line); border-radius: 5px; background: #fbfdfb; color: var(--muted); cursor: pointer; font-size: 11px; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.prompt-chip:hover { border-color: var(--mint-deep); color: var(--mint-deep); background: #edf8f0; }
.demo-form { display: flex; gap: 8px; padding: 8px; background: #f3f7f3; border: 1px solid var(--line); border-radius: 7px; }
.demo-form input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 13px; }
.demo-form input::placeholder { color: #95a29c; }
.icon-button { display: grid; place-items: center; flex: 0 0 34px; width: 34px; height: 34px; border: 0; border-radius: 5px; background: var(--night); color: #fff; cursor: pointer; font-size: 17px; }
.run-state { color: #81918a; font-size: 11px; }
.run-state.active { color: var(--coral); }
.run-state.done { color: var(--mint-deep); }
.run-steps { margin: 23px 0 28px; border-top: 1px solid var(--line); }
.run-step { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: 9px; padding: 13px 0; border-bottom: 1px solid var(--line); color: #5d6e66; font-size: 12px; }
.run-step b { color: #a2aea8; font-size: 10px; font-weight: 800; }
.step-index { color: #98aaa1; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.run-step.active .step-index { color: var(--coral); }
.run-step.active b { color: var(--coral); }
.run-step.done .step-index { color: var(--mint-deep); }
.run-step.done b { color: var(--mint-deep); }
.run-result { min-height: 176px; padding: 17px; border: 1px solid #e4ece5; border-radius: 7px; background: #f7faf7; }
.result-top { color: #789087; font-size: 11px; }
.result-badge { padding: 3px 6px; border-radius: 3px; background: #e7eee8; color: #7f9188; font-size: 10px; font-weight: 800; }
.result-badge.done { background: #d9efdf; color: var(--mint-deep); }
.run-result h3 { margin: 18px 0 6px; font-size: 17px; line-height: 1.25; }
.run-result p { margin-bottom: 10px; color: var(--muted); font-size: 12px; }
.result-tags { display: flex; gap: 6px; }
.result-tags span { padding: 3px 7px; border-radius: 3px; background: #fff; color: #87968f; font-size: 10px; }

.coverage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.coverage-card { min-height: 235px; padding: 21px; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.coverage-card.featured { background: var(--night); color: #fff; border-color: var(--night); }
.coverage-number { display: block; margin-bottom: 32px; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 800; }
.coverage-card h3 { margin-bottom: 8px; font-size: 19px; }
.coverage-card p { min-height: 72px; margin-bottom: 21px; color: var(--muted); font-size: 12px; }
.featured p { color: #bed3c8; }
.source-label { color: var(--mint-deep); font-size: 10px; font-weight: 800; }
.featured .source-label { color: #a9ddbf; }

.workflow-track { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.workflow-step { min-height: 190px; padding: 22px 23px 22px 0; border-right: 1px solid var(--line); }
.workflow-step + .workflow-step { padding-left: 23px; }
.workflow-step:last-child { border-right: 0; }
.workflow-step > span { display: inline-block; margin-bottom: 23px; color: var(--coral); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 900; }
.workflow-step h3 { margin-bottom: 7px; font-size: 17px; }
.workflow-step p { margin-bottom: 0; color: var(--muted); font-size: 12px; }

.report-layout { display: grid; grid-template-columns: minmax(0, 1fr) 270px; gap: 18px; }
.report-preview { min-height: 360px; padding: 21px; }
.report-meta { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding-bottom: 15px; border-bottom: 1px solid var(--line); color: #5a6c64; font-size: 12px; font-weight: 800; }
.verified { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; color: var(--mint-deep); font-size: 10px; }
.verified i { width: 7px; height: 7px; border-radius: 50%; background: #48a770; }
.report-window { display: grid; grid-template-columns: 1fr auto; gap: 3px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.report-window span { color: var(--muted); font-size: 11px; }
.report-window strong { color: var(--ink); font-size: 14px; }
.report-window small { grid-column: 2; color: #88958f; font-size: 10px; text-align: right; }
.report-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; padding-top: 20px; }
.summary-label { color: var(--coral); font-size: 10px; font-weight: 900; letter-spacing: .03em; }
.report-summary p { margin-top: 8px; color: #50635a; font-size: 12px; }
.report-facts { padding: 17px; border: 1px solid var(--line); border-radius: 8px; background: #eaf3ec; }
.fact-row { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(88,126,103,.18); color: #698076; font-size: 11px; }
.fact-row strong { color: var(--ink); font-size: 13px; }
.fact-row .ok-text { color: var(--mint-deep); }
.fact-note { margin: 21px 0 3px; color: #748a7f; font-size: 11px; }

.boundary-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.boundary-card { min-height: 250px; padding: 22px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.boundary-card.allowed { border-top: 3px solid var(--mint-deep); }
.boundary-card.denied { border-top: 3px solid var(--coral); }
.boundary-card.human { border-top: 3px solid var(--gold); }
.boundary-icon { display: grid; place-items: center; width: 27px; height: 27px; margin-bottom: 27px; border-radius: 6px; background: #e2f1e6; color: var(--mint-deep); font-weight: 900; }
.denied .boundary-icon { background: var(--coral-soft); color: #bd543f; }
.human .boundary-icon { background: #fff1cc; color: #a67614; }
.boundary-card h3 { margin-bottom: 14px; font-size: 18px; }
.boundary-card ul { margin: 0; padding-left: 17px; color: var(--muted); font-size: 12px; }
.boundary-card li { margin: 7px 0; }

.footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 115px; padding-top: 25px; padding-bottom: 32px; border-top: 1px solid var(--line); }
.footer strong { display: block; margin-bottom: 2px; font-size: 13px; }
.footer span { color: var(--muted); font-size: 11px; }
.footer .text-link { font-size: 11px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 38px; padding-top: 56px; }
  .hero-visual { max-width: 650px; }
  .coverage-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-grid, .report-layout { grid-template-columns: 1fr; }
  .report-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 20px; }
  .fact-note { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .topbar { height: 62px; }
  .topbar-meta .text-link { display: none; }
  .section-shell { width: min(100% - 28px, 1180px); }
  .hero { min-height: auto; padding-top: 44px; padding-bottom: 48px; }
  h1 { font-size: clamp(35px, 11vw, 53px); }
  .hero-lede { font-size: 15px; }
  .hero-note { align-items: flex-start; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-right: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .demo-section, .coverage, .workflow, .report-section, .boundary-section { padding-top: 82px; }
  .section-heading { display: block; }
  .heading-side { margin-top: 14px; text-align: left; }
  .section-tag { display: inline-block; margin-top: 14px; }
  .demo-console, .run-panel { min-height: auto; padding: 15px; }
  .conversation { min-height: 260px; padding-top: 20px; }
  .coverage-grid, .boundary-grid { grid-template-columns: 1fr; }
  .coverage-card { min-height: 190px; }
  .coverage-number { margin-bottom: 22px; }
  .coverage-card p { min-height: auto; }
  .workflow-track { grid-template-columns: 1fr 1fr; }
  .workflow-step, .workflow-step + .workflow-step { min-height: 180px; padding: 18px 13px 18px 0; }
  .workflow-step:nth-child(2n) { padding-left: 13px; border-right: 0; }
  .workflow-step:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .report-meta { align-items: flex-start; flex-direction: column; }
  .report-window { grid-template-columns: 1fr; }
  .report-window small { grid-column: 1; text-align: left; }
  .report-summary { grid-template-columns: 1fr; gap: 2px; }
  .report-summary p { margin-top: 4px; }
  .report-facts { display: block; }
  .footer { align-items: flex-start; flex-direction: column; margin-top: 80px; }
}
