/* TeleTwin home page. Self-contained: no external fonts or assets. Dark-first; light via [data-theme="light"]. */
:root {
  color-scheme: dark;
  --bg: #07070d;
  --bg-alt: #0b0b14;
  --surface: rgba(20, 20, 34, .58);
  --surface-solid: #13131e;
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .08);
  --text: #eeeefa;
  --muted: #a4a6bf;
  --line: rgba(255, 255, 255, .085);
  --line-2: rgba(255, 255, 255, .16);
  --accent: #8774E1;
  --accent-2: #4F8CFF;
  --accent-soft: rgba(135, 116, 225, .16);
  --accent-ink: #b8acff;
  --blue: #7aa9ff;
  --ok: #3ccf87;
  --bad: #ff6b7d;
  --warn: #f0a94e;
  --grad: linear-gradient(135deg, #8774E1 0%, #4F8CFF 100%);
  --grad-text: linear-gradient(110deg, #b6a8ff 0%, #8f9dff 45%, #6fb0ff 100%);
  --glow: 0 0 0 1px rgba(135, 116, 225, .35), 0 10px 40px -8px rgba(110, 100, 255, .55);
  --shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 12px 40px -12px rgba(0, 0, 0, .6);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 40px 100px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .05);
  --mock-bg: #12121b;
  --mock-side: #171723;
  --bubble-in: #232333;
  --bubble-out: #4b3fa6;
  --blur: saturate(150%) blur(18px);
  --radius: 20px;
  --gutter: 16px;
  --header-h: 64px;
  --font: system-ui, -apple-system, "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.22, .8, .24, 1);
}
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f4f4fb; --bg-alt: #ececf7;
  --surface: rgba(255, 255, 255, .72); --surface-solid: #ffffff; --surface-2: rgba(30, 30, 90, .04); --surface-3: rgba(30, 30, 90, .07);
  --text: #12121c; --muted: #545870; --line: rgba(30, 30, 80, .1); --line-2: rgba(30, 30, 80, .18);
  --accent-soft: rgba(111, 92, 224, .12); --accent-ink: #4d39c9; --blue: #2f6fe0; --ok: #12925a; --bad: #d23b4d; --warn: #b8690f;
  --grad-text: linear-gradient(110deg, #5b45dc 0%, #5a5ff0 45%, #2d74e6 100%);
  --glow: 0 0 0 1px rgba(111, 92, 224, .25), 0 10px 34px -10px rgba(91, 71, 214, .5);
  --shadow: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 12px 36px -14px rgba(40, 30, 110, .22);
  --shadow-lg: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 40px 90px -30px rgba(50, 35, 140, .35), 0 0 0 1px rgba(30, 30, 80, .06);
  --mock-bg: #ffffff; --mock-side: #f5f4fc; --bubble-in: #efeef8; --bubble-out: #e3ddff;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); background: var(--bg); }
main { overflow-x: clip; }
body { margin: 0; background: transparent; color: var(--text); font: 400 clamp(15px, .9rem + .15vw, 17px)/1.6 var(--font); overflow-x: hidden; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, video { display: block; }
a { color: var(--accent-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd { font-family: var(--mono); font-size: .88em; padding: 2px 6px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line); word-break: break-all; }
kbd { word-break: normal; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; border-radius: 8px; }
[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: max(var(--gutter), env(safe-area-inset-left)); }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--accent); color: #fff; }
.skip:focus { top: 12px; }
::selection { background: rgba(135, 116, 225, .4); }

/* ---------- background ---------- */
.bg { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-static { position: absolute; inset: -10%; background:
  radial-gradient(42% 38% at 78% 18%, rgba(135, 116, 225, .30), transparent 70%),
  radial-gradient(36% 36% at 12% 12%, rgba(79, 140, 255, .20), transparent 70%),
  radial-gradient(50% 45% at 60% 95%, rgba(90, 70, 210, .18), transparent 70%),
  linear-gradient(180deg, #07070d, #090914 60%, #07070d); }
:root[data-theme="light"] .bg-static { background:
  radial-gradient(42% 38% at 78% 18%, rgba(135, 116, 225, .22), transparent 70%),
  radial-gradient(36% 36% at 12% 12%, rgba(79, 140, 255, .16), transparent 70%),
  radial-gradient(50% 45% at 60% 95%, rgba(150, 120, 255, .14), transparent 70%),
  linear-gradient(180deg, #f6f6fd, #f1f0fb 60%, #f6f6fd); }
.bg-3d { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 1.4s ease; }
.bg-3d.is-ready { opacity: 1; }
.bg-veil { position: absolute; inset: 0; background: var(--bg); opacity: var(--veil, 0); transition: opacity .3s linear; }

/* ---------- buttons ---------- */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 12px; border: 1px solid transparent; font-weight: 650; font-size: .95rem; text-decoration: none; cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .25s ease, background-color .2s ease, border-color .2s ease; }
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(2px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 8px 24px -6px rgba(110, 90, 240, .6), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px -8px rgba(110, 90, 240, .75), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: .9rem; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 1rem; border-radius: 14px; }
.btn-glow::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; background: conic-gradient(from var(--a, 0deg), transparent 0 70%, rgba(255, 255, 255, .55) 80%, transparent 90%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px; pointer-events: none; animation: spin-a 4s linear infinite; }
@property --a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes spin-a { to { --a: 360deg; } }
.icon-btn { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; border-radius: 11px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; transition: border-color .2s, background-color .2s, transform .2s; }
.icon-btn:hover { border-color: var(--accent); }
.icon-btn:active { transform: scale(.94); }
.icon-btn svg { width: 20px; height: 20px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 62%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
.nav { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 760; font-size: 1.15rem; letter-spacing: -.02em; }
.brand-mark { width: 32px; height: 32px; filter: drop-shadow(0 4px 14px rgba(120, 100, 255, .45)); transition: transform .4s var(--ease); }
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.06); }
.nav-panel { display: flex; align-items: center; flex: 1; gap: 12px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-inline: auto; }
.nav-links > li > a, .dd-btn { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 8px 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 560; font-size: .93rem; background: none; border: 0; cursor: pointer; transition: color .2s, background-color .2s; }
.nav-links > li > a:hover, .dd-btn:hover, .dd-btn[aria-expanded="true"] { color: var(--text); background: var(--surface-3); }
.dd { position: relative; }
.dd-btn svg { width: 16px; height: 16px; transition: transform .2s; }
.dd-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.dd-menu { position: absolute; right: 0; top: calc(100% + 10px); min-width: 290px; padding: 6px; border-radius: 16px; background: color-mix(in srgb, var(--surface-solid) 92%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px) scale(.98); transform-origin: top right; transition: opacity .18s, transform .18s var(--ease), visibility 0s .18s; }
.dd.open .dd-menu { opacity: 1; visibility: visible; transform: none; transition: opacity .18s, transform .18s var(--ease); }
.dd-menu a { display: grid; grid-template-columns: 20px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 10px; color: var(--text); text-decoration: none; font-size: .92rem; }
.dd-menu a svg { width: 18px; height: 18px; color: var(--accent-ink); }
.dd-menu a small { color: var(--muted); font-size: .78rem; font-variant-numeric: tabular-nums; }
.dd-menu a:hover, .dd-menu a:focus-visible { background: var(--accent-soft); outline-offset: -2px; }
.dd-menu a.is-mine span::after { content: " · sizning OS"; color: var(--accent-ink); font-size: .8rem; }
.dd-sep { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-btn .ic-moon { display: none; }
.is-dark .theme-btn .ic-sun { display: none; }
.is-dark .theme-btn .ic-moon { display: block; }
.nav-toggle { display: none; margin-left: auto; }
.nav-toggle .ic-close { display: none; }
@media (max-width: 1080px) {
  .nav-toggle { display: inline-grid; }
  .nav-toggle[aria-expanded="true"] .ic-open { display: none; }
  .nav-toggle[aria-expanded="true"] .ic-close { display: block; }
  .nav-panel { position: fixed; inset: var(--header-h) 0 auto 0; max-height: calc(100dvh - var(--header-h)); overflow-y: auto; flex-direction: column; align-items: stretch; gap: 14px; padding: 12px var(--gutter) 20px; background: color-mix(in srgb, var(--bg) 96%, transparent); border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); display: none; }
  .js .nav-panel.open { display: flex; }
  html:not(.js) .nav-panel { position: static; display: flex; box-shadow: none; }
  .nav-links { flex-direction: column; align-items: stretch; margin: 0; }
  .nav-links > li > a, .dd-btn { width: 100%; justify-content: space-between; font-size: 1rem; min-height: 46px; }
  .dd-menu { position: static; min-width: 0; margin: 2px 0 6px; box-shadow: none; display: none; opacity: 1; visibility: visible; transform: none; }
  .dd.open .dd-menu { display: block; }
  .nav-actions { flex-wrap: wrap; }
  .nav-actions .btn { flex: 1; }
}

/* ---------- status pill ---------- */
.status { display: inline-flex; align-items: center; gap: 7px; padding: 4px 11px 4px 9px; border-radius: 999px; font-size: .8rem; font-weight: 600; color: var(--muted); background: var(--surface); border: 1px solid var(--line); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.status i { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.status.ok { color: var(--ok); }
.status.ok i { background: var(--ok); animation: pulse 2.4s infinite; }
.status.bad { color: var(--bad); }
.status.bad i { background: var(--bad); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 55%, transparent); } 70% { box-shadow: 0 0 0 7px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- hero ---------- */
.hero { position: relative; min-height: min(calc(100svh - var(--header-h)), 920px); display: flex; flex-direction: column; justify-content: center; padding-block: clamp(36px, 6vw, 80px) clamp(64px, 7vw, 96px); }
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(28px, 4vw, 64px); align-items: center; max-width: 1320px; }
.hero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow svg { width: 15px; height: 15px; }
.chip-glow { padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); box-shadow: 0 0 24px -6px rgba(135, 116, 225, .6); }
.hero h1 { font-size: clamp(2.15rem, 1rem + 3.5vw, 3.85rem); font-weight: 780; letter-spacing: -.045em; line-height: 1.02; }
.h-line { display: inline; }
.grad { background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.shimmer { background-size: 200% 100%; animation: shimmer-t 6s ease-in-out infinite; }
@keyframes shimmer-t { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(1.02rem, .95rem + .3vw, 1.16rem); color: var(--muted); }
.lead b { color: var(--text); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; color: var(--muted); font-size: .92rem; }
.hero-points li { display: inline-flex; align-items: center; gap: 7px; }
.hero-points svg { width: 18px; height: 18px; color: var(--ok); }
.scroll-cue { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: inline-flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); font-size: .8rem; font-weight: 600; text-decoration: none; }
.scroll-cue svg { width: 20px; height: 20px; animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(6px); opacity: 1; } }

/* hero 3D device stack */
.hero-visual { position: relative; translate: 0 var(--py, 0px); padding: 24px 40px 56px 0; transform-style: preserve-3d; transform: perspective(1800px) rotateY(var(--ry, -10deg)) rotateX(var(--rx, 4deg)); transition: transform .9s var(--ease); }
.hero-visual > * { transform: translateZ(calc(var(--d, 0) * 1px)); }
.hero-visual .laptop { --d: 0; }
.hero-phone { --d: 70; position: absolute; right: 0; bottom: 6px; width: clamp(120px, 12vw, 168px); }
.float-card { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 12.5px; line-height: 1.3; animation: float 7s ease-in-out infinite; }
.float-card svg { width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: #fff; background: var(--grad); }
.float-card strong { display: block; font-size: 13px; }
.float-card small { color: var(--muted); }
.fc1 { --d: 110; left: -26px; bottom: 18px; }
.fc2 { --d: 90; right: 64px; top: -6px; animation-delay: -3.5s; }
.fc2 svg { background: linear-gradient(135deg, #2fb67a, #1d8f5c); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }

/* devices */
.laptop { position: relative; }
.laptop-lid { position: relative; padding: 2.2% 2.2% 2.6%; border-radius: 18px 18px 8px 8px; background: linear-gradient(160deg, #34344a, #14141d 60%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset, var(--shadow-lg), 0 50px 120px -40px rgba(100, 80, 255, .55); }
.laptop-lid::before { content: ""; position: absolute; top: .9%; left: 50%; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: #0b0b10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .08); }
.laptop-base { position: relative; height: clamp(10px, 1.2vw, 16px); margin: 0 -6.5%; border-radius: 2px 2px 18px 18px; background: linear-gradient(180deg, #4a4a5e, #22222e 60%, #15151c); box-shadow: 0 30px 40px -24px rgba(0, 0, 0, .8); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 45%; transform: translateX(-50%); border-radius: 0 0 10px 10px; background: rgba(0, 0, 0, .35); }
.screen, .sc-screen { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: var(--ar, 1.6); background: var(--mock-bg); }
.phone { padding: 7px; border-radius: 30px; background: linear-gradient(160deg, #3a3a50, #121219); box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, var(--shadow-lg); }
.phone-screen { position: relative; overflow: hidden; border-radius: 24px; aspect-ratio: 9 / 19; background: var(--mock-bg); font-size: 11px; line-height: 1.3; }
.ph-notch { width: 34%; height: 14px; margin: 6px auto 0; border-radius: 10px; background: #000; }
.ph-head { display: flex; align-items: center; gap: 5px; padding: 8px 10px 6px; font-weight: 750; font-size: 11.5px; color: var(--accent-ink); }
.ph-head svg { width: 12px; height: 12px; }
.ph-note { display: flex; align-items: center; gap: 7px; margin: 5px 7px; padding: 7px; border-radius: 12px; background: var(--surface-3); }
.ph-note .av { width: 24px; height: 24px; font-size: 10px; flex: none; }
.ph-note strong { display: block; font-size: 10.5px; }
.ph-note small { color: var(--muted); font-size: 9.5px; }
.ph-note > div { min-width: 0; }
.ph-note strong, .ph-note small { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hero-phone .ph-note:first-of-type { animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0%, 70%, 100% { transform: none; } 74% { transform: translateX(-3px) rotate(-1deg); } 78% { transform: translateX(3px) rotate(1deg); } 82% { transform: translateX(-2px); } 86% { transform: none; } }
.win-frame { border-radius: 14px; overflow: hidden; background: var(--mock-side); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.frame-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-bottom: 1px solid var(--line); background: var(--mock-side); }
.frame-bar i { width: 10px; height: 10px; border-radius: 50%; background: #ef6a6a; }
.frame-bar i:nth-child(2) { background: #f1bd4f; }
.frame-bar i:nth-child(3) { background: #5cc56f; }
.frame-bar span { margin-left: 10px; color: var(--muted); font-size: 12px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-frame .sc-screen { border-radius: 0; }

/* media inside slots */
.media-slot > .fallback { position: absolute; inset: 0; transition: opacity .5s ease; }
.media-slot > video, .media-slot > img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #0b0b12; opacity: 0; transition: opacity .6s ease; }
.media-slot > video.contain, .media-slot > img.shot.contain { object-fit: contain; }
.media-slot.has-media > video, .media-slot.has-media > img.shot { opacity: 1; }
.media-slot.has-media > .fallback { opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s .5s; }

/* hero mock (fallback) */
.mock { display: flex; flex-direction: column; height: 100%; background: var(--mock-bg); font-size: 12px; line-height: 1.35; }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 26px; flex: none; padding: 0 10px; border-bottom: 1px solid var(--line); background: var(--mock-side); }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ef6a6a; }
.mock-bar i:nth-child(2) { background: #f1bd4f; }
.mock-bar i:nth-child(3) { background: #5cc56f; }
.mock-bar span { margin-left: 8px; color: var(--muted); font-size: 11px; font-weight: 600; }
.mock-body { flex: 1; min-height: 0; display: grid; grid-template-columns: 42% 58%; }
.mock-side { border-right: 1px solid var(--line); background: var(--mock-side); padding: 8px 7px; min-width: 0; overflow: hidden; }
.mock-search { display: flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 8px; background: var(--surface-3); color: var(--muted); font-size: 11px; }
.mock-search svg { width: 13px; height: 13px; }
.mock-tabs { display: flex; gap: 3px; margin: 8px 0 6px; font-size: 10.5px; font-weight: 650; color: var(--muted); overflow: hidden; }
.mock-tabs span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 7px; white-space: nowrap; }
.mock-tabs .on { color: #fff; background: var(--grad); }
.mock-tabs svg { width: 11px; height: 11px; }
.mock-list li { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 7px; padding: 5px; border-radius: 9px; }
.mock-list li.on { background: var(--accent-soft); }
.mock-list li.dim { opacity: .62; }
.mock-list li.sep { display: block; padding: 8px 5px 2px; font-size: 9.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.mock-list strong { display: block; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list small { display: block; color: var(--muted); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-list em { font-style: normal; color: var(--muted); font-size: 9.5px; align-self: start; padding-top: 2px; }
.mock-list em.badge { min-width: 17px; height: 17px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-weight: 700; text-align: center; line-height: 17px; align-self: center; }
.mock-list .av { width: 30px; height: 30px; font-size: 11px; }
.av { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; color: #fff; font-size: 12px; font-weight: 700; font-style: normal; }
.av svg { width: 15px; height: 15px; }
.av1 { background: linear-gradient(135deg, #8a74ea, #5c55d6); }
.av2 { background: linear-gradient(135deg, #4aa5f0, #3a73e0); }
.av3 { background: linear-gradient(135deg, #f0a35a, #e2704a); }
.av4 { background: linear-gradient(135deg, #5ac39a, #2f9c75); }
.av5 { background: linear-gradient(135deg, #e97aa6, #c9508a); }
.av6 { background: linear-gradient(135deg, #b38cf0, #8a5fd8); }
.mock-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.mock-head { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-bottom: 1px solid var(--line); }
.mock-head .av { width: 26px; height: 26px; font-size: 10px; }
.mock-head strong { display: block; font-size: 12px; }
.mock-head small { color: var(--muted); font-size: 10px; }
.lockchip { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; padding: 3px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; font-weight: 750; white-space: nowrap; }
.lockchip svg { width: 11px; height: 11px; }
.mock-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px; overflow: hidden; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 0); background-size: 18px 18px; }
.msg { position: relative; flex: none; max-width: 88%; padding: 6px 9px 15px; border-radius: 12px; background: var(--bubble-in); font-size: 11.5px; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.msg .who { display: block; font-weight: 700; font-size: 10.5px; color: var(--accent-ink); }
.msg u { color: var(--blue); text-decoration-thickness: 1px; }
.msg time { position: absolute; right: 8px; bottom: 2px; display: inline-flex; align-items: center; gap: 2px; color: var(--muted); font-size: 9.5px; }
.msg time svg { width: 12px; height: 12px; color: var(--blue); }
.msg.out { align-self: flex-end; background: var(--bubble-out); border-bottom-right-radius: 4px; }
.msg.in { border-bottom-left-radius: 4px; }
.mention { color: var(--accent-ink); font-weight: 700; }
:root:not([data-theme="light"]) .msg.out .mention { color: #e1dbff; }
.rx { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: 10.5px; }
.nudge { flex: none; align-self: center; margin-top: 2px; padding: 4px 12px; border-radius: 999px; background: color-mix(in srgb, var(--warn) 22%, var(--mock-bg)); color: var(--text); font-size: 11px; font-weight: 650; animation: wiggle 3.2s ease-in-out infinite; }
@keyframes wiggle { 0%, 82%, 100% { transform: none; } 86% { transform: rotate(-3deg); } 90% { transform: rotate(3deg); } 94% { transform: rotate(-2deg); } }
.mock-input { display: flex; flex: none; align-items: center; gap: 8px; margin: 0 8px 8px; padding: 5px 5px 5px 11px; border-radius: 11px; background: var(--surface-3); color: var(--muted); font-size: 11px; }
.mock-input span { flex: 1; }
.mock-input b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--grad); color: #fff; }
.mock-input svg { width: 13px; height: 13px; }

/* ---------- stats ---------- */
.stats { padding-block: 8px 24px; }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat { padding: 20px 22px; border-radius: var(--radius); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: var(--shadow); }
.stat b { display: block; font-size: clamp(2rem, 1.4rem + 1.6vw, 2.8rem); font-weight: 800; letter-spacing: -.04em; line-height: 1; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.stat b span { background: none; color: inherit; }
.stat > span { display: block; margin-top: 8px; color: var(--muted); font-size: .9rem; line-height: 1.4; }

/* ---------- sections ---------- */
.section { position: relative; padding-block: clamp(64px, 9vw, 120px); }
.sec-head { max-width: 760px; margin: 0 auto clamp(30px, 4vw, 52px); text-align: center; }
.sec-head.left { margin: 0; text-align: left; }
.sec-head h2 { margin-top: 12px; font-size: clamp(1.8rem, 1.1rem + 2.4vw, 3rem); font-weight: 790; letter-spacing: -.04em; }
.sec-head p { margin-top: 14px; color: var(--muted); font-size: 1.06rem; }
.grid { display: grid; gap: 16px; }
.features { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { position: relative; overflow: hidden; padding: 24px; border-radius: var(--radius); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .35s var(--ease), border-color .3s ease, box-shadow .3s ease; }
.card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); box-shadow: var(--shadow), var(--glow); }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(135, 116, 225, .16), transparent 60%); }
.spot:hover::before { opacity: 1; }
.card h3 { margin-top: 16px; font-size: 1.08rem; font-weight: 720; }
.card p { margin-top: 6px; color: var(--muted); font-size: .94rem; }
.ico { position: relative; display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; background: linear-gradient(135deg, rgba(135, 116, 225, .22), rgba(79, 140, 255, .14)); color: var(--accent-ink); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); transition: transform .4s var(--ease); }
.ico svg { width: 22px; height: 22px; }
.card:hover .ico { transform: rotate(-6deg) scale(1.08); }
.roadmap { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 16px; }
.road { padding: 20px 22px; border-radius: var(--radius); border: 1px dashed color-mix(in srgb, var(--accent) 45%, var(--line)); background: color-mix(in srgb, var(--surface-solid) 40%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.road p { margin: 10px 0 12px; color: var(--muted); font-size: .92rem; }
.tag { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .72rem; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; }
.tag-soon { background: var(--accent-soft); color: var(--accent-ink); }
.tag-later { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-size: .88rem; }
.chips li[hidden] { display: none; }
.chips svg { width: 16px; height: 16px; color: var(--accent-ink); }

/* real screenshots gallery */
.shots { margin-top: 28px; }
.shots[hidden] { display: none; }
.shots-title { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-size: 1rem; font-weight: 700; color: var(--muted); }
.shots-title svg { width: 18px; height: 18px; color: var(--accent-ink); }
.shots-track { display: grid; grid-auto-flow: column; grid-auto-columns: min(78vw, 460px); gap: 16px; overflow-x: auto; padding: 4px 4px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.shot-card { margin: 0; scroll-snap-align: start; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); transition: transform .35s var(--ease), box-shadow .3s; }
.shot-card:hover { transform: translateY(-4px); box-shadow: var(--shadow), var(--glow); }
.shot-card img { width: 100%; height: auto; aspect-ratio: 1.6; object-fit: cover; background: var(--mock-bg); }
.shot-card figcaption { padding: 10px 14px 12px; color: var(--muted); font-size: .86rem; }

/* icon draw-on (stroke icons inherit dash props through <use>) */
.motion .rv .ico svg { stroke-dasharray: 90; stroke-dashoffset: 90; }
.motion .rv.in .ico svg { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s calc(var(--rd, 0s) + .1s) ease; }

/* reveal */
.motion .rv { opacity: 0; transform: translateY(26px); }
.motion .rv.in { opacity: 1; transform: none; transition: opacity .6s ease, transform .7s var(--ease); transition-delay: var(--rd, 0s); }

/* ---------- steps ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 28px 24px; border-radius: var(--radius); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: var(--shadow); }
.step .num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: var(--grad); color: #fff; font-weight: 800; box-shadow: 0 10px 24px -8px rgba(110, 90, 240, .7); }
.step h3 { margin-top: 18px; font-size: 1.14rem; }
.step p { margin-top: 8px; color: var(--muted); font-size: .95rem; }
.step:not(:last-child)::after { content: ""; position: absolute; top: 49px; right: -14px; width: 10px; height: 10px; border-top: 2px solid var(--accent); border-right: 2px solid var(--accent); transform: rotate(45deg); opacity: .7; }

/* ---------- story ---------- */
.story { position: relative; padding-top: clamp(64px, 9vw, 120px); }
.story kbd { font-size: .8em; }
.story-grid { display: grid; grid-template-columns: 150px minmax(0, .9fr) minmax(0, 1.2fr); grid-template-areas: "rail steps stage"; gap: clamp(20px, 3vw, 44px); align-items: start; max-width: 1400px; }
.rail { grid-area: rail; position: sticky; top: calc(var(--header-h) + 48px); }
.rail-list { position: relative; display: grid; gap: 2px; padding-left: 18px; }
.rail-list button { display: grid; gap: 0; width: 100%; padding: 7px 10px; border: 0; border-radius: 10px; background: none; text-align: left; cursor: pointer; color: var(--muted); transition: color .3s, background-color .3s; }
.rail-list button:hover { color: var(--text); background: var(--surface-3); }
.rail-list time { font-size: .72rem; font-weight: 700; letter-spacing: .04em; font-variant-numeric: tabular-nums; opacity: .8; }
.rail-list span { font-size: .88rem; font-weight: 620; line-height: 1.25; }
.rail-list button[aria-current="step"] { color: var(--text); background: var(--accent-soft); }
.rail-list button[aria-current="step"] time { color: var(--accent-ink); opacity: 1; }
.rail-track { position: absolute; left: 4px; top: 10px; bottom: 10px; width: 2px; border-radius: 2px; background: var(--line-2); }
.rail-track i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--p, 0) * 100%); border-radius: 2px; background: var(--grad); box-shadow: 0 0 12px rgba(135, 116, 225, .8); transition: height .25s linear; }
.rail-track i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 3px var(--accent), 0 0 16px var(--accent); }

.stage-wrap { grid-area: stage; position: sticky; top: calc(var(--header-h) + 20px); height: calc(100vh - var(--header-h) - 40px); display: flex; align-items: center; }
.stage { width: 100%; perspective: 1800px; }
.stage-frame { --ar: 1.6; width: min(100%, calc((100vh - var(--header-h) - 170px) * var(--ar))); margin-inline: auto; border-radius: 16px; overflow: hidden; background: var(--mock-side); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg), 0 60px 140px -50px rgba(110, 90, 255, .6); transform: rotateY(var(--sry, -7deg)) rotateX(var(--srx, 3deg)); transform-style: preserve-3d; transition: transform 1s var(--ease), width .6s var(--ease); }
.stage-screen { position: relative; aspect-ratio: var(--ar); overflow: hidden; background: var(--mock-bg); transition: aspect-ratio .6s var(--ease); }
.stage-screen > video, .stage-screen > img.shot { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #0b0b12; opacity: 0; transition: opacity .5s ease; z-index: 2; }
.stage-screen > video.on, .stage-screen > img.shot.on { opacity: 1; }
.stage-cap { min-height: 3em; margin: 16px auto 0; max-width: 46ch; text-align: center; color: var(--muted); font-size: .92rem; }
.stage-cap b { color: var(--accent-ink); }
.stage-mini { display: none; }

/* stage fallback app mock */
.app-mock { position: absolute; inset: 0; display: grid; grid-template-columns: 34% 66%; font-size: 12px; line-height: 1.35; background: var(--mock-bg); transition: opacity .4s; }
.stage.has-media .app-mock { opacity: 0; }
.am-side { border-right: 1px solid var(--line); background: var(--mock-side); padding: 9px 7px; min-width: 0; overflow: hidden; }
.am-tabs { display: flex; gap: 3px; margin-bottom: 8px; font-size: 10.5px; font-weight: 650; color: var(--muted); }
.am-tabs span { display: inline-flex; align-items: center; gap: 3px; padding: 3px 6px; border-radius: 7px; white-space: nowrap; }
.am-tabs .on { color: #fff; background: var(--grad); }
.am-tabs svg { width: 10px; height: 10px; }
.am-list li { display: flex; align-items: center; gap: 7px; padding: 5px; border-radius: 9px; font-weight: 600; font-size: 11.5px; white-space: nowrap; overflow: hidden; transition: opacity .6s ease, transform .6s var(--ease), filter .6s ease, max-height .6s var(--ease), padding .6s; max-height: 44px; }
.am-list li.on { background: var(--accent-soft); }
.am-list .av { width: 26px; height: 26px; font-size: 10px; }
.am-list .sep { display: block; padding: 8px 5px 2px; font-size: 9.5px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.am-list li.me { opacity: .75; }
.am-chat { display: flex; flex-direction: column; min-width: 0; min-height: 0; transition: opacity .5s, filter .5s; }
.am-head { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.am-head .av { width: 28px; height: 28px; font-size: 10px; }
.am-head strong { display: block; font-size: 12px; }
.am-head small { color: var(--muted); font-size: 10px; }
.am-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 7px; padding: 10px; overflow: hidden; background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 14%, transparent) 1px, transparent 0); background-size: 18px 18px; }
.am-msgs > [data-at] { display: none; }
.am-msgs > [data-at].on { display: block; animation: pop .55s var(--ease) both; }
.am-msgs > .nudge.on { display: inline-block; animation: pop .55s var(--ease) both, wiggle 3.2s 1s ease-in-out infinite; }
.am-msgs > [data-at].now { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 70%, transparent), 0 8px 24px -8px rgba(135, 116, 225, .8); }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.jcard-mini { display: flex; align-items: center; gap: 5px; margin-top: 5px; padding: 5px 7px; border-radius: 8px; background: var(--surface-3); border-left: 3px solid var(--blue); font-size: 10.5px; }
.jcard-mini svg { width: 12px; height: 12px; color: var(--blue); }
.lz { display: inline-block; padding: 1px 6px; border-radius: 4px; font-style: normal; font-weight: 750; font-size: .78em; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.lz-new { background: rgba(160, 165, 190, .2); color: var(--muted); }
.lz-ind { background: rgba(79, 140, 255, .2); color: var(--blue); }
.lz-done { background: rgba(60, 207, 135, .18); color: var(--ok); }
.vbar { display: flex; align-items: center; gap: 2px; margin-top: 3px; }
.vbar b { display: grid; place-items: center; width: 22px; height: 22px; margin-right: 4px; border-radius: 50%; background: var(--grad); color: #fff; font-size: 9px; }
.vbar i { width: 3px; border-radius: 2px; background: var(--accent-ink); height: 8px; opacity: .8; }
.vbar i:nth-child(3n) { height: 14px; } .vbar i:nth-child(4n) { height: 5px; } .vbar i:nth-child(5n) { height: 11px; }
.vbar em { margin-left: 6px; font-style: normal; color: var(--muted); font-size: 10px; }
.pollm strong { display: block; margin: 2px 0 4px; font-size: 11.5px; }
.pb { position: relative; display: block; width: 190px; max-width: 100%; height: 18px; margin-top: 3px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.pb i { position: absolute; inset: 0 auto 0 0; width: var(--w); background: linear-gradient(90deg, rgba(135, 116, 225, .55), rgba(79, 140, 255, .45)); }
.pb em { position: relative; padding-left: 6px; font-style: normal; font-size: 10px; line-height: 18px; font-weight: 600; }
.thr { display: flex; align-items: center; gap: 5px; margin-top: 5px; color: var(--accent-ink); font-weight: 700; font-size: 10.5px; }
.thr svg { width: 12px; height: 12px; }
.am-admin { position: absolute; right: 12px; bottom: 54px; z-index: 1; display: none; width: 210px; padding: 12px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 11px; }
.am-admin.on { display: grid; gap: 4px; animation: pop .6s var(--ease) both; }
.am-admin strong { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.am-admin svg { width: 15px; height: 15px; color: var(--accent-ink); }
.am-admin span { color: var(--muted); }
.am-admin em { justify-self: start; padding: 3px 9px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 18%, transparent); color: var(--ok); font-style: normal; font-weight: 750; }
.am-revoked { position: absolute; inset: 0 0 0 34%; z-index: 1; display: none; place-content: center; justify-items: center; gap: 6px; text-align: center; background: color-mix(in srgb, var(--mock-bg) 88%, transparent); backdrop-filter: blur(6px); }
.am-revoked.on { display: grid; animation: fadein .6s .5s both; }
.am-revoked svg { width: 40px; height: 40px; color: var(--bad); }
.am-revoked strong { font-size: 14px; }
.am-revoked span { color: var(--muted); font-size: 11.5px; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
.app-mock.revoked .am-list li.co { opacity: 0; transform: translateX(-20px) scale(.9); filter: blur(4px); max-height: 0; padding-block: 0; }
.app-mock.revoked .am-tabs .t-co { opacity: .25; text-decoration: line-through; }
.app-mock.revoked .am-chat { filter: blur(3px) grayscale(1); opacity: .35; }

/* step column */
.steps-col { grid-area: steps; }
.st-step { min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 14px; padding-block: 8vh; outline: none; transition: opacity .5s ease; }
.js .st-step:not(.is-active) { opacity: .32; }
.st-step:focus-visible { outline: 2px dashed var(--accent); outline-offset: 8px; }
.st-time { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .8rem; font-weight: 750; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.st-time svg { width: 15px; height: 15px; }
.st-step h3 { font-size: clamp(1.45rem, 1rem + 1.5vw, 2.15rem); font-weight: 780; letter-spacing: -.035em; line-height: 1.12; }
.st-step > p { color: var(--muted); font-size: 1.02rem; max-width: 36em; }
.st-step > p b { color: var(--text); }
.soon { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--warn); background: color-mix(in srgb, var(--warn) 14%, transparent); }
.soon[hidden] { display: none; }
.st-next { margin-top: 6px; }
.st-media { display: none; }

/* demos (shared) */
.demo { position: relative; width: 100%; max-width: 520px; padding: 16px; border-radius: 18px; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.demo-hint { margin-top: 10px; color: var(--muted); font-size: .8rem; }
.bubble { position: relative; padding: 9px 12px; border-radius: 14px 14px 14px 4px; background: var(--bubble-in); font-size: .93rem; line-height: 1.5; }
.bubble .who { display: block; font-weight: 700; font-size: .78rem; color: var(--accent-ink); }

/* demo: folders */
.df-tabs { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: var(--surface-3); }
.df-tabs button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 8px; border: 0; border-radius: 9px; background: none; font-weight: 650; font-size: .86rem; color: var(--muted); cursor: pointer; transition: color .25s, background-color .25s, box-shadow .25s; }
.df-tabs button svg { width: 14px; height: 14px; }
.df-tabs button[aria-selected="true"] { color: #fff; background: var(--grad); box-shadow: 0 6px 18px -6px rgba(110, 90, 240, .7); }
.df-list { display: grid; margin-top: 10px; }
.df-list li { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: 10px; font-weight: 620; font-size: .9rem; max-height: 50px; overflow: hidden; transition: opacity .45s ease, transform .45s var(--ease), max-height .45s var(--ease), padding .45s; }
.df-list li .av { width: 30px; height: 30px; font-size: 11px; }
.df-list li em { margin-left: auto; font-style: normal; font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); }
.df-list li[data-k="me"] em { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.df-list li.out { opacity: 0; transform: translateX(-16px); max-height: 0; padding-block: 0; }

/* demo: jira */
.demo-jira .bubble { font-size: .95rem; }
.jira-link { color: var(--blue); font-weight: 650; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; border-radius: 4px; }
.jira-link:hover, .jira-link.on { background: color-mix(in srgb, var(--blue) 14%, transparent); text-decoration-style: solid; }
.jcard { position: relative; margin-top: 12px; padding: 12px 14px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line-2); border-left: 4px solid var(--jc, var(--blue)); box-shadow: var(--shadow-lg); transform-origin: top left; transition: opacity .3s, transform .35s var(--ease), border-color .3s; }
.jcard.idle { opacity: .55; transform: scale(.98); }
.jcard.flip { animation: jflip .45s var(--ease); }
@keyframes jflip { from { opacity: 0; transform: translateY(-6px) scale(.97); } to { opacity: 1; transform: none; } }
.jc-top { display: flex; align-items: center; gap: 7px; font-size: .82rem; }
.jc-top svg { width: 16px; height: 16px; color: var(--jc, var(--blue)); }
.jc-top span { margin-left: auto; color: var(--muted); font-size: .76rem; }
.jcard p { margin-top: 6px; font-weight: 650; font-size: .95rem; }
.jc-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 8px; color: var(--muted); font-size: .8rem; }
.jc-meta .lz { font-size: .7rem; }

/* demo: mention */
.mn-sent { display: grid; gap: 8px; margin-bottom: 10px; min-height: 0; }
.mn-sent .bubble { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--bubble-out); animation: pop .5s var(--ease) both; }
:root:not([data-theme="light"]) .mn-sent .bubble { color: #fff; }
.mn-sent .bubble .mention { color: inherit; padding: 0 3px; border-radius: 4px; background: rgba(255, 255, 255, .18); }
.mn-sent .toast { justify-self: center; padding: 4px 12px; border-radius: 999px; font-size: .78rem; font-weight: 650; color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, transparent); animation: pop .5s .2s var(--ease) both; }
.mn-box { position: relative; display: flex; gap: 8px; }
.mn-box input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-3); outline: none; transition: border-color .2s, box-shadow .2s; }
.mn-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.mn-send { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border: 0; border-radius: 12px; background: var(--grad); color: #fff; cursor: pointer; }
.mn-send svg { width: 18px; height: 18px; }
.mn-list { position: absolute; left: 0; right: 52px; bottom: calc(100% + 6px); z-index: 3; padding: 5px; border-radius: 14px; background: var(--surface-solid); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: pop .25s var(--ease) both; }
.mn-list li { display: flex; align-items: center; gap: 10px; padding: 7px 9px; border-radius: 9px; cursor: pointer; font-size: .9rem; }
.mn-list li .av { width: 28px; height: 28px; font-size: 10px; }
.mn-list li small { margin-left: auto; color: var(--muted); font-size: .76rem; }
.mn-list li[aria-selected="true"] { background: var(--accent-soft); }
.mn-list mark { background: none; color: var(--accent-ink); font-weight: 750; }

/* demo: voice */
.demo-voice { display: flex; align-items: center; gap: 14px; }
.vc-play { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border: 0; border-radius: 50%; background: var(--grad); color: #fff; cursor: pointer; box-shadow: 0 10px 26px -8px rgba(110, 90, 240, .8); transition: transform .2s; }
.vc-play:active { transform: scale(.94); }
.vc-play svg { width: 22px; height: 22px; }
.vc-play .ic-pause, .vc-play[aria-pressed="true"] .ic-play { display: none; }
.vc-play[aria-pressed="true"] .ic-pause { display: block; }
.vc-wave { flex: 1; min-width: 0; display: flex; align-items: center; gap: 3px; height: 44px; }
.vc-wave i { flex: 1; min-width: 2px; max-width: 5px; height: calc(var(--h) * 100%); border-radius: 3px; background: var(--line-2); transition: background-color .15s; }
.vc-wave i.p { background: var(--accent-ink); }
.demo-voice.playing .vc-wave i.p:last-of-type { transform: scaleY(1.2); }
.vc-time { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }

/* demo: poll */
.demo-poll { display: grid; gap: 8px; }
.demo-poll strong { font-size: 1rem; margin-bottom: 2px; }
.po { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--surface-3); overflow: hidden; cursor: pointer; text-align: left; transition: border-color .2s; }
.po:hover { border-color: var(--accent); }
.po-bar { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(135, 116, 225, .45), rgba(79, 140, 255, .32)); transition: width .9s var(--ease); }
.po-t, .po-p { position: relative; font-weight: 650; font-size: .92rem; }
.po-p { font-variant-numeric: tabular-nums; color: var(--muted); opacity: 0; transition: opacity .3s; }
.demo-poll.voted .po-p { opacity: 1; }
.po[aria-pressed="true"] { border-color: var(--accent); }
.po[aria-pressed="true"] .po-t::after { content: " ✓"; color: var(--accent-ink); }
.demo-poll small { color: var(--muted); font-size: .8rem; }

/* demo: thread */
.th-toggle { display: inline-flex; align-items: center; gap: 7px; margin-top: 10px; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface-3); color: var(--accent-ink); font-weight: 700; font-size: .88rem; cursor: pointer; }
.th-toggle svg { width: 16px; height: 16px; }
.th-toggle .chev { transition: transform .3s; }
.th-toggle[aria-expanded="true"] .chev { transform: rotate(180deg); }
.th-replies { display: grid; gap: 8px; margin-top: 10px; padding-left: 14px; border-left: 2px solid color-mix(in srgb, var(--accent) 50%, transparent); }
.th-replies li { display: flex; gap: 9px; align-items: flex-start; font-size: .9rem; }
.th-replies li .av { width: 28px; height: 28px; font-size: 10px; }
.th-replies li > div { padding: 7px 11px; border-radius: 12px; background: var(--bubble-in); }
.th-replies strong { display: block; font-size: .76rem; color: var(--accent-ink); }
.th-replies.open li { animation: pop .45s var(--ease) both; }
.th-replies.open li:nth-child(2) { animation-delay: .12s; }
.th-replies.open li:nth-child(3) { animation-delay: .24s; }

/* demo: duck */
.demo-duck { display: flex; align-items: center; gap: 22px; }
.mini-phone { flex: none; width: 112px; padding: 6px; border-radius: 24px; background: linear-gradient(160deg, #3a3a50, #121219); box-shadow: var(--shadow-lg); }
.mp-screen { position: relative; aspect-ratio: 9 / 17; border-radius: 19px; overflow: hidden; background: linear-gradient(160deg, #2a2050, #10142a); display: grid; align-content: start; justify-items: center; padding-top: 18px; }
:root[data-theme="light"] .mp-screen { background: linear-gradient(160deg, #e7e2ff, #dbe8ff); }
.mp-time { font-size: 22px; font-weight: 300; color: #fff; letter-spacing: -.02em; }
:root[data-theme="light"] .mp-time { color: #1d1d2e; }
.mp-toast { display: flex; gap: 6px; align-items: center; width: 90%; margin-top: 10px; padding: 6px; border-radius: 10px; background: rgba(255, 255, 255, .16); backdrop-filter: blur(8px); color: #fff; font-size: 9px; opacity: 0; transform: translateY(-8px); transition: opacity .3s, transform .4s var(--ease); }
:root[data-theme="light"] .mp-toast { background: rgba(255, 255, 255, .8); color: #1d1d2e; }
.mp-toast b { font-size: 16px; }
.mp-toast strong { display: block; font-size: 9.5px; }
.mini-phone.ring .mp-toast { opacity: 1; transform: none; }
.mini-phone.shake { animation: shake .9s cubic-bezier(.36, .07, .19, .97) both; }
@keyframes shake { 10%, 90% { transform: translateX(-2px) rotate(-1deg); } 20%, 80% { transform: translateX(4px) rotate(2deg); } 30%, 50%, 70% { transform: translateX(-7px) rotate(-3deg); } 40%, 60% { transform: translateX(7px) rotate(3deg); } }
.duck-ctrl { display: grid; grid-template-columns: auto auto; justify-content: start; align-items: center; gap: 10px; }
.duck-ctrl .demo-hint { grid-column: 1 / -1; margin: 0; }
[data-duck-mute] .ic-mut, [data-duck-mute][aria-pressed="true"] .ic-snd { display: none; }
[data-duck-mute][aria-pressed="true"] .ic-mut { display: block; }

/* demo: registration */
.demo-reg { display: grid; grid-template-columns: 1fr 1.3fr; gap: 12px; }
.demo-reg small { display: block; margin-bottom: 6px; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.reg-user, .reg-admin { padding: 12px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); }
.reg-state { padding: 10px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 14%, transparent); color: var(--warn); font-weight: 650; font-size: .86rem; transition: background-color .4s, color .4s; }
.reg-state.ok { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); animation: pop .5s var(--ease); }
.reg-row { display: flex; align-items: center; gap: 9px; }
.reg-row strong { display: block; font-size: .92rem; }
.reg-row span { color: var(--muted); font-size: .8rem; }
.reg-btns { display: flex; gap: 8px; margin-top: 10px; }
.demo-reg.done .reg-admin { border-color: color-mix(in srgb, var(--ok) 50%, transparent); }

/* demo: revoke */
.rv-switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 650; }
.rv-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sw { position: relative; flex: none; width: 50px; height: 28px; border-radius: 14px; background: var(--ok); transition: background-color .3s; }
.sw i { position: absolute; top: 3px; left: 25px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); transition: left .3s var(--ease); }
.rv-switch input:checked + .sw { background: var(--bad); }
.rv-switch input:checked + .sw i { left: 3px; }
.rv-switch input:focus-visible + .sw { outline: 2.5px solid var(--accent-ink); outline-offset: 3px; }
.rv-devs { display: grid; grid-template-columns: 1.25fr .8fr 1.1fr; gap: 10px; margin-top: 14px; align-items: end; perspective: 900px; }
.rd { padding: 9px; border-radius: 12px; background: var(--surface-3); border: 1px solid var(--line-2); transform: rotateX(8deg); transition: transform .5s var(--ease), box-shadow .5s; }
.rd-phone { border-radius: 18px; }
.rd-name { display: flex; align-items: center; gap: 5px; margin-bottom: 6px; color: var(--muted); font-size: .72rem; font-weight: 700; }
.rd-name svg { width: 14px; height: 14px; }
.rd ul { display: grid; gap: 4px; }
.rd li { position: relative; padding: 4px 7px; border-radius: 7px; font-size: .74rem; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-height: 30px; transition: opacity .7s ease, transform .7s var(--ease), filter .7s ease, max-height .6s .3s var(--ease), padding .6s .3s; }
.rd li.co { background: var(--grad); color: #fff; }
.rd li.me { background: color-mix(in srgb, var(--blue) 16%, transparent); color: var(--blue); }
.demo-revoke.off .rd li.co { opacity: 0; filter: blur(6px); transform: translateY(-10px) scale(1.15); max-height: 0; padding-block: 0; }
.demo-revoke.off .rd li.co:nth-child(2) { transition-delay: .08s; }
.demo-revoke.off .rd { box-shadow: 0 0 0 1px color-mix(in srgb, var(--bad) 40%, transparent); }
.demo-revoke.flash .rd { animation: zap .7s ease; }
@keyframes zap { 0% { box-shadow: 0 0 0 0 rgba(255, 107, 125, .7); } 100% { box-shadow: 0 0 0 14px rgba(255, 107, 125, 0); } }

/* ---------- deck ---------- */
.deck { position: relative; border-radius: 26px; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); overflow: hidden; }
.deck:focus-visible { outline-offset: 4px; border-radius: 26px; }
.deck-viewport { overflow: hidden; touch-action: pan-y; }
.deck-track { display: flex; transition: transform .65s var(--ease); will-change: transform; }
.deck.dragging .deck-track { transition: none; }
.slide { flex: 0 0 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; min-height: 460px; padding: clamp(24px, 4.5vw, 60px); background: radial-gradient(60% 70% at 100% 0%, rgba(135, 116, 225, .18), transparent 70%), radial-gradient(50% 60% at 0% 100%, rgba(79, 140, 255, .1), transparent 70%); }
.s-kicker { display: inline-block; font-size: .8rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.slide h3 { margin-top: 12px; font-size: clamp(1.5rem, 1.05rem + 1.7vw, 2.4rem); font-weight: 790; letter-spacing: -.035em; }
.slide .s-copy > p { margin-top: 14px; color: var(--muted); font-size: 1.04rem; }
.s-list { margin-top: 16px; display: grid; gap: 10px; }
.s-list li { position: relative; padding-left: 26px; color: var(--muted); }
.s-list li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 14px; border-radius: 50%; background: color-mix(in srgb, var(--bad) 22%, transparent); box-shadow: inset 0 0 0 4px color-mix(in srgb, var(--bad) 70%, transparent); }
.slide .a { opacity: 0; transform: translateY(18px); transition: opacity .5s ease, transform .7s var(--ease); }
.slide.is-active .a { opacity: 1; transform: none; }
.slide.is-active .s-copy .a:nth-child(2) { transition-delay: .08s; }
.slide.is-active .s-copy .a:nth-child(3) { transition-delay: .16s; }
.slide.is-active .s-copy .a:nth-child(4) { transition-delay: .24s; }
.slide.is-active .s-art.a { transition-delay: .22s; }
.s-art { display: grid; place-items: center; min-width: 0; }
.problem { position: relative; display: grid; gap: 8px; width: min(100%, 320px); padding: 16px; border-radius: 18px; background: var(--surface-3); border: 1px solid var(--line); }
.pchat { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: var(--surface-solid); font-weight: 600; font-size: .92rem; }
.pchat .av { width: 30px; height: 30px; font-size: 11px; }
.pchat.warn { box-shadow: inset 3px 0 0 var(--bad); }
.pstamp { position: absolute; right: -10px; bottom: -14px; padding: 6px 14px; border-radius: 10px; background: var(--bad); color: #fff; font-weight: 800; font-size: .85rem; transform: rotate(-6deg); box-shadow: var(--shadow); }
.layers { position: relative; display: grid; gap: 0; width: min(100%, 360px); padding-top: 8px; }
.layer { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.layer svg { width: 34px; height: 34px; flex: none; }
.layer strong { display: block; font-size: 1.08rem; }
.layer small { color: var(--muted); font-size: .86rem; }
.l-top { position: relative; z-index: 2; background: var(--grad); color: #fff; border-color: transparent; transform: translate(14px, 0); }
.l-top small { color: rgba(255, 255, 255, .85); }
.l-bot { margin-top: -10px; padding-top: 28px; background: var(--surface-solid); transform: translate(-6px, 0); }
.l-bot svg { color: var(--blue); }
.slide.is-active .l-top { animation: lift .9s .35s var(--ease) both; }
@keyframes lift { from { transform: translate(14px, 26px); } to { transform: translate(14px, 0); } }
.flow { width: min(100%, 440px); height: auto; overflow: visible; }
.flow .node rect { fill: var(--surface-solid); stroke: var(--line-2); stroke-width: 1.5; }
.flow .n-app rect { fill: url(#tt-grad); stroke: none; }
.flow .n-app text { fill: #fff; }
.flow .n-co rect { stroke: var(--accent); stroke-width: 2; }
.flow .n-tg rect { stroke: var(--blue); stroke-width: 2; stroke-dasharray: 5 4; }
.flow text { fill: var(--text); font: 700 15px var(--font); text-anchor: middle; }
.flow text.sub { fill: var(--muted); font-weight: 500; font-size: 12px; }
.flow .n-app text.sub { fill: rgba(255, 255, 255, .85); }
.flow text.lbl { fill: var(--muted); font-weight: 600; font-size: 12px; text-anchor: start; }
.wire { fill: none; stroke-width: 2.5; stroke-dasharray: 6 6; }
.w1 { stroke: var(--blue); }
.w2 { stroke: var(--accent); }
.slide.is-active .wire { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.revoke { width: min(100%, 380px); display: grid; gap: 14px; }
.rv-admin { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); font-weight: 650; font-size: .95rem; }
.switch { position: relative; width: 46px; height: 26px; border-radius: 13px; background: var(--ok); transition: background-color .3s; }
.switch i { position: absolute; top: 3px; left: 23px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: left .3s; }
.rv-devices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.dev { display: grid; justify-items: center; gap: 8px; padding: 16px 8px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); }
.dev svg { width: 30px; height: 30px; color: var(--muted); }
.dev span { width: 100%; padding: 4px 6px; border-radius: 8px; text-align: center; font-size: .76rem; font-weight: 700; }
.dev .co { background: var(--grad); color: #fff; }
.dev .me { background: color-mix(in srgb, var(--blue) 15%, transparent); color: var(--blue); }
.slide.is-active .switch { animation: switchoff .01s 1.1s forwards; }
.slide.is-active .switch i { animation: knob .3s 1.1s forwards; }
.slide.is-active .dev .co { animation: vanish .5s forwards; }
.slide.is-active .dev:nth-child(1) .co { animation-delay: 1.4s; }
.slide.is-active .dev:nth-child(2) .co { animation-delay: 1.5s; }
.slide.is-active .dev:nth-child(3) .co { animation-delay: 1.6s; }
@keyframes switchoff { to { background: var(--bad); } }
@keyframes knob { to { left: 3px; } }
@keyframes vanish { to { opacity: .18; filter: grayscale(1); text-decoration: line-through; } }
.cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 440px; }
.cloud li { padding: 8px 14px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line); font-weight: 600; font-size: .9rem; }
.cloud li:nth-child(3n+1) { background: var(--accent-soft); border-color: transparent; color: var(--accent-ink); }
.plats, .sec-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; width: min(100%, 420px); }
.plats li, .sec-mini li { display: grid; justify-items: center; gap: 8px; padding: 18px 8px; border-radius: 16px; background: var(--surface-3); border: 1px solid var(--line); font-weight: 650; font-size: .88rem; text-align: center; }
.plats svg, .sec-mini svg { width: 30px; height: 30px; color: var(--accent-ink); }
.plats li.off { opacity: .55; border-style: dashed; }
.mini-steps { display: grid; gap: 10px; width: min(100%, 340px); }
.mini-steps li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line); font-weight: 650; }
.mini-steps b { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--grad); color: #fff; }
.deck-ctrl { display: flex; align-items: center; gap: 10px; padding: 12px clamp(14px, 3vw, 24px); border-top: 1px solid var(--line); }
.dots { display: flex; gap: 2px; }
.dots button { width: 22px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.dots button::before { content: ""; width: 8px; height: 8px; border-radius: 4px; background: var(--line-2); transition: width .25s, background-color .25s; }
.dots button[aria-current="true"]::before { width: 20px; background: var(--grad); }
.deck-count { color: var(--muted); font-size: .85rem; font-variant-numeric: tabular-nums; }
.deck-spacer { flex: 1; }
[data-play] .ic-pause, [data-play][aria-pressed="true"] .ic-play { display: none; }
[data-play][aria-pressed="true"] .ic-pause { display: block; }
.deck-progress { height: 3px; background: transparent; }
.deck-progress i { display: block; height: 100%; width: 0; background: var(--grad); box-shadow: 0 0 10px rgba(135, 116, 225, .8); transition: width .55s ease; }
.deck:fullscreen { display: flex; flex-direction: column; justify-content: center; border-radius: 0; background: var(--bg); }
.deck:fullscreen .slide { min-height: calc(100vh - 80px); }
.deck:fullscreen .slide h3 { font-size: clamp(2rem, 1rem + 2.6vw, 3.4rem); }

/* ---------- security ---------- */
.sec-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.sec-split .sec-head { position: sticky; top: calc(var(--header-h) + 24px); }
.sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; margin-top: 20px; font-weight: 650; text-decoration: none; }
.link-arrow svg { width: 18px; height: 18px; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(3px); }
.paths { margin-top: 24px; max-width: 340px; }
.paths svg { width: 100%; height: auto; overflow: visible; }
.paths path { fill: none; stroke-width: 2.5; stroke-dasharray: 5 6; }
.p-tg { stroke: var(--blue); }
.p-co { stroke: url(#pg); stroke-dasharray: none !important; stroke-width: 3 !important; }
.motion .paths path { animation: dash 1.4s linear infinite; }
.p-dot { offset-rotate: 0deg; }
.d1 { fill: var(--blue); offset-path: path("M150 75 C 110 75 90 30 40 30"); }
.d2 { fill: #fff; offset-path: path("M150 75 C 190 75 210 120 260 120"); filter: drop-shadow(0 0 6px #8774E1); }
.motion .p-dot { animation: travel 2.6s ease-in-out infinite; }
.motion .d2 { animation-delay: -1.3s; }
@keyframes travel { from { offset-distance: 0%; } to { offset-distance: 100%; } }
.p-node rect { fill: url(#pg); }
.p-node text { fill: #fff; font: 700 13px var(--font); text-anchor: middle; }
.p-end rect { fill: var(--surface-solid); stroke: var(--blue); stroke-width: 1.5; stroke-dasharray: 4 3; }
.p-end.co rect { stroke: var(--accent); stroke-dasharray: none; stroke-width: 2; }
.p-end text { fill: var(--text); font: 650 12px var(--font); text-anchor: middle; }

/* ---------- showcase ---------- */
.showcase { display: grid; grid-template-columns: 1fr 1.3fr .5fr; align-items: end; gap: clamp(14px, 3vw, 36px); margin: 0 auto clamp(40px, 6vw, 72px); max-width: 1080px; perspective: 1600px; }
.sc { margin: 0; transform-style: preserve-3d; }
.sc figcaption { margin-top: 14px; text-align: center; color: var(--muted); font-size: .84rem; font-weight: 600; }
.sc-desk .win-frame { transform: rotateY(18deg) rotateX(4deg); transform-origin: right center; }
.sc-laptop .laptop { transform: rotateX(8deg); }
.sc-phone .phone { transform: rotateY(-20deg) rotateX(4deg); transform-origin: left center; }
.sc > div, .sc .laptop, .sc .phone, .sc .win-frame { transition: transform 1s var(--ease); }
.showcase:hover .sc-desk .win-frame, .showcase:hover .sc-phone .phone, .showcase:hover .sc-laptop .laptop { transform: none; }
.sc-fb { padding: 10px; display: grid; gap: 7px; align-content: start; background: var(--mock-bg); }
.fb-row { height: 14px; border-radius: 6px; background: var(--surface-3); }
.fb-row.h { height: 20px; width: 50%; background: var(--accent-soft); }
.fb-row.s { width: 70%; background: color-mix(in srgb, var(--ok) 18%, transparent); }
.sc-fb.chat { display: grid; grid-template-columns: 30% 1fr; gap: 8px; padding: 0; }
.fb-side { display: grid; gap: 6px; align-content: start; padding: 8px; background: var(--mock-side); }
.fb-side i { height: 18px; border-radius: 6px; background: var(--surface-3); }
.fb-side i:first-child { background: var(--accent-soft); }
.fb-main, .sc-fb.ph { display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 8px; }
.sc-fb .b { display: block; width: 60%; height: 18px; border-radius: 9px; background: var(--bubble-in); }
.sc-fb .b.w { width: 78%; height: 28px; }
.sc-fb .b.out { align-self: flex-end; background: var(--bubble-out); width: 50%; }
.sc-fb.ph { justify-content: flex-start; }
.sc-fb.ph { padding: 0; gap: 0; }
.sc-fb.ph .ph-head { padding: 8px 10px 6px; }
.sc-fb.adm { gap: 6px; padding: 12px; font-size: 11px; }
.adm-h { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.adm-h strong { font-size: 13px; }
.adm-h span { color: var(--muted); font-size: 10.5px; }
.adm-r { display: flex; align-items: center; gap: 8px; padding: 5px 7px; border-radius: 9px; background: var(--surface-3); font-weight: 600; }
.adm-r .av { width: 22px; height: 22px; font-size: 8.5px; }
.adm-r i { margin-left: auto; padding: 1px 8px; border-radius: 999px; font-style: normal; font-size: 9.5px; font-weight: 750; }
.adm-r .ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 15%, transparent); }
.adm-r .wait { color: var(--warn); background: color-mix(in srgb, var(--warn) 15%, transparent); }
.adm-r .off { color: var(--bad); background: color-mix(in srgb, var(--bad) 15%, transparent); }
.adm-r.new { box-shadow: inset 3px 0 0 var(--warn); }

/* ---------- downloads ---------- */
.dl-updated { margin-top: 8px !important; font-size: .86rem !important; }
.dl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 16px; }
.dl-card { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 22px; border-radius: var(--radius); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); box-shadow: var(--shadow); min-width: 0; transition: transform .35s var(--ease), border-color .3s, box-shadow .3s; }
.dl-card:not(.skel):hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); }
.dl-card.mine { border-color: var(--accent); box-shadow: var(--shadow), var(--glow); }
.dl-card .mine-tag { position: absolute; top: -11px; right: 18px; padding: 3px 10px; border-radius: 999px; background: var(--grad); color: #fff; font-size: .74rem; font-weight: 700; }
.dl-top { display: flex; align-items: center; gap: 14px; }
.dl-top .ico { width: 50px; height: 50px; flex: none; }
.dl-top .ico svg { width: 25px; height: 25px; }
.dl-card[data-platform="windows"] .ico { color: #6fb6ff; }
.dl-card[data-platform^="macos"] .ico { color: #d2d6e6; }
:root[data-theme="light"] .dl-card[data-platform^="macos"] .ico { color: #3b3f52; }
.dl-card[data-platform^="linux"] .ico { color: #f3c24f; }
:root[data-theme="light"] .dl-card[data-platform^="linux"] .ico { color: #a77a08; }
.dl-card[data-platform="android"] .ico { color: #5ad18f; }
:root[data-theme="light"] .dl-card[data-platform="android"] .ico { color: #1f9a59; }
.dl-card:hover .ico { transform: translateY(-2px) rotate(-6deg); }
.dl-top h3 { font-size: 1.08rem; }
.dl-top p { color: var(--muted); font-size: .86rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: .85rem; }
.dl-meta .fname { width: 100%; font-family: var(--mono); font-size: .8rem; color: var(--text); overflow-wrap: anywhere; }
.dl-card .btn { width: 100%; }
.sha { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 10px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--line); font-size: .8rem; min-width: 0; }
.sha span { color: var(--muted); flex: none; font-weight: 700; font-size: .72rem; }
.sha code { flex: 1; min-width: 0; padding: 0; border: 0; background: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; word-break: normal; }
.copy-btn { display: inline-flex; align-items: center; gap: 5px; flex: none; padding: 5px 9px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface-solid); font-size: .78rem; font-weight: 600; cursor: pointer; }
.copy-btn svg { width: 14px; height: 14px; }
.copy-btn.done { color: var(--ok); border-color: var(--ok); }
.hint { font-size: .86rem; color: var(--muted); border-top: 1px dashed var(--line-2); padding-top: 12px; }
.hint summary { cursor: pointer; font-weight: 650; color: var(--text); }
.hint ol { margin-top: 8px; padding-left: 18px; list-style: decimal; display: grid; gap: 4px; }
.hint code { font-size: .8em; }
.skel { min-height: 280px; background: linear-gradient(100deg, var(--surface) 30%, var(--surface-3) 50%, var(--surface) 70%) 0 0 / 300% 100%; animation: shimmer 1.4s infinite linear; }
@keyframes shimmer { to { background-position: -150% 0; } }
.dl-empty { grid-column: 1 / -1; display: grid; justify-items: center; gap: 10px; padding: 40px 20px; border-radius: var(--radius); border: 1px dashed var(--line-2); background: var(--surface); text-align: center; color: var(--muted); }
.dl-empty svg { width: 36px; height: 36px; color: var(--accent-ink); }
.dl-empty strong { color: var(--text); font-size: 1.05rem; }
.dl-other { margin-top: 22px; padding: 18px 20px; border-radius: var(--radius); background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); }
.dl-other h3 { font-size: 1rem; }
.dl-other ul { display: grid; gap: 10px; margin-top: 12px; }
.dl-other li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.dl-other li:first-child { border-top: 0; padding-top: 0; }
.dl-other .o-name { font-weight: 650; }
.dl-other .o-meta { color: var(--muted); font-size: .82rem; overflow-wrap: anywhere; }
.dl-other .o-meta code { font-size: .76rem; }
.dl-other .btn { min-height: 38px; }
.dl-note { margin-top: 20px; text-align: center; color: var(--muted); font-size: .9rem; }

/* ---------- faq ---------- */
.faq-wrap { max-width: 860px; }
.faq { display: grid; gap: 10px; }
.faq details { border-radius: 16px; background: var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line); transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.faq summary { position: relative; padding: 18px 52px 18px 20px; font-weight: 650; cursor: pointer; list-style: none; border-radius: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 9px; height: 9px; margin-top: -7px; border-right: 2px solid var(--accent-ink); border-bottom: 2px solid var(--accent-ink); transform: rotate(45deg); transition: transform .25s, margin .25s; }
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -2px; }
.faq details p { padding: 0 20px 18px; color: var(--muted); }

/* ---------- final ---------- */
.final { padding-block: 0 clamp(64px, 9vw, 110px); }
.final-card { position: relative; overflow: hidden; padding: clamp(36px, 6vw, 72px); border-radius: 30px; text-align: center; background: radial-gradient(70% 90% at 50% 0%, rgba(135, 116, 225, .35), transparent 70%), var(--surface); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); }
.final-card h2 { font-size: clamp(1.8rem, 1rem + 3vw, 3.2rem); font-weight: 800; letter-spacing: -.045em; }
.final-card p { margin-top: 12px; color: var(--muted); font-size: 1.08rem; }
.final-card .cta-row { justify-content: center; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 28px; border-top: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.foot { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 32px; }
.foot-brand p { margin: 12px 0 14px; max-width: 30em; color: var(--muted); font-size: .92rem; }
.foot-nav { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.foot-nav h4 { margin-bottom: 10px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.foot-nav a { display: block; padding: 4px 0; color: var(--text); text-decoration: none; font-size: .93rem; }
.foot-nav a:hover { color: var(--accent-ink); }
.foot-legal { margin-top: 32px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .82rem; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .story-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.1fr); grid-template-areas: "steps stage"; }
  .rail { display: none; }
  .stage-mini { display: flex; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { min-height: 0; }
  .hero-visual { max-width: 640px; width: 100%; margin-inline: auto; }
  .scroll-cue { display: none; }
  .sec-split { grid-template-columns: 1fr; }
  .sec-split .sec-head { position: static; text-align: center; margin-inline: auto; }
  .paths { margin-inline: auto; }
  .roadmap { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .story-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "stage" "steps"; gap: 0; }
  .stage-wrap { top: var(--header-h); z-index: 6; height: auto; display: block; margin-inline: calc(-1 * var(--gutter)); padding: 10px var(--gutter) 12px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-bottom: 1px solid var(--line); }
  .stage-frame { width: min(100%, calc(30vh * var(--ar))); transform: none; border-radius: 12px; }
  .stage-frame .frame-bar { height: 22px; }
  .stage-frame .frame-bar i { width: 7px; height: 7px; }
  .stage-cap { display: none; }
  .stage-mini { margin-top: 8px; }
  .app-mock { grid-template-columns: 0 100%; }
  .am-side { display: none; }
  .am-revoked { inset: 0; }
  .st-step { min-height: 72vh; padding-block: 32px 40px; justify-content: flex-start; }
  .js .st-step:not(.is-active) { opacity: .45; }
  .demo { max-width: none; }
}
.stage-mini { align-items: center; gap: 10px; color: var(--muted); font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.stage-mini span { flex: none; }
.stage-mini i { position: relative; flex: 1; height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.stage-mini b { position: absolute; inset: 0 auto 0 0; width: calc(var(--p, 0) * 100%); background: var(--grad); transition: width .3s; }
@media (max-width: 760px) {
  .steps { grid-template-columns: 1fr; }
  .step:not(:last-child)::after { display: none; }
  .slide { grid-template-columns: 1fr; align-content: start; gap: 24px; min-height: 0; }
  .s-art { order: 2; }
  .foot { grid-template-columns: 1fr; }
  .sec-grid { grid-template-columns: 1fr; }
  .showcase { grid-template-columns: 1.15fr 1fr; }
  .sc-laptop { grid-column: 1 / -1; order: -1; }
  .sc-desk .win-frame, .sc-phone .phone { transform: none; }
  .sc-phone { justify-self: center; width: 86%; }
  .demo-reg { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .hero-visual { padding: 10px 30px 40px 0; transform: none; }
  .hero-visual > * { transform: none; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
  .fc1 { left: -6px; bottom: 0; }
  .fc2 { right: 30px; top: -10px; }
  .float-card { font-size: 11px; padding: 7px 9px; gap: 7px; }
  .float-card svg { width: 24px; height: 24px; padding: 4px; }
  .hero-phone { width: 104px; }
  .cta-row .btn { flex: 1 1 100%; }
  .foot-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .deck-count { display: none; }
  .deck-ctrl { gap: 6px; padding-inline: 12px; }
  .deck-ctrl .icon-btn { width: 36px; height: 36px; }
  .dots { gap: 0; }
  .dots button { width: 14px; }
  .dots button[aria-current="true"]::before { width: 12px; }
  .plats, .sec-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dl-other li { grid-template-columns: 1fr; }
  .stat-row { gap: 10px; }
  .stat { padding: 16px; }
  .demo-duck { gap: 14px; }
  .mini-phone { width: 92px; }
  .rv-devs { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .rd { padding: 6px; }
  .rd li { font-size: .66rem; padding: 3px 5px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; transition-delay: 0s !important; }
  .hero-visual { transform: none; }
  .stage-frame { transform: none; }
}
