:root {
  --paper: #f1eee5;
  --paper-strong: #fffdf7;
  --ink: #171916;
  --ink-soft: #2b2d29;
  --muted: #71746c;
  --line: #d7d2c5;
  --red: #d54c2d;
  --red-dark: #a83620;
  --green: #31594a;
  --display: "STZhongsong", "FZLanTingHeiS-DB-GBK", "Microsoft YaHei", serif;
  --body: "Aptos", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Code", "SFMono-Regular", monospace;
  --ease: cubic-bezier(.2,.75,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: hidden; color: var(--ink); background: var(--paper); font-family: var(--body); }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.site-grain { position: fixed; z-index: -1; inset: 0; opacity: .42; background: radial-gradient(circle at 16% 2%, rgba(255,255,255,.95), transparent 26%), radial-gradient(circle at 82% 18%, rgba(213,76,45,.07), transparent 23%), repeating-linear-gradient(90deg, transparent 0 79px, rgba(44,40,31,.025) 80px); pointer-events: none; }

.site-header { position: relative; z-index: 20; display: flex; width: min(1380px, calc(100% - 48px)); height: 88px; margin: auto; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(80,75,63,.16); }
.site-brand { display: flex; gap: 11px; align-items: center; }
.site-brand img { width: 39px; height: 39px; }
.site-brand span { display: grid; gap: 1px; }
.site-brand strong { font: 700 17px var(--display); letter-spacing: -.08em; }
.site-brand small { color: var(--muted); font-size: 9px; letter-spacing: .05em; }
.site-header nav { display: flex; gap: 28px; align-items: center; }
.site-header nav a { color: #4f524c; font-size: 12px; transition: color 160ms ease; }
.site-header nav a:hover { color: var(--red-dark); }
.site-header .nav-entry { padding: 10px 16px; border: 1px solid var(--ink); border-radius: 4px; color: #fff; background: var(--ink); }
.nav-toggle { display: none; }

.hero { display: grid; width: min(1380px, calc(100% - 48px)); min-height: calc(100svh - 88px); grid-template-columns: minmax(420px, .86fr) minmax(560px, 1.14fr); gap: clamp(40px, 7vw, 110px); align-items: center; margin: auto; padding: 74px 0 96px; }
.eyebrow, .section-index { color: var(--red-dark); font: 700 10px var(--mono); letter-spacing: .17em; }
.hero h1 { max-width: 690px; margin: 22px 0 25px; font: 650 clamp(50px, 5.7vw, 85px)/1.02 var(--display); letter-spacing: -.075em; text-wrap: balance; }
.hero h1 em { color: var(--red); font-style: normal; }
.hero-copy > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 16px; line-height: 1.85; text-wrap: pretty; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.button { display: inline-flex; min-height: 48px; padding: 0 20px; border: 1px solid var(--ink); border-radius: 5px; align-items: center; justify-content: center; font-size: 13px; transition: transform 180ms var(--ease), background 180ms ease; }
.button:hover { transform: translateY(-3px); }
.button.primary { color: #fff; background: var(--ink); }
.button.primary:hover { background: #2c2f2a; }
.button.secondary { background: rgba(255,253,247,.55); }
.hero-note { display: flex; gap: 10px; align-items: center; margin-top: 20px; color: var(--muted); font-size: 10px; }
.hero-note i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(49,89,74,.1); }

.migration-stage { position: relative; min-height: 570px; padding: 24px; overflow: hidden; border: 1px solid #2f312d; border-radius: 30px 8px 30px 8px; color: #eef0e9; background: radial-gradient(circle at 82% 18%, rgba(213,76,45,.25), transparent 24%), #151814; box-shadow: 0 36px 90px rgba(31,30,25,.19); }
.migration-stage::before { position: absolute; width: 420px; height: 420px; top: -240px; left: -150px; border: 1px solid rgba(255,255,255,.08); border-radius: 50%; content: ''; }
.stage-topline { display: flex; position: relative; z-index: 2; justify-content: space-between; align-items: center; color: #8f978d; font: 8px var(--mono); letter-spacing: .12em; }
.stage-topline b { color: #b6d0bc; font-weight: 500; }
.stage-topline b::before { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: #68a57c; box-shadow: 0 0 0 4px rgba(104,165,124,.11); content: ''; }
.film-frame { position: absolute; width: 55%; aspect-ratio: 16 / 10; padding: 12px; border-radius: 17px 5px 17px 5px; }
.source-frame { top: 92px; left: 26px; border: 4px solid var(--red); transform: rotate(-3deg); animation: source-enter 900ms var(--ease) both; }
.target-frame { right: 25px; bottom: 96px; z-index: 2; border: 4px solid #e9e6dc; transform: rotate(2.5deg); animation: target-enter 900ms 180ms var(--ease) both; }
.frame-index { color: #d0d5cc; font: 8px var(--mono); letter-spacing: .1em; }
.frame-field { position: absolute; display: grid; inset: 35px 12px 12px; padding: 24px; place-content: end start; overflow: hidden; border-radius: 9px 3px 9px 3px; background: linear-gradient(150deg, #282c27, #0e110e); }
.target-frame .frame-field { background: linear-gradient(150deg, #45463f, #191b18); }
.frame-field::after { position: absolute; top: 12%; right: -9%; width: 68%; height: 70%; border: 1px solid rgba(255,255,255,.09); border-radius: 50%; content: ''; }
.frame-field i { position: absolute; top: 22%; left: 18%; width: 18%; aspect-ratio: 1; border: 1px solid rgba(255,255,255,.14); border-radius: 50%; }
.frame-field i:nth-child(2) { top: 33%; left: 41%; width: 12%; }
.frame-field i:nth-child(3) { top: 13%; left: 57%; width: 23%; }
.frame-field strong { position: relative; z-index: 1; font: 650 clamp(16px, 1.7vw, 25px) var(--display); }
.frame-field small { position: relative; z-index: 1; margin-top: 7px; color: #969d94; font-size: 9px; }
.shift-axis { position: absolute; z-index: 4; top: 49%; left: 46%; display: flex; width: 25%; gap: 7px; align-items: center; transform: rotate(-32deg); }
.shift-axis span { height: 1px; flex: 1; background: rgba(240,238,230,.28); }
.shift-axis b { color: #ec8d75; font: 8px var(--mono); letter-spacing: .15em; }
.stage-ledger { position: absolute; display: grid; right: 24px; bottom: 20px; left: 24px; grid-template-columns: repeat(4, 1fr); border-top: 1px solid #343934; }
.stage-ledger span { display: flex; gap: 7px; padding-top: 12px; color: #7f887e; font-size: 8px; }
.stage-ledger b { color: #e07a61; font: 700 8px var(--mono); }
@keyframes source-enter { from { opacity: 0; transform: translate(-30px,15px) rotate(-7deg); } }
@keyframes target-enter { from { opacity: 0; transform: translate(35px,20px) rotate(7deg); } }

.statement { display: grid; width: min(1180px, calc(100% - 48px)); min-height: 100svh; grid-template-columns: 200px 1fr; gap: 50px; align-items: center; margin: auto; padding-block: 12vh; border-top: 1px solid var(--line); }
.statement span { color: var(--red-dark); font: 700 10px var(--mono); letter-spacing: .14em; }
.statement p { max-width: 920px; margin: 0; font: 600 clamp(28px, 3.5vw, 48px)/1.35 var(--display); letter-spacing: -.045em; text-wrap: balance; }
.section-shell { width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.section-head { display: grid; min-height: 82svh; grid-template-columns: 200px 1fr; gap: 50px; align-items: center; margin-bottom: 0; }
.section-head > div { display: flex; justify-content: space-between; gap: 50px; align-items: end; }
.section-head h2 { margin: 0; font: 650 clamp(36px, 4.8vw, 64px)/1.12 var(--display); letter-spacing: -.06em; }
.section-head p { max-width: 360px; margin: 0 0 5px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.capability-grid { display: grid; gap: 12vh; }
.capability-card { position: relative; display: grid; min-height: 78svh; padding: clamp(38px, 6vw, 84px); overflow: hidden; align-content: center; border: 1px solid var(--line); border-radius: 28px 7px 28px 7px; background: rgba(255,253,247,.65); }
.capability-card:nth-child(even) { margin-left: 9%; }
.capability-card:nth-child(odd) { margin-right: 9%; }
.capability-card.lead { min-height: 78svh; }
.capability-card > span { color: var(--red-dark); font: 700 8px var(--mono); letter-spacing: .13em; }
.capability-card h3 { margin: 24px 0 18px; font: 650 clamp(40px, 5.5vw, 72px) var(--display); letter-spacing: -.055em; }
.capability-card p { max-width: 650px; margin: 0; color: var(--muted); font-size: 15px; line-height: 1.9; }
.capability-card.dark { color: #f1f2ec; border-color: #2e322d; background: #171a16; }
.capability-card.dark p { color: #959d94; }
.capability-card.dark > span { color: #df795f; }
.contract-lines { position: absolute; right: 7%; bottom: 8%; left: 58%; display: grid; gap: 10px; }
.contract-lines i { display: block; width: 70%; height: 8px; border-radius: 2px; background: #dedbcf; }
.contract-lines i:nth-child(2) { width: 88%; }
.contract-lines i:nth-child(3) { width: 53%; background: #efd4cb; }
.contract-lines i:nth-child(4) { width: 76%; }
.identity-row { position: absolute; right: 7%; bottom: 9%; left: 58%; display: flex; align-items: center; }
.identity-row b { display: grid; width: 46px; height: 46px; place-items: center; border: 1px solid var(--ink); border-radius: 50%; font: 600 12px var(--mono); }
.identity-row span { height: 1px; flex: 1; background: var(--line); }
.prompt-stack { position: absolute; right: 7%; bottom: 9%; left: 58%; display: flex; gap: 5px; }
.prompt-stack i { flex: 1; padding: 13px 8px; border: 1px solid var(--line); border-radius: 5px; color: var(--green); background: #eef2e9; font: normal 8px var(--mono); text-align: center; }
.run-state { position: absolute; display: flex; right: 7%; bottom: 9%; left: 58%; gap: 10px; align-items: center; padding: 16px; border: 1px solid #353c35; border-radius: 7px; background: #20251f; }
.run-state i { width: 8px; height: 8px; border-radius: 50%; background: #69a67c; box-shadow: 0 0 0 5px rgba(105,166,124,.11); }
.run-state span { flex: 1; color: #aab1a8; font: 9px var(--mono); }
.run-state strong { color: #b8d6c0; font-size: 9px; }

.workflow { display: grid; min-height: 100svh; padding: 12vh 0; align-content: center; }
.section-head.compact { min-height: auto; margin-bottom: 10vh; }
.section-head.compact > div { align-items: start; }
.workflow-track { border-top: 1px solid var(--ink); }
.workflow-track article { display: grid; grid-template-columns: 90px 1fr; padding: 28px 0; border-bottom: 1px solid var(--line); transition: padding 220ms var(--ease), background 220ms ease; }
.workflow-track article:hover { padding-inline: 18px; background: rgba(255,253,247,.48); }
.workflow-track article > span { color: var(--red); font: 700 12px var(--mono); }
.workflow-track article div { display: grid; grid-template-columns: minmax(200px,.7fr) 1fr; gap: 30px; align-items: center; }
.workflow-track h3 { margin: 0; font: 650 25px var(--display); letter-spacing: -.03em; }
.workflow-track p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.7; }

.studio-section { display: grid; min-height: 100svh; grid-template-columns: minmax(300px,.7fr) minmax(600px,1.3fr); gap: 70px; align-items: center; padding: 12vh max(24px, calc((100vw - 1380px)/2)); color: #eef0e9; background: #131613; }
.studio-copy h2 { margin: 22px 0 24px; font: 650 clamp(38px, 4.5vw, 64px)/1.12 var(--display); letter-spacing: -.06em; }
.studio-copy p { color: #9ba299; font-size: 13px; line-height: 1.85; }
.studio-copy a { display: inline-flex; gap: 20px; margin-top: 25px; padding-bottom: 8px; border-bottom: 1px solid #596159; color: #f0b09f; font-size: 12px; }
.studio-schematic { overflow: hidden; border: 1px solid #353a34; border-radius: 15px 5px 15px 5px; background: #0b0d0b; box-shadow: 0 35px 90px rgba(0,0,0,.28); }
.schematic-head { display: flex; gap: 6px; align-items: center; padding: 12px 14px; border-bottom: 1px solid #30352f; background: #1b1f1b; }
.schematic-head span { margin-right: auto; color: #8c958b; font: 8px var(--mono); letter-spacing: .12em; }
.schematic-head i { width: 7px; height: 7px; border-radius: 50%; background: #4b524a; }
.schematic-body { display: grid; min-height: 430px; grid-template-columns: 92px 1fr 150px; }
.schematic-body > aside { display: grid; align-content: start; gap: 5px; padding: 14px 9px; border-right: 1px solid #282d28; }
.schematic-body > aside b { padding: 10px; border-radius: 4px; color: #818981; background: #171b17; font: 8px var(--mono); }
.schematic-body > aside b:first-child { color: #fff; background: #272d27; }
.schematic-body > main { display: grid; grid-template-rows: 1fr auto auto; gap: 8px; padding: 12px; }
.preview-panes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.preview-panes div { position: relative; overflow: hidden; border: 1px solid #2d332d; border-radius: 5px; background: radial-gradient(circle at 50% 30%, #3a423a 0 8%, transparent 9%), linear-gradient(145deg,#1f251f,#080a08); }
.preview-panes div:last-child { background: radial-gradient(circle at 50% 30%, #6c5146 0 8%, transparent 9%), linear-gradient(145deg,#3b2a24,#0d0a08); }
.preview-panes span { position: absolute; top: 8px; left: 8px; color: #a9b0a8; font: 7px var(--mono); }
.timeline-row { display: grid; grid-template-columns: 42px repeat(4,1fr); gap: 4px; }
.timeline-row small { color: #6f786f; font-size: 7px; }
.timeline-row i { height: 19px; border-radius: 3px; background: #653326; }
.timeline-row i:nth-of-type(2) { background: #315443; }
.timeline-row i:nth-of-type(3) { background: #3a4548; }
.timeline-row.assets { grid-template-columns: 42px repeat(3,1fr); }
.timeline-row.assets i { height: 12px; background: #343a34; }
.schematic-body > aside.inspector { border-right: 0; border-left: 1px solid #282d28; }
.inspector span { color: #d1735c; font: 8px var(--mono); }
.inspector i { display: block; height: 7px; border-radius: 2px; background: #2a302a; }
.inspector i:nth-of-type(2) { width: 75%; }
.inspector button { margin-top: 12px; padding: 8px; border: 1px solid #3c4a3e; border-radius: 4px; color: #a8c4ad; background: #1c271e; font-size: 7px; }

.control-strip { display: grid; min-height: 100svh; grid-template-columns: repeat(3,1fr); gap: 1px; align-content: center; margin-block: 0; padding-block: 14vh; border: 0; background: transparent; }
.control-strip div { min-height: 360px; padding: 38px; border-block: 1px solid var(--line); background: rgba(255,253,247,.72); }
.control-strip span { color: var(--red-dark); font: 700 8px var(--mono); letter-spacing: .12em; }
.control-strip strong { display: block; margin-top: 48px; font: 650 21px var(--display); }
.control-strip p { margin: 14px 0 0; color: var(--muted); font-size: 11px; line-height: 1.75; }

.closing-cta { display: grid; min-height: 88svh; grid-template-columns: 1fr auto; gap: 70px; align-items: center; padding: 12vh max(24px, calc((100vw - 1180px)/2)); color: #f4f2e9; background: var(--red); }
.closing-cta > div:first-child > span { color: #702214; font: 700 9px var(--mono); letter-spacing: .15em; }
.closing-cta h2 { margin: 22px 0 0; font: 650 clamp(42px,5vw,70px)/1.12 var(--display); letter-spacing: -.065em; }
.closing-actions { display: grid; min-width: 260px; gap: 16px; }
.button.light { color: var(--ink); border-color: #fffaf0; background: #fffaf0; }
.download-link { display: grid; gap: 5px; padding: 3px 2px 10px; border-bottom: 1px solid rgba(255,255,255,.42); font-size: 12px; }
.download-link small { color: #732719; font-size: 8px; }
footer { display: grid; width: min(1380px, calc(100% - 48px)); grid-template-columns: auto 1fr auto; gap: 40px; align-items: center; margin: auto; padding: 42px 0; }
footer p { justify-self: center; color: var(--muted); font-size: 10px; }
footer > span { color: var(--muted); font: 8px var(--mono); }
.footer-brand img { width: 32px; height: 32px; }

[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 650ms var(--ease), transform 650ms var(--ease); }
[data-reveal].revealed { opacity: 1; transform: none; }
.hero [data-reveal] { opacity: 1; transform: none; }
@media (max-width: 1050px) {
  .hero { min-height: auto; grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; padding-top: 30px; }
  .migration-stage { min-height: 600px; }
  .section-head > div { display: grid; }
  .studio-section { grid-template-columns: 1fr; }
  .studio-copy { max-width: 720px; }
  .closing-cta { grid-template-columns: 1fr; align-items: start; }
}
@media (max-width: 760px) {
  .site-header { width: calc(100% - 28px); height: 72px; }
  .nav-toggle { display: grid; width: 42px; height: 42px; place-content: center; gap: 6px; border: 1px solid var(--line); border-radius: 5px; background: var(--paper-strong); }
  .nav-toggle span { display: block; width: 18px; height: 1px; background: var(--ink); }
  .site-header nav { position: absolute; display: none; top: 64px; right: 0; left: 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; align-items: stretch; flex-direction: column; background: var(--paper-strong); box-shadow: 0 20px 60px rgba(30,28,23,.14); }
  .site-header nav.open { display: flex; }
  .site-header nav a { padding: 8px; }
  .hero { width: calc(100% - 28px); grid-template-columns: 1fr; padding-top: 54px; }
  .hero h1 { font-size: clamp(45px,15vw,68px); }
  .hero-copy > p { font-size: 14px; }
  .hero-actions { display: grid; }
  .migration-stage { min-height: 520px; padding: 17px; }
  .film-frame { width: 70%; }
  .source-frame { top: 80px; left: 17px; }
  .target-frame { right: 17px; bottom: 90px; }
  .stage-ledger { grid-template-columns: 1fr 1fr; }
  .stage-ledger span { padding-top: 7px; }
  .statement, .section-head { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 24px; }
  .statement { min-height: 82svh; margin-bottom: 0; }
  .section-shell { width: calc(100% - 28px); }
  .section-head { width: 100%; min-height: 72svh; }
  .capability-grid { grid-template-columns: 1fr; }
  .capability-card, .capability-card.lead { min-height: 72svh; margin-inline: 0; padding: 28px; }
  .capability-card h3 { font-size: 42px; }
  .capability-card p { font-size: 13px; }
  .contract-lines, .identity-row, .prompt-stack, .run-state { right: 28px; bottom: 28px; left: 28px; }
  .workflow { padding-block: 110px; }
  .workflow-track article { grid-template-columns: 50px 1fr; }
  .workflow-track article div { grid-template-columns: 1fr; gap: 8px; }
  .studio-section { padding: 80px 14px; }
  .schematic-body { min-height: 350px; grid-template-columns: 60px 1fr; }
  .schematic-body > aside.inspector { display: none; }
  .preview-panes { grid-template-columns: 1fr; }
  .preview-panes div:last-child { display: none; }
  .control-strip { min-height: auto; grid-template-columns: 1fr; padding-block: 100px; }
  .control-strip div { min-height: 250px; border: 1px solid var(--line); }
  .closing-cta { padding: 80px 20px; }
  footer { width: calc(100% - 28px); grid-template-columns: 1fr; gap: 12px; }
  footer p { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
