@font-face {
  font-family: "Onest Variable";
  src: url("assets/fonts/onest-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Unbounded Variable";
  src: url("assets/fonts/unbounded-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 200 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono Variable";
  src: url("assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2-variations");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --window: #ecebf2;
  --surface: #ffffff;
  --card: rgb(255 255 255 / 0.84);
  --card-soft: rgb(255 255 255 / 0.62);
  --surface-2: #f7f7fa;
  --surface-3: #eeeef3;
  --border: #e2e5ea;
  --border-strong: #cfd3db;
  --text: #0f1218;
  --muted: #3c4250;
  --faint: #6b7282;
  --accent: #5a63ff;
  --accent-strong: #4a52ee;
  --accent-soft: #ecedff;
  --grad-a: #5a63ff;
  --grad-b: #7b4fe0;
  --success: #12875a;
  --success-soft: #e1f5ec;
  --warning: #a35900;
  --warning-soft: #fdf1df;
  --focus: #5a63ff;
  --elev-card: 0 24px 60px rgb(15 18 24 / 0.06);
  --elev-item: 0 1px 2px rgb(15 18 24 / 0.08), 0 6px 18px rgb(15 18 24 / 0.06);
  --elev-pop: 0 30px 80px rgb(30 40 90 / 0.22), 0 0 0 1px rgb(15 18 24 / 0.06);
  --track: #e8eaee;
  --nav-ic: #6e6d7a;
  --nav-ic-hover: #1a191e;
  --nav-hover: color-mix(in oklab, var(--surface) 55%, transparent);
  --nav-on: var(--surface);
  --nav-on-border: transparent;
  --scrim: rgb(236 235 242 / 0.6);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --font-sans: "Onest Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --font-display: "Unbounded Variable", "Onest Variable", system-ui, sans-serif;
  --font-mono: "JetBrains Mono Variable", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --window: #07080c;
  --surface: #1b1e29;
  --card: #1d202c;
  --card-soft: #232736;
  --surface-2: #20232f;
  --surface-3: #2a2e3b;
  --border: rgb(255 255 255 / 0.11);
  --border-strong: rgb(255 255 255 / 0.2);
  --text: #f4f5fa;
  --muted: #d6d9e4;
  --faint: #b3b8c8;
  --accent: #8c93ff;
  --accent-strong: #a5aaff;
  --accent-soft: #262a57;
  --success: #44d39b;
  --success-soft: #0f2a20;
  --warning: #f2b45d;
  --warning-soft: #2e2312;
  --focus: #a5aaff;
  --elev-card: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 1px 2px rgb(0 0 0 / 0.35), 0 12px 28px -12px rgb(0 0 0 / 0.55);
  --elev-item: inset 0 1px 0 rgb(255 255 255 / 0.06), 0 1px 2px rgb(0 0 0 / 0.35), 0 4px 10px -4px rgb(0 0 0 / 0.4);
  --elev-pop: 0 0 0 1px rgb(255 255 255 / 0.09), 0 18px 40px -10px rgb(0 0 0 / 0.65);
  --track: #232634;
  --nav-ic: #c9ccd6;
  --nav-ic-hover: #ffffff;
  --nav-hover: #181b26;
  --nav-on: linear-gradient(180deg, #242735 0%, #1c1e2b 100%);
  --nav-on-border: #2d3040;
  --scrim: rgb(7 8 12 / 0.55);
  color-scheme: dark;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 24px; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--window);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 500; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, kbd, pre { font-family: var(--font-mono); }

:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }

::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 12px; background: var(--surface); box-shadow: var(--elev-pop);
  text-decoration: none; font-weight: 600; transition: top 0.2s var(--ease);
}
.skip:focus { top: 16px; }

.bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.bg-layer canvas { width: 100%; height: 100%; display: block; }

.app {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  grid-template-rows: 70px 1fr;
  min-height: 100vh;
}

.titlebar {
  grid-column: 1 / -1;
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 24px 24px 12px 28px;
}
.lights { display: flex; gap: 8px; }
.lights i { width: 12px; height: 12px; border-radius: 50%; background: #ff5f57; box-shadow: inset 0 0 0 0.5px rgb(0 0 0 / 0.2); }
.lights i:nth-child(2) { background: #febc2e; }
.lights i:nth-child(3) { background: #28c840; }
.titlebar .spacer { flex: 1; }

.search-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  width: 288px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--faint);
  box-shadow: var(--elev-item);
  cursor: pointer;
  transition: box-shadow 0.2s var(--ease), color 0.2s var(--ease), transform 0.12s var(--ease);
}
.search-pill:hover { color: var(--muted); box-shadow: var(--elev-card); }
.search-pill:active { transform: scale(0.99); }
.search-pill span { flex: 1; text-align: left; font-size: 12.5px; color: var(--muted); }

kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
}

.menu-btn { display: none; }

.nav {
  position: sticky;
  top: 70px;
  align-self: start;
  height: calc(100vh - 70px);
  display: flex;
  flex-direction: column;
  padding: 0 12px 24px 16px;
  overflow: hidden;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 12px;
  text-decoration: none;
  flex-shrink: 0;
}
.brand img { width: 28px; height: 28px; filter: drop-shadow(0 3px 6px rgb(40 30 120 / 0.25)); }
.brand span { font-family: var(--font-display); font-size: 19px; font-weight: 500; letter-spacing: -0.025em; }

.nav-scroll {
  flex: 1 1 0;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
}
.nav-scroll::-webkit-scrollbar { display: none; }
.nav ul { display: grid; gap: 2px; }
.nav-heading {
  margin: 18px 12px 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 450;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav-item.sm { height: 36px; font-size: 13px; }
.nav-item:hover { background: var(--nav-hover); color: var(--text); }
.nav-item[aria-current="true"] {
  background: var(--nav-on);
  border-color: var(--nav-on-border);
  color: var(--text);
  font-weight: 600;
  box-shadow: var(--elev-item);
}
.nav-item .count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }

.ic {
  width: 20px;
  height: 20px;
  flex: none;
  --fo: 0.24;
  --sw: 1.7;
  --ac: #ff5d8f;
  color: currentColor;
  filter: drop-shadow(0 1px 0.6px rgb(15 18 24 / 0.16)) drop-shadow(0 2px 2.5px rgb(40 30 120 / 0.1));
  transition: color 0.2s var(--ease);
}
.ic.sm { width: 16px; height: 16px; filter: none; }
symbol .f { fill: currentColor; opacity: var(--fo); stroke: none; }
symbol .s { fill: none; stroke: currentColor; stroke-width: var(--sw); stroke-linecap: round; stroke-linejoin: round; }
symbol .a { fill: var(--ac); stroke: none; }
:root[data-theme="dark"] symbol .a { filter: drop-shadow(0 0 3px rgb(255 93 143 / 0.5)); }
.nav-item .ic { color: var(--nav-ic); }
.nav-item:hover .ic { color: var(--nav-ic-hover); }
.nav-item[aria-current="true"] .ic { color: var(--accent); --fo: 0.3; }
:root[data-theme="dark"] .nav-item[aria-current="true"] .ic { color: #b3bbff; --fo: 0.32; }

.nav-foot {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  flex-shrink: 0;
}

.seg {
  display: flex;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.seg button {
  flex: 1;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--faint);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--elev-item); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: #2a2e3d; }

.disk {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgb(255 255 255 / 0.86);
  box-shadow: 0 1px 2px rgb(15 18 24 / 0.04);
  text-decoration: none;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
}
:root[data-theme="dark"] .disk {
  background: linear-gradient(180deg, #1d202c 0%, #171924 100%);
  border-color: #272a38;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.05), 0 1px 2px rgb(0 0 0 / 0.4);
}
:root[data-theme="dark"] .disk:hover { background: linear-gradient(180deg, #222534 0%, #1a1c28 100%); border-color: #323648; }
.disk-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; font-weight: 600; }
.disk-row span:last-child { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--faint); }
.bar { height: 6px; border-radius: 3px; background: var(--track); overflow: hidden; }
.bar i { display: block; height: 100%; width: 62%; background: linear-gradient(90deg, var(--accent), #7b4fe0); }
.disk-note { font-size: 11.5px; color: var(--faint); }

.main {
  min-width: 0;
  padding: 12px 24px 40px 12px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 28px 4px 4px; }
.page-head:first-child { padding-top: 0; }
.page-title { font-family: var(--font-display); font-size: 26px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.page-sub { margin-top: 6px; color: var(--muted); font-size: 13.5px; max-width: 64ch; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--elev-card);
}
:root:not([data-theme="dark"]) .card { backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); }

.label-mono {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
}

.badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--success-soft);
  color: var(--success);
  border: 1px solid color-mix(in oklab, var(--success) 30%, transparent);
}

.welcome {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 52px 14px 14px;
  border-radius: 18px;
}
.welcome img { width: 36px; height: 36px; border-radius: 10px; flex: none; }
.welcome h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; }
.welcome p { margin-top: 2px; color: var(--muted); font-size: 13px; }
.icon-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

.grid-hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }

.ready { padding: 28px; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; }
.ready h1 { font-size: 15px; font-weight: 600; color: var(--text); }
.big {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-top: 6px;
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}
.big b { font-size: clamp(56px, 7vw, 84px); font-weight: 600; line-height: 0.95; }
.big span { font-size: clamp(20px, 2.2vw, 26px); font-weight: 500; color: var(--accent); letter-spacing: -0.02em; }
.ready .lede { margin-top: 14px; max-width: 46ch; color: var(--muted); font-size: 14.5px; line-height: 1.55; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.ready-foot { margin-top: auto; padding-top: 22px; display: flex; align-items: center; gap: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.dot { width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px color-mix(in oklab, var(--success) 20%, transparent); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--elev-item);
  cursor: pointer;
  transition: transform 0.15s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn:hover { transform: translateY(-1px); border-color: var(--border-strong); box-shadow: var(--elev-card); }
.btn:active { transform: scale(0.98); }
.btn.lead { padding: 0 18px 0 6px; }
.btn .orb {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--grad-a), var(--grad-b));
  color: #fff;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 6px 14px -6px rgb(90 99 255 / 0.7);
}
.btn .two { display: grid; line-height: 1.2; text-align: left; }
.btn .two b { font-weight: 600; font-size: 13px; }
.btn .two small { font-family: var(--font-mono); font-size: 11px; color: var(--faint); }
.btn .chip-ic { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--accent-soft); color: var(--accent); }
.btn.sm { height: 30px; padding: 0 12px; font-size: 12px; color: var(--muted); gap: 4px; }
.btn.sm:hover { color: var(--text); }
.btn.primary { border-color: transparent; background: linear-gradient(160deg, var(--grad-a), var(--grad-b)); color: #fff; box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.22), 0 8px 20px -8px rgb(90 99 255 / 0.8); }

.video-card { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 4px 6px 0; }
.card-head h2, .card-head h3 { font-size: 14px; font-weight: 600; }
.player { position: relative; border-radius: 18px; overflow: hidden; border: 1px solid var(--border); background: #0b0c12; aspect-ratio: 16 / 10; }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player-ctl {
  position: absolute;
  left: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 34px;
  padding: 0 12px 0 4px;
  border-radius: 999px;
  border: 1px solid rgb(255 255 255 / 0.14);
  background: rgb(12 13 20 / 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}
.player-ctl .orb { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(160deg, var(--grad-a), var(--grad-b)); }
.player-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgb(255 255 255 / 0.1); }
.player-progress i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, #f43f8e, #8c93ff); }

.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile {
  --tile-a: #5a63ff;
  --tile-b: #7b4fe0;
  --tile-shadow: rgb(40 40 90 / 0.22);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 176px;
  padding: 18px 20px;
  color: #fff;
  border: 1px solid transparent;
  border-radius: 26px;
  background:
    linear-gradient(165deg, var(--tile-a), var(--tile-b)) padding-box,
    linear-gradient(150deg, rgb(255 255 255 / 0.8), rgb(255 255 255 / 0.06) 45%, rgb(255 255 255 / 0.4)) border-box;
  box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.38), 0 18px 40px var(--tile-shadow);
  text-decoration: none;
  transition: transform 0.2s var(--ease);
}
:root[data-theme="dark"] .tile { box-shadow: inset 0 1px 1px rgb(255 255 255 / 0.22), 0 1px 2px rgb(0 0 0 / 0.35), 0 10px 22px -10px rgb(0 0 0 / 0.6); }
.tile:hover { transform: translateY(-2px); }
.tile-glow {
  position: absolute;
  z-index: -1;
  width: 70%;
  aspect-ratio: 1;
  right: -18%;
  top: -24%;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--glow, rgb(255 255 255 / 0.55)), transparent);
  filter: blur(18px);
  animation: drift 7s ease-in-out infinite alternate;
}
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-14%, 10%) scale(1.08); } }
.tile-blue { --tile-a: #4f7dff; --tile-b: #2848c9; --tile-shadow: rgb(40 70 200 / 0.3); --glow: rgb(200 220 255 / 0.75); }
.tile-violet { --tile-a: #8b6cff; --tile-b: #5b34d0; --tile-shadow: rgb(90 50 200 / 0.3); --glow: rgb(225 210 255 / 0.75); }
.tile-green { --tile-a: #3f9b62; --tile-b: #1d5c3b; --tile-shadow: rgb(30 110 60 / 0.3); --glow: rgb(220 255 190 / 0.6); }
.tile-rose { --tile-a: #d63a54; --tile-b: #8f1430; --tile-shadow: rgb(160 25 50 / 0.3); --glow: rgb(255 180 205 / 0.8); }
.tile-top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.glass-ico {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.18);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.35);
}
.glass-ico .ic { width: 16px; height: 16px; --ac: #fff; filter: none; }
.tile-num { margin-top: 18px; display: flex; align-items: baseline; gap: 6px; font-family: var(--font-display); letter-spacing: -0.03em; }
.tile-num b { font-size: 34px; font-weight: 600; line-height: 1; }
.tile-num span { font-size: 14px; font-weight: 500; opacity: 0.85; }
.tile p { margin-top: 6px; font-size: 12.5px; opacity: 0.86; }
.tile-foot { margin-top: auto; padding-top: 14px; }
.tile-pill { display: inline-flex; align-items: center; gap: 4px; height: 28px; padding: 0 12px; border-radius: 999px; background: rgb(0 0 0 / 0.22); font-size: 12px; font-weight: 500; }

.grid-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }

.list-card { padding: 18px; }
.rows { margin-top: 10px; display: grid; gap: 2px; }
.row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  transition: background 0.2s var(--ease);
}
.row:hover { background: var(--surface-2); }
.row .av {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 9px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  color: #fff;
}
.row .t { min-width: 0; flex: 1; }
.row .t b { display: block; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row .t small { display: block; font-family: var(--font-mono); font-size: 11px; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.copy-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  box-shadow: var(--elev-item);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.copy-chip:hover { color: var(--text); border-color: var(--border-strong); }
.copy-chip.done { color: var(--success); }

.steps { margin-top: 10px; display: grid; gap: 4px; counter-reset: step; }
.steps li { display: flex; gap: 12px; padding: 10px 12px; border-radius: 14px; }
.steps li:hover { background: var(--surface-2); }
.steps .n { display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 12px; font-weight: 600; }
.steps b { display: block; font-size: 13.5px; font-weight: 600; }
.steps span { display: block; color: var(--muted); font-size: 12.5px; }

.feature { padding: 24px; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.35fr); gap: 28px; align-items: center; }
.feature.flip { grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.8fr); }
.feature.flip .feature-copy { order: 2; }
.feature-copy { display: flex; flex-direction: column; gap: 12px; padding: 4px; }
.feature-copy h3 { font-family: var(--font-display); font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; }
.feature-copy p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.feature-copy p b { color: var(--text); font-weight: 600; }
.facts { display: grid; gap: 8px; margin-top: 4px; }
.facts li { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.facts li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}
.chip.mono { font-family: var(--font-mono); font-size: 11px; }
.chip.on { border-color: color-mix(in oklab, var(--accent) 45%, transparent); background: var(--accent-soft); color: var(--accent); }

.shot {
  position: relative;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #0b0c12;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.2), 0 24px 48px -24px rgb(0 0 0 / 0.55);
}
.shot img { width: 100%; height: auto; }
.shot.plain { background: transparent; border: 0; box-shadow: none; overflow: visible; }
.shot.plain img { filter: drop-shadow(0 24px 40px rgb(0 0 0 / 0.45)); }
.shot-pair { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; align-items: center; }

.window { padding: 16px; display: grid; gap: 12px; }
.window .shot { aspect-ratio: 1280 / 820; }
.window .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.35s var(--ease); }

.table-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--border); }
tr:last-child td { border-bottom: 0; }
th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); background: var(--surface-2); }
td:first-child { font-weight: 600; white-space: nowrap; }
td code, p code, li code, .faq code {
  font-size: 11.5px;
  padding: 1px 5px;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  word-break: break-word;
}

.doc { padding: 24px; display: grid; gap: 16px; }
.doc h3 { font-family: var(--font-display); font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.doc p { color: var(--muted); font-size: 14.5px; line-height: 1.6; max-width: 72ch; }

.tabs { display: inline-flex; }
.os-panel { display: grid; gap: 12px; }
.os-panel[hidden] { display: none; }
.os-steps { display: grid; gap: 8px; counter-reset: os; }
.os-steps li { counter-increment: os; display: flex; gap: 12px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.os-steps li::before {
  content: counter(os);
  flex: none;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-top: -1px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
}
.os-steps b { color: var(--text); font-weight: 600; }

.term {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 6px 6px 16px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0b0c12;
  color: #e7e9f3;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.term code { flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap; scrollbar-width: none; }
.term code::-webkit-scrollbar { display: none; }
.term .p { color: #8c93ff; user-select: none; }
.term .copy-chip { background: #1b1e29; border-color: rgb(255 255 255 / 0.12); color: #d6d9e4; }

pre.block {
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0b0c12;
  color: #e7e9f3;
  font-size: 12.5px;
  line-height: 1.7;
  overflow-x: auto;
}
pre.block .c { color: #7d8494; }

.privacy-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pv { padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); display: grid; gap: 6px; align-content: start; }
.pv .ic { color: var(--accent); }
.pv b { font-size: 13.5px; font-weight: 600; }
.pv span { color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.export-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.ex { padding: 16px; border-radius: 18px; border: 1px solid var(--border); background: var(--surface-2); }
.ex code { font-size: 15px; font-weight: 600; color: var(--accent); }
.ex p { margin-top: 6px; color: var(--muted); font-size: 12.5px; line-height: 1.5; }

.faq { display: grid; gap: 2px; }
.faq details { border-radius: 14px; transition: background 0.2s var(--ease); }
.faq details[open], .faq details:hover { background: var(--surface-2); }
.faq summary {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { margin-left: auto; color: var(--faint); transition: transform 0.2s var(--ease); }
.faq details[open] summary .ic { transform: rotate(180deg); }
.faq details p { padding: 0 14px 16px; color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 76ch; }

.foot { padding: 12px 4px 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--faint); }
.foot nav { display: flex; gap: 16px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); }

.palette-scrim {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  justify-content: center;
  padding: 12vh 16px 16px;
  background: var(--scrim);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  animation: fade 0.16s ease-out;
}
.palette-scrim[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
.palette {
  width: min(560px, 100%);
  max-height: min(560px, 76vh);
  display: flex;
  flex-direction: column;
  border-radius: 22px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--elev-pop);
  overflow: hidden;
  animation: pop 0.2s var(--ease);
}
:root[data-theme="dark"] .palette { background: #171923; }
.palette-input { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--faint); }
.palette-input input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; font-size: 14px; }
.palette-input input::placeholder { color: var(--faint); }
.palette-list { flex: 0 1 auto; min-height: 0; overflow-y: auto; padding: 8px; }
.palette-group { padding: 8px 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.palette-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border: 0; border-radius: 12px; background: transparent; text-align: left; font-size: 13.5px; font-weight: 500; cursor: pointer; }
.palette-item .ic { color: var(--faint); width: 16px; height: 16px; filter: none; }
.palette-item[aria-selected="true"] { background: var(--accent-soft); }
.palette-item[aria-selected="true"] .ic { color: var(--accent); }
.palette-empty { padding: 24px; text-align: center; color: var(--faint); font-size: 13px; }
.palette-foot { display: flex; justify-content: space-between; gap: 12px; padding: 10px 18px; border-top: 1px solid var(--border); background: var(--surface-2); font-size: 11.5px; color: var(--faint); }
.palette-foot span { display: inline-flex; align-items: center; gap: 4px; }

.reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (max-width: 1180px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .privacy-grid, .export-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
}

@media (max-width: 960px) {
  .grid-hero, .grid-2 { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 820px) {
  .app { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .titlebar { padding: 12px 16px; gap: 8px; background: color-mix(in oklab, var(--window) 70%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
  .lights { display: none; }
  .titlebar .mobile-brand { display: flex; padding: 0; }
  .search-pill { width: auto; flex: 0 1 200px; }
  .search-pill span { display: none; }
  .menu-btn {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: var(--card);
    cursor: pointer;
  }
  .nav {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 50;
    width: min(300px, 86vw);
    height: 100vh;
    padding-top: 20px;
    background: var(--window);
    border-right: 1px solid var(--border);
    box-shadow: var(--elev-pop);
    transform: translateX(-105%);
    transition: transform 0.25s var(--ease);
  }
  .nav.open { transform: none; }
  .main { padding: 4px 16px 32px; }
  .page-title { font-size: 22px; }
  .ready, .doc, .feature { padding: 20px; }
}

@media (min-width: 821px) {
  .mobile-brand { display: none; }
  html, body { height: 100%; overflow: hidden; }
  .app { height: 100vh; overflow: clip; }
  .nav { position: relative; top: 0; height: 100%; min-height: 0; }
  .main { height: calc(100vh - 70px); overflow-y: auto; scroll-behavior: smooth; scroll-padding-top: 16px; overscroll-behavior: contain; }
  .main::-webkit-scrollbar { width: 10px; }
  .main::-webkit-scrollbar-track { background: transparent; }
  .main::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 8px; border: 3px solid transparent; background-clip: content-box; }
}

@media (min-width: 821px) and (prefers-reduced-motion: reduce) {
  .main { scroll-behavior: auto; }
}

@media (max-width: 560px) {
  .tiles, .privacy-grid, .export-grid { grid-template-columns: minmax(0, 1fr); }
  .shot-pair { grid-template-columns: minmax(0, 1fr); }
  .page-head { flex-direction: column; align-items: flex-start; }
  .btn.lead { width: 100%; }
  .row .copy-chip { display: none; }
}

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

.rows, .steps, .faq, .facts, .os-steps, .doc, .os-panel { grid-template-columns: minmax(0, 1fr); }
.row, .steps li { min-width: 0; }
@media (max-width: 420px) {
  .row .chip { display: none; }
}
@media (max-width: 820px) {
  html { scroll-padding-top: 76px; }
}
