/* Qwen3.5-Omni Realtime promo. Alibaba Cloud visual language: orange accent, square geometry, clear grid, dark hero + light content. */
:root {
  --ink: #0a0b10;
  --ink-2: #12141c;
  --ali: #ff6a00;
  --ali-hover: #ec6000;
  --ali-soft: #fff3e9;
  --qwen: #615ced;
  --qwen-2: #6f69f7;
  --qwen-deep: #6336e7;
  --white: #f4f5f8;
  --dim: #a3a9b6;
  --line-dark: #ffffff1f;
  --paper: #ffffff;
  --paper-2: #f5f6f8;
  --text: #181b22;
  --muted: #5d6573;
  --line: #e3e6eb;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 48px);
  font-family: "Alibaba PuHuiTi 3.0", "Alibaba PuHuiTi", "Alibaba Sans", Inter, "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--white); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
html[lang="ko"] body { word-break: keep-all; }
img { display: block; }
a { color: inherit; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; line-height: 1.12; }
p { margin: 0; }

/* Stage */
#stage { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: 0; }
.stage-fallback { position: fixed; inset: 0; display: none; place-items: center; z-index: 0; background: radial-gradient(60% 50% at 50% 45%, #615ced33, transparent 70%), radial-gradient(40% 40% at 60% 60%, #ff6a0022, transparent 70%); }
.stage-fallback img { width: min(40vw, 260px); opacity: .9; }
.no-webgl .stage-fallback { display: grid; }
.no-webgl #stage { display: none; }
body::after { content: ""; position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 55%, #05060acc 100%); }

/* Nav */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 20; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 var(--gutter); border-top: 3px solid var(--ali); transition: background .3s, border-color .3s, color .3s; }
.nav.scrolled { background: #0a0b10d9; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-dark); }
.nav-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; white-space: nowrap; }
.nav-divider { width: 1px; height: 22px; background: currentColor; opacity: .25; }
.nav-name { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; }
.nav-name b { font-weight: 450; opacity: .75; margin-left: 1px; }
.nav-links { display: flex; gap: 26px; margin-left: auto; }
.nav-links a { text-decoration: none; font-size: .9rem; opacity: .78; padding: 8px 0; border-bottom: 2px solid transparent; }
.nav-links a:hover { opacity: 1; border-bottom-color: var(--ali); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.lang { display: flex; border: 1px solid currentColor; border-color: color-mix(in srgb, currentColor 25%, transparent); border-radius: 2px; padding: 2px; }
.lang button { font: inherit; font-size: .75rem; font-weight: 700; letter-spacing: .04em; background: none; border: 0; color: inherit; opacity: .6; padding: 4px 8px; border-radius: 1px; cursor: pointer; }
.lang button[aria-pressed="true"] { opacity: 1; background: var(--ali); color: #fff; }

a:focus-visible, button:focus-visible { outline: 2px solid var(--ali); outline-offset: 3px; }

/* Intro film: plays on first visit; clicking outside the picture, Skip, Esc, or the end of the film reveals the page */
.film-replay { font: inherit; font-size: .8rem; font-weight: 600; display: inline-flex; align-items: center; gap: 7px; background: none; color: inherit; border: 0; padding: 6px 2px; opacity: .78; cursor: pointer; }
.film-replay:hover { opacity: 1; }
.film-replay svg { width: 11px; height: 11px; fill: var(--ali); }
.film { position: fixed; inset: 0; z-index: 40; display: grid; place-items: center; background: #05060a; cursor: pointer; transition: opacity .6s ease; }
.film[hidden] { display: none; }
.film.closing { opacity: 0; pointer-events: none; }
.film-video { width: 100vw; height: 100vh; height: 100dvh; max-width: calc(100dvh * 16 / 9); max-height: calc(100vw * 9 / 16); object-fit: contain; background: var(--ink); cursor: default; }
.film-bar { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 18px var(--gutter) 22px; background: linear-gradient(transparent, #05060acc); cursor: default; }
.film-btn { display: grid; place-items: center; width: 40px; height: 40px; background: #ffffff14; color: var(--white); border: 1px solid #ffffff26; border-radius: 2px; cursor: pointer; }
.film-btn:hover { background: #ffffff26; }
.film-btn svg { width: 16px; height: 16px; fill: currentColor; }
.film .i-play, .film.paused .i-pause, .film .i-sound, .film.unmuted .i-muted { display: none; }
.film.paused .i-play, .film.unmuted .i-sound { display: block; }
.film-sound { display: flex; align-items: center; gap: 10px; }
.film-vol { width: 110px; accent-color: var(--ali); cursor: pointer; opacity: .55; transition: opacity .2s; }
.film.unmuted .film-vol, .film-vol:hover, .film-vol:focus-visible { opacity: 1; }
.film-skip { margin-left: auto; font: inherit; font-size: .9rem; font-weight: 700; white-space: nowrap; display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 18px; background: var(--ali); color: #fff; border: 0; border-radius: 2px; cursor: pointer; }
.film-skip:hover { background: var(--ali-hover); }
.film-skip svg { width: 14px; height: 14px; }
.film-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #ffffff1a; pointer-events: none; }
.film-progress i { display: block; height: 100%; width: 100%; background: var(--ali); transform-origin: left; transform: scaleX(0); }

/* Chapter rail */
.rail { position: fixed; right: calc(var(--gutter) - 8px); top: 50%; transform: translateY(-50%); z-index: 10; list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; transition: opacity .3s; }
.rail li { display: flex; align-items: center; justify-content: flex-end; gap: 10px; font-size: .68rem; font-weight: 700; letter-spacing: .1em; color: var(--dim); }
.rail li span { opacity: 0; transform: translateX(4px); transition: opacity .3s, transform .3s; }
.rail li i { width: 14px; height: 2px; background: #ffffff40; transition: width .3s, background .3s; }
.rail li.active span { opacity: 1; transform: none; color: #fff; }
.rail li.active i { width: 28px; background: var(--ali); }

/* Scenes */
main { position: relative; z-index: 2; }
.scene { position: relative; min-height: 130vh; display: flex; align-items: center; padding: 120px var(--gutter); }
.scene[data-side="right"] { justify-content: flex-end; }
.scene-inner { width: 100%; max-width: 520px; }.scene[data-side="left"] .scene-inner { margin-left: max(0px, calc((100vw - var(--wrap)) / 2 - var(--gutter))); }
.scene[data-side="right"] .scene-inner { margin-right: max(0px, calc((100vw - var(--wrap)) / 2 - var(--gutter))); }

.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--ali); margin-bottom: 22px; }
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; background: currentColor; vertical-align: middle; margin-right: 12px; transform: translateY(-2px); }

.hero { min-height: 100vh; padding-top: 120px; }
.scene.hero .hero-inner { max-width: 660px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.3rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 28px; text-shadow: 0 2px 40px #0a0b10; }
.grad { background: linear-gradient(90deg, var(--ali) 0%, #ff8a3d 30%, var(--qwen-2) 75%, var(--qwen) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(1rem, 1.6vw, 1.2rem); color: #c9ceda; max-width: 560px; margin: 0 0 38px; line-height: 1.7; text-shadow: 0 1px 20px #0a0b10; }
.hero-io { list-style: none; padding: 0; margin: 44px 0 0; display: flex; gap: 28px; flex-wrap: wrap; font-size: .88rem; color: var(--dim); }
.hero-io li { display: flex; align-items: center; gap: 10px; }
.io-tag { font-size: .66rem; font-weight: 800; letter-spacing: .12em; padding: 3px 7px; border: 1px solid var(--ali); color: var(--ali); border-radius: 1px; }
.io-tag.io-out { border-color: var(--qwen-2); color: #a9a5ff; }
.scroll-cue { display: block; position: absolute; left: 50%; bottom: 32px; width: 22px; height: 36px; margin-left: -11px; border: 1.5px solid #ffffff55; border-radius: 12px; }
.scroll-cue span { position: absolute; left: 50%; top: 7px; width: 2px; height: 7px; margin-left: -1px; background: var(--ali); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

.panel { padding: 36px 36px 32px; background: linear-gradient(180deg, #12141ccc, #0c0d13d9); border: 1px solid var(--line-dark); border-top: 2px solid var(--ali); border-radius: 2px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.scene-inner.panel { max-width: 560px; }
.clip { position: relative; margin: -36px -36px 28px; aspect-ratio: 16 / 9; overflow: hidden; background: #05060a; border-bottom: 1px solid var(--line-dark); }
.clip video { display: block; width: 100%; height: 100%; object-fit: cover; }
.clip::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, transparent 60%, #0c0d13b3), radial-gradient(120% 90% at 50% 50%, transparent 60%, #05060a99); }
.panel h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); font-weight: 750; margin-bottom: 18px; }
.panel > p:not(.chapter) { color: #c3c8d3; font-size: 1.02rem; line-height: 1.75; }
.chapter { display: flex; align-items: baseline; gap: 14px; margin-bottom: 18px; font-weight: 800; letter-spacing: .16em; font-size: .78rem; color: var(--dim); }
.chapter span:first-child { font-size: 2.6rem; letter-spacing: -.04em; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--ali); }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { font-size: .8rem; padding: 6px 11px; border: 1px solid #ffffff26; color: #dde0e8; border-radius: 1px; background: #ffffff08; }
.chips li:first-child { border-color: #ff6a0080; color: #ffb27d; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* Content sheet: a lifted dark surface; the top edge fades in so the particles dim instead of cutting off */
.sheet {
  --paper: #0f1118; --paper-2: #141720; --text: #f1f3f7; --muted: #9aa1ae; --line: #ffffff14; --ali-soft: #ff6a0012;
  position: relative; color: var(--text);
  background: linear-gradient(180deg, #0f111800 0, #0f1118e6 160px, var(--paper) 320px);
}
.sheet #specs { padding-top: clamp(200px, 22vw, 280px); }
.block { padding: clamp(80px, 12vw, 140px) var(--gutter); }
.block-alt { background: linear-gradient(180deg, var(--paper), #0b0d13); border-top: 1px solid var(--line); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.eyebrow-dark { color: var(--ali); }
.block-title { font-size: clamp(1.9rem, 4vw, 3.1rem); font-weight: 780; max-width: 780px; margin-bottom: 18px; }
.block-lede { color: var(--muted); font-size: 1.05rem; max-width: 640px; line-height: 1.75; }

.pipeline { display: grid; grid-template-columns: 1fr 48px 1.15fr 48px 1fr; align-items: stretch; margin: 56px 0 40px; }
.pipe-node { border: 1px solid var(--line); background: var(--paper-2); padding: 22px 22px; display: flex; flex-direction: column; gap: 8px; justify-content: center; border-radius: 2px; }
.pipe-node strong { font-size: 1.02rem; font-weight: 700; }
.pipe-k { font-size: .72rem; font-weight: 700; letter-spacing: .12em; color: var(--muted); text-transform: uppercase; }
.pipe-model { background: linear-gradient(135deg, #1b1840, #120f2a); color: #fff; border-color: #615ced55; border-top: 3px solid var(--ali); align-items: flex-start; }
.pipe-model strong { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: .95rem; font-weight: 600; }
.pipe-model .pipe-k { color: var(--dim); }
.pipe-arrow { position: relative; }
.pipe-arrow::before { content: ""; position: absolute; left: 8px; right: 8px; top: 50%; height: 2px; background: repeating-linear-gradient(90deg, var(--ali) 0 6px, transparent 6px 10px); background-size: 20px 2px; animation: flow 1s linear infinite; }
.pipe-arrow::after { content: ""; position: absolute; right: 6px; top: 50%; width: 8px; height: 8px; border-top: 2px solid var(--ali); border-right: 2px solid var(--ali); transform: translateY(-50%) rotate(45deg); }
@keyframes flow { to { background-position: 20px 0; } }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.stats > div { padding: 30px 26px 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats dt { font-size: clamp(2.6rem, 5vw, 3.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--text); }
.stats dt small { font-size: 1rem; font-weight: 700; letter-spacing: 0; color: var(--ali); margin-left: 6px; }
.stats dd { margin: 12px 0 0; color: var(--muted); font-size: .92rem; }

.models { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 40px; }
.model { border: 1px solid var(--line); padding: 28px; border-radius: 2px; transition: border-color .2s, box-shadow .2s; }
.model { background: var(--paper-2); }
.model:hover { border-color: #ff6a0099; box-shadow: 0 10px 40px #ff6a0014; }
.model h3 { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 1.05rem; font-weight: 600; letter-spacing: 0; margin: 10px 0 10px; }
.model p:last-child { color: var(--muted); }
.model-tag { display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .14em; padding: 3px 8px; color: #fff; background: var(--ali); border-radius: 1px; }
.model-tag-flash { background: var(--qwen); }

.scenarios { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.scenarios li { background: var(--paper); padding: 26px 22px 30px; position: relative; transition: background .2s; }
.scenarios li::before { content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0; background: var(--ali); transition: width .3s; }
.scenarios li:hover { background: var(--ali-soft); }
.scenarios li:hover::before { width: 100%; }
.sc-n { font-size: .78rem; font-weight: 800; color: var(--ali); letter-spacing: .08em; }
.scenarios h3 { font-size: 1.1rem; font-weight: 700; margin: 30px 0 8px; letter-spacing: -.02em; }
.scenarios p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* Finale */
.finale { min-height: 110vh; flex-direction: column; justify-content: center; text-align: center; padding-bottom: 0; }
.finale-inner { max-width: 960px; margin: auto; padding-top: 44vh; }
.finale h2 { font-size: clamp(2rem, 4.4vw, 3.7rem); font-weight: 800; letter-spacing: -.045em; margin-bottom: 18px; text-shadow: 0 2px 40px #0a0b10; }
.finale p { color: #c3c8d3; margin-bottom: 34px; font-size: 1.05rem; }
.foot { width: 100%; max-width: var(--wrap); margin: 80px auto 0; padding: 26px 0 30px; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: .8rem; color: var(--dim); border-top: 1px solid var(--line-dark); }
.foot span { display: inline-flex; align-items: center; gap: 10px; }

/* Responsive */
@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .scenarios { grid-template-columns: repeat(2, 1fr); }
  .rail { display: none; }
}
@media (max-width: 760px) {
  .nav { height: 60px; gap: 12px; }
  .nav-name b { display: none; }
  .logo-ali, .nav-divider { display: none; }
  .film-replay span { display: none; }
  .film-replay svg { width: 14px; height: 14px; }
  .film-bar { gap: 8px; }
  .film-vol { width: 64px; }
  .film-skip { padding: 0 14px; font-size: .85rem; }
  .scene { min-height: 120vh; padding: 100px 16px; align-items: flex-end; }
  .scene[data-side] .scene-inner { margin: 0 auto; }  .hero { min-height: 100vh; padding-bottom: 72px; }
  .hero-io { margin-top: 28px; }
  .panel { padding: 26px 22px 24px; }
  .clip { margin: -26px -22px 22px; }
  .pipeline { grid-template-columns: 1fr; grid-template-rows: auto 36px auto 36px auto; }
  .pipe-arrow::before { left: 50%; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--ali) 0 6px, transparent 6px 10px); background-size: 2px 20px; animation: none; }
  .pipe-arrow::after { left: 50%; right: auto; top: auto; bottom: 4px; transform: translateX(-50%) rotate(135deg); }
  .models { grid-template-columns: 1fr; }
  .scenarios { grid-template-columns: 1fr; }
  .scenarios h3 { margin-top: 14px; }
  .stats > div { padding: 22px 16px; }
  .finale-inner { padding-top: 40vh; }
  .foot { margin-top: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .scroll-cue span, .pipe-arrow::before { animation: none; }
}
