:root {
  --bg: #ffffff;
  --surface: #f7f9fc;
  --surface-2: #eef3f9;
  --ink: #10233f;
  --ink-2: #33465f;
  --muted: #64748b;
  --line: #dfe6ef;
  --line-2: #cbd7e6;
  --brand: #185fa5;
  --brand-dark: #0c447c;
  --brand-soft: #e6f1fb;
  --ok: #0f6e56;
  --ok-soft: #e1f5ee;
  --warn: #854f0b;
  --warn-soft: #faeeda;
  --radius: 12px;
  --radius-sm: 8px;
  --max: 1140px;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; line-height: 1.35; letter-spacing: -0.01em; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 17px; }
p { margin: 0 0 14px; }
ul { margin: 0; padding-left: 20px; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 28px; }
.section { padding: 76px 0; border-top: 1px solid var(--line); }
.section.alt { background: var(--surface); }
.eyebrow {
  display: inline-block; font-size: 12px; letter-spacing: 0.08em;
  color: var(--brand-dark); background: var(--brand-soft);
  border: 1px solid #b5d4f4; border-radius: 999px;
  padding: 3px 12px; margin-bottom: 16px; font-weight: 500;
}
.lead { color: var(--ink-2); font-size: 16px; max-width: 780px; }
.section-head { margin-bottom: 36px; }
.section-head h2 { margin-bottom: 12px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }

.skip { position: absolute; left: -9999px; top: 8px; background: #fff; padding: 8px 14px; z-index: 99; }
.skip:focus { left: 12px; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: saturate(140%) blur(8px);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 64px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 600; font-size: 16px; white-space: nowrap; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 28px; height: 28px; border-radius: 7px;
  background: var(--brand); color: #fff;
  display: grid; place-items: center; font-size: 14px; font-weight: 600;
}
.logo-sub { color: var(--muted); font-weight: 400; font-size: 12px; border-left: 1px solid var(--line-2); padding-left: 10px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; align-items: center; }
.nav-links a { color: var(--ink-2); font-size: 14px; white-space: nowrap; }
.nav-links a.active { color: var(--brand); font-weight: 600; }
.nav-cta {
  border: 1px solid var(--brand); color: var(--brand) !important;
  border-radius: var(--radius-sm); padding: 7px 14px; font-weight: 500;
}
.nav-cta:hover { background: var(--brand-soft); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line-2); border-radius: 7px; padding: 6px 10px; color: var(--ink); cursor: pointer; font-size: 14px; }

/* ---------- hero ---------- */
.hero { padding: 84px 0 64px; background: linear-gradient(0deg, #fff 0%, #f7faff 100%); }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 18px; font-size: 44px; }
.hero h1 .accent { color: var(--brand); }
.hero .sub { font-size: 17px; color: var(--ink-2); max-width: 620px; margin-bottom: 12px; }
.hero .note { font-size: 13px; color: var(--muted); margin-bottom: 28px; }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); padding: 11px 20px;
  font-size: 14px; font-weight: 500; border: 1px solid transparent; cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); text-decoration: none; }
.hero-panel {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; box-shadow: 0 1px 2px rgba(16,35,63,0.04);
}
.hero-panel h3 { font-size: 14px; margin-bottom: 16px; color: var(--ink-2); }
.formula { display: grid; gap: 10px; }
.formula-row { display: flex; align-items: center; gap: 12px; font-size: 13px; }
.formula-row .k { width: 76px; flex: none; color: var(--muted); }
.formula-row .v { font-family: var(--mono); font-size: 12px; color: var(--brand-dark); background: var(--surface); border: 1px solid var(--line); padding: 3px 8px; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-top: 48px; }
.stat { background: #fff; padding: 20px 22px; }
.stat .n { font-size: 26px; font-weight: 600; color: var(--brand-dark); line-height: 1.2; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 4px; }

/* ---------- generic grids ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-2); font-size: 14px; margin-bottom: 0; }
.card .tag { display: inline-block; font-family: var(--mono); font-size: 11px; color: var(--brand-dark); background: var(--brand-soft); border-radius: 5px; padding: 2px 7px; margin-bottom: 12px; }
.section.alt .card { background: #fff; }

.compare { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.compare th { background: var(--surface); font-size: 13px; font-weight: 600; color: var(--ink-2); }
.compare tr:last-child td { border-bottom: none; }
.compare td:first-child { color: var(--muted); width: 22%; }
.compare .good { color: var(--ok); }

/* ---------- architecture ---------- */
.layers { display: grid; gap: 8px; max-width: 860px; }
.layer { display: grid; grid-template-columns: 88px 1fr; gap: 16px; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 16px; background: #fff; }
.layer .lv { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border-radius: 6px; padding: 5px 0; text-align: center; }
.layer .lt { font-size: 14px; font-weight: 500; }
.layer .ld { font-size: 13px; color: var(--muted); }
.layer.hl { border-color: #85b7eb; background: #f4f9ff; }
.layer.ext { border-style: dashed; }

/* ---------- demo ---------- */
.demo-note { display: flex; align-items: flex-start; gap: 10px; background: var(--warn-soft); border: 1px solid #efc775; color: #633806; border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; margin-bottom: 22px; max-width: 900px; }
.demo-note b { font-weight: 600; }
.browser { border: 1px solid var(--line-2); border-radius: var(--radius); overflow: hidden; background: #fff; box-shadow: 0 2px 8px rgba(16,35,63,0.05); }
.browser-bar { display: flex; align-items: center; gap: 8px; background: var(--surface-2); border-bottom: 1px solid var(--line); padding: 10px 14px; }
.dots { display: flex; gap: 5px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: #c9d4e2; display: block; }
.addr { font-family: var(--mono); font-size: 11px; color: var(--muted); background: #fff; border: 1px solid var(--line); border-radius: 5px; padding: 4px 10px; margin-left: 8px; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge-demo { font-size: 11px; color: var(--warn); background: var(--warn-soft); border: 1px solid #efc775; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.console { display: grid; grid-template-columns: 208px 1fr; min-height: 430px; }
.console-side { background: #10233f; color: #c5d4e6; padding: 16px 10px; }
.console-side .cs-title { font-size: 11px; letter-spacing: 0.08em; color: #7f9bbd; padding: 0 10px 10px; }
.mod-btn { display: block; width: 100%; text-align: left; background: none; border: 0; color: #c5d4e6; font-family: inherit; font-size: 13px; padding: 9px 10px; border-radius: 6px; cursor: pointer; }
.mod-btn:hover { background: rgba(255,255,255,0.07); }
.mod-btn.on { background: #185fa5; color: #fff; }
.mod-btn .mid { font-family: var(--mono); font-size: 11px; opacity: 0.7; margin-right: 8px; }
.console-main { padding: 22px 24px; min-width: 0; }
.console-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 6px; }
.console-head h3 { font-size: 18px; }
.console-head .ro { font-size: 11px; color: var(--ok); background: var(--ok-soft); border: 1px solid #9fe1cb; border-radius: 5px; padding: 3px 8px; white-space: nowrap; }
.console-desc { color: var(--muted); font-size: 13px; margin-bottom: 18px; }
.kpis { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 14px; background: var(--surface); min-width: 108px; }
.kpi .kn { font-size: 18px; font-weight: 600; color: var(--brand-dark); }
.kpi .kl { font-size: 11px; color: var(--muted); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.data { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 520px; }
table.data th { background: var(--surface); color: var(--ink-2); font-weight: 600; text-align: left; padding: 9px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 9px 12px; border-bottom: 1px solid #eef2f7; color: var(--ink-2); }
table.data tr:last-child td { border-bottom: none; }
.pill { display: inline-block; font-size: 11px; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line-2); color: var(--ink-2); white-space: nowrap; }
.pill.ok { color: var(--ok); background: var(--ok-soft); border-color: #9fe1cb; }
.pill.warn { color: var(--warn); background: var(--warn-soft); border-color: #efc775; }
.pill.info { color: var(--brand-dark); background: var(--brand-soft); border-color: #b5d4f4; }
.console-foot { font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 18px; }

/* ---------- proof / roadmap / boundaries ---------- */
.proof-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 20px; }
.metric-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.metric { border-left: 3px solid var(--brand); padding: 2px 0 2px 12px; }
.metric .mn { font-size: 20px; font-weight: 600; color: var(--brand-dark); line-height: 1.2; }
.metric .ml { font-size: 12px; color: var(--muted); }
.scenes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.scene { font-size: 13px; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: 5px 12px; color: var(--ink-2); }

.roadmap { display: grid; gap: 0; max-width: 900px; }
.rm { display: grid; grid-template-columns: 62px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.rm:last-child { border-bottom: none; }
.rm .rp { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--brand-dark); background: var(--brand-soft); border-radius: 6px; padding: 4px 0; text-align: center; height: 26px; }
.rm.done .rp { color: var(--ok); background: var(--ok-soft); }
.rm h3 { font-size: 15px; margin-bottom: 3px; }
.rm p { font-size: 13px; color: var(--muted); margin: 0; }

.boundaries { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.boundary { display: flex; gap: 10px; font-size: 14px; color: var(--ink-2); align-items: flex-start; }
.boundary .bx { flex: none; width: 18px; height: 18px; border-radius: 5px; background: var(--warn-soft); color: var(--warn); font-size: 12px; display: grid; place-items: center; font-weight: 600; margin-top: 2px; }

.faq { max-width: 860px; }
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; margin-bottom: 10px; padding: 0 18px; }
.faq summary { cursor: pointer; padding: 14px 0; font-size: 15px; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq .ans { padding: 0 0 16px; font-size: 14px; color: var(--ink-2); }
.faq .ans p:last-child { margin-bottom: 0; }

.cta { background: #10233f; color: #fff; border-top: none; }
.cta h2 { color: #fff; }
.cta .lead { color: #c5d4e6; }
.cta-box { display: flex; justify-content: space-between; align-items: center; gap: 28px; flex-wrap: wrap; }
.cta .btn-primary { background: #fff; color: #10233f; }
.cta .btn-primary:hover { background: var(--brand-soft); color: var(--brand-dark); }

footer { border-top: 1px solid var(--line); padding: 28px 0; background: var(--surface); }
.foot-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.foot-inner a { color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .proof-grid { grid-template-columns: 1fr; gap: 32px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .nav-links { gap: 14px; }
  .nav-links a { font-size: 13px; }
  h1, .hero h1 { font-size: 34px; }
}
@media (max-width: 680px) {
  .wrap { padding: 0 18px; }
  .section { padding: 54px 0; }
  .nav-inner { height: 56px; }
  .nav-toggle { display: block; margin-left: auto; }
  .nav-links { display: none; position: absolute; top: 56px; left: 0; right: 0; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 18px; flex-direction: column; align-items: stretch; gap: 2px; }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 8px 4px; }
  .nav-cta { text-align: center; }
  .grid-2, .grid-3, .boundaries, .metric-list { grid-template-columns: 1fr; }
  .console { grid-template-columns: 1fr; }
  .console-side { display: flex; overflow-x: auto; gap: 4px; padding: 10px; }
  .console-side .cs-title { display: none; }
  .mod-btn { width: auto; white-space: nowrap; flex: none; }
  .console-main { padding: 18px 14px; }
  .hero { padding: 56px 0 44px; }
  h1, .hero h1 { font-size: 29px; }
  h2 { font-size: 23px; }
  .layer { grid-template-columns: 64px 1fr; gap: 10px; }
  .rm { grid-template-columns: 52px 1fr; gap: 12px; }
}
