/* BusyMouse website. No external assets: system fonts, inline SVG. */

:root {
  color-scheme: light;
  --bg: #f6f6fb;
  --bg-2: #ffffff;
  --text: #12121c;
  --muted: #565670;
  --line: rgba(24, 24, 60, .1);
  --card: rgba(255, 255, 255, .72);
  --card-solid: #ffffff;
  --shadow: 0 1px 2px rgba(20, 20, 60, .06), 0 12px 40px -12px rgba(40, 30, 120, .18);
  --b1: #1E6BFF;
  --b2: #4B3FF2;
  --b3: #8B2BE8;
  --brand: #4B3FF2;
  --brand-text: #3a2fd6;
  --sweep: linear-gradient(135deg, var(--b1), var(--b2) 50%, var(--b3));
  --aurora-a: rgba(30, 107, 255, .22);
  --aurora-b: rgba(139, 43, 232, .18);
  --aurora-c: rgba(255, 120, 180, .14);
  --radius: 18px;
  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  --mono: "Cascadia Code", "Cascadia Mono", Consolas, ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0a0a18;
    --bg-2: #11112a;
    --text: #f1f1fa;
    --muted: #a4a4c0;
    --line: rgba(255, 255, 255, .09);
    --card: rgba(255, 255, 255, .045);
    --card-solid: #15152e;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 50px -20px rgba(0, 0, 0, .6);
    --brand-text: #9d94ff;
    --aurora-a: rgba(30, 107, 255, .28);
    --aurora-b: rgba(139, 43, 232, .26);
    --aurora-c: rgba(255, 90, 170, .12);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a18;
  --bg-2: #11112a;
  --text: #f1f1fa;
  --muted: #a4a4c0;
  --line: rgba(255, 255, 255, .09);
  --card: rgba(255, 255, 255, .045);
  --card-solid: #15152e;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 20px 50px -20px rgba(0, 0, 0, .6);
  --brand-text: #9d94ff;
  --aurora-a: rgba(30, 107, 255, .28);
  --aurora-b: rgba(139, 43, 232, .26);
  --aurora-c: rgba(255, 90, 170, .12);
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; }
a { color: var(--brand-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
code, kbd, pre { font-family: var(--mono); }
kbd {
  font-size: .82em;
  padding: .1em .45em;
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--card);
}
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 8px 14px; background: var(--card-solid); border-radius: 8px; }
.skip:focus { left: 16px; }

.only-light { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .only-dark { display: block; } :root:not([data-theme="light"]) .only-light { display: none; } }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .only-dark { display: none; } :root:not([data-theme="dark"]) .only-light { display: block; } }
:root[data-theme="dark"] .only-dark { display: block; }
:root[data-theme="dark"] .only-light { display: none; }
:root[data-theme="light"] .only-dark { display: none; }
:root[data-theme="light"] .only-light { display: block; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 46px; padding: 0 20px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; font-size: 15px; white-space: nowrap;
  cursor: pointer; transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; }
.btn-sm { height: 36px; padding: 0 14px; font-size: 14px; border-radius: 10px; }
.btn-primary {
  color: #fff; background: var(--sweep);
  box-shadow: 0 8px 24px -8px rgba(75, 63, 242, .6), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.btn-primary:hover { box-shadow: 0 12px 30px -8px rgba(75, 63, 242, .75), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-ghost { color: var(--text); background: var(--card); border-color: var(--line); backdrop-filter: blur(10px); }
.btn-ghost:hover { border-color: color-mix(in oklab, var(--brand) 50%, var(--line)); }
.icon-btn {
  display: grid; place-items: center; width: 36px; height: 36px;
  border-radius: 10px; border: 1px solid transparent; background: none; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--card); border-color: var(--line); text-decoration: none; }
.icon-btn svg { width: 18px; height: 18px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  background: color-mix(in oklab, var(--bg) 72%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-row { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 17px; letter-spacing: -.01em; }
.brand:hover { text-decoration: none; }
.brand-icon { width: 30px; height: 30px; filter: drop-shadow(0 4px 10px rgba(75, 63, 242, .35)); }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { color: var(--muted); font-size: 14.5px; font-weight: 500; padding: 6px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--text); background: var(--card); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
@media (max-width: 760px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; isolation: isolate; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -1; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 560px; height: 560px; left: 52%; top: 0; background: var(--aurora-a); }
.aurora i:nth-child(2) { width: 520px; height: 520px; left: 70%; top: 25%; background: var(--aurora-b); animation-delay: -6s; }
.aurora i:nth-child(3) { width: 420px; height: 420px; left: 5%; top: 30%; background: var(--aurora-c); animation-delay: -12s; }
@keyframes drift { to { transform: translate(-60px, 40px) scale(1.1); } }

.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card);
  font-size: 13.5px; font-weight: 500; color: var(--muted);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .18); }
h1, h2, h3 { font-family: var(--font-display); letter-spacing: -.025em; line-height: 1.08; margin: 0; }
h1 { font-size: clamp(40px, 6.2vw, 72px); font-weight: 750; }
.grad { background: var(--sweep); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: clamp(17px, 1.6vw, 19.5px); color: var(--muted); max-width: 560px; margin: 22px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-ctas.center { justify-content: center; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; list-style: none; padding: 0; margin: 22px 0 0; color: var(--muted); font-size: 14px; }
.hero-meta li { display: inline-flex; align-items: center; gap: 6px; }
.hero-meta svg { width: 16px; height: 16px; color: #22c55e; }

.cmd {
  display: flex; align-items: center; gap: 10px; margin-top: 18px; max-width: 440px;
  padding: 6px 6px 6px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--card);
  backdrop-filter: blur(10px);
}
.cmd code { font-size: 14.5px; flex: 1; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.cmd-prompt { color: var(--brand-text); font-family: var(--mono); font-weight: 700; }
.cmd-copy {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; flex: none;
  border-radius: 8px; border: 1px solid var(--line); background: var(--card-solid); cursor: pointer; font-size: 13px; font-weight: 600;
}
.cmd-copy svg { width: 15px; height: 15px; }
.cmd-copy.copied { color: #16a34a; border-color: rgba(22, 163, 74, .4); }

/* Hero art */
.hero-art { position: relative; aspect-ratio: 1; max-width: 500px; width: 100%; justify-self: center; }
.halo { position: absolute; inset: 14%; border-radius: 40%; background: var(--sweep); filter: blur(60px); opacity: .45; animation: pulse 6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .3; transform: scale(.94); } }
.orbit-ring { position: absolute; inset: 9%; border-radius: 50%; border: 1.5px dashed color-mix(in oklab, var(--brand) 40%, transparent); animation: spin 60s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hero-icon {
  position: absolute; inset: 24%; width: 52%; height: 52%;
  filter: drop-shadow(0 30px 40px rgba(60, 40, 200, .45)) drop-shadow(0 4px 8px rgba(0, 0, 0, .15));
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(-1.5deg); } }
.arrow-orbit { position: absolute; inset: 9%; animation: spin 16s linear infinite; pointer-events: none; }
.hero-arrow {
  position: absolute; left: 50%; top: -23px; width: 34px; height: 46px; margin-left: -17px;
  color: #1b1b1b; --arrow-edge: #fff; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3));
  animation: spin 16s linear infinite reverse;
}

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 16px; font-size: 13px;
  background: color-mix(in oklab, var(--card-solid) 80%, transparent);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  animation: bob 7s ease-in-out infinite;
}
.float-card strong { display: block; font-size: 16px; line-height: 1.2; }
.float-card small { color: var(--muted); font-size: 12px; }
.fc-flyout { left: -6%; bottom: 8%; animation-delay: -2s; }
.fc-badge { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #C30052; color: #fff; }
.fc-badge svg { width: 24px; height: 24px; }
.fc-next { display: flex; align-items: center; gap: 6px; padding-left: 12px; margin-left: 4px; border-left: 1px solid var(--line); }
.fc-next svg { width: 20px; height: 20px; color: var(--muted); }
.fc-presence { right: 0; top: 10%; font-weight: 600; font-size: 14px; animation-delay: -4s; }
.fc-lock { right: -2%; bottom: 30%; font-weight: 600; animation-delay: -5.5s; }
.fc-lock svg { width: 18px; height: 18px; color: #16a34a; }
.presence-dot { width: 10px; height: 10px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .2); flex: none; }

@media (max-width: 900px) {
  .hero { padding-top: 56px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-art { max-width: 420px; }
}
@media (max-width: 480px) {
  .fc-flyout { left: 0; bottom: 0; transform: scale(.9); }
  .fc-lock { display: none; }
}

/* ---------- Sections ---------- */
.section { padding: 96px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.section-head.left { text-align: left; margin: 0 0 32px; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 720; }
.section-head p { color: var(--muted); font-size: 17.5px; margin: 16px 0 0; }
.kicker {
  margin: 0 0 12px !important; font-size: 13px !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--brand-text) !important;
}
.fine { color: var(--muted); font-size: 13.5px; text-align: center; max-width: 680px; margin: 18px auto 0; }

/* ======================================================================
   Live prototype
   ====================================================================== */
.try { position: relative; }
.try::before {
  content: ""; position: absolute; inset: 10% 0 auto; height: 70%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 40%, var(--aurora-a), transparent 70%);
  filter: blur(30px);
}
.stage {
  /* App window tokens, Windows 11 light */
  --acc: #C30052;
  --acc-ui: var(--acc);
  --acc-text: color-mix(in oklab, var(--acc) 85%, black);
  --on-acc: #fff;
  --w-bg: #f3f3f3;
  --w-tint: rgba(255, 255, 255, .55);
  --w-card: rgba(255, 255, 255, .72);
  --w-card-line: rgba(0, 0, 0, .06);
  --w-ctl: rgba(255, 255, 255, .8);
  --w-ctl-hover: rgba(249, 249, 249, .6);
  --w-ctl-line: rgba(0, 0, 0, .08);
  --w-ctl-bottom: rgba(0, 0, 0, .14);
  --w-seg: rgba(0, 0, 0, .035);
  --w-text: #1b1b1b;
  --w-muted: #5f5f5f;
  --w-strong: #8a8a8a;
  --w-knob: #fff;
  --w-wall-1: #a7c6f2;
  --w-wall-2: #e7b9d9;
  --w-wall-3: #c5d6f7;
  --taskbar: rgba(243, 243, 243, .85);

  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 22px; border: 1px solid var(--line);
  box-shadow: 0 40px 100px -30px rgba(40, 30, 140, .45), 0 0 0 1px rgba(255, 255, 255, .04) inset;
  font-family: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color: var(--w-text);
  user-select: none; -webkit-user-select: none;
}
.stage[data-theme-app="dark"] {
  --acc-ui: color-mix(in oklab, var(--acc) 58%, white);
  --acc-text: color-mix(in oklab, var(--acc) 50%, white);
  --on-acc: #000;
  --w-bg: #202020;
  --w-tint: rgba(32, 32, 32, .7);
  --w-card: rgba(255, 255, 255, .05);
  --w-card-line: rgba(0, 0, 0, .25);
  --w-ctl: rgba(255, 255, 255, .06);
  --w-ctl-hover: rgba(255, 255, 255, .085);
  --w-ctl-line: rgba(255, 255, 255, .07);
  --w-ctl-bottom: rgba(255, 255, 255, .07);
  --w-seg: rgba(0, 0, 0, .25);
  --w-text: #fff;
  --w-muted: #c5c5c5;
  --w-strong: #9a9a9a;
  --w-knob: #000;
  --w-wall-1: #10234d;
  --w-wall-2: #3b1650;
  --w-wall-3: #0f1d3f;
  --taskbar: rgba(32, 32, 32, .85);
}
.wallpaper {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 80% at 80% 30%, var(--w-wall-2), transparent 70%),
    radial-gradient(70% 90% at 20% 80%, var(--w-wall-1), transparent 70%),
    var(--w-wall-3);
}
.wallpaper::after {
  /* Windows 11 "bloom" */
  content: ""; position: absolute; left: 62%; top: 50%; width: 520px; height: 520px; translate: -50% -50%;
  background:
    conic-gradient(from 200deg, color-mix(in oklab, var(--acc) 50%, #6aa8ff), #7b6cff, color-mix(in oklab, var(--acc) 60%, #ff9ad5), #6aa8ff, color-mix(in oklab, var(--acc) 50%, #6aa8ff));
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  filter: blur(60px); opacity: .55;
  animation: bloom 20s ease-in-out infinite alternate;
}
@keyframes bloom { to { transform: rotate(40deg) scale(1.1); } }

.desktop { display: grid; grid-template-columns: auto 1fr; gap: 24px; padding: 28px 28px 24px; min-height: 640px; }

.stage-hud { position: absolute; right: 18px; top: 16px; z-index: 6; }
.hud-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--w-text);
  background: var(--w-tint); border: 1px solid var(--w-ctl-line);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 6px 20px -8px rgba(0, 0, 0, .3);
  font-variant-numeric: tabular-nums;
}
.hud-dot { width: 8px; height: 8px; border-radius: 50%; background: #f59e0b; }
.stage.is-on .hud-dot { background: #22c55e; box-shadow: 0 0 0 3px rgba(34, 197, 94, .25); animation: blink 2s ease-in-out infinite; }
.stage.is-warn .hud-dot { background: #ef4444; }
@keyframes blink { 50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); } }

/* App window */
.appwin {
  position: relative; z-index: 3;
  width: 382px; max-width: 100%;
  border-radius: 8px; overflow: hidden;
  background: linear-gradient(var(--w-tint), var(--w-tint)), var(--w-bg);
  backdrop-filter: blur(40px) saturate(1.4); -webkit-backdrop-filter: blur(40px) saturate(1.4);
  border: 1px solid rgba(0, 0, 0, .12);
  box-shadow: 0 32px 64px rgba(0, 0, 0, .28), 0 2px 21px rgba(0, 0, 0, .22);
  font-size: 14px; line-height: 20px;
  align-self: start;
}
.stage[data-theme-app="dark"] .appwin { border-color: rgba(255, 255, 255, .1); }
.titlebar { display: flex; align-items: center; height: 32px; padding-left: 12px; font-size: 12px; }
.tb-icon { width: 16px; height: 16px; margin-right: 10px; }
.tb-spacer { flex: 1; }
.tb-btn { display: grid; place-items: center; width: 46px; height: 32px; color: var(--w-text); }
.tb-btn svg { width: 16px; height: 16px; }
.winfoot .tb-btn { width: 40px; }

.status { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 10px 16px 14px; }
.power {
  position: relative; display: grid; place-items: center;
  width: 84px; height: 84px; border-radius: 50%;
  border: 0; cursor: pointer; padding: 0;
  background: var(--w-ctl); color: var(--w-text);
  box-shadow: 0 0 0 6px var(--w-seg), inset 0 0 0 1px var(--w-ctl-line);
  transition: background .25s ease, box-shadow .25s ease, transform .12s ease;
}
.power:active { transform: scale(.96); }
.power svg { grid-area: 1 / 1; width: 40px; height: 40px; transition: opacity .2s ease, transform .3s ease; }
.power .power-on { opacity: 0; transform: scale(.7); }
.stage.is-on .power { background: var(--acc-ui); color: var(--on-acc); box-shadow: 0 0 0 6px color-mix(in oklab, var(--acc-ui) 18%, transparent); }
.stage.is-on .power .power-on { opacity: 1; transform: none; }
.stage.is-on .power .power-off { opacity: 0; transform: scale(.7); }
.power-ring { position: absolute; inset: -6px; border-radius: 50%; pointer-events: none; }
.stage.is-on .power-ring { animation: ring 2.4s ease-out infinite; }
@keyframes ring { from { box-shadow: 0 0 0 0 color-mix(in oklab, var(--acc-ui) 45%, transparent); } to { box-shadow: 0 0 0 18px transparent; } }
.steam { stroke-dasharray: 5; animation: steam 2.4s linear infinite; }
@keyframes steam { to { stroke-dashoffset: -10; } }

.status-text strong { display: block; font-size: 20px; line-height: 28px; font-weight: 600; }
.status-text small, .status-timer small { display: block; font-size: 12px; line-height: 16px; color: var(--w-muted); }
.status-timer { display: flex; align-items: center; gap: 6px; }
.status-timer svg { width: 22px; height: 22px; color: var(--w-text); }
.status-timer strong { display: block; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }

.modes { display: grid; grid-template-columns: 1fr 1fr .84fr; gap: 8px; padding: 0 16px; }
.mode-grid { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.mode {
  display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 12px;
  border-radius: 4px; border: 1px solid var(--w-ctl-line); border-bottom-color: var(--w-ctl-bottom);
  background: var(--w-ctl); cursor: pointer; font-size: 14px; text-align: left;
}
.mode:hover { background: var(--w-ctl-hover); }
.mode svg { width: 18px; height: 18px; flex: none; }
.mode[aria-checked="true"] {
  border-color: var(--acc-ui); color: var(--acc-text); font-weight: 600;
  background: color-mix(in oklab, var(--acc-ui) 12%, var(--w-ctl));
}
.preview {
  border-radius: 4px; border: 1px solid var(--w-ctl-line); background: var(--w-ctl);
  display: grid; place-items: center; overflow: hidden;
}
.preview svg { width: 100%; height: 100%; max-height: 88px; }
#preview-arrow { color: var(--w-strong); --arrow-edge: var(--w-bg); transition: color .3s; }
.stage.is-on #preview-arrow { color: var(--acc-ui); }
#preview-guide * { fill: none; stroke: var(--w-strong); stroke-width: 1; stroke-dasharray: 2 3; opacity: .55; }
#preview-ripple { stroke: var(--acc-ui); opacity: 0; }

.label { font-size: 12px; color: var(--w-text); padding: 12px 16px 6px; }
.segmented {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; margin: 0 16px; padding: 3px;
  border-radius: 6px; background: var(--w-seg); border: 1px solid var(--w-ctl-line);
}
.segmented button {
  position: relative; height: 30px; border: 0; border-radius: 4px; background: none; cursor: pointer;
  font-size: 13px; color: var(--w-muted); display: grid; place-items: center; white-space: nowrap;
}
.segmented button:hover { background: var(--w-ctl-hover); }
.segmented button svg { width: 16px; height: 16px; }
.segmented [aria-checked="true"] { background: var(--w-ctl); color: var(--w-text); font-weight: 600; box-shadow: 0 0 0 1px var(--w-ctl-line); }
.segmented [aria-checked="true"]::after {
  content: ""; position: absolute; bottom: 2px; left: 50%; width: 16px; height: 3px; margin-left: -8px;
  border-radius: 2px; background: var(--acc-ui);
}

.more-area { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .3s ease; }
.more-area.collapsed { grid-template-rows: 0fr; }
.more-inner { min-height: 0; overflow: hidden; }
.card {
  margin: 12px 16px 0; border-radius: 6px; background: var(--w-card); border: 1px solid var(--w-card-line);
}
.row {
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px;
  min-height: 40px; padding: 0 12px 0 14px;
}
.row + .row { border-top: 1px solid var(--w-card-line); }
.row:has(input[type="range"]) { grid-template-columns: 96px 1fr 40px; }
.row label { font-size: 14px; cursor: pointer; }
.row label small { font-size: 12px; color: var(--w-muted); margin-left: 6px; }
.row output { text-align: right; font-variant-numeric: tabular-nums; }

input[type="range"] {
  --p: 50%;
  -webkit-appearance: none; appearance: none; width: 100%; height: 20px; background: none; cursor: pointer; margin: 0;
}
input[type="range"]::-webkit-slider-runnable-track {
  height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--acc-ui) var(--p), var(--w-strong) var(--p));
}
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--w-strong); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--acc-ui); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 20px; height: 20px; margin-top: -8px; border-radius: 50%;
  background: var(--acc-ui); border: 5px solid #fff;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .2);
  transition: border-width .12s ease;
}
.stage[data-theme-app="dark"] input[type="range"]::-webkit-slider-thumb { border-color: #454545; }
input[type="range"]:active::-webkit-slider-thumb { border-width: 6px; }
input[type="range"]::-moz-range-thumb {
  width: 10px; height: 10px; border-radius: 50%; background: var(--acc-ui);
  border: 5px solid #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12);
}
.stage[data-theme-app="dark"] input[type="range"]::-moz-range-thumb { border-color: #454545; }

.switch {
  -webkit-appearance: none; appearance: none; position: relative; margin: 0; cursor: pointer;
  width: 40px; height: 20px; border-radius: 10px; flex: none;
  border: 1px solid var(--w-strong); background: var(--w-seg);
  transition: background .2s ease, border-color .2s ease;
}
.switch::after {
  content: ""; position: absolute; top: 50%; left: 4px; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%;
  background: var(--w-muted); transition: transform .2s cubic-bezier(.3, 1.5, .6, 1), background .2s ease, width .15s ease;
}
.switch:active::after { width: 15px; }
.switch:checked { background: var(--acc-ui); border-color: var(--acc-ui); }
.switch:checked::after { background: var(--w-knob); transform: translateX(20px); }
.switch:checked:active::after { transform: translateX(17px); }

.winfoot {
  display: flex; align-items: center; justify-content: space-between; margin-top: 14px; height: 44px; padding: 0 8px 0 4px;
  border-top: 1px solid var(--w-card-line); background: var(--w-seg);
}
.more { display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; cursor: pointer; font-size: 13px; padding: 6px 10px; border-radius: 4px; }
.more:hover { background: var(--w-ctl-hover); }
.more svg { width: 14px; height: 14px; transition: transform .25s ease; }
.more[aria-expanded="false"] svg { transform: rotate(180deg); }

/* Pointer zone */
.pointer-zone { position: relative; min-height: 260px; }
.pz-target {
  position: absolute; left: 50%; top: 50%; width: 240px; height: 240px; translate: -50% -50%; border-radius: 50%;
  border: 1px dashed color-mix(in oklab, var(--w-text) 22%, transparent);
  background: radial-gradient(circle, color-mix(in oklab, var(--w-text) 6%, transparent), transparent 70%);
}
.pz-target::before, .pz-target::after { content: ""; position: absolute; background: color-mix(in oklab, var(--w-text) 16%, transparent); }
.pz-target::before { left: 50%; top: 20%; bottom: 20%; width: 1px; }
.pz-target::after { top: 50%; left: 20%; right: 20%; height: 1px; }
.fake-pointer {
  position: absolute; left: 50%; top: 50%; width: 30px; height: 40px; margin: -3px 0 0 -2px; z-index: 2;
  color: #000; --arrow-edge: #fff;
  transition: transform .22s cubic-bezier(.3, .8, .3, 1);
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35));
}
.fake-pointer svg { width: 100%; height: 100%; }
.pz-trail { position: absolute; inset: 0; pointer-events: none; }
.pz-trail i {
  position: absolute; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%;
  background: var(--acc-ui); opacity: .7; animation: trail 1.2s ease-out forwards;
}
@keyframes trail { to { opacity: 0; transform: scale(.2); } }
.pz-ripple { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 1; }
.pz-ripple i {
  position: absolute; left: -30px; top: -30px; width: 60px; height: 60px; border-radius: 50%;
  border: 2px solid var(--acc-ui); animation: ripple .9s ease-out forwards;
}
@keyframes ripple { from { transform: scale(.2); opacity: .9; } to { transform: scale(1.4); opacity: 0; } }
.pz-toast {
  position: absolute; left: 50%; bottom: 8px; translate: -50% 0; white-space: nowrap;
  padding: 6px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 600;
  background: var(--w-tint); border: 1px solid var(--w-ctl-line); backdrop-filter: blur(12px);
  opacity: 0; transition: opacity .3s ease, translate .3s ease;
}
.pz-toast.show { opacity: 1; translate: -50% -6px; }

/* Flyout */
.flyout {
  position: absolute; right: 12px; bottom: 60px; z-index: 8; width: 360px; max-width: calc(100% - 24px);
  border-radius: 8px; overflow: hidden;
  background: var(--w-tint); border: 1px solid var(--w-ctl-line);
  backdrop-filter: blur(40px) saturate(1.5); -webkit-backdrop-filter: blur(40px) saturate(1.5);
  box-shadow: 0 32px 64px rgba(0, 0, 0, .28);
  animation: flyin .25s cubic-bezier(.2, .9, .3, 1);
}
.flyout[hidden] { display: none; }
@keyframes flyin { from { opacity: 0; transform: translateY(16px); } }
.fly-main { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 20px; }
.power-sm { width: 56px; height: 56px; box-shadow: none; }
.power-sm svg { width: 28px; height: 28px; }
.stage.is-on .power-sm { box-shadow: none; }
.fly-foot { display: flex; justify-content: space-between; padding: 12px 20px; font-size: 13px; background: var(--w-seg); border-top: 1px solid var(--w-card-line); }

/* Taskbar */
.taskbar {
  position: relative; z-index: 7; display: flex; align-items: center; height: 48px; padding: 0 12px;
  background: var(--taskbar); border-top: 1px solid var(--w-ctl-line);
  backdrop-filter: blur(30px) saturate(1.5); -webkit-backdrop-filter: blur(30px) saturate(1.5);
  font-size: 12px;
}
.tb-start, .tb-apps { display: flex; align-items: center; }
.tb-start { position: absolute; left: 50%; translate: -60px 0; }
.tb-start svg { width: 22px; height: 22px; color: #0078d4; }
.stage[data-theme-app="dark"] .tb-start svg { color: #4cc2ff; }
.tb-apps { position: absolute; left: 50%; translate: -12px 0; }
.tb-app { width: 24px; height: 24px; }
.tb-tray { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.presence {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  background: var(--w-ctl); border: 1px solid var(--w-ctl-line); font-weight: 600; transition: color .3s;
}
.presence.away .presence-dot { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245, 158, 11, .2); }
.tray-icon {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 6px; border: 0; background: none; cursor: pointer; color: var(--w-text);
}
.tray-icon:hover, .tray-icon[aria-expanded="true"] { background: var(--w-ctl-hover); }
.tray-icon svg { grid-area: 1 / 1; width: 18px; height: 18px; }
.tray-icon .power-on { display: none; }
.stage.is-on .tray-icon .power-on { display: block; }
.stage.is-on .tray-icon .power-off { display: none; }
.tb-clock { font-variant-numeric: tabular-nums; padding-right: 4px; }

/* Lock & dim */
.dim { position: absolute; inset: 0; z-index: 9; background: #000; opacity: 0; pointer-events: none; transition: opacity 1s ease; }
.stage.is-dimming .dim { opacity: .45; }
.lock {
  position: absolute; inset: 0; z-index: 10; display: flex; flex-direction: column; align-items: center; justify-content: center;
  color: #fff; text-align: center;
  background: rgba(10, 12, 30, .35);
  backdrop-filter: blur(24px) brightness(.75); -webkit-backdrop-filter: blur(24px) brightness(.75);
  animation: lockin .6s ease;
}
.lock[hidden] { display: none; }
@keyframes lockin { from { opacity: 0; } }
.lock-time { font-family: var(--font-display); font-size: clamp(64px, 10vw, 110px); font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.lock-date { font-size: 20px; margin-top: 8px; opacity: .9; }
.lock-btn {
  margin-top: 40px; padding: 10px 18px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; font-size: 14px; max-width: 90%;
}
.lock-btn:hover { background: rgba(255, 255, 255, .2); }

/* Controls under the stage */
.stage-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px; margin-top: 22px; }
.seg-mini { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.seg-mini button {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 8px; border: 0; background: none;
  cursor: pointer; font-size: 14px; color: var(--muted); font-weight: 500;
}
.seg-mini button svg { width: 16px; height: 16px; }
.seg-mini [aria-checked="true"] { background: var(--card-solid); color: var(--text); box-shadow: var(--shadow); }
.swatches { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; max-width: 100%; }
.swatches button {
  width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--bg); cursor: pointer; padding: 0;
  box-shadow: 0 0 0 1px var(--line); transition: transform .15s ease;
}
.swatches button:hover { transform: scale(1.15); }
.swatches [aria-checked="true"] { box-shadow: 0 0 0 2px var(--text); }

@media (max-width: 820px) {
  .desktop { grid-template-columns: minmax(0, 1fr); padding: 56px 12px 16px; min-height: 0; }
  .appwin { width: min(382px, 100%); }
  .appwin { justify-self: center; }
  .pointer-zone { order: -1; min-height: 190px; }
  .pz-target { width: 170px; height: 170px; }
  .tb-start, .tb-apps { display: none; }
  .stage-hud { left: 12px; right: 12px; text-align: center; }
}
@media (max-width: 400px) {
  .status { gap: 10px; padding-inline: 12px; }
  .power { width: 68px; height: 68px; }
  .power svg { width: 32px; height: 32px; }
  .status-text strong { font-size: 18px; }
  .modes { grid-template-columns: 1fr 1fr; padding: 0 12px; }
  .preview { display: none; }
  .segmented button { font-size: 12px; }
  .segmented, .card { margin-inline: 12px; }
  .label { padding-inline: 12px; }
  .row:has(input[type="range"]) { grid-template-columns: 82px 1fr 36px; }
  .presence { display: none; }
}

/* ---------- Features (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tile {
  position: relative; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  backdrop-filter: blur(10px); overflow: hidden;
  transition: transform .25s ease, border-color .25s ease;
}
.tile:hover { transform: translateY(-3px); border-color: color-mix(in oklab, var(--brand) 35%, var(--line)); }
.tile h3 { font-size: 20px; font-weight: 650; margin-bottom: 8px; }
.tile p { margin: 0; color: var(--muted); font-size: 15px; }
.tile-icon {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: 18px;
  color: #fff; background: var(--sweep); box-shadow: 0 10px 24px -10px rgba(75, 63, 242, .7);
}
.tile-icon svg { width: 24px; height: 24px; }
.tile-wide { grid-column: span 2; display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: center; }
.mini-modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.mm { display: grid; gap: 6px; text-align: center; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.mm svg { width: 100%; aspect-ratio: 1; border-radius: 12px; background: var(--card-solid); border: 1px solid var(--line); color: var(--brand); --arrow-edge: var(--card-solid); }
.mm-guide { fill: none; stroke: currentColor; stroke-dasharray: 2 4; opacity: .4; stroke-width: 1.5; }
.mm-ripple { fill: none; stroke: currentColor; stroke-width: 2; transform-origin: 57px 57px; animation: mm-ripple 2s ease-out infinite; }
.mm-arrow { transform: translate(57px, 57px) scale(2.2); }
[data-mm="default"] .mm-arrow { animation: mm-default 2.4s cubic-bezier(.5, 0, .3, 1) infinite; }
[data-mm="diagonal"] .mm-arrow { animation: mm-diagonal 2.4s cubic-bezier(.5, 0, .3, 1) infinite; }
[data-mm="orbit"] .mm-arrow { animation: mm-orbit 4s linear infinite; }
@keyframes mm-default { 0%, 100% { transform: translate(37px, 57px) scale(2.2); } 50% { transform: translate(77px, 57px) scale(2.2); } }
@keyframes mm-diagonal { 0%, 100% { transform: translate(42px, 42px) scale(2.2); } 50% { transform: translate(72px, 72px) scale(2.2); } }
@keyframes mm-ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(3.6); opacity: 0; } }
@keyframes mm-orbit {
  from { transform: translate(57px, 57px) rotate(0deg) translate(22px, 0) rotate(0deg) scale(2.2); }
  to { transform: translate(57px, 57px) rotate(360deg) translate(22px, 0) rotate(-360deg) scale(2.2); }
}

.tray-art { position: relative; display: grid; justify-items: end; gap: 10px; }
.menu {
  width: min(280px, 100%); padding: 4px; border-radius: 8px; font-size: 14px;
  background: var(--card-solid); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.menu-item { display: flex; align-items: center; gap: 12px; padding: 7px 12px; border-radius: 5px; }
.menu-item:hover { background: var(--card); }
.menu-head { font-weight: 600; }
.menu-head kbd { margin-left: auto; font-family: var(--font); border: 0; background: none; color: var(--muted); font-size: 12px; }
.play { color: #16a34a; font-size: 12px; }
.menu-sep { height: 1px; margin: 4px 0; background: var(--line); }
.tray-strip {
  display: flex; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 10px;
  background: var(--card-solid); border: 1px solid var(--line); font-size: 12px; color: var(--muted);
}
.tray-glyph { width: 18px; height: 18px; color: var(--text); padding: 6px; box-sizing: content-box; border-radius: 6px; background: var(--card); }
.tray-sys { width: 60px; height: 16px; }
.tray-time { font-variant-numeric: tabular-nums; color: var(--text); }

@media (max-width: 900px) {
  .bento { grid-template-columns: 1fr 1fr; }
  .tile-wide { grid-column: span 2; }
}
@media (max-width: 620px) {
  .bento { grid-template-columns: 1fr; }
  .tile-wide { grid-column: auto; grid-template-columns: 1fr; }
  .tray-art { justify-items: stretch; }
  .menu { width: 100%; }
}

/* ---------- Screenshots ---------- */
.shots { padding-top: 40px; }
.shot-rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(240px, 300px); gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; padding: 8px 4px 28px; justify-content: safe center;
  scrollbar-width: thin;
}
.shot-rail figure { margin: 0; scroll-snap-align: center; }
.shot-rail img {
  width: 100%; height: auto; border-radius: 10px;
  box-shadow: 0 30px 60px -20px rgba(30, 20, 90, .45), 0 0 0 1px var(--line);
  transition: transform .3s ease;
}
.shot-rail figure:hover img { transform: translateY(-6px) rotate(-.6deg); }
.shot-rail figcaption { text-align: center; color: var(--muted); font-size: 14px; margin-top: 14px; }

/* ---------- CLI ---------- */
.cli-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: center; }
.terminal {
  border-radius: 14px; overflow: hidden; background: #0c0c14; color: #e4e4f0;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 40px 80px -30px rgba(20, 10, 80, .6);
}
.term-bar { display: flex; align-items: center; gap: 7px; padding: 12px 14px; background: #16161f; font-size: 12.5px; color: #9a9ab0; }
.term-bar i { width: 11px; height: 11px; border-radius: 50%; background: #3a3a48; }
.term-bar span { margin-left: 8px; }
.terminal pre { margin: 0; padding: 20px 22px 24px; font-size: 13px; line-height: 1.7; overflow-x: auto; }
.t-dim { color: #7c7c96; }
.t-hi { color: #fff; font-weight: 700; }
.t-opt { color: #a99dff; }
@media (max-width: 900px) { .cli-grid { grid-template-columns: 1fr; } }

/* ---------- Download ---------- */
.download { position: relative; }
.download::before {
  content: ""; position: absolute; inset: 20% 10% 10%; z-index: -1; border-radius: 50%;
  background: radial-gradient(closest-side, var(--aurora-b), transparent); filter: blur(40px);
}
.dl-grid { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 16px; align-items: stretch; }
.dl-card {
  display: flex; flex-direction: column; gap: 12px; padding: 28px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line); backdrop-filter: blur(10px);
}
.dl-card h3 { font-size: 22px; }
.dl-card p { margin: 0; color: var(--muted); flex: 1; }
.dl-card .btn { width: 100%; }
.dl-featured {
  background: linear-gradient(var(--card-solid), var(--card-solid)) padding-box, var(--sweep) border-box;
  border: 1.5px solid transparent; box-shadow: var(--shadow);
}
.dl-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--sweep); color: #fff; }
.dl-icon svg { width: 22px; height: 22px; }
.dl-buttons { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.cmd-block { margin: 0; max-width: none; }
.cmd-block code { font-size: 13.5px; }
.dl-more { font-size: 14px; }
.dl-more summary { cursor: pointer; color: var(--muted); }
.dl-more ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.dl-more li { margin: 4px 0; }
@media (max-width: 900px) { .dl-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .7fr 1.3fr; gap: 48px; align-items: start; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 4px 0;
}
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative;
  font-weight: 600; font-size: 17.5px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .25s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
@media (max-width: 900px) { .faq-wrap { grid-template-columns: 1fr; gap: 0; } }

/* ---------- CTA & footer ---------- */
.cta { padding: 40px 0 110px; }
.cta-inner {
  position: relative; overflow: hidden; text-align: center; padding: 64px 24px; border-radius: 28px;
  background: radial-gradient(80% 120% at 50% 0%, color-mix(in oklab, var(--b2) 30%, transparent), transparent 70%), var(--card);
  border: 1px solid var(--line);
}
.cta-icon { width: 88px; height: 88px; margin: 0 auto 24px; filter: drop-shadow(0 16px 24px rgba(75, 63, 242, .45)); animation: bob 6s ease-in-out infinite; }
.cta h2 { font-size: clamp(28px, 4vw, 44px); max-width: 720px; margin: 0 auto 28px; }

.foot { border-top: 1px solid var(--line); padding: 32px 0 40px; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.foot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot nav a { color: var(--muted); font-size: 14px; }
.foot p { margin: 0 0 0 auto; color: var(--muted); font-size: 14px; }
@media (max-width: 620px) { .foot p { margin: 0; } }

/* ---------- Doc pages (privacy, 404) ---------- */
.doc { max-width: 720px; padding: 72px 0 96px; }
.doc h1 { font-size: clamp(34px, 5vw, 52px); margin-bottom: 8px; }
.doc .updated { color: var(--muted); margin: 0 0 32px; }
.doc p, .doc li { color: var(--muted); font-size: 17px; }
.doc li { margin: 10px 0; }
.doc strong { color: var(--text); }
.doc code { font-size: .88em; padding: .1em .4em; border-radius: 6px; background: var(--card); border: 1px solid var(--line); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

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