:root {
  color-scheme: dark;
  --bg: #07111f;
  --bg-deep: #040a13;
  --panel: #0d1a2b;
  --panel-2: #122238;
  --line: rgba(148, 163, 184, 0.2);
  --line-strong: rgba(148, 163, 184, 0.36);
  --text: #f8fafc;
  --muted: #b8c4d4;
  --quiet: #7f91a8;
  --blue: #38bdf8;
  --blue-strong: #0ea5e9;
  --teal: #2dd4bf;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --radius: 18px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  font-family: "Segoe UI", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 8% -10%, rgba(14, 165, 233, 0.14), transparent 28rem),
    radial-gradient(circle at 100% 18%, rgba(45, 212, 191, 0.08), transparent 24rem),
    var(--bg);
  color: var(--text);
  line-height: 1.65;
}
a { color: inherit; }
button, select { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button:focus-visible, a:focus-visible, select:focus-visible {
  outline: 3px solid rgba(56, 189, 248, 0.85);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: -5rem;
  z-index: 1000;
  padding: 0.65rem 1rem;
  border-radius: 10px;
  background: white;
  color: #07111f;
}
.skip-link:focus { top: 1rem; }

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  width: min(1180px, calc(100% - 2rem));
  height: 64px;
  margin: 1rem auto 0;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(6, 15, 27, 0.88);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}
.brand { display: inline-flex; align-items: center; gap: 0.65rem; text-decoration: none; font-weight: 750; letter-spacing: 0.01em; }
.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  color: #04101d;
  font-size: 0.78rem;
  font-weight: 900;
}
.nav-links { margin-left: auto; display: flex; align-items: center; gap: 0.35rem; }
.nav-links a { padding: 0.5rem 0.75rem; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 0.9rem; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(148, 163, 184, 0.09); }
.header-badge { padding: 0.38rem 0.68rem; border: 1px solid rgba(56, 189, 248, 0.3); border-radius: 999px; color: #bae6fd; background: rgba(14, 165, 233, 0.1); font-size: 0.78rem; }

main { overflow: hidden; }
.hero, .section, footer { width: min(1180px, calc(100% - 2rem)); margin-inline: auto; }
.hero { min-height: 700px; padding: 7rem 0 5.5rem; display: grid; grid-template-columns: 1.02fr 0.98fr; gap: 4.5rem; align-items: center; }
.eyebrow { margin: 0 0 1rem; color: #7dd3fc; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.15em; text-transform: uppercase; }
h1, h2, h3, h4, p { margin-top: 0; }
h1 { margin-bottom: 1.4rem; font-size: clamp(2.8rem, 5.5vw, 5.1rem); line-height: 1.08; letter-spacing: -0.045em; }
h1 span { background: linear-gradient(90deg, #7dd3fc, #5eead4); background-clip: text; -webkit-background-clip: text; color: transparent; }
.hero-lead { max-width: 650px; margin-bottom: 2rem; color: var(--muted); font-size: 1.08rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 1.5rem; }
.button { min-height: 44px; padding: 0.68rem 1.1rem; display: inline-flex; align-items: center; justify-content: center; border: 1px solid transparent; border-radius: 10px; text-decoration: none; font-weight: 750; cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.button.primary { background: #0ea5e9; color: #03111e; }
.button.primary:hover { background: #38bdf8; }
.button.primary:disabled { opacity: .42; cursor: not-allowed; }
.button.secondary { border-color: var(--line-strong); background: rgba(15, 29, 48, 0.7); color: var(--text); }
.button.secondary:hover { border-color: rgba(56, 189, 248, 0.52); background: rgba(18, 42, 67, 0.9); }
.hero-notice { display: flex; gap: .65rem; align-items: flex-start; max-width: 680px; color: var(--quiet); font-size: .82rem; }
.hero-notice svg { flex: 0 0 auto; width: 18px; margin-top: 3px; fill: var(--blue); }

.hero-panel { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, rgba(18, 34, 56, 0.96), rgba(7, 17, 31, 0.96)); box-shadow: var(--shadow); }
.hero-panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(125, 211, 252, .8), transparent); }
.panel-topline { min-height: 48px; padding: 0 1rem; display: flex; align-items: center; gap: .55rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(52, 211, 153, .11); }
.readonly-tag { margin-left: auto; color: #a7f3d0; }
.metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); }
.hero-metrics article { min-height: 112px; padding: 1.15rem; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero-metrics article:nth-child(2n) { border-right: 0; }
.hero-metrics article:nth-child(n+3) { border-bottom: 0; }
.hero-metrics strong { font-size: 1.65rem; line-height: 1.2; letter-spacing: -.03em; }
.hero-metrics span { color: var(--quiet); font-size: .82rem; }
.decision-strip { margin: 1rem; padding: .9rem 1rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 13px; background: rgba(4, 10, 19, .55); }
.decision-strip div:not(.decision-arrow) { display: flex; flex-direction: column; }
.decision-strip span { color: var(--quiet); font-size: .72rem; }
.decision-strip strong { margin-top: .12rem; font-size: .86rem; }
.negative { color: #fda4af !important; }
.decision-arrow { color: var(--blue); }
.mini-chart { height: 165px; padding: 0 1rem 1rem; }
.mini-chart svg { width: 100%; height: 100%; overflow: visible; }
.mini-chart .grid-line { fill: none; stroke: rgba(148,163,184,.12); stroke-width: 1; }
.mini-chart .area { fill: url(#heroGradient); }
.mini-chart .line { fill: none; stroke: var(--blue); stroke-width: 3; vector-effect: non-scaling-stroke; }

.section { padding: 6.5rem 0; }
.section.compact { padding-top: 4rem; }
.section-heading { margin-bottom: 2.5rem; }
.section-heading.centered { max-width: 760px; margin-inline: auto; margin-bottom: 3rem; text-align: center; }
.section-heading h2 { margin-bottom: .7rem; font-size: clamp(2rem, 3.5vw, 3.2rem); line-height: 1.14; letter-spacing: -.035em; }
.section-heading > p:last-child { color: var(--muted); }
.split-heading { display: grid; grid-template-columns: 1.15fr .85fr; gap: 4rem; align-items: end; }
.split-heading > p { margin-bottom: .35rem; }
.journey-grid, .ownership-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.journey-card, .ownership-grid article { padding: 1.4rem; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13, 26, 43, .72); }
.step-number { color: var(--blue); font-size: .8rem; font-weight: 800; }
.journey-card h3, .ownership-grid h3 { margin: .8rem 0 .5rem; font-size: 1.03rem; }
.journey-card p, .ownership-grid p { margin: 0; color: var(--muted); font-size: .88rem; }

.demo-section { padding-top: 7rem; }
.demo-shell { display: grid; grid-template-columns: 265px minmax(0, 1fr); overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: rgba(6, 15, 27, .95); box-shadow: var(--shadow); }
.demo-sidebar { padding: 1.25rem; border-right: 1px solid var(--line); background: #091524; }
.control-group label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .8rem; font-weight: 700; }
.control-group select { width: 100%; min-height: 44px; padding: .55rem .7rem; border: 1px solid var(--line-strong); border-radius: 10px; background: #f8fafc; color: #0f172a; cursor: pointer; }
.case-meta { margin: 1rem 0 1.35rem; padding: .8rem; display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: 12px; background: rgba(15, 30, 49, .75); }
.case-meta span { color: var(--quiet); font-size: .7rem; }
.case-meta strong { margin-bottom: .55rem; font-size: .78rem; }
.case-meta strong:last-child { margin-bottom: 0; }
.progress-list { padding: 0; margin: 0; list-style: none; }
.progress-list li { position: relative; min-height: 66px; display: flex; gap: .75rem; align-items: flex-start; color: var(--quiet); }
.progress-list li::after { content: ""; position: absolute; left: 14px; top: 31px; bottom: 2px; width: 1px; background: var(--line); }
.progress-list li:last-child::after { display: none; }
.progress-list li > span { position: relative; z-index: 1; width: 29px; height: 29px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; background: #091524; font-size: .75rem; font-weight: 800; }
.progress-list li strong { display: block; color: var(--muted); font-size: .85rem; }
.progress-list li small { font-size: .7rem; }
.progress-list li.active > span, .progress-list li.done > span { border-color: var(--blue); background: rgba(14, 165, 233, .18); color: #bae6fd; }
.progress-list li.active strong, .progress-list li.done strong { color: var(--text); }
.text-button { padding: .45rem 0; border: 0; background: transparent; color: #7dd3fc; cursor: pointer; font-size: .78rem; }
.text-button:hover { color: white; }

.demo-main { min-width: 0; padding: 1.4rem 1.5rem 1.7rem; }
.demo-title-row { display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.demo-kicker { margin-bottom: .25rem; color: var(--quiet); font-size: .7rem; font-weight: 800; letter-spacing: .12em; }
.demo-title-row h3 { margin-bottom: 0; font-size: 1.3rem; }
.stage-pill { flex: 0 0 auto; padding: .35rem .62rem; border: 1px solid rgba(56, 189, 248, .26); border-radius: 999px; background: rgba(14, 165, 233, .1); color: #bae6fd; font-size: .72rem; }
.chart-legend { margin: 1.2rem 0 .6rem; display: flex; flex-wrap: wrap; gap: 1rem; color: var(--muted); font-size: .74rem; }
.chart-legend span { display: inline-flex; align-items: center; gap: .38rem; }
.chart-legend span.muted { opacity: .36; }
.legend-line { width: 20px; height: 3px; border-radius: 999px; background: var(--blue); }
.legend-line.flow { background: var(--teal); }
.legend-block { width: 14px; height: 10px; border: 1px dashed rgba(148,163,184,.65); background: rgba(148,163,184,.1); }
.chart-wrap { position: relative; width: 100%; height: 370px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #07111f; }
.chart-wrap svg { width: 100%; height: 100%; }
.chart-caption { padding: .5rem .2rem 0; color: var(--quiet); font-size: .75rem; }
.chart-grid { stroke: rgba(148,163,184,.14); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart-axis { fill: #7f91a8; font-size: 12px; }
.price-path, .flow-path { fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-width: 3; vector-effect: non-scaling-stroke; }
.price-path { stroke: var(--blue); }
.flow-path { stroke: var(--teal); }
.price-area { fill: url(#priceGradient); opacity: .55; }
.future-zone { fill: rgba(148,163,184,.08); stroke: rgba(148,163,184,.35); stroke-dasharray: 7 7; vector-effect: non-scaling-stroke; }
.cutoff-line { stroke: #fbbf24; stroke-width: 1.5; stroke-dasharray: 5 5; vector-effect: non-scaling-stroke; }
.chart-label { fill: #b8c4d4; font-size: 12px; font-weight: 700; }
.future-label { fill: #94a3b8; font-size: 14px; font-weight: 750; }
.interaction-panel { margin-top: 1rem; }
.judgment-block { padding: 1rem; border: 1px solid var(--line); border-radius: 14px; background: rgba(13, 26, 43, .7); }
.judgment-block p { margin-bottom: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .4rem 1rem; }
.judgment-block p span { color: var(--quiet); font-size: .78rem; }
.choice-row { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice-row button { min-width: 86px; min-height: 40px; border: 1px solid var(--line-strong); border-radius: 9px; background: #0a1728; color: var(--muted); cursor: pointer; transition: background .2s, border-color .2s, color .2s; }
.choice-row button:hover { border-color: rgba(56,189,248,.55); color: white; }
.choice-row button.selected { border-color: var(--blue); background: rgba(14,165,233,.18); color: white; }
.action-button { margin-top: .85rem; }
.hidden { display: none !important; }
.outcome-card { padding: 1rem; display: grid; grid-template-columns: 42px 1fr; gap: .9rem; border: 1px solid rgba(45,212,191,.28); border-radius: 14px; background: rgba(13, 52, 58, .34); }
.outcome-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(45, 212, 191, .16); }
.outcome-icon svg { width: 23px; fill: var(--teal); }
.outcome-label { margin: 0; color: #99f6e4; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.outcome-card h4 { margin: .2rem 0 .35rem; font-size: 1.08rem; }
.outcome-card p { margin-bottom: .5rem; color: var(--muted); font-size: .86rem; }
.comparison { display: flex; flex-wrap: wrap; gap: .45rem; color: #ccfbf1; font-size: .78rem; }
.comparison span { padding: .25rem .5rem; border-radius: 999px; background: rgba(45,212,191,.1); }

.evidence-section { padding-top: 7rem; }
.evidence-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.evidence-card { padding: 1.45rem; border: 1px solid var(--line); border-radius: var(--radius); background: linear-gradient(150deg, rgba(18,34,56,.88), rgba(9,21,36,.88)); }
.evidence-card-head { display: flex; justify-content: space-between; gap: .7rem; align-items: center; }
.evidence-card-head span { padding: .22rem .52rem; border-radius: 999px; color: #a7f3d0; background: rgba(52,211,153,.1); font-size: .7rem; font-weight: 800; }
.stop-card .evidence-card-head span { color: #fecdd3; background: rgba(251,113,133,.11); }
.neutral-card .evidence-card-head span { color: #bae6fd; background: rgba(56,189,248,.1); }
.evidence-card-head strong { color: var(--muted); font-size: .8rem; }
.evidence-number { margin: 1.25rem 0 .7rem; font-size: 2.4rem; font-weight: 850; letter-spacing: -.04em; }
.evidence-number span { margin-left: .25rem; color: var(--quiet); font-size: .75rem; font-weight: 600; letter-spacing: 0; }
.evidence-card > p:not(.evidence-number) { color: var(--muted); font-size: .88rem; }
.evidence-card ul { margin: 1rem 0 0; padding-left: 1.1rem; color: var(--quiet); font-size: .79rem; }
.evidence-card li + li { margin-top: .35rem; }
.risk-panel { margin-top: 1rem; padding: 1.6rem; display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(13,26,43,.72); }
.risk-copy h3 { margin-bottom: .7rem; font-size: 1.55rem; }
.risk-copy > p:not(.eyebrow) { color: var(--muted); }
.risk-verdict { padding: .8rem .9rem; display: flex; flex-direction: column; border-left: 3px solid var(--amber); background: rgba(251,191,36,.06); }
.risk-verdict strong { color: #fde68a; font-size: .78rem; }
.risk-verdict span { color: var(--muted); font-size: .82rem; }
.bar-row + .bar-row { margin-top: 1.15rem; }
.bar-row > div:first-child { margin-bottom: .4rem; display: flex; justify-content: space-between; gap: 1rem; color: var(--muted); font-size: .8rem; }
.bar-row strong { color: var(--text); }
.bar-track { height: 10px; overflow: hidden; border-radius: 999px; background: rgba(148,163,184,.12); }
.bar-track span { display: block; width: var(--width); height: 100%; border-radius: inherit; background: #64748b; }
.bar-row.highlight .bar-track span { background: linear-gradient(90deg, var(--blue-strong), var(--teal)); }
.warning-row .bar-track span { background: rgba(251,113,133,.72); }
.risk-note { margin: 1rem 0 0; color: var(--quiet); font-size: .75rem; }

.ownership-grid article > span { color: #7dd3fc; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.boundary-section { margin-bottom: 5rem; padding: 2rem; display: grid; grid-template-columns: .8fr 1.2fr; gap: 3rem; align-items: center; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(135deg, rgba(14,165,233,.08), rgba(45,212,191,.04)); }
.boundary-copy h2 { margin-bottom: .7rem; font-size: 2rem; line-height: 1.2; }
.boundary-copy > p:last-child { margin-bottom: 0; color: var(--muted); }
.boundary-table { overflow: hidden; border: 1px solid var(--line); border-radius: 13px; }
.table-row { min-height: 48px; display: grid; grid-template-columns: .8fr 1fr 1fr; align-items: center; }
.table-row + .table-row { border-top: 1px solid var(--line); }
.table-row span, .table-row strong { padding: .7rem .8rem; font-size: .78rem; }
.table-row span { color: var(--muted); }
.table-row strong { color: #a7f3d0; }
.table-head { background: rgba(148,163,184,.08); }
.table-head span { color: var(--text); font-weight: 800; }

footer { min-height: 110px; padding: 1.5rem 0 2.5rem; display: flex; justify-content: space-between; gap: 2rem; align-items: flex-start; border-top: 1px solid var(--line); }
footer div { display: flex; flex-direction: column; }
footer span, footer p { color: var(--quiet); font-size: .76rem; }
footer p { max-width: 520px; margin: 0; text-align: right; }

@media (max-width: 1024px) {
  .hero { grid-template-columns: 1fr; gap: 3rem; padding-top: 5.5rem; }
  .hero-copy { max-width: 780px; }
  .journey-grid, .ownership-grid { grid-template-columns: repeat(2, 1fr); }
  .demo-shell { grid-template-columns: 230px minmax(0, 1fr); }
  .evidence-grid { grid-template-columns: 1fr; }
  .risk-panel { grid-template-columns: 1fr; gap: 2rem; }
}

@media (max-width: 768px) {
  .site-header { top: .55rem; width: calc(100% - 1rem); margin-top: .55rem; }
  .nav-links { display: none; }
  .header-badge { margin-left: auto; }
  .hero, .section, footer { width: min(100% - 1.2rem, 1180px); }
  .hero { min-height: 0; padding: 4.5rem 0 3.5rem; }
  h1 { font-size: clamp(2.5rem, 13vw, 4rem); }
  .section { padding: 4.5rem 0; }
  .split-heading { grid-template-columns: 1fr; gap: .5rem; }
  .journey-grid, .ownership-grid { grid-template-columns: 1fr; }
  .demo-shell { grid-template-columns: 1fr; }
  .demo-sidebar { border-right: 0; border-bottom: 1px solid var(--line); }
  .case-meta { grid-template-columns: repeat(3, 1fr); gap: .65rem; }
  .case-meta strong { margin: 0; }
  .progress-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .4rem; }
  .progress-list li { min-height: 0; display: block; text-align: center; }
  .progress-list li::after { display: none; }
  .progress-list li > span { margin: 0 auto .35rem; }
  .progress-list li small { display: none; }
  .demo-main { padding: 1rem; }
  .chart-wrap { height: 320px; }
  .risk-panel, .boundary-section { padding: 1.2rem; }
  .boundary-section { grid-template-columns: 1fr; gap: 1.5rem; }
  footer { flex-direction: column; gap: 1rem; }
  footer p { text-align: left; }
}

@media (max-width: 480px) {
  .brand > span:last-child { display: none; }
  .header-badge { font-size: .7rem; }
  .metric-grid { grid-template-columns: 1fr; }
  .hero-metrics article { border-right: 0; border-bottom: 1px solid var(--line) !important; }
  .hero-metrics article:last-child { border-bottom: 0 !important; }
  .decision-strip { grid-template-columns: 1fr; }
  .decision-arrow { transform: rotate(90deg); justify-self: start; }
  .case-meta { grid-template-columns: 1fr; }
  .demo-title-row { flex-direction: column; }
  .chart-wrap { height: 290px; }
  .chart-legend { gap: .45rem .8rem; }
  .choice-row button { flex: 1; min-width: 72px; }
  .table-row { grid-template-columns: .75fr 1fr 1fr; }
  .table-row span, .table-row strong { padding: .58rem .5rem; font-size: .68rem; overflow-wrap: anywhere; }
}

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