:root {
  --ink: #1d1d1f;
  --ink2: #6e6e73;
  --paper: #ffffff;
  --paper2: #f5f5f7;
  --night: #000000;
  --night2: #161617;
  --night-ink: #f5f5f7;
  --night-ink2: #a1a1a6;
  --blue: #0071e3;
  --sky: #64d2ff;
  --green: #30d158;
  --amber: #ff9f0a;
  --red: #ff453a;
  --violet: #bf5af2;
  --ease: cubic-bezier(.22, .61, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  color: var(--ink); background: var(--paper);
  -webkit-font-smoothing: antialiased; line-height: 1.5; overflow-x: hidden;
}
br.pc { display: inline; }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: 48px;
  background: rgba(22,22,23,.72); backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); }
.nav-in { max-width: 1024px; margin: 0 auto; height: 100%; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; }
.brand { color: #fff; font-weight: 600; font-size: 15px; letter-spacing: .2px; }
.nav-links a { color: rgba(255,255,255,.8); text-decoration: none; font-size: 12px; margin-left: 22px; transition: color .2s; }
.nav-links a:hover { color: #fff; }

/* sections */
html, body { overflow-x: clip; }
.sec { padding: 140px 22px; text-align: center; overflow: hidden; }
.sec > * { max-width: 980px; margin-left: auto; margin-right: auto; }
.light { background: var(--paper); color: var(--ink); }
.light.alt { background: var(--paper2); }
.dark { background: var(--night); color: var(--night-ink); }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--blue); margin-bottom: 12px; }
.dark .eyebrow { color: var(--sky); }
h1 { font-size: clamp(48px, 9vw, 96px); font-weight: 700; letter-spacing: -.015em; line-height: 1.05; }
h2 { font-size: clamp(32px, 5.6vw, 56px); font-weight: 700; letter-spacing: -.01em; line-height: 1.12; }
h3 { font-size: clamp(22px, 3vw, 32px); font-weight: 700; line-height: 1.2; }
.sub { margin-top: 110px; margin-bottom: 36px; }
.lead { font-size: 21px; color: var(--ink2); margin-top: 18px; }
.caption { font-size: 15px; color: var(--ink2); margin-top: 28px; max-width: 640px; }
.caption.on-dark { color: var(--night-ink2); }
.grad { background: linear-gradient(90deg, #64d2ff 0%, #5e5ce6 50%, #bf5af2 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* reveal */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* hero */
.hero { position: relative; height: 100vh; min-height: 640px; overflow: hidden; display: flex; align-items: center; justify-content: center; text-align: center; }
#sono { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-copy { position: relative; z-index: 2; padding: 0 22px; margin-top: 18vh; }
.hero-copy .eyebrow { font-size: 17px; color: var(--night-ink2); font-weight: 500; }
.hero-sub { font-size: clamp(28px, 5vw, 52px); font-weight: 700; margin-top: 10px; }
.hero-note { color: var(--night-ink2); font-size: 17px; margin-top: 22px; }
.scroll-cue { position: absolute; bottom: 28px; left: 50%; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid rgba(255,255,255,.4); border-radius: 12px; z-index: 2; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: #fff; animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* stats */
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 70px; }
.stat b { display: block; font-size: clamp(44px, 7vw, 80px); font-weight: 700; letter-spacing: -.02em; line-height: 1;
  background: linear-gradient(180deg, #1d1d1f, #6e6e73); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 12px; color: var(--ink2); font-size: 15px; }

/* gap bars */
.gap { position: relative; margin-top: 90px; text-align: left; background: var(--paper2); border-radius: 28px; padding: 44px 40px 52px; }
.gap-row { display: grid; grid-template-columns: 200px 1fr 70px; align-items: center; gap: 18px; margin: 22px 0; }
.gap-l { font-size: 15px; color: var(--ink2); }
.gap-v { font-size: 22px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 14px; background: #e5e5ea; border-radius: 7px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: 7px; transition: width 1.8s var(--ease); }
.gap.in .bar i { width: var(--w); }
.gap-row:nth-child(2) .bar i { transition-delay: .25s; }
.gap-row:nth-child(3) .bar i { transition-delay: .5s; }
.b-red { background: linear-gradient(90deg, #ff6961, var(--red)); }
.b-green { background: linear-gradient(90deg, #5be37d, var(--green)); }
.b-amber { background: linear-gradient(90deg, #ffc15e, var(--amber)); }
.gap-line { position: absolute; top: 28px; bottom: 28px; left: calc(40px + 200px + 18px + (100% - 80px - 200px - 70px - 36px) * .97); width: 0; border-left: 1.5px dashed var(--ink); opacity: .45; }
.gap-line em { position: absolute; top: -6px; left: 6px; font-style: normal; font-size: 12px; white-space: nowrap; }

/* sticky compress */
.sticky-wrap { height: 280vh; position: relative; }
.sticky { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 60px 22px 0; text-align: center; overflow: hidden; }
.sticky-h { max-width: 900px; }
.tokens { position: relative; width: min(560px, 88vw); height: min(240px, 30vh); margin: 5vh auto 4vh; }
.tokens i { position: absolute; left: 0; top: 0; width: 16px; height: 10px; border-radius: 3px; background: #3a3a3c; will-change: transform, opacity; }
.tokens i.r { background: #48484a; height: 4px; border-radius: 2px; }
.compress-meta { display: flex; gap: 56px; justify-content: center; }
.compress-meta b { display: block; font-size: clamp(30px, 4.6vw, 48px); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.01em; }
.compress-meta span { font-size: 14px; color: var(--night-ink2); }

/* goals */
.goals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 70px; }
.goal { background: var(--paper2); border-radius: 24px; padding: 32px 22px; text-align: left; }
.goal small { font-size: 14px; color: var(--ink2); }
.ft { margin: 16px 0 10px; }
.ft s { display: block; color: #aeaeb2; font-size: 17px; }
.ft b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -.01em; color: var(--blue); }
.goal p { font-size: 13px; color: var(--ink2); }

/* data sources */
.sources { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 60px; text-align: left; }
.src { background: #fff; border-radius: 22px; padding: 28px 22px; }
.src b { display: block; font-size: 19px; margin: 14px 0 8px; }
.src span { font-size: 13px; color: var(--ink2); line-height: 1.6; }
.dot { display: block; width: 12px; height: 12px; border-radius: 50%; animation: pulse 2.4s infinite; }
.c1 { background: var(--blue); } .c2 { background: var(--violet); animation-delay: .6s; }
.c3 { background: var(--green); animation-delay: 1.2s; } .c4 { background: var(--amber); animation-delay: 1.8s; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 currentColor; } 0%,100% { transform: scale(1); } 50% { transform: scale(1.35); } }

/* inject demo */
.inject { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; text-align: left; }
.rep { background: #fff; border-radius: 22px; padding: 28px 30px; min-height: 230px; box-shadow: 0 10px 40px rgba(0,0,0,.05); }
.rep-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink2); border-bottom: 1px solid #e5e5ea; padding-bottom: 12px; margin-bottom: 16px; }
.rep-h em { font-style: normal; font-family: ui-monospace, Menlo, monospace; }
#injText { font-size: 17px; line-height: 2; min-height: 140px; }
#injText .cur { display: inline-block; width: 2px; height: 1.1em; background: var(--blue); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
#injText mark { background: none; color: inherit; border-radius: 4px; padding: 1px 2px; transition: background .4s, color .4s; }
#injText mark.hit { background: rgba(255,69,58,.12); color: var(--red); box-shadow: inset 0 -2px 0 var(--red); }
.chips { display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.chip { background: #fff; border-radius: 16px; padding: 14px 18px; font-size: 14px; opacity: 0; transform: translateX(24px); transition: all .6s var(--ease); display: flex; gap: 10px; align-items: baseline; }
.chip.in { opacity: 1; transform: none; }
.chip em { font-style: normal; font-size: 12px; font-weight: 600; color: #fff; background: var(--red); border-radius: 6px; padding: 2px 8px; flex: none; }
.chip span { color: var(--ink2); }
.chip b { font-weight: 600; }

/* flywheel */
.wheel { position: relative; width: min(520px, 92vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-svg { width: 100%; height: 100%; }
.w-track { fill: none; stroke: #e5e5ea; stroke-width: 2; }
.w-run { fill: none; stroke-width: 4; stroke-linecap: round; stroke-dasharray: 160 782; animation: run 6s linear infinite; transform-origin: 200px 200px; }
@keyframes run { to { stroke-dashoffset: -942; } }
.w-dot { transform-origin: 200px 200px; animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.w-center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.w-center b { font-size: 28px; }
.w-center span { font-size: 14px; color: var(--ink2); margin-top: 6px; }
.w-node { position: absolute; background: #fff; border-radius: 999px; padding: 9px 16px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 24px rgba(0,0,0,.08); white-space: nowrap; transform: translate(-50%, -50%); }
.n1 { left: 50%; top: 12.5%; } .n2 { left: 87.5%; top: 50%; } .n3 { left: 50%; top: 87.5%; } .n4 { left: 12.5%; top: 50%; }

/* pipeline */
.pipe { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 80px; text-align: left; }
.pipe-line { position: absolute; top: 22px; left: 22px; right: 22px; height: 2px; background: #2c2c2e; overflow: hidden; }
.pipe-line i { position: absolute; top: 0; left: -30%; width: 30%; height: 100%; background: linear-gradient(90deg, transparent, var(--sky), transparent); animation: flow 2.6s linear infinite; }
@keyframes flow { to { left: 100%; } }
.stage { position: relative; background: var(--night2); border-radius: 24px; padding: 64px 22px 26px; }
.stage .no { position: absolute; top: 8px; left: 18px; width: 30px; height: 30px; border-radius: 50%; background: var(--night); border: 2px solid var(--sky); color: var(--sky); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.stage h4 { font-size: 22px; }
.stage .en { color: var(--sky); font-size: 13px; margin: 4px 0 14px; font-family: ui-monospace, Menlo, monospace; }
.stage p { font-size: 14px; color: var(--night-ink2); line-height: 1.6; }
.stage small { display: inline-block; margin-top: 18px; font-size: 13px; color: var(--night-ink); background: #2c2c2e; border-radius: 999px; padding: 5px 12px; }
.pipe.in .stage { animation: rise .8s var(--ease) both; }
.pipe.in .stage:nth-child(3) { animation-delay: .15s; } .pipe.in .stage:nth-child(4) { animation-delay: .3s; } .pipe.in .stage:nth-child(5) { animation-delay: .45s; }
@keyframes rise { from { opacity: 0; transform: translateY(30px); } }

.rl { display: grid; grid-template-columns: 1fr 1.3fr; gap: 40px; align-items: center; margin-top: 120px; text-align: left; }
.rl-txt p { color: var(--night-ink2); font-size: 17px; margin-top: 16px; }
.rl-chart { width: 100%; background: var(--night2); border-radius: 24px; padding: 10px; }
.rl-chart .grid line { stroke: #2c2c2e; }
.rl-chart .target { stroke: var(--amber); stroke-dasharray: 6 6; }
.t-target { fill: var(--amber); font-size: 12px; }
.t-ax { fill: #6e6e73; font-size: 12px; }
.legend text { fill: var(--night-ink2); font-size: 12px; }
.legend .dim { fill: #6e6e73; }
.curve { fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-dasharray: 700; stroke-dashoffset: 700; }
.c-sen { stroke: var(--green); } .c-spe { stroke: var(--sky); }
.rl.in .curve { animation: draw 2.6s var(--ease) forwards; }
.rl.in .c-spe { animation-delay: .3s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.out { margin-top: 120px; }
.json { display: inline-block; text-align: left; margin-top: 34px; background: var(--night2); border-radius: 22px; padding: 28px 40px; font: 16px/1.8 ui-monospace, "SF Mono", Menlo, monospace; color: var(--night-ink); }
.json k { color: var(--sky); } .json s { text-decoration: none; color: #ffd60a; }

/* LoRA stack */
.stack-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; margin-top: 70px; text-align: left; }
.stack { position: relative; height: 380px; perspective: 1200px; }
.layer { position: absolute; left: 10%; right: 10%; height: 92px; border-radius: 20px; transform: rotateX(50deg); display: flex; align-items: center; justify-content: center; color: #fff; font-weight: 600; font-size: 16px; box-shadow: 0 30px 40px -20px rgba(0,0,0,.3); transition: transform 1s var(--ease), opacity 1s var(--ease), top 1s var(--ease); }
.layer span { transform: scaleY(1.5); }
.l1 { top: 250px; height: 120px; background: linear-gradient(135deg, #1d1d1f, #3a3a3c); }
.l2 { top: 250px; background: linear-gradient(135deg, #0a84ff, #64d2ff); opacity: 0; }
.l3 { top: 250px; background: linear-gradient(135deg, #5e5ce6, #bf5af2); opacity: 0; }
.l4 { top: 250px; background: linear-gradient(135deg, #30d158, #66d4cf); opacity: 0; }
.stack-wrap.in .l2 { top: 175px; opacity: .95; transition-delay: .3s; }
.stack-wrap.in .l3 { top: 105px; opacity: .95; transition-delay: .6s; }
.stack-wrap.in .l4 { top: 35px; opacity: .95; transition-delay: .9s; }
.stack-txt p { font-size: 17px; color: var(--ink2); margin-bottom: 22px; }
.stack-txt b { color: var(--ink); }

.tiers { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 80px; text-align: left; }
.tier { background: var(--paper2); border-radius: 26px; padding: 36px 34px; }
.tier small { color: var(--blue); font-weight: 600; font-size: 14px; }
.tier h4 { font-size: 28px; margin: 6px 0 16px; }
.tier li { list-style: none; font-size: 15px; color: var(--ink2); padding: 9px 0; border-top: 1px solid #e5e5ea; }

/* orbit */
.orbit { position: relative; width: min(620px, 92vw); aspect-ratio: 1; margin: 50px auto 0; }
.core { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; line-height: 1.3;
  background: radial-gradient(circle at 30% 30%, #5e5ce6, #0a84ff 60%, #003a7a); box-shadow: 0 0 80px rgba(10,132,255,.55); animation: breathe 4s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 130px rgba(94,92,230,.75); } }
.ring { position: absolute; left: 50%; top: 50%; border: 1px solid #2c2c2e; border-radius: 50%; animation: spin 40s linear infinite; }
.r1 { width: 58%; aspect-ratio: 1; transform: translate(-50%, -50%); animation-name: spin1; }
.r2 { width: 92%; aspect-ratio: 1; transform: translate(-50%, -50%); animation-name: spin2; animation-duration: 60s; }
@keyframes spin1 { from { transform: translate(-50%,-50%) rotate(0); } to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes spin2 { from { transform: translate(-50%,-50%) rotate(360deg); } to { transform: translate(-50%,-50%) rotate(0); } }
.sat { position: absolute; left: 50%; top: 50%; white-space: nowrap; font-size: 14px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(44,44,46,.85); border: 1px solid #3a3a3c;
  --r: 50%; transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1)); }
.r1 .sat { --R: calc(min(620px, 92vw) * .29); animation: keep1 40s linear infinite; }
.r2 .sat { --R: calc(min(620px, 92vw) * .46); animation: keep2 60s linear infinite; }
.r1 .sat:first-child { background: var(--blue); border-color: var(--blue); }
@keyframes keep1 { from { transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1)); }
  to { transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1 - 360deg)); } }
@keyframes keep2 { from { transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1 - 360deg)); }
  to { transform: translate(-50%,-50%) rotate(var(--a)) translateY(calc(var(--R) * -1)) rotate(calc(var(--a) * -1)); } }

/* gates */
.gates { list-style: none; max-width: 720px; margin-top: 60px; text-align: left; }
.gates li { display: flex; gap: 20px; padding: 24px 0; border-bottom: 1px solid #e5e5ea; }
.gates i { flex: none; width: 30px; height: 30px; border-radius: 50%; background: #e5e5ea; position: relative; transition: background .5s; }
.gates i::after { content: ""; position: absolute; left: 10px; top: 6px; width: 7px; height: 13px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform .4s var(--ease); }
.gates.in i { background: var(--green); }
.gates.in i::after { transform: rotate(45deg) scale(1); }
.gates b { display: block; font-size: 19px; }
.gates span { font-size: 15px; color: var(--ink2); }

/* roadmap */
.road { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 80px; text-align: left; }
.road-line { position: absolute; top: 7px; left: 0; right: 0; height: 2px; background: #d2d2d7; }
.road-line i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--blue), var(--violet)); transition: width 2.4s var(--ease); }
.road.in .road-line i { width: 100%; }
.ms { position: relative; padding-top: 36px; }
.ms::before { content: ""; position: absolute; top: 0; left: 0; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 3px solid #d2d2d7; transition: border-color .4s; }
.road.in .ms::before { border-color: var(--blue); }
.road.in .ms:nth-child(3)::before { transition-delay: .5s; } .road.in .ms:nth-child(4)::before { transition-delay: 1s; }
.road.in .ms:nth-child(5)::before { transition-delay: 1.5s; } .road.in .ms:nth-child(6)::before { transition-delay: 2s; border-color: var(--violet); }
.when { font-size: 13px; color: var(--blue); font-weight: 600; }
.ms b { display: block; font-size: 18px; margin: 6px 0 8px; }
.ms p { font-size: 14px; color: var(--ink2); }

/* resources */
.res { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 70px; }
.r { background: var(--paper2); border-radius: 22px; padding: 30px 18px; }
.r b { display: block; font-size: 36px; font-weight: 700; letter-spacing: -.01em; }
.r span { display: block; font-size: 14px; color: var(--ink2); margin-top: 8px; }
.risks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 16px; text-align: left; }
.risks div { border: 1px solid #e5e5ea; border-radius: 18px; padding: 20px 22px; }
.risks b { display: block; font-size: 15px; } .risks span { font-size: 13px; color: var(--ink2); }

/* footer */
.foot { padding: 160px 22px 80px; text-align: center; }
.foot h2 { font-size: clamp(36px, 6vw, 64px); }
.foot p { color: #6e6e73; font-size: 13px; margin-top: 60px; }

/* responsive */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .sec { padding: 100px 16px; }
  br.pc { display: none; }
  .goals, .sources, .res { grid-template-columns: 1fr 1fr; }
  .pipe { grid-template-columns: 1fr 1fr; }
  .pipe-line { display: none; }
  .rl, .stack-wrap, .inject, .tiers { grid-template-columns: 1fr; }
  .road { grid-template-columns: 1fr; gap: 0; padding-left: 4px; }
  .road-line { top: 0; bottom: 0; left: 11px; right: auto; width: 2px; height: auto; }
  .road-line i { width: 100% !important; height: 0; transition: height 2.4s var(--ease); }
  .road.in .road-line i { height: 100%; }
  .ms { padding: 0 0 30px 40px; }
  .ms::before { left: 0; }
  .risks { grid-template-columns: 1fr; }
  .gap { padding: 30px 20px 40px; }
  .gap-row { grid-template-columns: 1fr 60px; gap: 6px 12px; }
  .gap-l { grid-column: 1 / -1; }
  .gap-line { display: none; }
  .compress-meta { gap: 22px; }
  .stack { height: 330px; }
  .json { padding: 20px 22px; font-size: 14px; }
  .sat { font-size: 12px; padding: 6px 10px; }
  .core { width: 96px; height: 96px; margin: -48px; font-size: 16px; }
  .orbit { width: 78vw; }
  .r1 .sat { --R: calc(78vw * .29); } .r2 .sat { --R: calc(78vw * .46); }
}
@media (max-width: 480px) {
  .stats3 { grid-template-columns: 1fr; gap: 36px; }
  .goals, .sources, .res, .pipe { grid-template-columns: 1fr; }
  .w-node { font-size: 12px; padding: 7px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
