:root {
  color-scheme: dark;
  --navy: #081427;
  --panel: #101e35;
  --panel-2: #142743;
  --ink: #edf5ff;
  --muted: #9db0c9;
  --blue: #4c8dff;
  --cyan: #43dac9;
  --yellow: #ffd064;
  --red: #ff6d79;
  --line: rgba(255,255,255,.1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Microsoft YaHei", sans-serif;
}
a { color: inherit; }
main { overflow: hidden; }
.hero, .demo, .story, footer { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.hero { padding: 26px 0 84px; position: relative; }
.hero::before {
  content: ""; position: absolute; width: 560px; height: 560px; border-radius: 50%;
  right: -180px; top: -250px; background: radial-gradient(circle, rgba(76,141,255,.28), transparent 68%);
  pointer-events: none;
}
nav { display: flex; align-items: center; justify-content: space-between; color: var(--muted); font-size: 14px; }
nav a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.35); padding-bottom: 4px; }
.brand { letter-spacing: .14em; font-weight: 750; color: var(--ink); }
.brand i { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 18px var(--cyan); margin-right: 9px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 70px; align-items: end; padding-top: 92px; }
.eyebrow { color: var(--cyan); font-size: 12px; letter-spacing: .17em; font-weight: 800; margin: 0 0 18px; }
h1 { font-size: clamp(46px, 6.8vw, 84px); line-height: 1.04; letter-spacing: -.055em; margin: 0; max-width: 900px; }
h1 span { color: transparent; -webkit-text-stroke: 1.5px rgba(237,245,255,.55); }
.lead { max-width: 730px; margin: 30px 0 0; color: var(--muted); font-size: 19px; line-height: 1.8; }
.badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.badges span { border: 1px solid var(--line); border-radius: 100px; padding: 9px 13px; color: #c9d8eb; font-size: 13px; background: rgba(255,255,255,.025); }
.boundary { border-left: 2px solid var(--yellow); padding: 6px 0 6px 24px; color: var(--muted); line-height: 1.7; font-size: 14px; }
.boundary strong { color: var(--yellow); text-transform: uppercase; letter-spacing: .12em; font-size: 12px; }

.demo { background: var(--panel); border: 1px solid var(--line); border-radius: 30px; padding: 34px; box-shadow: 0 40px 100px rgba(0,0,0,.25); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -.035em; }
.controls { display: flex; gap: 10px; align-items: center; }
button, select { font: inherit; color: var(--ink); background: var(--panel-2); border: 1px solid var(--line); border-radius: 11px; padding: 10px 15px; cursor: pointer; }
button { background: var(--blue); border-color: transparent; font-weight: 750; }
button.secondary { background: transparent; }
.controls label { color: var(--muted); font-size: 13px; }
.controls select { margin-left: 6px; padding: 9px 8px; }
.stage-wrap { position: relative; background: #eef5ff; border-radius: 18px; overflow: hidden; }
canvas { width: 100%; height: auto; display: block; aspect-ratio: 3 / 2; }
.legend { position: absolute; display: flex; flex-wrap: wrap; gap: 14px; left: 18px; bottom: 14px; padding: 8px 11px; border-radius: 9px; background: rgba(8,20,39,.82); backdrop-filter: blur(8px); color: #dce8f6; font-size: 11px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 15px; height: 3px; border-radius: 2px; background: var(--blue); }
.legend .local { background: var(--cyan); }
.legend .dynamic { width: 8px; height: 8px; border-radius: 50%; background: var(--red); }
#timeline { width: 100%; accent-color: var(--cyan); margin: 22px 0 8px; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.metrics article { border-top: 1px solid var(--line); padding-top: 18px; }
.metrics span { display: block; font-size: 28px; font-weight: 760; }
.metrics small { color: var(--muted); }

.story { padding: 110px 0; display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; }
.story ol { margin: 0; padding: 0; list-style: none; }
.story li { display: grid; grid-template-columns: 56px 1fr; gap: 20px; padding: 0 0 28px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.story li b { color: var(--cyan); font: 700 14px/1 monospace; padding-top: 6px; }
.story strong { font-size: 21px; }
.story p { color: var(--muted); line-height: 1.7; margin: 8px 0 0; }
footer { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--muted); font-size: 12px; }

@media (max-width: 800px) {
  .hero-grid, .story { grid-template-columns: 1fr; gap: 42px; }
  .hero-grid { padding-top: 60px; }
  .section-head { align-items: flex-start; flex-direction: column; }
  .demo { padding: 20px; border-radius: 20px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  footer { flex-direction: column; }
}
