/* 视觉语言与原生 App 一致（App 源码 Theme.swift）：
   冷灰中性色 + 墨色主按钮，彩色只留给「正在录音」；深色模式自动切换；浮窗固定深色。 */
:root {
  --bg: #fcfcfc;
  --sidebar: #f6f6f7;
  --surface: #ffffff;
  --field: #efeff1;
  --selection: #e9e9ec;
  --hairline: #e4e4e7;
  --ink: #18181b;
  --on-ink: #ffffff;
  --text: #27272a;
  --secondary: #71717a;
  --tertiary: #a1a1aa;
  --recording: #e5484d;
  --desk: radial-gradient(120% 100% at 15% 0%, #f7f7f8 0%, #e9e9ec 55%, #dcdce0 100%);
  --window-shadow: 0 24px 60px rgba(24, 24, 27, .13), 0 2px 8px rgba(24, 24, 27, .05);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #161618;
    --sidebar: #1c1c1f;
    --surface: #232326;
    --field: #2a2a2e;
    --selection: #2f2f34;
    --hairline: #34343a;
    --ink: #f4f4f5;
    --on-ink: #18181b;
    --text: #e4e4e7;
    --secondary: #a1a1aa;
    --tertiary: #71717a;
    --recording: #ec5d5e;
    --desk: radial-gradient(120% 100% at 15% 0%, #2c2c30 0%, #1f1f22 55%, #141416 100%);
    --window-shadow: 0 24px 60px rgba(0, 0, 0, .45), 0 0 0 1px rgba(255, 255, 255, .04);
  }
}

/* App 的浮窗固定深色：在任何主题下都用深色变量 */
.overlay, .capsule {
  --surface: #232326;
  --field: #2a2a2e;
  --hairline: #34343a;
  --ink: #f4f4f5;
  --on-ink: #18181b;
  --text: #e4e4e7;
  --secondary: #a1a1aa;
  --tertiary: #71717a;
  --recording: #ec5d5e;
  color: var(--text);
}

/* 可过渡的自定义属性：边缘光的颜色与绕行角度 */
@property --arc { syntax: '<color>'; inherits: true; initial-value: rgba(255, 255, 255, 0); }
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; color: var(--text); background: var(--bg); font-family: var(--font); font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--ink); font-weight: 600; text-wrap: balance; }
kbd { font-family: var(--font); }
.icon { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: -.125em; }
.container { width: min(1180px, calc(100% - 96px)); margin-inline: auto; }

/* ---------- 基础组件：Agent 标志、首字方块、按键、按钮 ---------- */

/* AgentMark：墨色圆里的三根声波条；active 时起伏，recording 时变红 */
.mark { --s: 32px; width: var(--s); height: var(--s); border-radius: 50%; background: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--s) * .08); flex-shrink: 0; transition: background-color .25s; }
.mark i { display: block; width: calc(var(--s) * .1); height: calc(var(--s) * .24); border-radius: 99px; background: var(--on-ink); }
.mark i:nth-child(2) { height: calc(var(--s) * .42); }
.mark i:nth-child(3) { height: calc(var(--s) * .3); }
.mark.active i { animation: bar .63s ease-in-out infinite alternate; }
.mark.active i:nth-child(2) { animation-delay: -.26s; }
.mark.active i:nth-child(3) { animation-delay: -.52s; }
.mark.recording { background: var(--recording); }

.mono { --m: 30px; width: var(--m); height: var(--m); border-radius: calc(var(--m) * .3); background: var(--field); color: var(--secondary); display: grid; place-items: center; font-size: calc(var(--m) * .42); font-weight: 500; flex-shrink: 0; }

.key { display: inline-block; font-size: .82em; line-height: 1.5; padding: 0 .45em; border: 1px solid var(--hairline); border-radius: 5px; background: var(--field); color: var(--text); font-weight: 500; }

.eyebrow { font-size: 11px; letter-spacing: 1.8px; font-weight: 600; color: var(--secondary); line-height: 1.6; }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 999px; font-size: 14px; font-weight: 500; transition: opacity .2s, background-color .2s, transform .2s; }
.button .icon { font-size: 15px; }
.primary { background: var(--ink); color: var(--on-ink); }
.primary:hover { opacity: .86; transform: translateY(-1px); }
.secondary { border: 1px solid var(--hairline); color: var(--text); }
.secondary:hover { background: var(--selection); }

/* ---------- 页头 ---------- */
.site-header { position: fixed; inset: 0 0 auto; z-index: 20; height: 68px; border-bottom: 1px solid var(--hairline); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(180%) blur(18px); -webkit-backdrop-filter: saturate(180%) blur(18px); transition: background-color .35s, border-color .35s; }
/* 停在深色首屏上时换成深色玻璃 */
.site-header.on-dark { --ink: #f4f4f5; --on-ink: #18181b; --text: #e4e4e7; --secondary: #a1a1aa; --field: rgba(255, 255, 255, .1); background: rgba(11, 11, 12, .45); border-color: rgba(255, 255, 255, .07); }
.wordmark, nav a, .nav-cta, .beta { transition: color .35s, background-color .35s, opacity .2s; }
.nav-wrap { width: min(1320px, calc(100% - 64px)); height: 100%; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; letter-spacing: -.4px; color: var(--ink); }
.beta { font-size: 11px; font-weight: 500; letter-spacing: .2px; color: var(--secondary); background: var(--field); border-radius: 999px; padding: 3px 8px; margin-left: 2px; }
nav { display: flex; gap: 30px; font-size: 14px; color: var(--secondary); }
nav a:hover { color: var(--ink); }
.nav-cta { height: 34px; display: inline-flex; align-items: center; padding: 0 16px; border-radius: 999px; background: var(--ink); color: var(--on-ink); font-size: 13px; font-weight: 500; transition: opacity .2s, transform .35s cubic-bezier(.2, .7, .2, 1); }
.nav-cta:hover { opacity: .86; }
.nav-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.language-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--hairline); border-radius: 999px; background: var(--field); color: var(--text); min-width: 52px; height: 34px; padding: 0 12px 0 10px; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .3px; cursor: pointer; }
.language-toggle .icon { font-size: 14px; color: var(--secondary); }
.language-toggle:hover { border-color: var(--secondary); }
.language-toggle:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- 深色舞台：首屏与收尾。App 的浮窗固定深色，这里就是它所在的「桌面」 ---------- */
.stage { --ink: #f4f4f5; --on-ink: #18181b; --text: #e4e4e7; --secondary: #a1a1aa; --tertiary: #71717a; --field: #2a2a2e; --hairline: rgba(255, 255, 255, .1); --selection: #2f2f34; --recording: #ec5d5e; position: relative; isolation: isolate; overflow: hidden; background: #0b0b0c; color: var(--text); }
/* 跟随鼠标的聚光 + 顶部柔光 */
.stage-fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(560px circle at var(--mx, 50%) var(--my, 18%), rgba(255, 255, 255, .075), transparent 65%), radial-gradient(1100px 560px at 50% -12%, rgba(255, 255, 255, .11), transparent 70%); }
/* 细网格，向四周淡出 */
.stage-fx::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 72px 72px; background-position: center top; -webkit-mask-image: radial-gradient(ellipse 62% 52% at 50% 28%, #000 10%, transparent 72%); mask-image: radial-gradient(ellipse 62% 52% at 50% 28%, #000 10%, transparent 72%); }
/* 胶片颗粒 */
.stage-fx::after { content: ""; position: absolute; inset: -60px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); opacity: .1; mix-blend-mode: overlay; animation: grain 1s steps(3) infinite; }

.hero { padding: 150px 24px 44px; border-radius: 0 0 36px 36px; text-align: center; }
.hero-inner { max-width: 940px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 9px; min-height: 32px; padding: 5px 14px 5px 8px; line-height: 1.45; text-align: left; border-radius: 999px; border: 1px solid transparent; background: linear-gradient(#141416, #141416) padding-box, conic-gradient(from var(--spin), rgba(255, 255, 255, .12) 0turn, rgba(255, 255, 255, .7) .08turn, rgba(255, 255, 255, .12) .2turn) border-box; font-size: 12.5px; color: var(--secondary); animation: orbit 6s linear infinite; }
.hero h1 { margin-top: 30px; font-size: clamp(54px, 7.6vw, 108px); line-height: 1.1; letter-spacing: -.045em; background: linear-gradient(180deg, #fff 30%, #8f8f97); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .line { display: block; }
.hero h1 em { font-style: normal; }
.split .word { display: inline-block; white-space: nowrap; }
/* 逐字模糊浮现；「开始了。」之后有一道光扫过 */
.hero h1.is-split { background: none; }
.split .char, .split em { display: inline-block; background: linear-gradient(180deg, #fff 30%, #8f8f97); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: 0; filter: blur(14px); transform: translateY(.3em); animation: rise 1.1s cubic-bezier(.2, .7, .15, 1) calc(var(--i, 0) * 55ms + .15s) forwards; }
.split em { background: linear-gradient(100deg, #9a9aa2 20%, #ffffff 42%, #ffffff 50%, #9a9aa2 72%); background-size: 260% 100%; background-position: 100% 0; -webkit-background-clip: text; background-clip: text; animation: rise 1.1s cubic-bezier(.2, .7, .15, 1) calc(var(--i, 0) * 55ms + .15s) forwards, sheen 7s ease-in-out 1.8s infinite; }
.hero-description { margin-top: 28px; font-size: 18px; line-height: 1.85; color: var(--secondary); }
.nowrap { white-space: nowrap; }
.hero-description .key { color: var(--ink); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .14); }
.hero-actions { display: flex; justify-content: center; gap: 12px; margin-top: 36px; }
.stage .primary { background: linear-gradient(180deg, #ffffff 0%, #e2e2e6 100%); box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), 0 0 0 1px rgba(255, 255, 255, .25), 0 12px 44px rgba(255, 255, 255, .16); transition: opacity .2s, transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s; }
.stage .primary:hover { opacity: 1; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .1), 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 60px rgba(255, 255, 255, .3); }
.stage .secondary { border-color: rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .03); }
.stage .secondary:hover { background: rgba(255, 255, 255, .09); }
.download-meta { margin-top: 18px; font-size: 12.5px; letter-spacing: .2px; color: var(--tertiary); }
.download-meta button { color: var(--secondary); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .25); }
.download-meta button:hover { color: var(--ink); }
.hero-demo { position: relative; max-width: 1180px; height: 350px; margin: 64px auto 0; }
/* 声场点阵（WebGL）：top 与高度由 JS 按浮窗位置算出，铺到舞台底部 */
.field { position: absolute; left: 0; top: 50%; width: 100%; z-index: -1; pointer-events: none; }
.hero-caption { font-size: 12px; color: var(--tertiary); letter-spacing: .3px; }

/* 浮窗：小胶囊，有输出后向下展开成卡片（OverlayPanel.swift） */
.overlay { text-align: left; position: absolute; top: 71px; left: 50%; transform: translateX(-50%); width: min(380px, 88%); border-radius: 24px; border: 1px solid transparent; box-shadow: 0 16px 36px rgba(0, 0, 0, .3); transition: width .45s cubic-bezier(.3, .9, .3, 1), border-radius .45s, --arc .8s; z-index: 2; }
.overlay.is-expanded { width: min(460px, 94%); border-radius: 20px; }
.overlay-row { height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px 0 11px; }
.overlay-row .mark { --s: 26px; }
.overlay-text { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overlay.is-idle .overlay-text { color: var(--secondary); }
.overlay-text[dir=rtl], .input-text[dir=rtl] { text-align: left; }
.keyhint { display: none; align-items: center; gap: 5px; font-size: 11px; color: var(--secondary); white-space: nowrap; }
.keyhint kbd { font-size: 10.5px; font-weight: 500; padding: 1px 5px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, .18); }
.overlay.is-listening .keyhint { display: inline-flex; }
.overlay-icons { display: inline-flex; align-items: center; gap: 8px; color: var(--secondary); font-size: 13px; }
.expand-icon { display: none; }
.overlay.is-expanded .expand-icon { display: inline-block; }
.overlay-close { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); font-size: 10px; }
.overlay-card { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .45s cubic-bezier(.3, .9, .3, 1); }
.overlay.is-expanded .overlay-card { grid-template-rows: 1fr; }
.overlay-card-inner { overflow: hidden; min-height: 0; display: flex; flex-direction: column; gap: 10px; padding: 0 12px; }
.overlay.is-expanded .overlay-card-inner { padding-bottom: 12px; }
.o-bubble { align-self: flex-end; max-width: 82%; font-size: 12.5px; line-height: 1.6; padding: 6px 11px; border-radius: 14px; background: var(--field); color: var(--ink); }
.o-tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 7px; padding: 4px 9px; border-radius: 8px; background: color-mix(in srgb, var(--field) 75%, transparent); font: 11px var(--mono); color: var(--secondary); max-width: 100%; }
.o-tool b { font-weight: 600; color: var(--ink); }
.o-tool span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-tool .done-icon { display: none; font-size: 11px; }
.o-tool.done .spinner { display: none; }
.o-tool.done .done-icon { display: inline-block; }
#hero-tool:not(.visible) { display: none; }
.o-reply { font-size: 12.5px; line-height: 1.75; color: var(--ink); min-height: 1.75em; }
.o-reply:empty { display: none; }
.o-input { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 16px; background: var(--surface); border: 1px solid var(--hairline); font-size: 11.5px; color: var(--secondary); }
.o-input > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-mic, .o-send { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--field); color: var(--ink); font-size: 11px; flex-shrink: 0; }
.o-send { color: var(--tertiary); }

.spinner { width: 11px; height: 11px; border-radius: 50%; border: 1.6px solid var(--tertiary); border-top-color: transparent; animation: spin .8s linear infinite; flex-shrink: 0; }

/* 边缘光：一段光沿胶囊描边绕行，外面一圈同色柔光。录音时红色，执行时白色，待命时几乎看不见 */
.overlay { --arc: rgba(255, 255, 255, .16); }
.overlay.is-active, .capsule.is-active { --arc: rgba(255, 255, 255, .75); }
.overlay.is-recording, .capsule.is-recording { --arc: rgba(236, 93, 94, .95); }
.overlay::before, .overlay::after, .capsule::before, .capsule::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; animation: orbit 3.6s linear infinite; }
.overlay::before, .capsule::before { z-index: -1; border: 1px solid transparent; background: linear-gradient(#232326, #232326) padding-box, conic-gradient(from var(--spin), transparent 0turn, var(--arc) .12turn, transparent .3turn, transparent .5turn, var(--arc) .62turn, transparent .8turn) border-box, linear-gradient(rgba(255, 255, 255, .1), rgba(255, 255, 255, .05)) border-box; }
.overlay::after, .capsule::after { z-index: -2; inset: -3px; background: conic-gradient(from var(--spin), transparent 0turn, var(--arc) .12turn, transparent .3turn, transparent .5turn, var(--arc) .62turn, transparent .8turn); filter: blur(16px); opacity: .55; }

/* ---------- 示例任务跑马灯 ---------- */
.marquee { overflow: hidden; padding: 30px 0 26px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 50s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; gap: 12px; padding-right: 12px; }
.task { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 18px 0 11px; border-radius: 999px; border: 1px solid var(--hairline); background: var(--surface); font-size: 13.5px; color: var(--text); white-space: nowrap; box-shadow: 0 1px 2px rgba(0, 0, 0, .03); }

/* ---------- 区块标题 ---------- */
.section-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 36px; margin-bottom: 36px; }
.section-heading .eyebrow { margin-bottom: 14px; }
h2 { font-size: clamp(30px, 3vw, 40px); line-height: 1.42; letter-spacing: -1.1px; }
.section-heading > p { font-size: 15px; line-height: 1.9; color: var(--secondary); padding-bottom: 4px; }

/* ---------- 交互演示：主窗口复刻（MainWindow.swift / ConversationViews.swift） ---------- */
.demo-section { padding-block: 96px 100px; }
.demo-tabs { display: flex; gap: 30px; margin-bottom: 22px; border-bottom: 1px solid var(--hairline); }
.demo-tabs button { display: flex; gap: 12px; align-items: baseline; font-size: 11px; color: var(--tertiary); padding: 15px 0; margin-bottom: -1px; border-bottom: 2px solid transparent; }
.demo-tabs button span { font-size: 14px; color: var(--secondary); }
.demo-tabs button:hover span { color: var(--ink); }
.demo-tabs button[aria-selected=true] { color: var(--ink); border-color: var(--ink); }
.demo-tabs button[aria-selected=true] span { color: var(--ink); font-weight: 500; }

.demo-stage { border: 1px solid var(--hairline); border-radius: 16px; overflow: hidden; background: var(--surface); }
.demo-desktop { padding: 44px 60px 48px; background: var(--desk); }
.app-window { display: grid; grid-template-columns: 236px minmax(0, 1fr); height: 520px; border-radius: 12px; overflow: hidden; background: var(--bg); box-shadow: var(--window-shadow); }

.app-sidebar { background: var(--sidebar); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; min-width: 0; }
.sb-top { height: 40px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 13px; color: var(--secondary); font-size: 14px; }
.traffic { display: flex; gap: 7px; }
.traffic i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.traffic i:nth-child(2) { background: #febc2e; }
.traffic i:nth-child(3) { background: #28c840; }
.sb-search { margin: 2px 12px 10px; height: 30px; border-radius: 9px; background: var(--field); display: flex; align-items: center; gap: 7px; padding: 0 9px; font-size: 12.5px; color: var(--secondary); }
.sb-list { flex: 1; min-height: 0; overflow: hidden; padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.sb-row { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; }
.sb-row.selected { background: var(--selection); }
.sb-row.selected .mono { background: var(--ink); color: var(--on-ink); }
.sb-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.sb-text b { font-size: 12.5px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-text small { font-size: 11.5px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-row em { font-style: normal; font-size: 10.5px; color: var(--tertiary); align-self: flex-start; margin-top: 2px; white-space: nowrap; }
.voice-card { margin: 8px 10px; padding: 9px; border-radius: 11px; background: var(--surface); border: 1px solid var(--hairline); display: flex; align-items: center; gap: 9px; transition: border-color .2s; }
.voice-card .mark { --s: 28px; }
.voice-card small { font-size: 10.5px; }
.voice-card.listening { border-color: color-mix(in srgb, var(--recording) 35%, var(--hairline)); }
.sb-user { height: 48px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 9px; padding: 0 14px; font-size: 12.5px; color: var(--ink); }
.sb-user .avatar { width: 26px; height: 26px; border-radius: 50%; background: var(--field); display: grid; place-items: center; font-size: 11px; font-weight: 500; }
.sb-user .icon { margin-left: auto; color: var(--secondary); font-size: 14px; }

.app-chat { display: flex; flex-direction: column; min-width: 0; }
.chat-header { height: 46px; flex-shrink: 0; display: flex; align-items: center; gap: 9px; padding: 0 16px 0 18px; border-bottom: 1px solid var(--hairline); }
.chat-header .mark { --s: 22px; }
.chat-header b { font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.model-label { margin-left: auto; font-size: 11px; color: var(--tertiary); white-space: nowrap; }
.chat-header .icon { color: var(--secondary); font-size: 14px; margin-left: 6px; }
.chat-body { flex: 1; min-height: 0; position: relative; overflow: hidden; }
.empty-state { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 11px; padding: 24px; text-align: center; }
.empty-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 3px; }
.empty-sub { font-size: 12px; color: var(--secondary); }
.chips { display: flex; gap: 7px; margin-top: 4px; flex-wrap: wrap; justify-content: center; }
.chips span { font-size: 11.5px; color: var(--text); border: 1px solid var(--hairline); border-radius: 999px; padding: 5px 11px; }
.thread { height: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 14px; padding: 22px 28px 12px; max-width: 640px; margin: 0 auto; justify-content: flex-end; }
.bubble { align-self: flex-end; max-width: 82%; font-size: 13px; line-height: 1.65; padding: 8px 13px; border-radius: 16px; background: var(--field); color: var(--ink); }
.tools { display: flex; flex-direction: column; align-items: flex-start; gap: 7px; }
.tools:empty { display: none; }
.tool-pill { display: inline-flex; align-items: center; gap: 8px; max-width: 100%; padding: 5px 10px; border-radius: 8px; background: color-mix(in srgb, var(--field) 75%, transparent); font: 11.5px var(--mono); color: var(--secondary); white-space: nowrap; overflow: hidden; }
.tool-pill b { font-weight: 600; color: var(--ink); }
.tool-pill .icon { font-size: 11px; color: var(--secondary); }
.tool-pill .chev { font-size: 9px; color: var(--tertiary); }
.thinking { display: flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--secondary); }
.reply { font-size: 13px; line-height: 1.8; color: var(--ink); }
.reply:empty { display: none; }
.result-file { display: flex; align-items: center; gap: 11px; width: min(320px, 100%); padding: 9px 12px 9px 9px; border-radius: 12px; border: 1px solid var(--hairline); background: var(--surface); text-align: left; transition: background-color .2s; }
.result-file:hover { background: var(--selection); }
.file-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--field); display: grid; place-items: center; color: var(--ink); font-size: 15px; }
.result-file b { display: block; font-size: 12px; font-weight: 500; color: var(--ink); }
.result-file small { display: block; font-size: 10.5px; color: var(--secondary); margin-top: 2px; }
.result-file > .icon { margin-left: auto; color: var(--tertiary); font-size: 11px; }

.composer { padding: 6px 24px 18px; }
.input-bar { display: flex; align-items: center; gap: 8px; padding: 5px; border-radius: 19px; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 4px 12px rgba(0, 0, 0, .05); max-width: 620px; margin: 0 auto; }
.mic, .send { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--field); color: var(--ink); font-size: 13px; flex-shrink: 0; transition: background-color .2s, color .2s; }
.mic .wave-icon, .mic.recording .mic-icon { display: none; }
.mic.recording { background: var(--recording); color: #fff; }
.mic.recording .wave-icon { display: inline-block; animation: pulse 1s ease-in-out infinite; }
.input-text { flex: 1; min-width: 0; font-size: 13px; color: var(--secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.input-text.filled { color: var(--ink); }
.send { color: var(--tertiary); }
.send .stop-icon, .send.stop .up-icon { display: none; }
.send.enabled, .send.stop { background: var(--ink); color: var(--on-ink); }
.send.stop .stop-icon { display: inline-block; font-size: 11px; }

.playback { display: flex; align-items: center; gap: 22px; padding: 16px 22px; border-top: 1px solid var(--hairline); background: var(--surface); }
.play-button { display: flex; align-items: center; gap: 10px; font-size: 13px; min-width: 104px; color: var(--ink); }
.play-button span:first-child { font-size: 10px; }
input[type=range] { appearance: none; -webkit-appearance: none; flex: 1; min-width: 50px; height: 3px; border-radius: 4px; cursor: pointer; background: linear-gradient(to right, var(--ink) var(--progress, 0%), var(--field) var(--progress, 0%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 13px; height: 13px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--hairline); }
input[type=range]::-moz-range-thumb { width: 11px; height: 11px; border-radius: 50%; background: var(--ink); border: 2px solid var(--surface); }
#play-time { font: 11px var(--mono); color: var(--secondary); white-space: nowrap; }
.reset-button { font-size: 20px; color: var(--secondary); line-height: 1; }
.reset-button:hover { color: var(--ink); }
.demo-footnote { display: flex; justify-content: space-between; gap: 20px; padding-top: 16px; font-size: 12px; color: var(--tertiary); }

/* ---------- 能力卡片 ---------- */
.possibilities { padding-bottom: 110px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.capability-visual { height: 196px; margin-bottom: 24px; border-radius: 14px; background: var(--sidebar); border: 1px solid var(--hairline); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.card-index { font-size: 11.5px; color: var(--tertiary); }
.capability h3 { font-size: 19px; letter-spacing: -.35px; margin: 11px 0 12px; }
.capability > p { font-size: 14px; line-height: 1.9; color: var(--secondary); }
.key-visual { gap: 14px; color: var(--tertiary); font-size: 18px; }
.key-visual kbd { font-size: 20px; min-width: 64px; padding: 19px 20px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline); border-bottom-width: 4px; color: var(--ink); text-align: center; box-shadow: 0 8px 18px rgba(0, 0, 0, .05); }
.key-visual kbd.wide { min-width: 132px; font-size: 17px; }

/* ---------- 浮窗区块 ---------- */
.overlay-section { background: var(--sidebar); border-block: 1px solid var(--hairline); }
.overlay-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; gap: 56px; padding-block: 88px; }
.overlay-copy h2 { margin: 16px 0 22px; }
.overlay-copy > p:not(.eyebrow) { font-size: 15px; line-height: 2; color: var(--secondary); }
.overlay-copy > p + p { margin-top: 14px; }
.overlay-copy .key { color: var(--ink); }
.overlay-copy .overlay-note { font-size: 13px; color: var(--text); display: flex; align-items: center; gap: 8px; margin-top: 22px; }
.overlay-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--recording); }
.state-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.state-list li { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 14px; }
.state-list li:last-child { align-items: start; }
.state-list li:last-child .state-index { padding-top: 12px; }
.state-index { font-size: 11.5px; color: var(--tertiary); }
.capsule { position: relative; isolation: isolate; width: min(400px, 100%); height: 52px; display: flex; align-items: center; gap: 11px; padding: 0 13px 0 12px; border-radius: 26px; border: 1px solid transparent; box-shadow: 0 12px 28px rgba(0, 0, 0, .16); font-size: 14px; font-weight: 500; color: var(--ink); }
.capsule .mark { --s: 28px; }
.capsule > span:nth-child(2) { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.capsule .placeholder { color: var(--secondary); }
.capsule .keyhint { display: inline-flex; }
.capsule .overlay-close { color: var(--secondary); }
.capsule.card { height: auto; width: min(460px, 100%); flex-direction: column; align-items: stretch; gap: 10px; padding: 12px 14px 14px; border-radius: 20px; }
.card-head { display: flex; align-items: center; gap: 9px; font-size: 13px; }
.card-head b { font-weight: 500; flex: 1; }
.card-head .overlay-icons { font-size: 12.5px; gap: 12px; }
.capsule .o-tool .done-icon { display: inline-block; }

/* ---------- 收尾与页脚 ---------- */
.closing { width: min(1180px, calc(100% - 48px)); margin: 24px auto 96px; border-radius: 32px; padding: 112px 24px 96px; text-align: center; }
.closing-mark { position: relative; width: 72px; height: 72px; margin: 0 auto 46px; display: grid; place-items: center; }
.closing-mark::before { content: ""; position: absolute; inset: -110px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .16), transparent 62%); }
.closing-mark .mark { position: relative; box-shadow: 0 0 48px rgba(255, 255, 255, .28); }
.ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); animation: ripple 3.6s cubic-bezier(.15, .6, .3, 1) infinite; }
.ring:nth-child(2) { animation-delay: 1.2s; }
.ring:nth-child(3) { animation-delay: 2.4s; }
.closing h2 { font-size: clamp(40px, 5vw, 66px); line-height: 1.28; letter-spacing: -.04em; margin: 20px 0 38px; background: linear-gradient(180deg, #fff 30%, #8f8f97); -webkit-background-clip: text; background-clip: text; color: transparent; }
.closing-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.closing-meta { font-size: 12px; color: var(--tertiary); margin-top: 26px; }
.site-footer { border-top: 1px solid var(--hairline); padding-block: 32px; display: flex; align-items: center; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--tertiary); }
.site-footer .wordmark { font-size: 15px; gap: 9px; }
.site-footer > div { display: flex; gap: 24px; }
.site-footer button, .site-footer a { font-size: 12px; }
.site-footer button:hover, .site-footer a:hover { color: var(--ink); }

/* ---------- 动效 ---------- */
/* 滚动浮现（只在 JS 可用时隐藏，避免无脚本时内容消失） */
.js [data-reveal] { opacity: 0; transform: translateY(28px); filter: blur(8px); transition: opacity 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), transform 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s), filter 1s cubic-bezier(.2, .7, .2, 1) var(--d, 0s); }
.js [data-reveal].is-visible { opacity: 1; transform: none; filter: none; }
/* 演示窗口进入视口时从倾斜中立起（JS 按滚动位置设置 transform） */
.demo-stage { transform-origin: 50% 0; will-change: transform; }
/* 能力卡片：悬停上浮 + 跟随鼠标的高光；按键按下、转写打字、步骤依次出现 */
.capability-visual { position: relative; transition: transform .45s cubic-bezier(.2, .7, .2, 1), box-shadow .45s; }
.capability-visual::before { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: inherit; padding: 1px; pointer-events: none; background: radial-gradient(200px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--ink) 55%, transparent), transparent 70%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); opacity: 0; transition: opacity .35s; }
.capability:hover .capability-visual::before { opacity: 1; }
.capability-visual::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(240px circle at var(--x, 50%) var(--y, 50%), color-mix(in srgb, var(--ink) 8%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; }
.capability:hover .capability-visual { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-4px); box-shadow: 0 22px 44px rgba(0, 0, 0, .08); }
.capability:hover .capability-visual::after { opacity: 1; }
.key-visual kbd { transition: transform .12s, border-bottom-width .12s, box-shadow .12s; }
.key-visual kbd.pressed { transform: translateY(3px); border-bottom-width: 1px; box-shadow: 0 2px 4px rgba(0, 0, 0, .05); }
.capability.is-visible .tool-pill { animation: pop .6s cubic-bezier(.2, .7, .2, 1) calc(var(--k, 0) * .45s + .4s) both; }
/* 区块标题随滚动逐字点亮：--lit 由 JS 按标题在视口中的位置给出（0–1），无 JS 时全亮 */
.lit { opacity: clamp(.16, calc((var(--lit, 1) * (var(--n, 1) + 5) - var(--i, 0)) / 5), 1); }
/* 录音时标志外扩一圈红色波纹 */
.mark.recording.active, .mic.recording { animation: ring 1.5s ease-out infinite; }

/* ---------- 对话框 ---------- */
dialog { width: min(540px, calc(100% - 36px)); max-height: 85vh; padding: 36px; border-radius: 18px; border: 1px solid var(--hairline); background: var(--surface); color: var(--text); box-shadow: 0 30px 100px rgba(0, 0, 0, .25); }
dialog::backdrop { background: rgba(0, 0, 0, .32); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); }
.dialog-close { position: absolute; right: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--field); color: var(--secondary); font-size: 12px; }
.dialog-close:hover { color: var(--ink); }
dialog h2 { font-size: 26px; margin: 16px 0 16px; }
dialog p:not(.eyebrow) { font-size: 14.5px; line-height: 1.9; color: var(--secondary); }
dialog ul { padding-left: 20px; margin-block: 16px 20px; font-size: 14px; line-height: 2.1; color: var(--secondary); }
/* 安装三步：编号圆点 + 标题 + 说明 */
.install-steps { list-style: none; padding: 0; margin: 4px 0 24px; display: grid; gap: 8px; counter-reset: step; }
.install-steps li { counter-increment: step; display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 12px; padding: 12px 14px; border-radius: 12px; background: var(--field); }
.install-steps li::before { content: counter(step); grid-row: span 2; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center; font-size: 12px; font-weight: 600; }
.install-steps b { font-size: 14px; font-weight: 500; line-height: 26px; color: var(--ink); }
.install-steps span { font-size: 12.5px; line-height: 1.7; color: var(--secondary); }
.dialog-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.file-disclaimer { font-size: 12px !important; margin-top: -6px; }
pre { white-space: pre-wrap; word-break: break-word; font: 13.5px/1.85 var(--font); color: var(--text); background: var(--field); border-radius: 12px; padding: 18px 20px; max-height: 40vh; overflow: auto; margin: 16px 0 22px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; left: 20px; top: -60px; z-index: 99; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: var(--on-ink); }
.skip-link:focus { top: 12px; }

@keyframes bar { from { transform: scaleY(.7); } to { transform: scaleY(1.3); } }
@keyframes rise { to { opacity: 1; filter: none; transform: none; } }
@keyframes sheen { 0% { background-position: 100% 0; } 45%, 100% { background-position: -60% 0; } }
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 33% { transform: translate(-22px, 14px); } 66% { transform: translate(16px, -20px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ripple { from { transform: scale(1); opacity: .7; } to { transform: scale(3.4); opacity: 0; } }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--recording) 55%, transparent); } to { box-shadow: 0 0 0 12px color-mix(in srgb, var(--recording) 0%, transparent); } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.96); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbit { to { --spin: 360deg; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1050px) {
  .hero-demo { height: 340px; }
  .container { width: calc(100% - 64px); }
  .nav-wrap { width: calc(100% - 48px); }
  .demo-desktop { padding: 32px 32px 36px; }
  .app-window { grid-template-columns: 206px minmax(0, 1fr); }
  .capability-grid { gap: 20px; }
  .capability h3 { font-size: 17px; }
  .overlay-layout { gap: 32px; }
  .state-list li { grid-template-columns: 70px minmax(0, 1fr); }
}

@media (max-width: 760px) {
  .site-header { height: 60px; }
  .hero { padding: 112px 18px 30px; border-radius: 0 0 26px 26px; }
  .pill { font-size: 11.5px; border-radius: 18px; }
  .hero h1 { font-size: 52px; margin-top: 24px; }
  .hero-description { font-size: 15px; margin-top: 20px; }
  .desktop-break { display: none; }
  .hero-actions { margin-top: 28px; flex-wrap: wrap; }
  .hero-actions .button { height: 42px; }
  .hero-demo { height: 320px; margin-top: 40px; }
  .wave { height: 150px; }
  .overlay { top: 51px; }
  .marquee { padding: 22px 0 18px; }
  .task { height: 38px; font-size: 12.5px; }
  .closing { width: calc(100% - 24px); margin: 16px auto 56px; padding: 80px 20px 72px; border-radius: 24px; }
  .closing h2 { font-size: 38px; }
  .closing .eyebrow { font-size: 9px; letter-spacing: 1.2px; }
  .container { width: calc(100% - 40px); }
  .nav-wrap { width: calc(100% - 32px); }
  .wordmark { font-size: 17px; }
  nav { display: none; }
  .section-heading { display: block; margin-bottom: 24px; }
  .section-heading > p { font-size: 14px; margin-top: 16px; }
  .section-heading .eyebrow { font-size: 10px; margin-bottom: 10px; }
  h2 { font-size: 29px; letter-spacing: -.7px; }
  .demo-section { padding-block: 60px 64px; }
  .demo-tabs { gap: 0; justify-content: space-between; margin-bottom: 16px; }
  .demo-tabs button { gap: 6px; font-size: 9px; padding-block: 12px; }
  .demo-tabs button span { font-size: 12px; }
  .demo-desktop { padding: 16px 10px 18px; }
  .app-window { grid-template-columns: minmax(0, 1fr); height: 460px; }
  .app-sidebar { display: none; }
  .thread { padding: 18px 14px 10px; }
  .composer { padding: 4px 12px 14px; }
  .chips span:last-child { display: none; }
  .playback { padding: 14px; gap: 12px; }
  .play-button { font-size: 11px; min-width: 76px; gap: 7px; }
  #play-time { font-size: 9px; }
  .demo-footnote { font-size: 10px; line-height: 1.8; }
  .demo-footnote > span:first-child { max-width: 60%; }
  .possibilities { padding-bottom: 64px; }
  .capability-grid { grid-template-columns: 1fr; gap: 36px; }
  .capability-visual { height: 180px; margin-bottom: 18px; }
  .overlay-layout { grid-template-columns: minmax(0, 1fr); padding-block: 56px; gap: 36px; }
  .overlay-copy > p:not(.eyebrow) { font-size: 14px; }
  .state-list li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .state-list li:last-child .state-index { padding-top: 0; }
  .capsule { font-size: 13px; }
  .site-footer { flex-wrap: wrap; row-gap: 16px; padding-block: 26px; }
  .site-footer > div { width: 100%; }
  dialog { padding: 28px 22px; }
  dialog h2 { font-size: 23px; }
}

@media (max-width: 370px) {
  .hero h1 { font-size: 44px; }
  .beta { display: none; }
  .hero-actions { flex-wrap: wrap; }
  .demo-tabs button span { font-size: 11px; }
  .keyhint kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-reveal], .split .char, .split em { opacity: 1; filter: none; transform: none; }
}

/* ---------- 宣传片：中英两版竖屏视频，放在深色舞台上 ---------- */
.film { width: min(1180px, calc(100% - 48px)); margin: 24px auto 0; border-radius: 32px; padding: 32px 72px; }
/* 宽屏左文右片：视频高度跟随窗口，跳到这一节时整段视频正好在一屏里 */
.film-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 72px; }
.film-heading { max-width: 460px; }
.film-heading h2 { word-break: keep-all; font-size: clamp(34px, 4vw, 52px); line-height: 1.28; letter-spacing: -.035em; margin: 18px 0 18px; background: linear-gradient(180deg, #fff 30%, #8f8f97); -webkit-background-clip: text; background-clip: text; color: transparent; }
.film-heading p:not(.eyebrow) { font-size: 16px; line-height: 1.9; color: var(--secondary); text-wrap: pretty; }
.film-card { margin: 0; width: calc(clamp(520px, 100vh - 150px, 940px) * 9 / 16); width: calc(clamp(520px, 100svh - 150px, 940px) * 9 / 16); }
.film-frame { position: relative; aspect-ratio: 9 / 16; border-radius: 34px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px rgba(255, 255, 255, .1), 0 50px 100px rgba(0, 0, 0, .65); transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s; }
.film-card:hover .film-frame { transform: translateY(-6px); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 60px 120px rgba(0, 0, 0, .7); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.film-play { position: absolute; inset: 0; display: grid; place-items: center; color: #18181b; background: radial-gradient(circle at 50% 50%, rgba(0, 0, 0, .05), rgba(0, 0, 0, .35)); transition: opacity .3s; }
.film-play .icon { width: 84px; height: 84px; padding: 28px 26px 28px 30px; border-radius: 50%; background: rgba(244, 244, 245, .92); box-shadow: 0 0 0 10px rgba(255, 255, 255, .12), 0 20px 40px rgba(0, 0, 0, .45); transition: transform .3s cubic-bezier(.2, .7, .2, 1); }
.film-play:hover .icon { transform: scale(1.08); }
.film-card.is-playing .film-play { opacity: 0; pointer-events: none; }

/* ---------- 能力卡片：调度 AI 与截屏的示意 ---------- */
.agents-visual { flex-direction: column; align-items: stretch; justify-content: center; gap: 10px; padding: 0 26px; }
.agent-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--hairline); font-size: 13px; color: var(--ink); box-shadow: 0 6px 16px rgba(0, 0, 0, .04); }
.agent-row b { font-weight: 600; }
.agent-glyph { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--field); color: var(--ink); font-size: 14px; }
.agent-row.done .agent-glyph { background: var(--ink); color: var(--on-ink); }
.agent-status { margin-left: auto; display: inline-flex; align-items: center; gap: 7px; font-size: 11.5px; color: var(--secondary); white-space: nowrap; }
.agent-status .icon { font-size: 11px; }
.capability.is-visible .agent-row { animation: pop .6s cubic-bezier(.2, .7, .2, 1) calc(var(--k, 0) * .35s + .3s) both; }
.shot-visual { flex-direction: column; gap: 14px; }
.shot-thumb { position: relative; width: 150px; height: 96px; border-radius: 9px; overflow: hidden; background: var(--surface); border: 1px solid var(--hairline); box-shadow: 0 10px 24px rgba(0, 0, 0, .08); }
.shot-bar { position: absolute; inset: 0 0 auto; height: 14px; background: var(--field); }
.shot-card { position: absolute; left: 26px; right: 26px; top: 30px; display: flex; flex-direction: column; gap: 6px; padding: 9px; border-radius: 6px; border: 1px solid var(--hairline); }
.shot-card i { display: block; height: 4px; border-radius: 2px; background: var(--tertiary); opacity: .6; }
.shot-card i:nth-child(1) { width: 70%; background: var(--ink); opacity: .8; }
.shot-card i:nth-child(3) { width: 45%; }
.shot-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }
.capability.is-visible .shot-flash { animation: shutter 3.2s ease-out 1s infinite; }
@keyframes shutter { 0%, 86% { opacity: 0; } 88% { opacity: .9; } 100% { opacity: 0; } }

@media (max-width: 900px) {
  .film { padding: 80px 24px 64px; text-align: center; }
  .film-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; justify-items: center; }
  .film-heading { max-width: 560px; }
  .film-card { width: min(88vw, 420px, calc((100vh - 140px) * 9 / 16)); width: min(88vw, 420px, calc((100svh - 140px) * 9 / 16)); }
}
@media (max-width: 760px) {
  .film { width: calc(100% - 24px); margin-top: 16px; padding: 64px 14px 48px; border-radius: 24px; }
  .film-heading h2 { font-size: 32px; }
  .film-heading p:not(.eyebrow) { font-size: 14px; }
  .film-frame { border-radius: 22px; }
  .film-play .icon { width: 52px; height: 52px; padding: 17px 15px 17px 19px; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 12px 24px rgba(0, 0, 0, .45); }
}
@media (prefers-reduced-motion: reduce) {
  .capability.is-visible .shot-flash, .capability.is-visible .agent-row { animation: none; }
}
