/* DockLatch — landing page */

:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --fg: #f5f5f7;
  --muted: #a1a1a6;
  --dim: #6e6e73;
  --title-2: #86868b;
  --line: rgba(255, 255, 255, .08);
  --line-strong: rgba(255, 255, 255, .14);
  --glass: rgba(255, 255, 255, .035);
  --glass-strong: rgba(255, 255, 255, .07);
  --chip-active: rgba(255, 255, 255, .12);
  --accent: #4f8cff;
  --accent-2: #7fc3ff;
  --accent-text: #fff;
  --amber: #ffb23f;
  --ok: #3ddc84;
  --ok-text: #b9ffd6;
  --warn: #ff7a59;
  --warn-text: #ffc5b3;

  --eyebrow: #6aa2ff;

  --card-bg: #151517;
  --card-hover: #19191c;
  --card-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 20px 50px -30px rgba(0, 0, 0, .7);
  --panel: #151517;
  --nav-bg: rgba(22, 22, 24, .72);
  --nav-shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --toast-bg: rgba(28, 28, 30, .92);
  --stage-bg: #131315;
  --stage-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 40px 90px -40px rgba(0, 0, 0, .8);
  --art-bg: #1c1c1f;
  --art-line: rgba(255, 255, 255, .26);
  --glyph-bar: rgba(255, 255, 255, .45);
  --switch-off: rgba(255, 255, 255, .18);
  --bezel: linear-gradient(180deg, #2c313c, #15181e);
  --bezel-edge: rgba(255, 255, 255, .13);
  --display-shadow: 0 24px 50px -18px rgba(0, 0, 0, .85);
  --shot-shadow: drop-shadow(0 40px 60px rgba(0, 0, 0, .55));

  --price-bg: #151517;
  --price-border: rgba(255, 178, 63, .3);
  --price-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 30px 70px -36px rgba(0, 0, 0, .8);
  --price-accent: #ffb23f;
  --price-glow: rgba(255, 255, 255, .05);

  --grid-opacity: .5;
  --grain-opacity: .07;

  --radius: 24px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  --max: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f5f7;
  --fg: #1d1d1f;
  --muted: #515154;
  --dim: #86868b;
  --title-2: #86868b;
  --line: rgba(0, 0, 0, .08);
  --line-strong: rgba(0, 0, 0, .14);
  --glass: rgba(0, 0, 0, .03);
  --glass-strong: rgba(0, 0, 0, .055);
  --chip-active: #fff;
  --accent: #2f6bf0;
  --accent-2: #0a84ff;
  --accent-text: #1d4ed8;
  --amber: #d98200;
  --ok: #1fa35a;
  --ok-text: #15803d;
  --warn: #e0552f;
  --warn-text: #c2410c;

  --eyebrow: #2f6bf0;

  --card-bg: #ffffff;
  --card-hover: #ffffff;
  --card-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 18px 44px -30px rgba(0, 0, 0, .22);
  --panel: #ffffff;
  --nav-bg: rgba(255, 255, 255, .72);
  --nav-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  --toast-bg: rgba(255, 255, 255, .94);
  --stage-bg: #ffffff;
  --stage-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 40px 90px -45px rgba(0, 0, 0, .3);
  --art-bg: #f2f2f4;
  --art-line: rgba(0, 0, 0, .22);
  --glyph-bar: rgba(0, 0, 0, .32);
  --switch-off: rgba(0, 0, 0, .14);
  --bezel-edge: rgba(0, 0, 0, .3);
  --display-shadow: 0 20px 40px -22px rgba(0, 0, 0, .45);
  --shot-shadow: drop-shadow(0 30px 44px rgba(0, 0, 0, .18));

  --price-bg: #ffffff;
  --price-border: rgba(217, 130, 0, .35);
  --price-shadow: 0 1px 2px rgba(0, 0, 0, .04), 0 30px 70px -40px rgba(0, 0, 0, .3);
  --price-accent: #b45f00;
  --price-glow: rgba(0, 0, 0, .025);

  --grid-opacity: .7;
  --grain-opacity: .035;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 400 15.5px/1.6 var(--font);
  letter-spacing: -.005em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}

html[lang="en"] body { letter-spacing: -.011em; }

a { color: inherit; text-decoration: none; }
h1, h2, h3 { text-wrap: balance; }
p, li, figcaption, dd { text-wrap: pretty; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; }
::selection { background: rgba(79, 140, 255, .35); }

/* MARK: Backdrop */

.backdrop { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.grid-lines {
  position: absolute; inset: 0; opacity: var(--grid-opacity);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 0%, transparent 75%);
}
.grain {
  position: absolute; inset: -50%; opacity: var(--grain-opacity); mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 60;
  background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--scroll, 0));
}

/* MARK: Navigation */

.nav {
  position: fixed; top: 14px; left: 50%; z-index: 50;
  width: min(calc(100% - 28px), 1100px);
  transform: translateX(-50%);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 9px 10px 9px 16px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: background .4s var(--ease), border-color .4s var(--ease), box-shadow .4s;
}
.nav.scrolled {
  background: var(--nav-bg);
  border-color: var(--line);
  backdrop-filter: saturate(160%) blur(20px);
  -webkit-backdrop-filter: saturate(160%) blur(20px);
  box-shadow: var(--nav-shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 650; letter-spacing: -.02em; }
.brand img { border-radius: 7px; filter: drop-shadow(0 3px 8px rgba(0, 0, 0, .3)); }
.nav-links { display: flex; gap: 6px; }
.nav-links a { padding: 6px 12px; border-radius: 9px; font-size: 13.5px; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--fg); background: var(--glass-strong); }
.nav-actions { display: flex; align-items: center; gap: 8px; }

.lang, .theme {
  display: flex; padding: 3px; gap: 2px; border-radius: 10px; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line);
  font-size: 12.5px; font-weight: 600;
}
.lang span { padding: 4px 8px; border-radius: 7px; color: var(--dim); transition: all .25s var(--ease); }
html[lang="zh-Hans"] .lang [data-lang="zh"],
html[lang="en"] .lang [data-lang="en"] { background: var(--chip-active); color: var(--fg); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }

.theme { position: relative; width: 34px; height: 32px; padding: 0; align-items: center; justify-content: center; overflow: hidden; }
.theme svg {
  position: absolute; width: 17px; height: 17px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  transition: transform .6s var(--spring), opacity .35s var(--ease);
}
.theme:hover svg { stroke: var(--fg); }
.theme .i-sun { opacity: 0; transform: rotate(-90deg) scale(.5); }
:root[data-theme="light"] .theme .i-sun { opacity: 1; transform: none; }
:root[data-theme="light"] .theme .i-moon { opacity: 0; transform: rotate(90deg) scale(.5); }

/* MARK: Buttons */

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14.5px; white-space: nowrap;
  transition: transform .35s var(--spring), background .25s, box-shadow .3s, border-color .25s, opacity .25s;
  cursor: pointer; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn svg { width: 18px; height: 18px; fill: currentColor; margin-top: -2px; }
.btn-small { padding: 6px 13px; font-size: 13px; border-radius: 9px; }
.btn-large { padding: 12px 22px; font-size: 15px; border-radius: 13px; }
.btn-primary {
  color: #fff;
  background: linear-gradient(180deg, #5b95ff, #2f6bf0);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, 0 8px 24px rgba(47, 107, 240, .34), 0 0 0 1px rgba(47, 107, 240, .6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .3) inset, 0 14px 34px rgba(47, 107, 240, .45), 0 0 0 1px rgba(79, 140, 255, .7); }
.btn-ghost { background: var(--glass); border: 1px solid var(--line-strong); color: var(--fg); }
.btn-ghost:hover { background: var(--glass-strong); transform: translateY(-2px); }
.btn-ghost .arrow { transition: transform .35s var(--spring); }
.btn-ghost:hover .arrow { transform: translateX(4px); }
.btn-lifetime {
  color: #1d1305;
  background: linear-gradient(180deg, #ffd27a, #ff9a1f);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 10px 28px rgba(255, 154, 31, .3);
}
.btn-lifetime[aria-disabled="true"] { cursor: default; filter: saturate(.55) brightness(.9); opacity: .8; }
.btn-lifetime[aria-disabled="true"]:active { transform: none; }

/* MARK: Type */

.display-title { margin: 0; font-size: clamp(34px, 5vw, 68px); line-height: 1.05; font-weight: 750; letter-spacing: -.035em; }
html[lang="zh-Hans"] .display-title { letter-spacing: -.02em; line-height: 1.12; }
.grad { color: var(--title-2); }

h2 {
  margin: 0 0 14px; font-size: clamp(27px, 3.1vw, 42px); line-height: 1.12; font-weight: 720; letter-spacing: -.03em;
}
html[lang="zh-Hans"] h2 { letter-spacing: -.015em; line-height: 1.2; }
h2.big { font-size: clamp(32px, 4.4vw, 56px); }
h3 { margin: 0 0 5px; font-size: 16px; font-weight: 650; letter-spacing: -.015em; }
.lead { margin: 0; color: var(--muted); font-size: clamp(15px, 1.2vw, 17px); line-height: 1.65; }
.lead.dim { margin-top: 14px; color: var(--dim); }
.eyebrow {
  display: inline-block; margin: 0 0 12px; font-size: 12.5px; font-weight: 650; letter-spacing: .08em; text-transform: uppercase;
  color: var(--eyebrow);
}
html[lang="zh-Hans"] .eyebrow { letter-spacing: .14em; }
.meta { margin: 16px 0 0; font-size: 12.5px; color: var(--dim); }

/* MARK: Layout */

main { position: relative; }
.section { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 100px 0 10px; }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head .lead { margin: 0 auto; max-width: 620px; }

.card {
  position: relative; border-radius: var(--radius);
  background: var(--card-bg); border: 1px solid var(--line); box-shadow: var(--card-shadow);
}

[data-reveal] {
  opacity: 0; transform: translateY(26px); filter: blur(8px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
[data-reveal].in { opacity: 1; transform: none; filter: none; }

/* MARK: Hero */

.hero {
  width: min(calc(100% - 40px), 1180px); margin: 0 auto; padding: 118px 0 20px;
  display: flex; flex-direction: column; align-items: center; gap: 44px; text-align: center;
}
.hero-copy { display: flex; flex-direction: column; align-items: center; }
.hero-copy .lead { margin-top: 20px; max-width: 620px; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 28px; }

.chip {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px; padding: 6px 13px 6px 10px;
  border-radius: 999px; font-size: 12.5px; color: var(--muted); background: var(--glass); border: 1px solid var(--line);
}
.chip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(61, 220, 132, .6); animation: ping 2.4s var(--ease) infinite; }
@keyframes ping { 70%, 100% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); } }

.stage-wrap { position: relative; width: 100%; }
.stage {
  position: relative; border-radius: 28px; padding: 18px 18px 22px; text-align: left;
  background: var(--stage-bg); border: 1px solid var(--line-strong); box-shadow: var(--stage-shadow);
  transform: scale(var(--stage-scale, 1));
  transition: background .5s var(--ease);
}
.stage-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.stage-hint { margin: 14px auto 0; max-width: 520px; text-align: center; font-size: 12.5px; color: var(--dim); }

.latch-control { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); }
.latch-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 148px; }
.latch-text strong { font-size: 13px; font-weight: 650; }
.latch-text em { font-style: normal; font-size: 11.5px; color: var(--muted); transition: color .3s; }
.stage.off .latch-text em { color: var(--warn-text); }

.badge {
  position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8.5px;
  background: linear-gradient(180deg, #5b95ff, #2f6bf0); box-shadow: 0 2px 8px rgba(47, 107, 240, .4), inset 0 0 0 .5px rgba(255, 255, 255, .25);
  transition: background .4s var(--ease), box-shadow .4s;
}
.badge svg { position: absolute; width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; transition: transform .45s var(--spring), opacity .3s; }
.badge .i-lock rect { fill: #fff; stroke: none; }
.badge .i-pause { fill: #fff; stroke: none; opacity: 0; transform: scale(.5); }
.stage.off .badge { background: linear-gradient(180deg, #8a93a6, #5f687b); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
.stage.off .badge .i-lock { opacity: 0; transform: scale(.5) translateY(4px); }
.stage.off .badge .i-pause { opacity: 1; transform: none; }
.badge.bounce .i-lock { animation: lockBounce .6s var(--spring); }
@keyframes lockBounce { 30% { transform: translateY(2px) scale(.88); } 60% { transform: translateY(-2px) scale(1.06); } }

.switch {
  position: relative; width: 42px; height: 25px; border-radius: 99px; border: 0; padding: 0; cursor: pointer;
  background: var(--accent); transition: background .3s var(--ease); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06);
}
.switch span { position: absolute; top: 2.5px; left: 19.5px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .3); transition: left .35s var(--spring); }
.switch[aria-checked="false"] { background: var(--switch-off); }
.switch[aria-checked="false"] span { left: 2.5px; }

.toast {
  position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 12px); opacity: 0;
  padding: 7px 13px; border-radius: 10px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  background: var(--toast-bg); border: 1px solid var(--line-strong); backdrop-filter: blur(12px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .15);
  transition: opacity .35s var(--ease), transform .45s var(--spring); pointer-events: none; z-index: 5;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { color: var(--ok-text); }
.toast.warn { color: var(--warn-text); }

/* MARK: Scene (displays + Dock) */

.scene { position: relative; width: 100%; aspect-ratio: 16 / 9.4; }
.scene[data-scene="hero"] { aspect-ratio: 16 / 5.8; }
.scene-mini { aspect-ratio: 16 / 8.2; }
.scene-tall { aspect-ratio: 16 / 10.5; }
.scene.interactive, .scene.interactive .display { cursor: none; }

.display {
  position: absolute; z-index: 1; border-radius: 10px; padding: 3px;
  background: var(--bezel);
  box-shadow: 0 0 0 1px var(--bezel-edge), var(--display-shadow);
  transition: left .9s var(--ease-out), top .9s var(--ease-out), width .9s var(--ease-out), height .9s var(--ease-out), opacity .6s var(--ease), transform .6s var(--ease);
}
/* The selection ring sits inside the bezel so neighbouring displays can never cover it. */
.display::after {
  content: ""; position: absolute; inset: 0; z-index: 5; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 3px var(--accent), inset 0 0 0 4px rgba(0, 0, 0, .3);
  opacity: 0; transform: scale(1.015); transition: opacity .35s var(--ease), transform .45s var(--spring);
}
.display.target { z-index: 2; }
.display.target::after { opacity: 1; transform: none; }
.display.entering, .display.leaving { opacity: 0; transform: scale(.9); }

.screen { position: relative; width: 100%; height: 100%; border-radius: 7px; overflow: hidden; isolation: isolate; }
.wall { position: absolute; inset: 0; }
.wall::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 255, 255, .14) 0%, transparent 35%); }
.wall-sky { background: radial-gradient(120% 90% at 20% 10%, #8fd3ff 0%, transparent 55%), radial-gradient(90% 80% at 90% 100%, #1b3fa8 0%, transparent 60%), linear-gradient(160deg, #4aa3ff, #173a93); }
.wall-dusk { background: radial-gradient(90% 70% at 78% 18%, #ffd89c 0%, transparent 55%), radial-gradient(110% 90% at 10% 100%, #16304f 0%, transparent 62%), linear-gradient(172deg, #f5a262, #d9643f 48%, #1f3a5c); }
.wall-forest { background: radial-gradient(100% 70% at 30% 0%, #b8f5d0 0%, transparent 50%), radial-gradient(90% 90% at 100% 100%, #0b3b3a 0%, transparent 60%), linear-gradient(165deg, #3cc79a, #115e5a 60%, #0b2a33); }
.wall-ocean { background: radial-gradient(90% 70% at 70% 10%, #7ee7ff 0%, transparent 50%), radial-gradient(100% 90% at 0% 100%, #081a3d 0%, transparent 60%), linear-gradient(170deg, #1fa2d6, #0d4a8a 55%, #0a1c3d); }

.menubar { position: absolute; top: 0; left: 0; right: 0; height: 5.5%; min-height: 4px; background: rgba(255, 255, 255, .28); backdrop-filter: blur(4px); z-index: 1; }
.notch { position: absolute; top: 0; left: 50%; width: 13%; height: 5.5%; min-height: 4px; transform: translateX(-50%); border-radius: 0 0 5px 5px; background: #07080b; z-index: 2; }
.label {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%);
  padding: 3px 10px; border-radius: 99px; font-size: clamp(9px, 1.05vw, 12.5px); font-weight: 600; white-space: nowrap;
  color: #fff; background: rgba(0, 0, 0, .3); backdrop-filter: blur(8px); z-index: 1;
}
.scene-mini .label { font-size: 10px; }

.dock {
  position: absolute; z-index: 3; display: flex; align-items: center; justify-content: center;
  padding: var(--dock-pad); gap: var(--dock-gap); border-radius: var(--dock-radius);
  background: rgba(255, 255, 255, .26); border: 1px solid rgba(255, 255, 255, .55);
  backdrop-filter: blur(10px) saturate(160%); -webkit-backdrop-filter: blur(10px) saturate(160%);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
  transition: transform .42s var(--ease-out), opacity .3s var(--ease), width .5s var(--ease-out), height .5s var(--ease-out), left .5s var(--ease-out), top .5s var(--ease-out);
}
.dock.vertical { flex-direction: column; }
.dock.instant { transition: none !important; }
.dock.out-bottom { transform: translateY(160%); opacity: 0; }
.dock.out-left { transform: translateX(-160%); opacity: 0; }
.dock.out-right { transform: translateX(160%); opacity: 0; }
.dock i, .mini-dock i {
  display: block; flex: none; width: var(--icon); height: var(--icon);
  background: center / contain no-repeat;
  filter: drop-shadow(0 1px 1.5px rgba(0, 0, 0, .28));
  transition: transform .3s var(--spring);
}
.dock i:nth-child(1), .mini-dock i:nth-child(1) { background-image: url("assets/dock/finder.png"); }
.dock i:nth-child(2), .mini-dock i:nth-child(2) { background-image: url("assets/dock/safari.png"); }
.dock i:nth-child(3), .mini-dock i:nth-child(3) { background-image: url("assets/dock/messages.png"); }
.dock i:nth-child(4), .mini-dock i:nth-child(4) { background-image: url("assets/dock/mail.png"); }
.dock i:nth-child(5), .mini-dock i:nth-child(5) { background-image: url("assets/dock/photos.png"); }
.dock i:nth-child(6) { background-image: url("assets/dock/music.png"); }
.dock i:nth-child(7) { background-image: url("assets/dock/notes.png"); }
.dock.hovered i:nth-child(3) { transform: scale(1.35) translateY(-12%); }
.dock.hovered i:nth-child(2), .dock.hovered i:nth-child(4) { transform: scale(1.15) translateY(-5%); }
.dock.vertical.hovered i:nth-child(3) { transform: scale(1.35); }

.blocked {
  position: absolute; z-index: 4; pointer-events: none; height: 3px; bottom: 0; width: 34%;
  transform: translateX(-50%) scaleX(.2); opacity: 0; border-radius: 3px;
  background: linear-gradient(90deg, transparent, #ffb23f, #fff, #ffb23f, transparent);
  box-shadow: 0 0 18px 3px rgba(255, 178, 63, .7);
}
.blocked.show { animation: blockedPulse .8s var(--ease-out); }
@keyframes blockedPulse {
  0% { opacity: 0; transform: translateX(-50%) scaleX(.2); }
  25% { opacity: 1; transform: translateX(-50%) scaleX(1); }
  100% { opacity: 0; transform: translateX(-50%) scaleX(1.1); }
}
.blocked-tag {
  position: absolute; z-index: 4; bottom: 9%; transform: translate(-50%, 6px); opacity: 0; pointer-events: none;
  display: flex; align-items: center; gap: 5px; padding: 3px 8px 3px 6px; border-radius: 7px;
  font-size: clamp(9px, .95vw, 11.5px); font-weight: 650; color: #2b1a00; white-space: nowrap;
  background: linear-gradient(180deg, #ffd27a, #ffa629); box-shadow: 0 4px 14px rgba(255, 166, 41, .45);
  transition: opacity .25s var(--ease), transform .4s var(--spring);
}
.blocked-tag svg { width: 11px; height: 11px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; }
.blocked-tag.show { opacity: 1; transform: translate(-50%, 0); }

.cursor {
  position: absolute; left: 0; top: 0; z-index: 10; width: 20px; height: 20px; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .45)); transition: opacity .25s; will-change: transform;
}
.scene-mini .cursor { width: 15px; height: 15px; }
.cursor.hidden { opacity: 0; }
.cursor.bump { animation: bump .28s var(--ease-out); }
@keyframes bump { 50% { margin-top: 2px; } }
.click-ring {
  position: absolute; z-index: 9; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .85); pointer-events: none; animation: ring .6s var(--ease-out) forwards;
}
@keyframes ring { from { transform: scale(.3); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }

/* MARK: Compare */

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-card { margin: 0; padding: 18px 18px 18px; overflow: hidden; }
.compare-card figcaption { display: flex; flex-direction: column; gap: 5px; margin-top: 14px; color: var(--muted); font-size: 14px; }
.tag { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 12px; font-weight: 650; }
.tag-warn { color: var(--warn-text); background: rgba(255, 122, 89, .12); border: 1px solid rgba(255, 122, 89, .3); }
.tag-ok { color: var(--ok-text); background: rgba(61, 220, 132, .1); border: 1px solid rgba(61, 220, 132, .3); }

/* MARK: Split sections */

.split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 52px; align-items: center; }
.split-reverse .split-copy { order: 2; }
.showcase-card { padding: 22px; overflow: hidden; }

.segmented { position: relative; display: inline-flex; margin-top: 24px; padding: 3px; border-radius: 14px; background: var(--glass-strong); border: 1px solid var(--line); }
.segmented button { position: relative; z-index: 1; border: 0; background: none; padding: 7px 17px; border-radius: 9px; cursor: pointer; font-size: 13.5px; font-weight: 600; color: var(--muted); transition: color .3s; }
.segmented button[aria-selected="true"] { color: var(--fg); }
.segmented-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; width: 0; border-radius: 9px;
  background: var(--chip-active); box-shadow: 0 1px 0 rgba(255, 255, 255, .08) inset, 0 3px 10px rgba(0, 0, 0, .18);
  transition: transform .5s var(--spring), width .5s var(--spring);
}

.setup-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: 20px 0 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.setup-facts div { padding: 11px 14px; background: var(--panel); }
.setup-facts dt { font-size: 11.5px; color: var(--dim); }
.setup-facts dd { margin: 1px 0 0; font-size: 14px; font-weight: 600; min-height: 1.5em; }
.setup-facts dd.flip { animation: factFlip .6s var(--ease-out); }
@keyframes factFlip { from { opacity: 0; transform: translateY(8px); filter: blur(4px); } }
.setup-facts dd .ok { color: var(--ok); }

.timer { position: absolute; left: 22px; right: 22px; bottom: 12px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.timer span { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: var(--accent); }
.timer.run span { animation: timer var(--dur, 4.5s) linear forwards; }
@keyframes timer { to { transform: scaleX(1); } }

/* MARK: Edge demo */

.controls { display: grid; grid-template-columns: auto 1fr; gap: 14px 20px; align-items: center; margin-top: 18px; }
.control { display: contents; }
.control-label { font-size: 13px; color: var(--muted); }
.pill-group { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pill {
  border: 1px solid var(--line-strong); background: var(--glass); padding: 6px 13px; border-radius: 99px; cursor: pointer;
  font-size: 12.5px; font-weight: 600; color: var(--muted); transition: color .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.pill:hover { color: var(--fg); }
.pill[aria-pressed="true"] { color: var(--accent-text); background: rgba(79, 140, 255, .16); border-color: var(--accent); }
.edge-picker { display: flex; gap: 10px; justify-content: flex-end; }
.edge-picker button {
  display: flex; flex-direction: column; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer;
  font-size: 12px; color: var(--muted); transition: opacity .3s, color .3s;
}
.edge-picker button[aria-pressed="true"] { color: var(--fg); }
.edge-picker button[aria-disabled="true"] { opacity: .32; cursor: not-allowed; }
.glyph {
  position: relative; display: block; width: 52px; height: 34px; border-radius: 8px;
  background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); transition: background .3s var(--ease), box-shadow .3s var(--ease);
}
.glyph::after { content: ""; position: absolute; border-radius: 3px; background: var(--glyph-bar); transition: background .3s; }
.g-bottom::after { left: 50%; bottom: 6px; width: 24px; height: 4.5px; transform: translateX(-50%); }
.g-left::after { left: 6px; top: 50%; width: 4.5px; height: 17px; transform: translateY(-50%); }
.g-right::after { right: 6px; top: 50%; width: 4.5px; height: 17px; transform: translateY(-50%); }
button[aria-pressed="true"] .glyph { background: rgba(79, 140, 255, .16); box-shadow: inset 0 0 0 2px var(--accent); }
button[aria-pressed="true"] .glyph::after { background: var(--accent); }
.edge-picker button.shake { animation: shake .4s var(--ease); }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
.edge-note { grid-column: 1 / -1; margin: 0; min-height: 1.6em; font-size: 12.5px; color: var(--amber); opacity: 0; transform: translateY(4px); transition: opacity .3s, transform .4s var(--spring); }
.edge-note.show { opacity: 1; transform: none; }

/* MARK: Live app demo */

:root {
  --mw-bg: #1e1e20;
  --mw-sidebar: #28282b;
  --mw-group: rgba(255, 255, 255, .045);
  --mw-sep: rgba(255, 255, 255, .07);
  --mw-text: #ececef;
  --mw-secondary: #98989d;
  --mw-edge: rgba(255, 255, 255, .13);
  --mw-control: rgba(255, 255, 255, .1);
  --mw-knob-shadow: 0 1px 2px rgba(0, 0, 0, .45);
  --mp-bg: #2a2a2d;
  --mp-card: rgba(255, 255, 255, .05);
  --mp-hover: rgba(255, 255, 255, .08);
  --mw-shadow: 0 0 0 .5px rgba(0, 0, 0, .8), 0 30px 70px -20px rgba(0, 0, 0, .75), 0 10px 24px -12px rgba(0, 0, 0, .6);
}
:root[data-theme="light"] {
  --mw-bg: #fbfbfc;
  --mw-sidebar: #ececee;
  --mw-group: rgba(0, 0, 0, .035);
  --mw-sep: rgba(0, 0, 0, .07);
  --mw-text: #1d1d1f;
  --mw-secondary: #86868b;
  --mw-edge: rgba(0, 0, 0, .12);
  --mw-control: rgba(0, 0, 0, .09);
  --mw-knob-shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 0 0 .5px rgba(0, 0, 0, .06);
  --mp-bg: #f2f2f4;
  --mp-card: rgba(0, 0, 0, .04);
  --mp-hover: rgba(0, 0, 0, .06);
  --mw-shadow: 0 0 0 .5px rgba(0, 0, 0, .18), 0 30px 70px -24px rgba(0, 0, 0, .3), 0 10px 24px -14px rgba(0, 0, 0, .2);
}

.mac-demo { position: relative; max-width: 1000px; margin: 0 auto; padding-bottom: 20px; font: 13px/1.35 var(--font); letter-spacing: 0; color: var(--mw-text); }
.mac-demo figure { margin: 0; will-change: transform; }
.mac-demo figcaption { margin-top: 10px; text-align: center; font-size: 12.5px; color: var(--dim); }
.mac-window { width: 70%; }
.mac-panel { position: absolute; right: 0; top: 16%; width: 320px; }

.mw-frame {
  display: grid; grid-template-columns: 180px 1fr; border-radius: 12px; overflow: hidden;
  background: var(--mw-bg); box-shadow: var(--mw-shadow); outline: .5px solid var(--mw-edge); outline-offset: -.5px;
}
.mw-sidebar { padding: 12px 10px; background: var(--mw-sidebar); border-right: .5px solid var(--mw-sep); }
.mw-lights { display: flex; gap: 8px; padding: 2px 4px 18px; }
.mw-lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .15); }
.mw-lights i:nth-child(2) { background: #febc2e; }
.mw-lights i:nth-child(3) { background: #28c840; }
.mw-nav { display: flex; align-items: center; gap: 8px; height: 28px; padding: 0 6px; border-radius: 7px; font-size: 13px; }
.mw-nav.is-active { background: var(--accent); color: #fff; }
.mw-icon { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: #0a84ff; flex: none; }
.mw-icon svg { width: 12px; height: 12px; fill: none; stroke: #fff; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.mw-icon .fill { fill: #fff; stroke: none; }
.ic-setups { background: #30b0c7; }
.ic-general { background: #8e8e93; }
.ic-about { background: #32ade6; }

.mw-main { min-width: 0; }
.mw-toolbar { height: 38px; display: flex; align-items: center; padding: 0 18px; font-weight: 700; font-size: 13px; }
.mw-scroll { padding: 4px 18px 18px; }
.mw-head { display: flex; gap: 6px; margin: 2px 2px 8px; font-size: 13px; }
.mw-head span { color: var(--mw-secondary); }
.mw-group { border-radius: 9px; background: var(--mw-group); margin-bottom: 10px; }
.mw-map { padding: 8px 10px 10px; }
.mw-caption { margin: 2px 0 0; text-align: center; font-size: 11px; color: var(--mw-secondary); }
.mw-row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 10px; }
.mw-row + .mw-row { border-top: .5px solid var(--mw-sep); }
.mw-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; flex: 1; }
.mw-text strong { font-weight: 600; font-size: 13px; }
.mw-text small { font-size: 11px; color: var(--mw-secondary); }
.mw-label { flex: 1; }
.mw-subhead { margin: 16px 2px 7px; font-weight: 700; font-size: 13px; }
.mw-footnote { margin: 2px 2px 0; font-size: 11px; color: var(--mw-secondary); }

.mw-badge {
  position: relative; display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 7.5px;
  background: linear-gradient(180deg, #5b95ff, #2f6bf0); transition: background .35s var(--ease);
}
.mw-badge svg { position: absolute; width: 15px; height: 15px; fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; transition: opacity .25s, transform .4s var(--spring); }
.mw-badge .i-lock rect { fill: #fff; stroke: none; }
.mw-badge .i-pause { fill: #fff; stroke: none; opacity: 0; transform: scale(.5); }
.mac-demo.paused .mw-badge { background: linear-gradient(180deg, #a1a1a6, #7c7c80); }
.mac-demo.paused .mw-badge .i-lock { opacity: 0; transform: scale(.5); }
.mac-demo.paused .mw-badge .i-pause { opacity: 1; transform: none; }
.mw-badge.bounce .i-lock { animation: lockBounce .6s var(--spring); }

.mw-switch {
  position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 99px; cursor: pointer;
  background: var(--mw-control); box-shadow: inset 0 0 0 .5px rgba(0, 0, 0, .08); transition: background .25s var(--ease);
}
.mw-switch span { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: var(--mw-knob-shadow); transition: transform .3s var(--spring); }
.mw-switch[aria-checked="true"] { background: var(--accent); }
.mw-switch[aria-checked="true"] span { transform: translateX(16px); }
.mw-switch.small { width: 32px; height: 19px; }
.mw-switch.small span { width: 15px; height: 15px; }
.mw-switch.small[aria-checked="true"] span { transform: translateX(13px); }

.mw-edges { display: flex; gap: 8px; }
.mw-edges button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0; border: 0; background: none; cursor: pointer; font-size: 10.5px; color: var(--mw-secondary); transition: opacity .25s, color .25s; }
.mw-edges button[aria-pressed="true"] { color: var(--mw-text); }
.mw-edges button[aria-disabled="true"] { opacity: .3; cursor: not-allowed; }
.mw-edges .glyph { width: 50px; height: 32px; border-radius: 7px; }
.mw-edges .g-bottom::after { width: 22px; height: 4px; bottom: 5px; }
.mw-edges .g-left::after, .mw-edges .g-right::after { width: 4px; height: 15px; }
.mw-edges.compact { gap: 4px; margin-left: auto; }
.mw-edges.compact .glyph { width: 30px; height: 21px; border-radius: 5px; }
.mw-edges.compact .g-bottom::after { width: 13px; height: 3px; bottom: 3.5px; }
.mw-edges.compact .g-left::after, .mw-edges.compact .g-right::after { width: 3px; height: 9px; }
.mw-edges.compact .g-left::after { left: 3.5px; }
.mw-edges.compact .g-right::after { right: 3.5px; }
.mw-edges button.shake { animation: shake .4s var(--ease); }

.mw-slider { display: flex; align-items: center; gap: 8px; width: 55%; }
.mw-slider .tick { flex: none; background: var(--mw-secondary); border-radius: 1.5px; }
.mw-slider .tick.s { width: 5px; height: 5px; }
.mw-slider .tick.l { width: 10px; height: 10px; }
.mw-slider output { flex: none; min-width: 40px; white-space: nowrap; text-align: right; font-size: 11.5px; color: var(--mw-secondary); font-variant-numeric: tabular-nums; }
.mw-slider input {
  flex: 1; height: 18px; margin: 0; background: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.mw-slider input::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 16%), var(--mw-control) var(--p, 16%)); }
.mw-slider input::-moz-range-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--accent) var(--p, 16%), var(--mw-control) var(--p, 16%)); }
.mw-slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 18px; height: 18px; margin-top: -7px; border-radius: 50%; background: #fff; box-shadow: var(--mw-knob-shadow); }
.mw-slider input::-moz-range-thumb { width: 18px; height: 18px; border: 0; border-radius: 50%; background: #fff; box-shadow: var(--mw-knob-shadow); }

.mp-frame { padding: 12px 0 6px; border-radius: 14px; background: var(--mp-bg); box-shadow: var(--mw-shadow); outline: .5px solid var(--mw-edge); outline-offset: -.5px; }
.mp-head { display: flex; align-items: center; gap: 10px; padding: 0 14px 10px; }
.mp-head .mw-text strong { font-size: 13px; font-weight: 700; }
.mp-card { margin: 0 10px; padding: 8px 8px 6px; border-radius: 10px; background: var(--mp-card); }
.mp-row { display: flex; align-items: center; gap: 7px; padding: 6px 2px 2px; font-size: 12.5px; }
.mp-display { width: 15px; height: 15px; fill: none; stroke: var(--mw-secondary); stroke-width: 1.3; stroke-linecap: round; }
.mp-menu { margin-top: 8px; padding: 4px 6px 0; border-top: .5px solid var(--mw-sep); }
.mp-item { display: flex; align-items: center; gap: 9px; height: 26px; padding: 0 8px; border-radius: 6px; font-size: 13px; cursor: default; }
.mp-item:hover { background: var(--mp-hover); }
.mp-item svg { width: 14px; height: 14px; fill: none; stroke: var(--mw-secondary); stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

.scene-app { aspect-ratio: 16 / 6.4; }
.mp-card .scene-app { aspect-ratio: 16 / 7.2; }
.scene-app .display { cursor: pointer; }
.scene-app .label { font-size: 10px; padding: 2px 8px; max-width: 86%; overflow: hidden; text-overflow: ellipsis; }
.mp-card .scene-app .label { font-size: 9px; }
.scene-app .display:hover:not(.target)::after { opacity: .45; transform: none; }
.scene.autohide .dock[data-edge="bottom"] { transform: translateY(160%); opacity: 0; }
.scene.autohide .dock[data-edge="left"] { transform: translateX(-160%); opacity: 0; }
.scene.autohide .dock[data-edge="right"] { transform: translateX(160%); opacity: 0; }
.scene.autohide .display.target:hover .dock { transform: none; opacity: 1; }

/* MARK: Details */

.details { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.detail { padding: 20px 20px 22px; transition: transform .5s var(--spring), border-color .3s, background .3s; }
.detail:hover { transform: translateY(-6px); border-color: var(--line-strong); background: var(--card-hover); }
.detail p { margin: 0; color: var(--muted); font-size: 14px; }
.detail-art { position: relative; height: 100px; margin-bottom: 18px; border-radius: 14px; overflow: hidden; background: var(--art-bg); border: 1px solid var(--line); }

.mini-dock {
  --icon: 15px;
  position: absolute; left: 50%; top: calc(100% - 20px); display: flex; gap: 3px; padding: 3px 4px; border-radius: 7px;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, .5); border: 1px solid rgba(255, 255, 255, .7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18); backdrop-filter: blur(6px);
}
.art-corners span { position: absolute; width: 22px; height: 22px; border: 2.5px solid var(--art-line); }
.art-corners span:nth-child(1) { left: 12px; top: 12px; border-right: 0; border-bottom: 0; border-radius: 8px 0 0 0; }
.art-corners span:nth-child(2) { right: 12px; top: 12px; border-left: 0; border-bottom: 0; border-radius: 0 8px 0 0; }
.art-corners span:nth-child(3) { left: 12px; bottom: 12px; border-right: 0; border-top: 0; border-radius: 0 0 0 8px; }
.art-corners span:nth-child(4) { right: 12px; bottom: 12px; border-left: 0; border-top: 0; border-radius: 0 0 8px 0; border-color: #ffb23f; animation: cornerGlow 2.6s var(--ease) infinite; }
.art-corners i { position: absolute; right: 8px; bottom: 8px; width: 30px; height: 30px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 178, 63, .7), transparent 70%); animation: cornerPing 2.6s var(--ease) infinite; }
@keyframes cornerGlow { 50% { filter: drop-shadow(0 0 6px rgba(255, 178, 63, .9)); } }
@keyframes cornerPing { 0% { transform: scale(.2); opacity: 0; } 40% { opacity: 1; } 100% { transform: scale(2.2); opacity: 0; } }
.art-autohide .mini-dock { animation: autohide 3.4s var(--ease) infinite; }
@keyframes autohide { 0%, 20% { transform: translate(-50%, -50%); } 40%, 70% { transform: translate(-50%, 160%); } 90%, 100% { transform: translate(-50%, -50%); } }
.art-wake .moon { position: absolute; left: 50%; top: 20px; width: 30px; height: 30px; margin-left: -15px; border-radius: 50%; box-shadow: inset -8px -4px 0 0 #ffc24f; animation: moon 3.6s var(--ease) infinite; }
.art-wake .mini-dock { animation: wake 3.6s var(--ease) infinite; }
@keyframes moon { 0%, 40% { opacity: 1; transform: rotate(0); } 55%, 100% { opacity: 0; transform: rotate(40deg) scale(.6); } }
@keyframes wake { 0%, 50% { opacity: 0; transform: translate(-50%, 160%); } 70%, 100% { opacity: 1; transform: translate(-50%, -50%); } }
.art-style .mini-dock { animation: styleDock 6s var(--ease-out) infinite; }
@keyframes styleDock {
  0%, 22% { left: 50%; top: calc(100% - 20px); transform: translate(-50%, -50%); }
  33%, 55% { left: 22px; top: 50%; transform: translate(-50%, -50%) rotate(90deg); }
  66%, 88% { left: 50%; top: calc(100% - 26px); transform: translate(-50%, -50%) scale(1.35); }
  100% { left: 50%; top: calc(100% - 20px); transform: translate(-50%, -50%); }
}
.art-update { display: grid; place-items: center; }
.art-update svg { width: 58px; height: 58px; fill: none; stroke: var(--accent-2); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.art-update circle { stroke-dasharray: 107; stroke-dashoffset: 107; animation: draw 3s var(--ease-out) infinite; }
.art-update path { animation: arrow 3s var(--ease) infinite; }
@keyframes draw { 60%, 100% { stroke-dashoffset: 0; } }
@keyframes arrow { 0%, 20% { transform: translateY(-6px); opacity: 0; } 45%, 100% { transform: none; opacity: 1; } }
.art-lang { display: flex; align-items: center; justify-content: center; gap: 14px; }
.art-lang span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 14px; font-size: 24px; font-weight: 700; background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.art-lang span:first-child { animation: langA 4s var(--ease) infinite; }
.art-lang span:last-child { animation: langB 4s var(--ease) infinite; }
@keyframes langA { 0%, 45% { background: rgba(79, 140, 255, .25); box-shadow: inset 0 0 0 1.5px var(--accent); } 55%, 100% { background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); } }
@keyframes langB { 0%, 45% { background: var(--glass-strong); box-shadow: inset 0 0 0 1px var(--line-strong); } 55%, 100% { background: rgba(79, 140, 255, .25); box-shadow: inset 0 0 0 1.5px var(--accent); } }

/* MARK: Performance */

.perf { text-align: center; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--line); box-shadow: var(--card-shadow); }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 28px 16px; background: var(--panel); }
.stat strong {
  font-size: clamp(34px, 4vw, 54px); font-weight: 720; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.stat small { font-size: .42em; margin-left: 4px; letter-spacing: 0; }
.stat strong small:first-child { margin: 0 3px 0 0; }
.stat > span { color: var(--muted); font-size: 13.5px; }

/* MARK: Privacy */

.privacy { display: grid; grid-template-columns: 170px 1fr; gap: 40px; align-items: center; padding: 40px 48px; }
.privacy h2 { font-size: clamp(24px, 2.6vw, 34px); }
.privacy-shield svg { width: 100%; }
.privacy-shield .shield { fill: rgba(79, 140, 255, .1); stroke: var(--accent); stroke-width: 3; stroke-linejoin: round; }
.privacy-shield .check { fill: none; stroke: var(--ok); stroke-width: 7; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 60; stroke-dashoffset: 60; }
.privacy.in .check { transition: stroke-dashoffset 1s .5s var(--ease-out); stroke-dashoffset: 0; }

.checks { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.checks li { position: relative; padding-left: 27px; color: var(--fg); font-size: 14px; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .22em; width: 17px; height: 17px; border-radius: 50%;
  background: rgba(61, 220, 132, .16) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m6 10.5 2.6 2.6L14 7.5' fill='none' stroke='%2322b35e' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* MARK: Pricing */

.price-card {
  position: relative; max-width: 500px; margin: 0 auto; padding: 30px 32px 26px; border-radius: 26px; overflow: hidden;
  background: var(--price-bg); border: 1px solid var(--price-border); box-shadow: var(--price-shadow);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform .5s var(--ease-out);
}
.price-glow {
  position: absolute; width: 380px; height: 380px; left: var(--gx, 50%); top: var(--gy, 0%); transform: translate(-50%, -50%);
  background: radial-gradient(circle, var(--price-glow), transparent 65%); pointer-events: none; transition: left .2s, top .2s;
}
.price-head { position: relative; display: flex; align-items: center; gap: 18px; }
.price-head img { border-radius: 14px; filter: drop-shadow(0 8px 16px rgba(0, 0, 0, .3)); }
.price-head h3 { font-size: 21px; margin: 0; }
.price { margin: 3px 0 0; font-size: 14px; color: var(--price-accent); font-weight: 600; }
.price strong { font-size: 30px; letter-spacing: -.03em; color: var(--fg); margin-right: 8px; }
.price-card .checks { position: relative; margin-top: 22px; }
.price-actions { position: relative; display: grid; gap: 8px; margin-top: 24px; }
.price-note { position: relative; margin: 14px 0 0; text-align: center; font-size: 12px; color: var(--dim); }

/* MARK: FAQ */

.faq { max-width: 760px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { position: relative; list-style: none; cursor: pointer; padding: 18px 46px 18px 4px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%;
  background:
    linear-gradient(var(--muted), var(--muted)) center / 10px 1.8px no-repeat,
    linear-gradient(var(--muted), var(--muted)) center / 1.8px 10px no-repeat,
    var(--glass-strong);
  transition: transform .45s var(--spring);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq p { margin: -4px 0 0; padding: 0 56px 18px 4px; color: var(--muted); font-size: 14.5px; }
.faq details[open] p { animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* MARK: Final */

.final { text-align: center; padding-bottom: 90px; }
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final-icon { width: 100px; margin-bottom: 24px; border-radius: 22px; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .35)); animation: float 6s var(--ease) infinite alternate; }
@keyframes float { to { transform: translateY(-10px) rotate(-2deg); } }
.final .lead { margin-bottom: 26px; }

.footer {
  width: min(calc(100% - 40px), var(--max)); margin: 0 auto; padding: 24px 0 40px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px;
}
.footer p { margin: 0; }
.footer .brand { color: var(--fg); font-size: 14px; }
.footer nav { display: flex; gap: 18px; }
.footer nav a:hover { color: var(--fg); }

/* MARK: Responsive */

@media (max-width: 1020px) {
  .hero { padding-top: 108px; gap: 36px; }
  .scene[data-scene="hero"] { aspect-ratio: 16 / 8; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .split-reverse .split-copy { order: 0; }
  .mac-window { width: 100%; }
  .mac-panel { position: relative; top: auto; width: 320px; margin: -120px 0 0 auto; }
  .details { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .privacy { grid-template-columns: 1fr; padding: 44px 32px; text-align: center; }
  .privacy-shield { width: 120px; margin: 0 auto; }
  .checks { text-align: left; }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .nav-links { display: none; }
  .section { padding-top: 76px; }
  .compare { grid-template-columns: 1fr; }
  .details { grid-template-columns: 1fr; }
  .checks { grid-template-columns: 1fr; }
  .stage { padding: 12px 12px 16px; border-radius: 20px; }
  .latch-text { min-width: 0; }
  .controls { grid-template-columns: 1fr; }
  .pill-group, .edge-picker { justify-content: flex-start; }
  .mac-demo { display: grid; gap: 30px; }
  .mac-window, .mac-panel { position: relative; width: 100%; inset: auto; transform: none !important; }
  .mac-panel { max-width: 340px; margin: 0 auto; }
  .mw-frame { grid-template-columns: 1fr; }
  .mw-sidebar { display: none; }
  .price-card { padding: 30px 24px 26px; }
}
@media (max-width: 400px) {
  .nav { padding-left: 12px; }
  .brand span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
