@font-face {
  font-family: "Instrument Sans";
  src: url("fonts/instrument-sans-var.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- tokens: light is the default, dark overrides ---------- */
:root {
  --rib-bg: linear-gradient(90deg, #035A5E, #046F73 50%, #035A5E); --rib-ink: #F2FBFB; --rib-glow: rgb(4 111 115 / 0.4);
  --bg: #F6F8F8;
  --bg-2: #EDF2F2;
  --panel: #FFFFFF;
  --panel-2: #F1F5F5;
  --line: rgb(12 52 58 / 0.09);
  --line-2: rgb(12 52 58 / 0.15);
  --ink: #0A1A1E;
  --ink-2: #41555A;
  --ink-3: #5A6D72;
  --accent: #046F73;
  --accent-ink: #035A5E;
  --accent-soft: rgb(4 111 115 / 0.09);
  --tag: #96560F;
  --ok: #15803D;
  --off: #8D9DA1;
  --warn: #A84F07;
  --btn-bg: #046F73;
  --btn-bg-hover: #035C60;
  --btn-ink: #FFFFFF;
  --btn-glow: rgb(4 111 115 / 0.35);
  --ghost-bg: rgb(255 255 255 / 0.7);
  --nav-bg: rgb(246 248 248 / 0.78);
  --grid: rgb(12 52 58 / 0.055);
  --blob-1: rgb(94 207 208 / 0.42);
  --blob-2: rgb(4 111 115 / 0.16);
  --blob-3: rgb(232 185 131 / 0.34);
  --spot: rgb(4 111 115 / 0.07);
  --window-bg: #FFFFFF;
  --shadow: 0 0 0 1px rgb(12 52 58 / 0.10), 0 30px 70px -24px rgb(12 52 58 / 0.28), 0 12px 24px -16px rgb(12 52 58 / 0.18);
  --shadow-sm: 0 0 0 1px var(--line), 0 18px 40px -26px rgb(12 52 58 / 0.25);
  --mark-bg: rgb(4 111 115 / 0.12);

  --sans: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --wrap: 1200px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
  interpolate-size: allow-keywords;
}
[data-mode="dark"] {
  --rib-bg: linear-gradient(90deg, #046F73, #0A8A8E 50%, #046F73); --rib-ink: #F2FBFB; --rib-glow: rgb(94 207 208 / 0.3);
  --bg: #05080A;
  --bg-2: #0A1014;
  --panel: #0E151A;
  --panel-2: #131C22;
  --line: rgb(190 230 235 / 0.09);
  --line-2: rgb(190 230 235 / 0.16);
  --ink: #EDF3F4;
  --ink-2: #A9B8BC;
  --ink-3: #82949A;
  --accent: #5ECFD0;
  --accent-ink: #8FE2E3;
  --accent-soft: rgb(94 207 208 / 0.10);
  --tag: #E8B983;
  --ok: #4ADE80;
  --off: #55666B;
  --warn: #F0B65A;
  --btn-bg: #EDF3F4;
  --btn-bg-hover: #FFFFFF;
  --btn-ink: #061014;
  --btn-glow: rgb(94 207 208 / 0.45);
  --ghost-bg: rgb(255 255 255 / 0.04);
  --nav-bg: rgb(5 8 10 / 0.72);
  --grid: rgb(190 230 235 / 0.045);
  --blob-1: rgb(4 111 115 / 0.55);
  --blob-2: rgb(94 207 208 / 0.14);
  --blob-3: rgb(232 185 131 / 0.07);
  --spot: rgb(94 207 208 / 0.08);
  --window-bg: #0C1218;
  --shadow: 0 0 0 1px rgb(190 230 235 / 0.14), 0 40px 80px -20px rgb(0 0 0 / 0.75), 0 18px 36px -18px rgb(0 0 0 / 0.6);
  --shadow-sm: 0 0 0 1px var(--line-2), 0 30px 60px -24px rgb(0 0 0 / 0.7);
  --mark-bg: rgb(94 207 208 / 0.18);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; scrollbar-color: var(--line-2) var(--bg); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
::selection { background: rgb(94 207 208 / 0.35); }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
code, kbd, .mono { font-family: var(--mono); font-size: 0.86em; font-variant-ligatures: none; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; letter-spacing: -0.03em; line-height: 1.05; }
p { margin: 0; text-wrap: pretty; }
mark { background: var(--mark-bg); color: inherit; border-radius: 3px; padding: 0 1px; }

.wrap { width: min(100% - 48px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; padding: 8px 12px; background: var(--ink); color: var(--bg); border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[data-mode="light"] .only-dark, [data-mode="dark"] .only-light { display: none; }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: var(--nav-bg);
  backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, transform 0.35s var(--ease), background-color 0.5s;
}
.nav.is-scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 21px; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 28px; height: 29px; transition: transform 0.6s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.08); }
.nav__links { display: flex; gap: 24px; margin-left: 8px; }
.nav__links a { position: relative; color: var(--ink-2); text-decoration: none; font-size: 15px; transition: color 0.25s; }
.nav__links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; transition: transform 0.3s var(--ease); }
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.mode {
  width: 36px; height: 36px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--ghost-bg); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: color 0.25s, transform 0.45s var(--ease);
}
.mode:hover { color: var(--ink); transform: rotate(-20deg); }
.mode svg { width: 17px; height: 17px; }
[data-mode="light"] .mode .i-sun, [data-mode="dark"] .mode .i-moon { display: none; }

.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 44px; padding: 0 20px; border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; cursor: pointer; border: 0;
  transition: background-color 0.25s, color 0.25s, box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(105deg, transparent 35%, rgb(255 255 255 / 0.38) 50%, transparent 65%);
  transform: translateX(-120%); transition: transform 0.7s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:hover::after { transform: translateX(120%); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn--primary { background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 1px 0 rgb(255 255 255 / 0.25) inset, 0 10px 26px -10px var(--btn-glow); }
.btn--primary:hover { background: var(--btn-bg-hover); box-shadow: 0 1px 0 rgb(255 255 255 / 0.3) inset, 0 16px 34px -10px var(--btn-glow); }
.btn--ghost { background: var(--ghost-bg); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn--ghost::after { background: linear-gradient(105deg, transparent 35%, var(--accent-soft) 50%, transparent 65%); }
.btn--sm { height: 36px; padding: 0 15px; font-size: 14px; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 0; overflow: clip; }
.aurora { position: absolute; inset: -120px 0 0; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 20s ease-in-out infinite alternate; will-change: transform; }
.aurora i:nth-child(1) { width: 640px; height: 520px; right: 2%; top: 40px; background: var(--blob-1); }
.aurora i:nth-child(2) { width: 560px; height: 460px; left: -6%; top: 120px; background: var(--blob-2); animation-delay: -7s; animation-duration: 24s; }
.aurora i:nth-child(3) { width: 360px; height: 300px; right: 30%; top: 420px; background: var(--blob-3); animation-delay: -12s; }
@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(50px, 30px) scale(1.1); }
  100% { transform: translate(-40px, 10px) scale(0.94); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, var(--grid) 1px, transparent 1px), linear-gradient(to bottom, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(70% 60% at 60% 30%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 60% 30%, #000 20%, transparent 75%);
}
.hero__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.hook { color: var(--ink-2); font-size: 16.5px; margin-bottom: 22px; display: inline-flex; align-items: center; gap: 10px; }
.hook__drives { display: inline-flex; gap: 3px; }
.hook__drives i { width: 7px; height: 12px; border-radius: 2px; background: var(--line-2); }
.hook__drives i:nth-child(2) { background: #E8B983; animation: find 2.8s ease-in-out infinite; }
@keyframes find { 0%, 60%, 100% { transform: none; } 30% { transform: translateY(-3px); } }
.hero h1 { font-size: clamp(2.7rem, 5.6vw, 4.9rem); letter-spacing: -0.042em; line-height: 0.98; }
.accent { position: relative; color: var(--accent); white-space: nowrap; }
.scribble { position: absolute; left: -3%; bottom: -0.16em; width: 106%; height: 0.34em; overflow: visible; pointer-events: none; }
.scribble path { fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: 0.7; }
.hero__sub { margin-top: 26px; max-width: 30em; color: var(--ink-2); font-size: clamp(17px, 1.5vw, 19px); }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { height: 50px; padding: 0 24px; font-size: 16px; }
.hero__proof { margin-top: 26px; font-size: 14.5px; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: 8px 18px; }
.hero__proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero__proof svg { width: 15px; height: 15px; color: var(--accent); }

.stage { position: relative; perspective: 1600px; --t: 1; }
.window {
  position: relative; border-radius: 14px; overflow: hidden; background: var(--window-bg); box-shadow: var(--shadow);
  transform-origin: 0% 50%;
  transform: rotateY(calc(var(--t) * -13deg)) rotateX(calc(var(--t) * 5deg)) scale(calc(1 - var(--t) * 0.03));
  transition: background-color 0.5s;
}
.window__lights { position: absolute; top: 13px; left: 14px; display: flex; gap: 7px; z-index: 2; }
.window__lights i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; }
.window__lights i:nth-child(2) { background: #FEBC2E; }
.window__lights i:nth-child(3) { background: #28C840; }
.window__glare { position: absolute; inset: 0; z-index: 1; pointer-events: none; background: linear-gradient(115deg, rgb(255 255 255 / 0.18), transparent 40%); opacity: var(--t); }
/* hero scene: a coded app window, sharp at any size, follows the mode */
.app { container-type: inline-size; }
.app__bar { position: relative; display: flex; align-items: center; height: 46px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.app__bar .window__lights { top: 17px; }
.beats { list-style: none; display: flex; gap: 3px; margin: 0 auto; padding: 3px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.beats li { display: flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 7px; font: 500 12.5px/1 var(--sans); color: var(--ink-3); transition: background-color 0.4s, color 0.4s, box-shadow 0.4s; }
.beats li b { font: 400 10.5px/1 var(--mono); opacity: 0.7; }
.beats li.on { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgb(12 52 58 / 0.15); }
.beats li.on b { color: var(--accent); opacity: 1; }
.app__body { display: grid; grid-template-columns: 31% 1fr; height: 410px; }
.app__side { background: var(--bg-2); border-right: 1px solid var(--line); padding: 16px 10px; display: grid; align-content: start; gap: 2px; }
.app__side h4 { margin: 0; padding: 0 8px 6px; font: 600 11px/1 var(--sans); letter-spacing: 0.03em; color: var(--ink-3); }
.app__side h4 + .sd { margin-top: 2px; }
.app__side .sd + h4 { margin-top: 16px; }
.sd { display: grid; grid-template-columns: 16px 1fr; gap: 9px; align-items: center; padding: 7px 8px; border-radius: 8px; font: 500 13px/1.25 var(--sans); color: var(--ink-2); }
.sd svg { width: 15px; height: 15px; color: var(--ink-3); }
.sd small { display: flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 400; color: var(--ink-3); }
.sd small .dot { margin: 0; transition: background-color 0.4s; }
.sd.on { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line); }
.sd.pulled { animation: pull 0.7s var(--ease); }
@keyframes pull { 35% { transform: translateX(10px); opacity: 0.5; } }
.app__main { position: relative; min-width: 0; }
.view { position: absolute; inset: 0; padding: 20px 22px; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.app:not([data-view="find"]) .view--find, .app[data-view="find"] .view--run { opacity: 0; transform: translateY(12px); pointer-events: none; }
.app.is-reset .view { opacity: 0; transition-duration: 0.35s; }
.run__head { display: flex; align-items: baseline; gap: 10px; }
.run__head strong { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.run__state { font-size: 12.5px; font-weight: 500; color: var(--accent); }
.run__cnt { margin-left: auto; font: 11.5px var(--mono); color: var(--ink-3); white-space: nowrap; }
.run__bar { margin-top: 12px; height: 6px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.run__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #046F73, #5ECFD0); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.files { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 2px; }
.file { display: grid; grid-template-columns: 28px minmax(0, 1fr) 58px 96px 16px; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 8px; font-size: 13px; transition: background-color 0.3s; }
.file__ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.file__ic svg { width: 14px; height: 14px; }
.file__n { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__s { font: 11px var(--mono); color: var(--ink-3); text-align: right; }
.file__x { position: relative; height: 16px; }
.file__x i { position: absolute; left: 0; right: 0; top: 6px; height: 4px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; transition: opacity 0.3s; }
.file__x i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.file__x code { position: absolute; inset: 0; font-size: 11px; line-height: 16px; color: var(--ink-3); opacity: 0; transition: opacity 0.3s; }
.file__ok { width: 16px; height: 16px; color: var(--ok); transform: scale(0); transition: transform 0.4s var(--ease); }
.file.hashing { background: var(--accent-soft); }
.file.hashed .file__x i { opacity: 0; }
.file.hashed .file__x code { opacity: 1; }
.file.hashed .file__ok { transform: scale(1); }
.run__foot { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; align-items: center; gap: 9px; padding: 11px 13px; border-radius: 10px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 13px; color: var(--ink-2); opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.run__foot svg { width: 17px; height: 17px; color: var(--ok); flex: none; }
.app.is-done .run__foot { opacity: 1; transform: none; }
.fbar { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-radius: 11px; background: var(--panel); box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px var(--accent-soft); font: 500 15px/1.2 var(--sans); }
.fbar svg { width: 16px; height: 16px; color: var(--ink-3); flex: none; }
.fbar__caret { display: inline-block; width: 1.5px; height: 17px; margin-left: 1px; background: var(--accent); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.fres { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 2px; }
.fres li { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--ease), transform 0.45s var(--ease); }
.fres li.in { opacity: 1; transform: none; }
.fres li small { display: block; font: 11px var(--mono); color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fres .drive { font-size: 12px; }
.find__note { position: absolute; left: 22px; right: 22px; bottom: 18px; display: flex; gap: 9px; align-items: center; padding: 11px 13px; border-radius: 10px; background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; opacity: 0; transition: opacity 0.5s var(--ease) 0.2s; }
.find__note svg { width: 16px; height: 16px; flex: none; }
.app.is-found .find__note { opacity: 1; }
.toast { position: absolute; right: 22px; bottom: 76px; z-index: 3; display: flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 10px; background: var(--panel); box-shadow: var(--shadow-sm); font-size: 12.5px; font-weight: 500; opacity: 0; transform: translateY(-8px) scale(0.97); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.toast svg { width: 15px; height: 15px; color: var(--warn); }
.app.is-pulled .toast { opacity: 1; transform: none; }
.app.is-found .toast { opacity: 0; }
@container (max-width: 540px) {
  .app__side { display: none; }
  .app__body { grid-template-columns: 1fr; height: 350px; }
  .app__bar { padding-left: 60px; }
  .beats li { padding: 5px 8px; font-size: 11.5px; }
  .beats li b { display: none; }
  .view { padding: 16px; }
  .file { grid-template-columns: 26px minmax(0, 1fr) 70px 16px; gap: 8px; padding: 5px 4px; }
  .file__s { display: none; }
  .files > :nth-child(n+6) { display: none; }
  .run__foot, .find__note { left: 16px; right: 16px; bottom: 14px; font-size: 12.5px; }
  .toast { right: 16px; bottom: 66px; }
}
.stage__caption { margin-top: 14px; font-size: 13.5px; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.live { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgb(21 128 61 / 0.5); animation: pulse 2s ease-out infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 8px rgb(21 128 61 / 0); } }

/* one angled ribbon */
.ribbons { position: relative; height: 170px; margin-top: 48px; pointer-events: none; overflow-x: clip; }
.ribbon { position: absolute; left: -10vw; width: 120vw; top: 50%; overflow: hidden; background: var(--rib-bg); color: var(--rib-ink); transform: translateY(-50%) rotate(-3deg); box-shadow: 0 22px 44px -20px var(--rib-glow); }
.ribbon__move { transform: translateX(var(--rx, 0px)); will-change: transform; }
.ribbon__track { display: flex; width: max-content; animation: tick 80s linear infinite; }
@keyframes tick { to { transform: translateX(-50%); } }
.ribbon__track span { display: inline-flex; align-items: center; gap: 24px; padding: 20px 0 20px 24px; white-space: nowrap; font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.ribbon__track span.u { font-weight: 450; opacity: 0.82; }
.ribbon__track svg { width: 16px; height: 16px; opacity: 0.6; flex: none; }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: 104px 0 0; }
#search { padding-top: 56px; }
.sec__head { max-width: 640px; }
.sec__head h2 { font-size: clamp(2.3rem, 4.6vw, 3.8rem); }
.sec__head > p { margin-top: 20px; color: var(--ink-2); font-size: 18.5px; max-width: 34em; }
.sec__head--center { margin-inline: auto; text-align: center; max-width: 760px; }
.sec__head--center > p { margin-inline: auto; }
.label { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; font-weight: 500; color: var(--accent); }
.label svg { width: 16px; height: 16px; }


/* card spotlight */
[data-glow] { position: relative; }
[data-glow]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 3;
  background: radial-gradient(460px circle at var(--mx, 50%) var(--my, -30%), var(--spot), transparent 62%);
  opacity: 0; transition: opacity 0.45s var(--ease);
}
[data-glow]:hover::after { opacity: 1; }

/* ---------- search demo ---------- */
.finder {
  margin-top: 48px; border-radius: 16px; background: var(--panel); overflow: hidden; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 250px 1fr;
}
.finder__side { border-right: 1px solid var(--line); padding: 18px 12px; background: var(--bg-2); }
.finder__side h3 { font-size: 12px; font-weight: 600; letter-spacing: 0.02em; color: var(--ink-3); padding: 0 10px 10px; }
.drv {
  width: 100%; display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center;
  padding: 10px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-2); cursor: pointer; text-align: left;
  font: 500 14px/1.25 var(--sans); transition: background-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.drv:hover { background: var(--panel); color: var(--ink); transform: translateX(3px); }
.drv[aria-pressed="true"] { background: var(--panel); color: var(--ink); box-shadow: 0 0 0 1px var(--line-2); }
.drv svg { width: 17px; height: 17px; color: var(--ink-3); }
.drv small { display: block; font-size: 12px; font-weight: 400; color: var(--ink-3); }
.drv__n { font: 12px var(--mono); color: var(--ink-3); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); margin-right: 5px; vertical-align: 1px; }
.dot--off { background: var(--off); }
.finder__main { min-width: 0; display: flex; flex-direction: column; }
.finder__bar { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.finder__bar svg { width: 18px; height: 18px; color: var(--ink-3); flex: none; }
.finder__bar input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--ink); font: 500 18px/1.2 var(--sans); caret-color: var(--accent); outline: none; }
.finder__bar input::placeholder { color: var(--ink-3); }
.finder__bar kbd { font-size: 12px; color: var(--ink-3); border: 1px solid var(--line-2); border-radius: 5px; padding: 2px 6px; }
.finder__chips { display: flex; gap: 8px; padding: 12px 18px 4px; flex-wrap: wrap; align-items: center; }
.finder__chips span { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.chip {
  font: 500 13px/1 var(--sans); color: var(--ink-2); background: var(--ghost-bg);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 11px; cursor: pointer;
  transition: background-color 0.25s, color 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip:hover { color: var(--ink); transform: translateY(-1px); }
.chip[aria-pressed="true"] { color: #fff; background: #046F73; border-color: #046F73; }
[data-mode="dark"] .chip[aria-pressed="true"] { color: #061014; background: #5ECFD0; border-color: #5ECFD0; }
.results { list-style: none; margin: 0; padding: 8px; height: 392px; overflow-y: auto; scrollbar-width: thin; }
.result { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: 9px; transition: background-color 0.2s; }
.result.is-new { animation: res-in 0.5s var(--ease) both; animation-delay: calc(var(--i) * 30ms); }
@keyframes res-in { from { opacity: 0; transform: translateY(8px); } }
.result:hover { background: var(--panel-2); }
.result__icon { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: var(--panel-2); border: 1px solid var(--line); color: var(--ink-2); }
.result__icon svg { width: 17px; height: 17px; }
.result__name, .result__path { display: block; }
.result__name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result__path { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result__tag { color: var(--tag); font-family: var(--sans); }
.drive { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.drive--off { color: var(--ink-3); }
.results__empty { padding: 40px 16px; text-align: center; color: var(--ink-3); font-size: 15px; }
.finder__foot { padding: 12px 18px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); display: flex; justify-content: space-between; gap: 12px; }
.trio { margin-top: 40px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }
.trio h3 { font-size: 17px; letter-spacing: -0.01em; display: flex; gap: 10px; align-items: center; }
.trio h3 svg { width: 18px; height: 18px; color: var(--accent); }
.trio p { margin-top: 8px; color: var(--ink-2); font-size: 15.5px; }

/* ---------- plain files ---------- */
.compare { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.pane { border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--line); overflow: hidden; transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease); }
.pane:hover { transform: translateY(-4px); }
.pane--nodh { background: linear-gradient(180deg, var(--accent-soft), transparent 60%), var(--panel); box-shadow: 0 0 0 1px rgb(4 111 115 / 0.3), 0 30px 60px -28px rgb(4 111 115 / 0.4); }
.pane__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.pane__head h3 { font-size: 17px; letter-spacing: -0.01em; }
.pane__head span { font-size: 13.5px; color: var(--ink-3); }
.tree { margin: 0; padding: 18px 22px 22px; font: 13.5px/1.95 var(--mono); color: var(--ink-2); white-space: pre; overflow-x: auto; }
.tree .ln { display: block; border-radius: 4px; transition: background-color 0.2s; }
.pane--nodh .tree .ln:hover { background: var(--accent-soft); }
.tree .d { color: var(--ink); }
.tree .h { color: var(--ink-3); opacity: 0.8; }
.tree .t { color: var(--accent); border-radius: 4px; padding: 1px 4px; margin: -1px -4px; transition: background-color 0.6s var(--ease) 1.4s; }
.compare.is-in .tree .t { background: var(--mark-bg); }
.js .compare .ln { opacity: 0; transform: translateX(-10px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .compare.is-in .ln { opacity: 1; transform: none; transition-delay: calc(var(--i) * 50ms + var(--pd, 0ms)); }
.pane--nodh { --pd: 350ms; }
.pane__foot { padding: 14px 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.pane--nodh .pane__foot { color: var(--accent-ink); }

/* ---------- checked ---------- */
.shotwrap { position: relative; }
.proof { margin-top: 48px; display: grid; grid-template-columns: 1.35fr 1fr; gap: 56px; align-items: center; }
.proof > * { min-width: 0; }
.proof__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.proof__list li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: start; }
.proof__list i { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); color: var(--accent); }
.proof__list svg { width: 18px; height: 18px; }
.proof__list h3 { font-size: 16.5px; letter-spacing: -0.01em; line-height: 1.3; }
.proof__list p { margin-top: 3px; color: var(--ink-2); font-size: 15px; }
.shotwrap img { width: 100%; filter: drop-shadow(0 30px 40px rgb(12 52 58 / 0.12)); }
.verify {
  position: absolute; left: -36px; bottom: 54px; width: 320px; z-index: 2;
  padding: 16px 18px; border-radius: 14px; background: var(--panel); box-shadow: var(--shadow);
  animation: bob 6.5s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-8px); } }
.verify__row { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; }
.verify__spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); border-top-color: var(--accent); animation: spin 0.8s linear infinite; flex: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.verify__num { margin-left: auto; font: 12px var(--mono); color: var(--ink-3); font-weight: 400; }
.verify__bar { margin-top: 12px; height: 6px; border-radius: 99px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); overflow: hidden; }
.verify__bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #046F73, #5ECFD0); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }
.verify__foot { margin-top: 12px; display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.verify__foot svg { width: 16px; height: 16px; color: var(--ok); transform: scale(0); transition: transform 0.5s var(--ease); }
.v-done { display: none; }
.verify.done .v-done { display: inline; }
.verify.done .v-run { display: none; }
.verify.done .verify__spin { animation: none; border-color: var(--ok); background: var(--ok); }
.verify.done .verify__foot { color: var(--ink); }
.verify.done .verify__foot svg { transform: scale(1); }


/* ---------- MCP ---------- */
.mcp > *, .hero__grid > *, .get__app > * { min-width: 0; }
.mcp { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.chat { border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-sm); padding: 10px; display: flex; flex-direction: column; min-height: 440px; }
.js .chat [data-step].on, .chat__msg, .chat__tool { flex: none; }
.chat__ask { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 12px 12px 16px; border-radius: 12px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); font-size: 14.5px; color: var(--ink-3); }
.chat__ask span { flex: 1; }
.chat__ask i { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--btn-bg); color: var(--btn-ink); }
.chat__ask svg { width: 15px; height: 15px; }
.chat__top { display: flex; justify-content: space-between; align-items: center; padding: 6px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 8px; font-size: 13px; color: var(--ink-3); }
.replay { border: 0; background: transparent; color: var(--ink-2); font: 500 13px/1 var(--sans); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; padding: 6px 8px; border-radius: 7px; transition: background-color 0.2s, color 0.2s; }
.replay:hover { background: var(--panel-2); color: var(--ink); }
.replay svg { width: 14px; height: 14px; transition: transform 0.5s var(--ease); }
.replay:hover svg { transform: rotate(-180deg); }
.chat__msg { padding: 14px 16px; border-radius: 12px; font-size: 15.5px; color: var(--ink-2); }
.chat__msg--you { background: var(--panel-2); color: var(--ink); margin-left: 16%; }
.chat__who { display: block; font-size: 12.5px; color: var(--ink-3); margin-bottom: 6px; font-weight: 500; }
.chat__tool { margin: 6px 16px; padding: 9px 13px; border-radius: 8px; border: 1px solid var(--line); font: 12.5px/1.6 var(--mono); color: var(--ink-3); }
.chat__tool b { color: var(--accent); font-weight: 400; }
.chat__msg strong { color: var(--ink); font-weight: 600; }
.chat__msg .warn { color: var(--warn); }
.typing { display: inline-flex; gap: 4px; padding: 14px 16px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: dots 1s ease-in-out infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; } .typing i:nth-child(3) { animation-delay: 0.3s; }
@keyframes dots { 50% { transform: translateY(-4px); opacity: 0.4; } }
.js .chat [data-step] { display: none; }
.js .chat [data-step].on { display: block; animation: res-in 0.5s var(--ease) both; }
.js .chat .typing.on { display: inline-flex; }
.stream .s { opacity: 0; animation: fade 0.4s var(--ease) forwards; animation-delay: calc(var(--i) * 28ms); }
@keyframes fade { to { opacity: 1; } }

.setup { border-radius: 16px; background: var(--panel); box-shadow: var(--shadow-sm); padding: 22px; }
.setup h3 { font-size: 17px; letter-spacing: -0.01em; }
.setup > p { margin-top: 6px; font-size: 14.5px; color: var(--ink-3); }
.setup .tabs { margin-top: 16px; }
.tools { margin-top: 22px; display: grid; gap: 14px; }
.tools h4 { margin: 0 0 8px; font-size: 13px; font-weight: 600; color: var(--ink-3); display: flex; align-items: center; gap: 8px; }
.tools h4 svg { width: 15px; height: 15px; }
.tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tools li { font: 12.5px/1 var(--mono); padding: 7px 9px; border-radius: 7px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); transition: transform 0.25s var(--ease), color 0.25s, box-shadow 0.25s; cursor: default; }
.tools li:hover { transform: translateY(-2px); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.tools .lock li { color: var(--warn); }
.safe { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); display: grid; grid-template-columns: 18px 1fr; gap: 10px; }
.safe svg { width: 18px; height: 18px; color: var(--accent); margin-top: 2px; }

/* tabs + command box, shared by MCP setup and install */
.tabs { position: relative; display: flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 11px; width: fit-content; max-width: 100%; overflow-x: auto; scrollbar-width: none; box-shadow: inset 0 0 0 1px var(--line); }
.tabs__ind { position: absolute; top: 0; left: 0; width: 0; height: 0; border-radius: 8px; background: var(--panel); box-shadow: 0 0 0 1px var(--line-2), 0 2px 6px -2px rgb(12 52 58 / 0.18); }
.tabs.ready .tabs__ind { transition: transform 0.45s var(--ease), width 0.45s var(--ease), height 0.45s var(--ease); }
.tabs button { position: relative; z-index: 1; font: 500 14px/1 var(--sans); color: var(--ink-2); background: transparent; border: 0; padding: 9px 14px; border-radius: 8px; cursor: pointer; transition: color 0.25s; white-space: nowrap; }
.tabs button:hover, .tabs button[aria-selected="true"] { color: var(--ink); }
.panel { margin-top: 14px; }
.panel:not([hidden]) { animation: res-in 0.45s var(--ease); }
.cmd { display: flex; align-items: flex-start; gap: 12px; padding: 14px 14px 14px 18px; background: #0B1519; border-radius: 11px; box-shadow: inset 0 0 0 1px rgb(190 230 235 / 0.12); color: #E3ECEE; }
.cmd code { flex: 1; min-width: 0; overflow-x: auto; white-space: pre; font-size: 13px; line-height: 1.7; scrollbar-width: none; padding-top: 5px; }
.cmd--sh code::before { content: "$ "; color: #7F9398; }
.copy { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 8px; border: 0; background: rgb(255 255 255 / 0.08); color: #C5D2D5; font: 500 13px/1 var(--sans); cursor: pointer; transition: background-color 0.2s, color 0.2s; }
.copy:hover { background: rgb(255 255 255 / 0.14); color: #fff; }
.copy.is-done { color: #5ECFD0; }
.copy svg { width: 14px; height: 14px; }
.panel__note { margin-top: 12px; font-size: 14px; color: var(--ink-3); }
.panel__note a { color: var(--ink-2); }

/* ---------- download ---------- */
.get { max-width: 760px; margin: 44px auto 0; border-radius: 20px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.get__app { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 34px 28px 28px; }
.dl { position: relative; z-index: 5; display: inline-flex; height: 54px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 1px 0 rgb(255 255 255 / 0.18) inset, 0 12px 28px -12px rgb(4 90 94 / 0.55); }
.dl__main, .dl__os { display: inline-flex; align-items: center; gap: 10px; height: 100%; border: 0; background: transparent; color: inherit; font: 600 16.5px/1 var(--sans); letter-spacing: -0.01em; text-decoration: none; cursor: pointer; transition: background-color 0.2s; }
.dl__main { padding: 0 24px 0 26px; border-radius: 999px 0 0 999px; }
.dl__os { position: relative; gap: 6px; padding: 0 18px 0 16px; border-radius: 0 999px 999px 0; }
.dl__os::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: currentColor; opacity: 0.28; }
.dl__main:hover, .dl__os:hover, .pick.is-open .dl__os { background: rgb(255 255 255 / 0.1); }
.dl svg { width: 18px; height: 18px; flex: none; }
.dl__os > svg:first-child { width: 17px; height: 17px; }
.dl__main:focus-visible, .dl__os:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.pick__chev { width: 15px; height: 15px; opacity: 0.8; transition: transform 0.35s var(--ease); }
.pick.is-open .pick__chev { transform: rotate(180deg); }
.pick__list { position: absolute; right: 0; top: calc(100% + 10px); width: 290px; text-align: left; color: var(--ink); margin: 0; padding: 6px; list-style: none; border-radius: 16px; background: var(--panel); box-shadow: var(--shadow); outline: none;
  opacity: 0; transform: translateY(-6px) scale(0.97); transform-origin: calc(100% - 30px) 0; pointer-events: none; transition: opacity 0.22s var(--ease), transform 0.3s var(--ease); }
.pick.is-open .pick__list { opacity: 1; transform: none; pointer-events: auto; }
.pick__list li { display: grid; grid-template-columns: 34px 1fr 18px; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 11px; cursor: pointer; transition: background-color 0.18s; }
.pick__list li.is-active { background: var(--panel-2); }
.pick__list li > span:first-child { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink-2); }
.pick__list li.is-active > span:first-child, .pick__list li[aria-selected="true"] > span:first-child { color: var(--accent); }
.pick__list li svg { width: 17px; height: 17px; }
.pick__list b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.pick__list small { display: block; font-size: 12.5px; color: var(--ink-3); }
.pick__list .pick__tick { color: var(--accent); opacity: 0; }
.pick__list li[aria-selected="true"] .pick__tick { opacity: 1; }
.get__meta { font-size: 14px; color: var(--ink-3); line-height: 1.45; text-wrap: balance; }
.get__meta b { margin-right: 2px; }
.get__meta b { font: 500 13px/1 var(--mono); color: var(--ink-2); padding: 3px 7px; border-radius: 6px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.get__note { max-width: 560px; margin: 4px auto 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-3); text-align: center; }
.get__note a { color: var(--ink-2); }
.get__cli { padding: 22px 28px 26px; border-top: 1px solid var(--line); background: var(--bg-2); border-radius: 0 0 20px 20px; }
.get__cli-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.get__cli h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; display: flex; align-items: center; gap: 9px; }
.get__cli h3 svg { width: 17px; height: 17px; color: var(--accent); }
.get__cli .panel { margin-top: 0; }
.cmd--ps code::before { content: "PS> "; color: #7F9398; }

/* ---------- tour film ---------- */
.theatre { position: relative; margin-top: 48px; border-radius: 22px; overflow: hidden; background: #0C1218; aspect-ratio: 16 / 9; box-shadow: 0 0 0 1px var(--line-2), 0 50px 100px -40px rgb(4 40 44 / 0.55); transform: scale(calc(0.9 + var(--k, 1) * 0.1)); transform-origin: 50% 0; }
.theatre video { width: 100%; height: 100%; display: block; object-fit: cover; }
.theatre__play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 20px; border: 0; cursor: pointer; color: #F2FBFB; background: radial-gradient(60% 60% at 50% 55%, rgb(6 16 20 / 0.15), rgb(6 16 20 / 0.55)); font: inherit; transition: opacity 0.5s var(--ease); }
.theatre__btn { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: #5ECFD0; color: #061014; transition: transform 0.5s var(--ease); }
.theatre__btn::before, .theatre__btn::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid #5ECFD0; animation: ring 2.6s var(--ease) infinite; }
.theatre__btn::after { animation-delay: 1.3s; }
@keyframes ring { from { transform: scale(1); opacity: 0.8; } to { transform: scale(1.9); opacity: 0; } }
.theatre__btn svg { width: 34px; height: 34px; margin-left: 5px; fill: currentColor; }
.theatre__play:hover .theatre__btn { transform: scale(1.08); }
.theatre__txt { display: flex; flex-direction: column; text-align: left; font-size: 24px; font-weight: 600; letter-spacing: -0.02em; text-shadow: 0 2px 20px rgb(0 0 0 / 0.5); }
.theatre__txt small { margin-top: 4px; font-size: 14px; font-weight: 500; letter-spacing: 0; opacity: 0.8; }
.theatre.is-playing .theatre__play { opacity: 0; pointer-events: none; }
.chapters { list-style: none; display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; margin-top: 18px; padding: 0; }
.chapters button { position: relative; width: 100%; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 13px 14px 15px; border: 0; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); color: var(--ink-2); font: 500 14px/1.25 var(--sans); text-align: left; cursor: pointer; transition: transform 0.4s var(--ease), box-shadow 0.4s, color 0.3s; }
.chapters button:hover { transform: translateY(-2px); color: var(--ink); }
.chapters b { font: 500 12px/1 var(--mono); color: var(--ink-3); }
.chapters i { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: var(--accent); transform: scaleX(var(--p, 0)); transform-origin: 0 50%; }
.chapters button.is-on { color: var(--ink); box-shadow: 0 0 0 1.5px var(--accent); }
.chapters button.is-on b { color: var(--accent); }

/* ---------- faq ---------- */
.faq-box { margin-top: 44px; padding: 8px 32px; border-radius: 20px; background: var(--panel); box-shadow: 0 0 0 1px var(--line), var(--shadow-sm); }
.faq details { border-bottom: 1px solid var(--line); }
.faq details:last-child { border-bottom: 0; }
.faq details::details-content { block-size: 0; overflow: clip; transition: block-size 0.45s var(--ease), content-visibility 0.45s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.faq summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; transition: transform 0.3s var(--ease), color 0.3s; }
.faq summary:hover { transform: translateX(4px); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; line-height: 1.4; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 1.5px; background: var(--ink-3); transition: transform 0.4s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { padding: 0 40px 24px 0; color: var(--ink-2); font-size: 16px; }

/* ---------- final ---------- */
.final { padding: 120px 0 96px; text-align: center; position: relative; overflow: clip; }
.final .aurora { inset: 10% 0 -30%; }
.final .aurora i:nth-child(1) { left: calc(50% - 320px); right: auto; top: 30%; }
.final .aurora i:nth-child(2) { left: 10%; top: 50%; }
.final .aurora i:nth-child(3) { right: 15%; top: 40%; }
.final .wrap { position: relative; }
.final img { width: 64px; height: 68px; margin: 0 auto 30px; animation: bob 6s ease-in-out infinite; }
.final h2 { font-size: clamp(2.5rem, 6vw, 4.6rem); letter-spacing: -0.04em; }
.final p { margin-top: 18px; color: var(--ink-2); font-size: 18px; }
.final .hero__cta { justify-content: center; }

footer { border-top: 1px solid var(--line); padding: 36px 0 48px; color: var(--ink-3); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { color: var(--ink-2); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: var(--accent); }

/* ---------- motion: content is visible without JS; JS adds the start states ---------- */
.w { display: inline-block; overflow: clip; overflow-clip-margin: 0.1em; vertical-align: top; padding-bottom: 0.12em; margin-bottom: -0.12em; }
.js [data-split] .w__i { display: inline-block; transform-origin: 0 100%; transform: translateY(108%) rotate(4deg); opacity: 0; filter: blur(6px); transition: transform 0.35s var(--ease), opacity 0.35s, filter 0.35s; }
.js [data-split].is-in .w__i, .js .hero.is-in [data-split] .w__i { transform: none; opacity: 1; filter: none; transition-duration: 0.9s; transition-delay: calc(var(--i) * 70ms + var(--d, 0ms)); }
.js .rise { opacity: 0; transform: translateY(24px); filter: blur(6px); transition: opacity 1s var(--ease), transform 1s var(--ease), filter 1s var(--ease); }
.js .hero.is-in .rise { opacity: 1; transform: none; filter: none; transition-delay: var(--d, 0ms); }
.js .stage-in { opacity: 0; transform: translateX(60px); transition: opacity 1.4s var(--ease), transform 1.4s var(--ease); }
.js .hero.is-in .stage-in { opacity: 1; transform: none; transition-delay: 500ms; }
.js .scribble path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .hero.is-in .scribble path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.1s var(--ease) 1.3s; }
.js .reveal { opacity: 0; transform: translateY(40px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.js .stagger > * { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.js .stagger.is-in > * { opacity: 1; transform: none; transition-delay: calc(var(--i) * 90ms); }
[data-fill] .f { transition: opacity 0.25s linear; }

::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }
::view-transition-new(root) { animation: vt-in 0.75s var(--ease); }
@keyframes vt-in { from { clip-path: circle(0 at var(--vx, 90%) var(--vy, 30px)); } to { clip-path: circle(150vmax at var(--vx, 90%) var(--vy, 30px)); } }

@media (max-width: 1080px) {
  .finder { grid-template-columns: 1fr; }
  .finder__side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 6px; overflow-x: auto; padding: 10px; scrollbar-width: none; }
  .finder__side h3 { display: none; }
  .drv { width: auto; flex: none; grid-template-columns: 18px auto auto; }
  .drv small { display: none; }
}
/* Touch targets: 40px or more on tablets, phones and any touch screen. */
@media (max-width: 960px), (pointer: coarse) {
  .btn--sm { height: 40px; }
  .mode { width: 40px; height: 40px; }
  .brand { min-height: 40px; }
  .chip { padding: 11px 14px; }
  .drv { padding: 12px 12px; }
  .replay { padding: 11px 12px; }
  .tabs button, .copy { min-height: 40px; }
  .replay { min-height: 40px; }
}
@media (max-width: 1240px) {
  .verify { left: 12px; }
}
@media (max-width: 960px) {
  .nav__links { display: none; }
  .hero__grid, .mcp { grid-template-columns: 1fr; gap: 44px; }
  .chat { min-height: 0; }
  .chat__ask { margin-top: 12px; }
  .chapters { grid-template-columns: repeat(3, 1fr); }
  .compare, .trio, .proof { grid-template-columns: 1fr; }
  .proof { gap: 64px; }
  .trio { gap: 24px; }
  .theatre__btn { width: 64px; height: 64px; }
  .theatre__btn svg { width: 24px; height: 24px; }
  .theatre__txt { font-size: 18px; }
  .theatre { border-radius: 14px; }
  .sec { padding-top: 76px; }
  .window { transform: rotateX(calc(var(--t) * 10deg)) scale(calc(1 - var(--t) * 0.04)); transform-origin: 50% 0; }
  .js .stage-in { transform: translateY(40px); }
  .verify { left: 12px; bottom: -28px; width: min(300px, calc(100% - 24px)); }
  .shotwrap { margin-bottom: 40px; }
}
@media (max-width: 760px) {
  /* One column: center the hero copy over the demo. */
  .hero__grid > :first-child { text-align: center; }
  .hook { flex-direction: column; gap: 10px; }
  .hero__sub { margin-inline: auto; }
  .hero__cta, .hero__proof { justify-content: center; }
  .stage__caption { justify-content: center; }
  .trio { text-align: center; gap: 28px; }
  .trio h3 { justify-content: center; }
  .trio p { max-width: 30em; margin-inline: auto; }
  .get__cli-head { flex-direction: column; justify-content: center; }
  .get__cli .panel__note { text-align: center; }
  /* Drive filters wrap into a 2x2 grid instead of scrolling sideways. */
  .finder__side { display: grid; grid-template-columns: 1fr 1fr; overflow: visible; }
  .drv { width: 100%; min-width: 0; }
}
@media (max-width: 420px) {
  .drv svg { display: none; }
  .drv { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (max-width: 760px) {
  /* AI tool tabs fill the row and share it. */
  .tabs { width: 100%; overflow: visible; flex-wrap: wrap; }
  .tabs button { flex: 1 1 auto; padding-inline: 8px; }
  .chrome-hide .nav { transform: translateY(-100%); }
  .finder__bar { padding-block: 14px; }
  .finder__bar input { min-height: 32px; }
  .js .reveal { transform: translateY(24px); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .hero { padding-top: 56px; }
  .nav .wrap { gap: 14px; }
  .nav__end .btn--ghost { display: none; }
  .result { grid-template-columns: 34px 1fr; }
  .result .drive { grid-column: 2; }
  .results { height: 420px; }
  .chat__msg--you { margin-left: 8%; }
  .hook { font-size: 15px; }
  .ribbons { height: 130px; margin-top: 36px; }
  .ribbon__track span { font-size: 17px; padding: 15px 0 15px 18px; gap: 18px; }
  .finder__bar kbd { display: none; }
  .setup { padding: 16px; }
  .faq-box { padding: 4px 20px; }
  .tabs button { padding: 9px 10px; font-size: 13.5px; }
  .get__app { padding: 26px 18px 22px; }
  .dl { width: 100%; }
  .dl__main { flex: 1; justify-content: center; padding: 0 16px 0 20px; }
  .pick__list { width: 100%; }
  .get__cli { padding: 20px; }
  .faq summary { padding-right: 34px; }
  .hero__cta { flex-direction: column; align-items: center; }
  .hero__cta .btn { width: min(100%, 300px); justify-content: center; }
  /* The check card goes under the screenshot, so it does not cover it. */
  .shotwrap { margin-bottom: 0; }
  .verify { position: relative; left: auto; bottom: auto; width: auto; margin: -20px 12px 0; }
  /* Show the whole command: wrap it instead of scrolling it sideways. */
  .cmd--sh code { white-space: pre-wrap; word-break: break-all; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js [data-split] .w__i, .js .rise, .js .stage-in, .js .reveal, .js .stagger > *, .js .compare .ln { opacity: 1 !important; transform: none !important; filter: none !important; }
  .js .scribble path { stroke-dashoffset: 0 !important; }
  .window { transform: none !important; }
  .ribbon__track { animation: none; }
}
/* Small phones: the three AI tool tabs fit on one line. */
@media (max-width: 420px) {
  .tabs { gap: 2px; }
  .tabs button { font-size: 13px; padding-inline: 7px; }
}
