/* Dictator for Windows — site styles. Dark is the default look; light via the header toggle. */
:root {
  --bg: #262626;
  --bg-2: #2f2f2f;
  --bg-3: #383838;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .16);
  --text: #fff;
  --muted: rgba(255, 255, 255, .66);
  --faint: rgba(255, 255, 255, .45);
  --pill-bg: #fff;
  --pill-fg: #0a0a0a;
  --ghost: rgba(255, 255, 255, .07);
  --ghost-2: rgba(255, 255, 255, .12);
  --accent: #3d9cf0;
  --ok: #34c759;
  --warn: #ff9f0a;
  --bad: #ff453a;
  --header-h: 56px;
  --radius: 14px;
  --font: "Segoe UI Variable Text", "Segoe UI", -apple-system, BlinkMacSystemFont, Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "Cascadia Code", Consolas, "SF Mono", Menlo, monospace;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #fff;
  --bg-2: #f4f4f5;
  --bg-3: #e9e9ec;
  --line: rgba(0, 0, 0, .08);
  --line-2: rgba(0, 0, 0, .16);
  --text: #0a0a0a;
  --muted: rgba(0, 0, 0, .64);
  --faint: rgba(0, 0, 0, .45);
  --pill-bg: #0a0a0a;
  --pill-fg: #fff;
  --ghost: rgba(0, 0, 0, .05);
  --ghost-2: rgba(0, 0, 0, .09);
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .25s, color .25s;
}
a { color: inherit; }
img, svg { display: block; }
button { font: inherit; color: inherit; }
.icon { width: 1em; height: 1em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon.fill { fill: currentColor; stroke: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* ---------- header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  display: flex; align-items: center; gap: 8px;
  padding: 0 max(16px, calc((100vw - 1160px) / 2));
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 16px; margin-right: 14px; }
.brand img { width: 26px; height: 26px; }
.brand small { font-weight: 600; color: var(--faint); font-size: 13px; }
.nav { display: flex; gap: 2px; }
.nav a {
  position: relative; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 16px 10px; color: var(--muted); transition: color .15s;
}
.nav a:hover, .nav a.is-active { color: var(--text); }
.brand, .nav a, .hbtn { white-space: nowrap; }
.nav a.is-active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--text); border-radius: 2px; }
.header-end { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.hbtn {
  display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 11px;
  border: 0; background: none; border-radius: 10px; cursor: pointer; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--text);
}
.hbtn:hover { background: var(--ghost); }
.hbtn .icon { font-size: 18px; }
.hbtn .chev { font-size: 14px; opacity: .7; }
.lang { position: relative; }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 168px; padding: 6px;
  background: var(--bg-2); border: 1px solid var(--line-2); border-radius: 12px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35); display: none;
}
.lang.is-open .lang-menu { display: block; }
.lang-menu button {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 9px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font-size: 15px; text-align: left;
}
.lang-menu button:hover { background: var(--ghost); }
.lang-menu button[aria-checked="true"]::after { content: "✓"; color: var(--accent); font-weight: 700; }
.theme-btn .moon { display: none; }
:root[data-theme="light"] .theme-btn .sun { display: none; }
:root[data-theme="light"] .theme-btn .moon { display: block; }

/* ---------- buttons ---------- */
.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 46px; padding: 0 24px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px; cursor: pointer; border: 1px solid transparent;
  transition: transform .15s, background-color .15s, opacity .15s;
}
.pill:active { transform: scale(.97); }
.pill .icon { font-size: 19px; }
.pill-solid { background: var(--pill-bg); color: var(--pill-fg); }
.pill-solid:hover { opacity: .9; }
.pill-ghost { background: var(--ghost); border-color: var(--line-2); color: var(--text); }
.pill-ghost:hover { background: var(--ghost-2); }
.cta { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.meta { margin: 12px 0 0; display: flex; justify-content: center; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); font-weight: 500; }
.meta .sep { width: 1px; height: 14px; background: var(--line-2); }
.meta a { color: var(--text); text-underline-offset: 3px; text-decoration-color: var(--line-2); }
.meta a:hover { text-decoration-color: currentColor; }

/* ---------- hero tour ---------- */
.tour { position: relative; height: calc(100svh + (var(--n) - 1) * 62svh); }
.tour-sticky {
  position: sticky; top: var(--header-h);
  height: calc(100svh - var(--header-h)); min-height: 560px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 16px 22px; gap: 0;
  overflow: hidden;
}
.stack { display: grid; }
.stack > * { grid-area: 1 / 1; transition: opacity .45s ease, transform .45s ease; }
.stack > :not(.is-active) { opacity: 0; transform: translateY(8px); pointer-events: none; }
.tour-title { margin: 0; text-align: center; font-size: clamp(36px, 6.4vw, 66px); line-height: 1.05; font-weight: 700; letter-spacing: -.035em; }
.tour-sub { margin: 10px 0 0; text-align: center; font-size: clamp(15px, 1.9vw, 19px); color: var(--muted); font-weight: 500; max-width: 680px; }
.tour-sub > * { justify-self: center; }

.stage { position: relative; margin: 22px 0 22px; display: flex; justify-content: center; width: 100%; }
.laptop { --w: min(880px, 86vw, calc((100svh - var(--header-h) - 330px) * 1.52)); width: var(--w); }
.lid {
  position: relative; background: #0c0c0d; border-radius: calc(var(--w) * .024) calc(var(--w) * .024) 0 0;
  padding: calc(var(--w) * .014); padding-bottom: calc(var(--w) * .02);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .1) inset, 0 30px 80px rgba(0, 0, 0, .35);
}
.lid::before { /* camera */
  content: ""; position: absolute; top: calc(var(--w) * .0055); left: 50%; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: #2a2a2e;
}
.screen { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: 3px; background: #dfe7ef; }
.base {
  position: relative; height: calc(var(--w) * .024); margin: 0 calc(var(--w) * -.06);
  background: linear-gradient(#cfd0d4, #a9abb1 55%, #8d8f95);
  border-radius: 0 0 calc(var(--w) * .03) calc(var(--w) * .03) / 0 0 calc(var(--w) * .02) calc(var(--w) * .02);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .3);
}
.base::before { content: ""; position: absolute; left: 50%; top: 0; width: 16%; height: 38%; transform: translateX(-50%); background: rgba(0, 0, 0, .18); border-radius: 0 0 8px 8px; }

.pager {
  position: absolute; right: max(0px, calc((100% - var(--w, 880px)) / 2 - 70px)); top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.dots {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0;
  width: 26px; border-radius: 999px; background: var(--ghost); border: 1px solid var(--line-2);
}
.dot { position: relative; width: 26px; height: 18px; border: 0; background: none; cursor: pointer; padding: 0; }
.dot::before { content: ""; position: absolute; left: 50%; top: 50%; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 4px; background: var(--faint); transition: height .3s, margin .3s, background-color .3s; }
.dot.is-active::before { height: 18px; margin-top: -9px; background: var(--text); }
.dot .tip {
  position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
  white-space: nowrap; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px;
  background: var(--bg-3); color: var(--text); opacity: 0; transition: opacity .25s; pointer-events: none;
}
.dot.is-active .tip { opacity: 1; }
.dot:hover .tip { opacity: 1; }
.play {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--ghost);
  display: grid; place-items: center; cursor: pointer;
}
.play .icon { font-size: 14px; }
.play .pause { display: none; }
.play[aria-pressed="true"] .pause { display: block; }
.play[aria-pressed="true"] .playi { display: none; }

/* ---------- the mock Windows desktop (1000 x 625 design pixels, scaled) ---------- */
.canvas {
  position: absolute; left: 0; top: 0; width: 1000px; height: 625px; transform-origin: 0 0; transform: scale(var(--k, .8));
  font-family: "Segoe UI Variable Text", "Segoe UI", -apple-system, Roboto, Arial, sans-serif; color: #0f1419; font-size: 13px; line-height: 1.35;
  background: radial-gradient(120% 90% at 70% 10%, #b9d4f1, #7aa7dc 45%, #3b6fb6);
  user-select: none;
}
.win { position: absolute; inset: 0 0 40px 0; background: #fff; display: flex; flex-direction: column; }
.titlebar { height: 32px; flex: none; display: flex; align-items: center; background: #f3f3f3; border-bottom: 1px solid #e6e6e6; }
.titlebar .tb-name { display: flex; align-items: center; gap: 8px; padding-left: 12px; font-size: 12px; color: #1b1b1b; }
.titlebar .tb-name img { width: 16px; height: 16px; }
.titlebar .caps { margin-left: auto; display: flex; height: 100%; }
.titlebar .caps span { width: 46px; display: grid; place-items: center; color: #333; }
.titlebar .caps svg { width: 10px; height: 10px; stroke: currentColor; stroke-width: 1.1; fill: none; }
.app { flex: 1; display: flex; min-height: 0; }
.side { width: 236px; flex: none; background: #f7f7f8; border-right: 1px solid #ebebed; display: flex; flex-direction: column; padding: 10px 10px 10px; }
.side .search { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 8px; background: #ececef; color: #8a8a90; font-size: 12.5px; margin-bottom: 10px; }
.side .search .icon { font-size: 13px; }
.side .grp { font-size: 11px; color: #8a8a90; font-weight: 600; padding: 8px 8px 4px; }
.navi { display: flex; align-items: center; gap: 9px; height: 30px; padding: 0 8px; border-radius: 8px; font-size: 13px; color: #1b1b1b; transition: background-color .3s, color .3s; }
.navi .sq { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-size: 12px; }
.navi.is-active { background: #2b88d9; color: #fff; }
.side .status { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 10px; background: #fff; border: 1px solid #ebebed; font-size: 12px; }
.side .status b { display: block; font-weight: 600; }
.side .status small { color: #8a8a90; font-size: 11px; }
.side .status i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: none; }
.side .status .stop { margin-left: auto; width: 22px; height: 22px; border-radius: 6px; background: #ececef; display: grid; place-items: center; }
.side .status .stop::before { content: ""; width: 8px; height: 8px; border-radius: 2px; background: #1b1b1b; }
.c-blue { background: #2b88d9; } .c-red { background: #ef5350; } .c-violet { background: #8e5cf0; } .c-orange { background: #f08c2b; }
.c-cyan { background: #23a9c7; } .c-pink { background: #e8559a; } .c-tg { background: #3a9bdc; } .c-teal { background: #27b39b; }
.c-gray { background: #8a8f98; } .c-green { background: #34b45a; } .c-ink { background: #1b1b1b; }

.main { position: relative; flex: 1; min-width: 0; background: #fafafb; }
.pane { position: absolute; inset: 0; padding: 22px 26px; overflow: hidden; opacity: 0; transform: translateY(6px); transition: opacity .45s, transform .45s; }
.pane.is-active { opacity: 1; transform: none; }
.ph { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.ph .big { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 19px; }
.ph h3 { margin: 0; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ph p { margin: 1px 0 0; font-size: 12px; color: #6b6b72; }
.lbl { font-size: 11.5px; color: #6b6b72; font-weight: 600; margin: 12px 2px 6px; }
.card { background: #fff; border: 1px solid #ebebed; border-radius: 11px; overflow: hidden; }
.row { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 7px 12px; }
.row + .row { border-top: 1px solid #f0f0f2; }
.row .sq { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: #fff; font-size: 13px; flex: none; }
.row .tx { min-width: 0; flex: 1; }
.row .tx b { display: block; font-weight: 600; font-size: 13px; }
.row .tx small { display: block; color: #7b7b82; font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .val { color: #6b6b72; font-size: 12px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.row .val .icon { font-size: 12px; }
.tog { width: 36px; height: 20px; border-radius: 10px; background: #d9d9de; position: relative; flex: none; }
.tog::after { content: ""; position: absolute; left: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); transition: left .25s; }
.tog.on { background: #1b1b1b; }
.tog.on::after { left: 18px; }
.mbtn { height: 24px; padding: 0 10px; border-radius: 7px; background: #f0f0f2; font-size: 11.5px; font-weight: 600; display: inline-flex; align-items: center; color: #1b1b1b; }
.mbtn.dark { background: #1b1b1b; color: #fff; }
.kc { display: inline-flex; align-items: center; height: 22px; padding: 0 7px; border-radius: 6px; background: #fff; border: 1px solid #d9d9de; border-bottom-width: 2px; font-size: 11px; font-weight: 600; color: #1b1b1b; }
.seg { display: inline-flex; padding: 2px; border-radius: 8px; background: #f0f0f2; gap: 2px; }
.seg span { padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 600; color: #5b5b62; white-space: nowrap; }
.seg span.on { background: #fff; color: #1b1b1b; box-shadow: 0 1px 2px rgba(0, 0, 0, .12); }
.seg.big { width: 100%; }
.seg.big span { flex: 1; text-align: center; padding: 7px 10px; font-size: 12px; }
.badge { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 6px; }
.badge.b-ok { background: #e3f6e8; color: #1f8a3d; } .badge.b-ask { background: #fff1dc; color: #b26a00; } .badge.b-no { background: #fde6e4; color: #c62b1f; }
.okdot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.check { width: 18px; height: 18px; border-radius: 50%; background: #1b1b1b; color: #fff; display: grid; place-items: center; font-size: 11px; }
.note { margin: 10px 2px 0; font-size: 11.5px; color: #6b6b72; display: flex; gap: 6px; align-items: center; }
.tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.tabs span { padding: 5px 11px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #5b5b62; background: #f0f0f2; }
.tabs span.on { background: #1b1b1b; color: #fff; }

/* chat pane */
.pane.chat { padding: 0; display: flex; flex-direction: column; }
.chat-h { height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 16px; background: #fff; border-bottom: 1px solid #ebebed; }
.chat-h img { width: 32px; height: 32px; }
.chat-h b { display: block; font-size: 14px; }
.chat-h small { color: #2b88d9; font-size: 11.5px; }
.chat-b { flex: 1; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; background: #e7edf3; background-image: radial-gradient(rgba(43, 136, 217, .07) 1px, transparent 1.5px); background-size: 18px 18px; }
.bub { max-width: 70%; padding: 8px 11px; border-radius: 14px; background: #fff; font-size: 12.8px; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); }
.bub.me { align-self: flex-end; background: #d9ecfd; border-bottom-right-radius: 5px; }
.bub.ai { border-bottom-left-radius: 5px; }
.bub .draft { margin-top: 7px; padding: 7px 9px; border-left: 3px solid #2b88d9; background: #f1f7fd; border-radius: 6px; font-style: italic; }
.bub .acts { display: flex; gap: 6px; margin-top: 8px; }
.tool { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #4a5560; background: rgba(255, 255, 255, .7); padding: 3px 9px; border-radius: 999px; }
.tool .icon { color: var(--ok); font-size: 11px; }
.chat-c { height: 50px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 14px; background: #fff; border-top: 1px solid #ebebed; color: #8a8a90; }
.chat-c .in { flex: 1; font-size: 12.5px; }
.chat-c .mic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #2b88d9; color: #fff; font-size: 14px; }

/* overlays */
.float { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; }
.doc { width: 340px; background: #fff; border-radius: 10px; box-shadow: 0 12px 40px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .06); overflow: hidden; }
.doc .doc-h { height: 26px; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: #f3f3f3; font-size: 11px; color: #444; }
.doc .doc-b { padding: 12px 14px; font-size: 14px; min-height: 46px; }
.doc .caret { display: inline-block; width: 1.5px; height: 16px; background: #1b1b1b; vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
.hud { display: flex; align-items: center; gap: 10px; height: 34px; padding: 0 14px 0 6px; border-radius: 999px; background: #161618; color: #fff; font-size: 12px; font-weight: 600; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.hud .k { height: 22px; padding: 0 8px; border-radius: 999px; background: #2f2f33; display: grid; place-items: center; font-size: 10.5px; }
.wave { display: flex; align-items: center; gap: 2px; height: 18px; }
.wave i { width: 2px; border-radius: 2px; background: #fff; height: 30%; animation: wave 1s ease-in-out infinite; }
.dialog { position: absolute; right: 18px; bottom: 18px; width: 300px; background: #fff; border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .25), 0 0 0 1px rgba(0, 0, 0, .07); padding: 14px; }
.dialog b { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.dialog b img { width: 18px; height: 18px; }
.dialog p { margin: 6px 0 10px; font-size: 12px; color: #3b3b42; }
.dialog .q { font-style: italic; }
.dialog .btns { display: flex; justify-content: flex-end; gap: 6px; align-items: center; }
.dialog .btns label { margin-right: auto; font-size: 11px; color: #6b6b72; display: flex; gap: 5px; align-items: center; }
.dialog .btns label i { width: 12px; height: 12px; border: 1px solid #b9b9c0; border-radius: 3px; }
.dialog .mbtn.dark { background: #2b88d9; }

.taskbar { position: absolute; left: 0; right: 0; bottom: 0; height: 40px; background: rgba(238, 242, 247, .92); border-top: 1px solid rgba(0, 0, 0, .08); display: flex; align-items: center; justify-content: center; gap: 6px; }
.taskbar .tk { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; }
.taskbar .tk.on { background: rgba(255, 255, 255, .9); box-shadow: 0 0 0 1px rgba(0, 0, 0, .06); position: relative; }
.taskbar .tk.on::after { content: ""; position: absolute; bottom: 1px; width: 12px; height: 3px; border-radius: 2px; background: #2b88d9; }
.taskbar .tk img { width: 20px; height: 20px; }
.taskbar .start { display: grid; grid-template-columns: 8px 8px; gap: 1.5px; }
.taskbar .start i { width: 8px; height: 8px; background: #2b88d9; border-radius: 1px; }
.taskbar .tk .icon { font-size: 16px; color: #333; }
.taskbar .clock { position: absolute; right: 12px; text-align: right; font-size: 10.5px; color: #222; line-height: 1.25; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes wave { 0%, 100% { height: 25%; } 50% { height: 100%; } }

/* ---------- sections ---------- */
.wrap { width: min(1160px, 100% - 32px); margin: 0 auto; }
.section { padding: 84px 0 0; }
.eyebrow { margin: 0 0 14px; font-size: 13px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--faint); }
.h2 { margin: 0; font-size: clamp(32px, 4.6vw, 48px); line-height: 1.08; font-weight: 700; letter-spacing: -.034em; max-width: 880px; }
.lead { margin: 18px 0 0; font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); max-width: 760px; }
.lead + .lead { margin-top: 12px; }
.small-note { margin: 14px 0 0; font-size: 14px; color: var(--faint); max-width: 760px; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; counter-reset: step; }
.steps li { position: relative; }
.steps .top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.steps .ico { width: 40px; height: 40px; border-radius: 11px; background: var(--ghost-2); display: grid; place-items: center; font-size: 19px; flex: none; }
.steps .num { font-size: 13px; color: var(--faint); font-weight: 600; }
.steps .line { flex: 1; height: 1px; background: var(--line-2); }
.steps li:last-child .line { display: none; }
.steps h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* flow diagram */
.flow { margin-top: 34px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: stretch; }
.node { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-right: 34px; }
.node:last-child { margin-right: 0; }
.node::after { content: ""; position: absolute; right: -27px; top: 50%; width: 20px; height: 2px; background: var(--line-2); }
.node::before { content: ""; position: absolute; right: -28px; top: 50%; width: 8px; height: 8px; margin-top: -3px; border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2); transform: rotate(45deg); }
.node:last-child::after, .node:last-child::before { display: none; }
.node .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 18px; margin-bottom: 12px; }
.node h3 { margin: 0 0 4px; font-size: 17px; }
.node p { margin: 0; color: var(--muted); font-size: 14px; }
.node ul { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.node li { font-size: 12.5px; padding: 3px 9px; border-radius: 999px; background: var(--ghost-2); color: var(--muted); font-weight: 500; }

.grid3 { margin-top: 34px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.grid2 { margin-top: 34px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.box { background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.box .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 18px; margin-bottom: 14px; }
.box h3 { margin: 0 0 6px; font-size: 18px; font-weight: 700; }
.box p { margin: 0; color: var(--muted); font-size: 15px; }
.box p + p { margin-top: 8px; }
.box ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 15px; }
.box li + li { margin-top: 4px; }
.box code, .lead code, .faq code, td code { font-family: var(--mono); font-size: .88em; background: var(--ghost-2); padding: 1px 6px; border-radius: 6px; color: var(--text); }
.kbd { display: inline-block; font-family: var(--font); font-weight: 600; font-size: .85em; padding: 1px 7px; border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: var(--ghost); }

.tbl-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg-2); }
table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 560px; }
th, td { text-align: left; padding: 13px 16px; vertical-align: top; }
th { font-size: 13px; color: var(--faint); font-weight: 600; letter-spacing: .02em; }
tr + tr td, thead + tbody tr:first-child td { border-top: 1px solid var(--line); }
td:first-child { font-weight: 600; }
td { color: var(--muted); }
td:first-child { color: var(--text); }

/* install */
.install { margin-top: 34px; display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
.olist { list-style: none; margin: 0; padding: 0; counter-reset: o; }
.olist li { position: relative; padding: 0 0 18px 46px; counter-increment: o; }
.olist li:last-child { padding-bottom: 0; }
.olist li::before { content: counter(o); position: absolute; left: 0; top: 0; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: var(--pill-bg); color: var(--pill-fg); }
.olist li::after { content: ""; position: absolute; left: 14.5px; top: 34px; bottom: 4px; width: 1px; background: var(--line-2); }
.olist li:last-child::after { display: none; }
.olist b { display: block; font-size: 16px; margin-bottom: 2px; padding-top: 3px; }
.olist span { color: var(--muted); font-size: 15px; }
.code {
  position: relative; margin: 10px 0 0; padding: 12px 44px 12px 14px; border-radius: 10px; background: #18181a; color: #e8e8ea;
  font: 13.5px/1.5 var(--mono); overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid var(--line);
}
:root[data-theme="light"] .code { background: #1d1d20; }
.copy { position: absolute; right: 6px; top: 6px; width: 30px; height: 30px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; cursor: pointer; display: grid; place-items: center; }
.copy:hover { background: rgba(255, 255, 255, .16); }
.copy .icon { font-size: 15px; }
.copy.done { color: var(--ok); }

/* try asking */
.asks { margin-top: 22px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.ask { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); font-size: 15.5px; font-weight: 500; }
.ask .ico { width: 30px; height: 30px; border-radius: 8px; background: var(--ghost-2); display: grid; place-items: center; font-size: 15px; flex: none; }

/* contact */
.contact-links { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 10px; }
.contact-links .pill { min-width: 0; }
.contact-links .pill span { overflow-wrap: anywhere; }

/* faq */
.faq { margin-top: 22px; display: flex; flex-direction: column; gap: 10px; max-width: 860px; }
.faq details { border-radius: var(--radius); background: var(--bg-2); border: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 17px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 600; font-size: 16.5px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { font-size: 16px; color: var(--faint); transition: transform .2s; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq .ans { padding: 0 18px 18px; color: var(--muted); font-size: 15.5px; }
.faq .ans p { margin: 0; }
.faq .ans p + p { margin-top: 8px; }

/* finale */
.finale { padding: 110px 0 90px; text-align: center; }
.finale .logo-row { display: flex; align-items: center; justify-content: center; gap: 22px; margin-bottom: 26px; }
.finale .logo-row img { width: 104px; height: 104px; filter: drop-shadow(0 14px 34px rgba(45, 140, 255, .38)); }
.bars { display: flex; align-items: center; gap: 4px; height: 44px; }
.bars i { width: 3px; border-radius: 3px; background: var(--faint); height: var(--h); animation: bar 1.6s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bar { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.finale h2 { margin: 0 0 24px; font-size: clamp(40px, 6vw, 60px); letter-spacing: -.035em; line-height: 1.05; }

.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--faint); font-size: 14px; }
.footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
.footer p { margin: 0; max-width: 680px; }
.footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.footer a { color: var(--muted); text-decoration: none; }
.footer a:hover { color: var(--text); }

/* ---------- responsive ---------- */
/* memory */
.mem-split { margin-top: 34px; display: grid; grid-template-columns: 1.05fr .95fr; gap: 14px; align-items: stretch; }
.note-demo { margin: 16px 0 0; padding: 14px 16px; border-radius: 12px; background: var(--bg); border: 1px solid var(--line); }
.note-demo p { margin: 0; font-size: 14.5px; color: var(--text); }
.note-demo p + p { margin-top: 9px; padding-top: 9px; border-top: 1px solid var(--line); }
.note-demo .lnk { color: var(--accent); font-weight: 600; }
.note-demo .lnk::before { content: "[["; opacity: .45; font-weight: 400; }
.note-demo .lnk::after { content: "]]"; opacity: .45; font-weight: 400; }
.note-demo .mention { text-decoration: underline dashed var(--accent); text-underline-offset: 3px; }
.note-demo .tag { color: var(--faint); font-weight: 600; }
.note-demo .tagpill { display: inline-block; margin-left: 6px; font-size: 11.5px; padding: 1px 8px; border-radius: 999px; background: var(--ghost-2); color: var(--muted); vertical-align: 1px; }
.mem-graph { margin: 0; display: flex; flex-direction: column; justify-content: space-between; }
.mem-graph svg { width: 100%; height: auto; max-height: 380px; }
.mem-graph .e line { stroke: var(--line-2); stroke-width: 1.6; }
.mem-graph .e.mention line { stroke-dasharray: 5 5; }
.mem-graph .e.deep line { stroke: var(--warn); stroke-opacity: .55; }
.mem-graph .n circle { stroke: var(--bg-2); stroke-width: 3; }
.mem-graph .pg { fill: var(--accent); }
.mem-graph .nt.person { fill: #d669ed; } .mem-graph .nt.project { fill: #665fff; } .mem-graph .nt.routine { fill: #ffa85c; }
.mem-graph .tg { fill: var(--faint); }
.mem-graph .dp { fill: var(--warn); }
.mem-graph .l text { fill: var(--text); font: 600 13px var(--font); text-anchor: middle; }
.mem-graph figcaption { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--muted); }
.mem-graph figcaption > span { display: inline-flex; align-items: center; gap: 6px; }
.mem-graph .dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.mem-graph .dot.pg { background: var(--accent); } .mem-graph .dot.nt { background: #d669ed; }
.mem-graph .dot.tg { background: var(--faint); } .mem-graph .dot.dp { background: var(--warn); }
.mem-graph .dash { width: 16px; height: 0; border-top: 2px dashed var(--line-2); display: inline-block; }
.h3s { font-size: clamp(24px, 3vw, 32px); margin-top: 64px; margin-bottom: 26px; }

@media (max-width: 1240px) {
  .header .hbtn .label { display: none; }
}
@media (max-width: 1080px) {
  .brand small { display: none; }
}
@media (max-width: 1020px) {
  .steps, .flow { grid-template-columns: repeat(2, 1fr); }
  .node { margin-right: 0; }
  .node::before, .node::after { display: none; }
  .flow { gap: 14px; }
  .grid3, .asks { grid-template-columns: repeat(2, 1fr); }
  .install { grid-template-columns: 1fr; }
  .mem-split { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .nav { display: none; }
  .pager { position: static; transform: none; flex-direction: row; margin-top: 14px; }
  .stage { flex-direction: column; align-items: center; }
  .dots { flex-direction: row; width: auto; height: 26px; padding: 0 10px; }
  .dot { width: 18px; height: 26px; }
  .dot::before { width: 4px; height: 4px; }
  .dot.is-active::before { width: 18px; height: 4px; margin: -2px 0 0 -9px; }
  .dot .tip { display: none; }
  .laptop { --w: min(880px, 94vw, calc((100svh - var(--header-h) - 380px) * 1.52)); }
}
@media (max-width: 640px) {
  .brand small { display: none; }
  .hbtn .label { display: none; }
  .steps, .flow, .grid3, .grid2, .asks { grid-template-columns: 1fr; }
  .section { padding-top: 64px; }
  .pill { height: 44px; padding: 0 20px; font-size: 15px; }
  .tour-sticky { min-height: 520px; }
  .finale .logo-row { gap: 12px; }
  .finale .logo-row img { width: 80px; height: 80px; }
  .bars i:nth-child(n+9) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .wave i { height: 60%; }
}
