:root {
  --bg: #f4f5f7;
  --paper: #ffffff;
  --ink: #111827;
  --muted: #5d6678;
  --line: #dfe3ea;
  --night: #0a0f1f;
  --night-2: #121a2d;
  --cyan: #62e6d3;
  --blue: #5c8dff;
  --orange: #ff9b5c;
  --max: 1180px;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: "Cascadia Code", "JetBrains Mono", Consolas, monospace; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.hero { background: radial-gradient(circle at 78% 14%, #1f3659 0, transparent 31%), linear-gradient(145deg, #080d19 0%, #0d1528 60%, #101b31 100%); color: #f7f9ff; overflow: hidden; }
.nav { height: 76px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid rgba(255,255,255,.11); }
.brand { font-weight: 750; letter-spacing: .02em; display: flex; align-items: center; gap: 10px; }
.brand-mark { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 1px solid rgba(98,230,211,.55); border-radius: 9px; color: var(--cyan); font-size: 22px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14px; color: #c9d1e4; }
.nav-links a:hover { color: #fff; }
.nav-source { border: 1px solid rgba(255,255,255,.22); padding: 8px 13px; border-radius: 9px; }

.hero-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 54px; padding-block: 92px 70px; }
.eyebrow, .section-kicker { color: #2c7d73; font-weight: 800; letter-spacing: .14em; font-size: 12px; text-transform: uppercase; }
.hero .eyebrow { color: var(--cyan); }
h1 { margin: 12px 0 24px; font-size: clamp(44px, 5.2vw, 76px); line-height: 1.04; letter-spacing: -.045em; }
h1 span { color: #a8b8d7; }
.lead { max-width: 620px; color: #bdc8dc; font-size: 18px; line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 0 19px; border-radius: 10px; font-weight: 750; font-size: 14px; transition: transform .2s ease, background .2s ease; }
.button:hover { transform: translateY(-2px); }
.primary { background: var(--cyan); color: #07131b; }
.secondary { border: 1px solid rgba(255,255,255,.25); color: #e7ecf7; }
.meta { color: #77849d; font-size: 13px; margin-top: 24px; }

.image-card { border: 1px solid rgba(255,255,255,.15); border-radius: 18px; overflow: hidden; background: #111828; box-shadow: 0 35px 80px rgba(0,0,0,.38); }
.hero-visual { transform: perspective(1200px) rotateY(-4deg) rotateX(2deg); }
.hero-visual img { aspect-ratio: 16 / 9; object-fit: cover; }
.image-card figcaption { margin: 0; padding: 12px 15px; color: #aeb9cd; font-size: 12px; border-top: 1px solid rgba(255,255,255,.1); }
.live-dot { display: inline-block; width: 7px; height: 7px; background: var(--cyan); border-radius: 50%; margin-right: 7px; box-shadow: 0 0 12px var(--cyan); }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid rgba(255,255,255,.1); }
.metrics div { padding: 24px 28px; border-right: 1px solid rgba(255,255,255,.1); }
.metrics div:last-child { border-right: 0; }
.metrics strong { display: block; color: #fff; font-size: 24px; letter-spacing: -.02em; }
.metrics span { color: #7f8da6; font-size: 12px; }

.section { padding-block: 96px; }
.section h2 { margin: 12px 0 25px; max-width: 820px; font-size: clamp(32px, 4vw, 52px); line-height: 1.17; letter-spacing: -.035em; }
.section p { color: var(--muted); }
.two-col { display: grid; grid-template-columns: 1.35fr .65fr; gap: 70px; align-items: start; }
.align-end { align-items: end; }
.origin-section { background: var(--paper); border-bottom: 1px solid var(--line); }
.origin-grid { display: grid; grid-template-columns: 1.45fr .55fr; gap: 70px; align-items: start; }
.origin-grid > *, .simulation-grid > *, .reproduce-grid > * { min-width: 0; }
.origin-grid strong { color: #1c514a; }
.origin-note { margin-top: 58px; padding: 28px; border: 1px solid #f0c6ad; border-radius: 14px; background: #fff7f2; }
.origin-note > span { color: #ad4c18; font-size: 10px; font-weight: 900; letter-spacing: .16em; }
.origin-note h3 { margin: 11px 0 7px; font-size: 21px; }
.origin-note p { margin: 0; color: #765749; font-size: 13px; line-height: 1.7; }
.origin-flow { display: grid; grid-template-columns: 1fr auto 1.15fr auto 1fr auto 1fr auto 1.25fr; gap: 10px; align-items: stretch; margin-top: 45px; padding: 20px; border: 1px solid #dce2e9; border-radius: 16px; background: #f2f5f8; }
.origin-node { display: flex; flex-direction: column; justify-content: center; min-height: 112px; padding: 17px; border: 1px solid #d7dde5; border-radius: 11px; background: #fff; }
.origin-node b { display: block; margin-bottom: 7px; font-size: 14px; }
.origin-node span { color: #697488; font-size: 11px; line-height: 1.6; }
.source-node { border-color: #e5bba1; background: #fff8f3; }
.active-node { border-color: #8cddd0; background: #e8faf6; }
.origin-arrow { display: grid; place-items: center; color: #8b96a7; font-weight: 900; }
.branch-arrow { line-height: 2.6; }
.origin-output { display: grid; gap: 8px; }
.origin-output span { display: flex; flex-direction: column; justify-content: center; padding: 12px 15px; border-radius: 9px; background: #10182b; color: #93a1b8; font-size: 11px; line-height: 1.5; }
.origin-output b { color: #fff; font-size: 13px; }
.callout { border-left: 3px solid var(--orange); padding: 4px 0 4px 24px; margin-top: 52px; }
.callout-label { color: #b85118; font-weight: 800; font-size: 12px; letter-spacing: .12em; }
.callout p { margin-bottom: 0; }
.band { background: #e9edf2; border-block: 1px solid #dce1e8; }

.workflow { display: grid; grid-template-columns: repeat(4, 1fr auto) 1fr; gap: 12px; align-items: center; margin-top: 45px; }
.workflow-step { min-height: 190px; padding: 24px; background: rgba(255,255,255,.68); border: 1px solid #d7dde6; border-radius: 14px; }
.workflow-step span { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--night); color: var(--cyan); font-weight: 800; }
.workflow-step h3 { margin: 22px 0 7px; font-size: 18px; }
.workflow-step p { margin: 0; font-size: 13px; line-height: 1.55; }
.workflow-arrow { color: #9aa5b3; font-size: 22px; }

.simulation-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 42px; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: 0 12px 35px rgba(31,41,55,.05); }
.panel h3 { font-size: 25px; margin: 14px 0 9px; }
.chip { color: #2b665e; background: #d8f7f1; padding: 5px 9px; border-radius: 99px; font-size: 10px; letter-spacing: .12em; font-weight: 900; }
.accent-panel { background: #10182b; color: #f7f9ff; border-color: #1f2c47; }
.accent-panel p { color: #aab7cc; }
pre { max-width: 100%; overflow-x: auto; padding: 19px 21px; border-radius: 11px; background: #0e1525; color: #d8e4f5; line-height: 1.65; font-size: 13px; }
.result { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; }
.clean-list { list-style: none; padding: 0; margin: 23px 0 0; }
.clean-list li { display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid rgba(255,255,255,.1); padding: 11px 0; font-size: 13px; }
.clean-list span { color: #8996ad; }
.clean-list strong { color: #fff; text-align: right; }
.chart-card { margin: 28px 0; border: 1px solid var(--line); background: var(--paper); border-radius: 16px; overflow: hidden; }
.chart-card img { width: 100%; }
.chart-card figcaption, .wide-figure figcaption { padding: 15px 20px; color: var(--muted); font-size: 13px; border-top: 1px solid var(--line); }
.table-wrap { width: 100%; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
table { width: 100%; border-collapse: collapse; background: var(--paper); font-variant-numeric: tabular-nums; }
th, td { padding: 14px 18px; text-align: right; border-bottom: 1px solid #e9ecf1; }
th { color: #586174; background: #f7f8fa; font-size: 12px; letter-spacing: .04em; }
tbody tr:last-child td { border-bottom: 0; }

.dark-section { background: var(--night); color: #f4f7ff; }
.dark-section .section-kicker { color: var(--cyan); }
.dark-section p { color: #aab5ca; }
.pullquote { color: #d8e0ef !important; border-left: 2px solid var(--cyan); padding-left: 24px; font-size: 17px; }
.wide-figure { margin: 46px 0 0; border: 1px solid #26314a; border-radius: 16px; overflow: hidden; background: #0c1221; }
.wide-figure img { width: 100%; }
.parts-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 18px; }
.parts-grid article { padding: 22px; background: var(--night-2); border: 1px solid #222d45; border-radius: 12px; }
.parts-grid span { color: var(--cyan); font-family: monospace; font-weight: 800; }
.parts-grid h3 { margin: 10px 0 6px; }
.parts-grid p { font-size: 13px; line-height: 1.6; margin-bottom: 0; }

.stat-strip { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; align-self: end; }
.stat-strip span { padding: 15px 18px; background: #e8ecf2; border-radius: 10px; color: #667084; font-size: 12px; }
.stat-strip strong { display: block; color: #152033; font-size: 24px; }
.light-figure { border-color: var(--line); background: #1e293b; }
.lesson-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 20px; }
.lesson-grid article { padding: 25px; border: 1px solid var(--line); background: var(--paper); border-radius: 13px; }
.lesson-grid span { color: #9da6b6; font-weight: 900; font-size: 12px; }
.lesson-grid h3 { margin: 14px 0 8px; }
.lesson-grid p { margin: 0; font-size: 14px; }

.three-d-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 68px; }
.final-render { margin: 0; transform: rotate(-1deg); }
.check-list { list-style: none; padding: 0; margin-top: 26px; }
.check-list li { position: relative; padding: 9px 0 9px 31px; color: #465166; }
.check-list li::before { content: "✓"; position: absolute; left: 0; top: 8px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #cdf5ed; color: #17675b; font-weight: 900; font-size: 12px; }

.reproduce-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 22px; margin-top: 42px; }
.terminal { overflow: hidden; border-radius: 14px; background: #0b1120; color: #d5dfef; box-shadow: 0 24px 55px rgba(15,23,42,.17); }
.terminal-bar { display: flex; align-items: center; gap: 7px; height: 42px; padding: 0 15px; border-bottom: 1px solid #253049; color: #74829a; font-size: 11px; }
.terminal-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6a6a; }
.terminal-bar i:nth-child(2) { background: #ffca55; }
.terminal-bar i:nth-child(3) { background: #57d98a; }
.terminal-bar span { margin-left: 8px; }
.terminal pre { margin: 0; border-radius: 0; padding: 24px; }
.download-list { display: flex; flex-direction: column; gap: 10px; }
.download-list a { display: flex; justify-content: space-between; align-items: center; gap: 18px; padding: 20px; background: var(--paper); border: 1px solid var(--line); border-radius: 11px; transition: border .2s, transform .2s; }
.download-list a:hover { border-color: #96a4b7; transform: translateX(3px); }
.download-list span { font-weight: 700; }
.download-list b { color: #64748b; font-size: 12px; white-space: nowrap; }
.final-note { margin-top: 60px; padding: 37px 42px; border-radius: 16px; background: linear-gradient(120deg, #d8f7f1, #e5edff); }
.final-note h3 { margin: 0 0 8px; font-size: 24px; }
.final-note p { margin: 0; max-width: 900px; }

footer { background: #070b14; color: #dbe3f2; padding-block: 48px; }
.footer-grid { display: flex; justify-content: space-between; align-items: center; }
.footer-grid p { color: #718099; margin: 8px 0 0; font-size: 13px; }
.footer-grid > div:last-child { display: flex; gap: 24px; color: #96a4bc; font-size: 13px; }

@media (max-width: 980px) {
  .hero-grid, .two-col, .three-d-grid, .reproduce-grid, .origin-grid { grid-template-columns: 1fr; }
  .hero-grid { padding-top: 62px; }
  .hero-visual { transform: none; }
  .workflow { grid-template-columns: 1fr; }
  .workflow-arrow { transform: rotate(90deg); text-align: center; height: 20px; }
  .origin-flow { grid-template-columns: 1fr; }
  .origin-arrow { transform: rotate(90deg); height: 20px; }
  .branch-arrow { transform: none; line-height: 1; }
  .simulation-grid { grid-template-columns: 1fr; }
  .parts-grid { grid-template-columns: repeat(2, 1fr); }
  .callout, .origin-note { margin-top: 0; }
}

@media (max-width: 700px) {
  .shell { width: min(calc(100% - 24px), var(--max)); }
  .nav { height: 64px; }
  .nav-links a:not(.nav-source) { display: none; }
  .hero-grid { gap: 36px; padding-block: 54px; }
  .lead { font-size: 16px; }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div { padding: 18px 14px; }
  .metrics div:nth-child(2) { border-right: 0; }
  .section { padding-block: 68px; }
  .parts-grid, .lesson-grid { grid-template-columns: 1fr; }
  .stat-strip { margin-top: 10px; }
  .final-note { padding: 28px 24px; }
  .footer-grid { flex-direction: column; align-items: flex-start; gap: 25px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
