/* ============================================================
   Context Transfer - landing page styles
   Theme: dark terminal / neon magenta-cyan-purple hacker palette
   Color system: magenta = interactive/primary, cyan = system/success
                 purple = structural glow/labels. One rule, whole page.
   Radius system: buttons 8px, panels/terminals/cards 12px, chips/kbd 6px
   ============================================================ */

:root {
  --bg: #0a0a12;
  --bg-2: #0d0f1a;
  --bg-term: #0c0e16;
  --panel: rgba(15, 17, 28, 0.82);
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --text: #e9eaf4;
  --text-dim: #9aa0b8;
  --text-faint: #6b7186;
  --mag: #ff3d9a;
  --mag-soft: rgba(255, 61, 154, 0.14);
  --cyan: #2fd6e8;
  --cyan-soft: rgba(47, 214, 232, 0.12);
  --purp: #a78bfa;
  --purp-soft: rgba(167, 139, 250, 0.13);
  --ok: #4ade80;
  --r-btn: 8px;
  --r-panel: 12px;
  --r-chip: 6px;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-display: "Space Grotesk", var(--font-mono), sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 15px;
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--mag); color: #0a0a12; }

a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
kbd {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: var(--r-chip);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
}

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

/* subtle scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: #262a3d; border-radius: 5px; border: 2px solid var(--bg); }

.skip-link {
  position: fixed;
  top: -48px;
  left: 16px;
  z-index: 200;
  padding: 8px 16px;
  background: var(--mag);
  color: #0a0a12;
  border-radius: var(--r-btn);
  font-weight: 700;
  transition: top 0.2s;
}
.skip-link:focus-visible { top: 12px; }

/* ---------- background layers ---------- */

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: -3;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 90% 60% at 50% 0%, #000 40%, transparent 100%);
}

.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse 600px 420px at 12% -4%, rgba(255, 61, 154, 0.10), transparent 70%),
    radial-gradient(ellipse 700px 500px at 88% 12%, rgba(167, 139, 250, 0.09), transparent 70%),
    radial-gradient(ellipse 700px 500px at 50% 110%, rgba(47, 214, 232, 0.06), transparent 70%);
}

#constellation {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ---------- layout primitives ---------- */

.wrap {
  width: min(1160px, calc(100% - 48px));
  margin-inline: auto;
}

.section { padding: 110px 0; }

.kicker {
  font-size: 13px;
  color: var(--mag);
  letter-spacing: 0.04em;
  margin-bottom: 18px;
}

.headline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.9rem, 4.4vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  max-width: 22ch;
}

.lede {
  color: var(--text-dim);
  max-width: 62ch;
  margin-bottom: 14px;
}

.section-lede { margin-bottom: 44px; color: var(--text-dim); max-width: 62ch; }

.accent { color: var(--mag); }

/* ---------- reveal on scroll ---------- */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease-out) var(--d, 0s), transform 0.7s var(--ease-out) var(--d, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--r-btn);
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: transform 0.15s var(--ease-out), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn-primary {
  background: var(--mag);
  color: #12060d;
  box-shadow: 0 0 0 rgba(255, 61, 154, 0);
}
.btn-primary:hover {
  background: #ff5fae;
  box-shadow: 0 6px 30px -8px rgba(255, 61, 154, 0.55);
  transform: translateY(-1px);
}

.btn-ghost {
  border: 1px solid var(--line-strong);
  color: var(--text);
}
.btn-ghost:hover {
  border-color: var(--cyan);
  color: var(--cyan);
  transform: translateY(-1px);
}

.btn-sm { padding: 8px 16px; font-size: 13px; }

/* ---------- topbar ---------- */

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 64px;
  padding: 0 clamp(20px, 4vw, 40px);
  border-bottom: 1px solid transparent;
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
}
.topbar.is-scrolled {
  background: rgba(10, 10, 18, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}

.topbar-brand {
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.topbar-brand::before { content: ">_ "; color: var(--mag); }

.topbar-nav { display: flex; gap: 26px; }
.topbar-nav a {
  position: relative;
  font-size: 13px;
  color: var(--text-dim);
  transition: color 0.2s;
  padding: 4px 0;
}
.topbar-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--mag);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease-out);
}
.topbar-nav a:hover { color: var(--text); }
.topbar-nav a:hover::after { transform: scaleX(1); }

/* ---------- hero ---------- */

.hero { min-height: 100dvh; display: flex; align-items: center; padding: 96px 0 72px; }

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.hero-eyebrow { font-size: 13px; color: var(--text-faint); margin-bottom: 20px; }

.hero-headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.3rem, 5vw, 3.7rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  min-height: 3.2em; /* reserves 2 lines so the typed swap never shifts layout */
}

.typed { color: var(--mag); }

.caret {
  display: inline-block;
  width: 3px;
  height: 0.95em;
  margin-left: 4px;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(47, 214, 232, 0.8);
  vertical-align: -0.12em;
}

.hero-sub {
  color: var(--text-dim);
  max-width: 46ch;
  margin-bottom: 32px;
}

.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- terminal (shared) ---------- */

.terminal {
  background: var(--bg-term);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--r-panel);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 24px 70px -30px rgba(167, 139, 250, 0.35),
    0 8px 30px -18px rgba(0, 0, 0, 0.8);
  overflow: hidden;
}

.terminal-head {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}

.tdot { width: 11px; height: 11px; border-radius: 50%; }
.tdot-red { background: #ff5f57; }
.tdot-yellow { background: #febc2e; }
.tdot-green { background: #28c840; }

.terminal-title {
  margin-left: 10px;
  font-size: 12px;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

.terminal-body { padding: 18px 20px; }

.t-pre {
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.75;
  white-space: pre;
  overflow-x: auto;
  color: #c6c9dc;
}
.t-pre + .t-pre { margin-top: 14px; }

/* scanline overlay on terminals, very faint */
.terminal-body { position: relative; }
.terminal-body::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, 0.015) 0 1px, transparent 1px 3px);
}

.t-prompt { color: var(--mag); font-weight: 700; }
.t-cmd { color: var(--cyan); cursor: pointer; }
.t-cmd:hover { text-decoration: underline; text-underline-offset: 3px; }
.t-dim { color: var(--text-faint); }
.t-ok { color: var(--ok); }
.t-key { color: var(--mag); }
.t-card { color: var(--purp); }
.t-card-k { color: var(--mag); font-weight: 600; }
.t-card-v { color: #c6c9dc; }

/* staged pre blocks: hidden until JS plays them */
.t-pre.is-armed { opacity: 0; transform: translateY(8px); }
.t-pre.is-on { opacity: 1; transform: none; transition: opacity 0.5s var(--ease-out), transform 0.5s var(--ease-out); }

#hero-terminal { cursor: pointer; }

.hero-demo-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.replay-hint kbd { margin-left: 4px; }

/* ---------- problem ---------- */

.silo-stack { margin-top: 48px; max-width: 620px; }

.silo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: var(--r-panel);
  padding: 14px 20px;
  font-size: 13px;
}
.silo-row:nth-child(1) { margin-left: 0; }
.silo-row:nth-child(2) { margin-left: 28px; }
.silo-row:nth-child(3) { margin-left: 56px; }

.silo-row code { color: var(--text); font-weight: 600; }
.silo-lock { color: var(--text-faint); font-size: 12px; }
.silo-lock-bad { color: #ff6b6b; }

.silo-arrow {
  height: 34px;
  margin-left: 84px;
  border-left: 1px dashed rgba(255, 107, 107, 0.5);
  position: relative;
}
.silo-arrow::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: -4px;
  border: 4px solid transparent;
  border-top-color: rgba(255, 107, 107, 0.7);
}

.silo-row-new { margin-left: 84px; border-color: rgba(255, 107, 107, 0.35); }

/* ---------- how it works ---------- */

.steps { list-style: none; display: grid; gap: clamp(64px, 9vw, 110px); margin-top: 64px; }

.step {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.step-2 .step-copy { order: 2; }
.step-2 .step-visual { order: 1; }

.step-num {
  display: block;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 1.2px var(--mag);
  margin-bottom: 14px;
}

.step-copy h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.step-copy p { color: var(--text-dim); max-width: 44ch; }

/* step visuals: abstract diagrammatic motifs, not screenshots */

.sel-window, .extract-panel, .card-mini {
  border: 1px solid var(--line-strong);
  border-radius: var(--r-panel);
  background: var(--bg-term);
  overflow: hidden;
  box-shadow: 0 18px 50px -28px rgba(0, 0, 0, 0.9);
}

.sel-window-head, .extract-panel-head {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-faint);
}

.sel-lines { padding: 20px 16px; display: grid; gap: 12px; }
.sel-line {
  display: block;
  height: 9px;
  width: var(--w, 60%);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}
.sel-line.is-selected {
  background: var(--mag-soft);
  box-shadow: inset 0 0 0 1px rgba(255, 61, 154, 0.45);
  animation: selpulse 2.6s ease-in-out infinite;
}
@keyframes selpulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(255, 61, 154, 0.25); }
  50% { box-shadow: inset 0 0 0 1px rgba(255, 61, 154, 0.65); }
}

.sel-foot, .extract-status {
  padding: 12px 16px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--text-dim);
}

.extract-panel { max-width: 320px; }
.extract-progress { height: 3px; background: rgba(255, 255, 255, 0.06); }
.extract-progress-fill {
  display: block;
  height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--mag), var(--purp));
  animation: loadbar 2.2s var(--ease-out) infinite;
}
@keyframes loadbar {
  0% { width: 4%; }
  70% { width: 86%; }
  100% { width: 96%; opacity: 0.4; }
}

.card-mini { max-width: 300px; }
.card-mini-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  color: var(--purp);
}
.card-mini-copy {
  font-size: 11px;
  color: var(--mag);
  border: 1px solid rgba(255, 61, 154, 0.4);
  border-radius: var(--r-chip);
  padding: 2px 8px;
}
.card-mini-lines { padding: 18px 16px; display: grid; gap: 10px; }
.card-mini-lines span {
  display: block;
  height: 8px;
  width: var(--w, 60%);
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- local-first ---------- */

.local-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.local-visual { order: -1; }

.local-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 24px;
  margin: 26px 0 30px;
  font-size: 13.5px;
  color: var(--text-dim);
}
.local-list li::before { content: "> "; color: var(--ok); }

.offline-demo {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  padding: 14px 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--r-panel);
  font-size: 13px;
  width: fit-content;
}
.offline-label b { color: var(--ok); font-weight: 600; }
.offline-demo.is-off .offline-label b { color: var(--cyan); }

.offline-btn {
  font-size: 12px;
  padding: 5px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  color: var(--text-dim);
  transition: border-color 0.2s, color 0.2s;
}
.offline-btn:hover { border-color: var(--cyan); color: var(--cyan); }

.offline-chip {
  font-size: 12px;
  color: var(--ok);
  border: 1px solid rgba(74, 222, 128, 0.4);
  background: rgba(74, 222, 128, 0.08);
  border-radius: 999px;
  padding: 3px 12px;
  animation: chippop 0.35s var(--ease-out);
}
@keyframes chippop {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.terminal-tall .t-pre { font-size: 12.5px; }

/* ---------- the card ---------- */

.section-card .headline { max-width: none; }

.extract-card {
  max-width: 680px;
  margin-inline: auto;
  border: 1px solid rgba(167, 139, 250, 0.3);
  border-radius: var(--r-panel);
  background: var(--panel);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 30px 80px -40px rgba(167, 139, 250, 0.4);
}

.ec-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
}
.ec-title { font-weight: 700; font-size: 14px; letter-spacing: 0.02em; flex: 1; }
.ec-title::before { content: "/// "; color: var(--purp); }

.ec-copied {
  font-size: 12px;
  color: var(--ok);
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.25s, transform 0.25s;
}
.extract-card.is-copied .ec-copied { opacity: 1; transform: none; }

.ec-copy {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 16px;
  border: 1px solid rgba(255, 61, 154, 0.45);
  border-radius: var(--r-btn);
  color: var(--mag);
  transition: background 0.2s, color 0.2s, transform 0.15s;
}
.ec-copy:hover { background: var(--mag-soft); }
.ec-copy:active { transform: scale(0.96); }

.ec-body { padding: 26px 28px; display: grid; gap: 22px; }

.ec-k {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--purp);
  margin-bottom: 6px;
}
.ec-v { color: #c6c9dc; font-size: 14px; }
.ec-list { list-style: none; display: grid; gap: 6px; color: #c6c9dc; font-size: 14px; }
.ec-list li::before { content: "- "; color: var(--text-faint); }

.ec-note {
  padding: 16px 28px;
  border-top: 1px dashed var(--line-strong);
  font-size: 12px;
  color: var(--text-faint);
}

/* ---------- backends ---------- */

.section-backends .headline { max-width: none; }

.backend-toggle {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  overflow: hidden;
  margin: 34px 0 28px;
}
.bt-btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 22px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
  transition: background 0.2s, color 0.2s;
}
.bt-btn + .bt-btn { border-left: 1px solid var(--line); }
.bt-btn:hover { color: var(--text); }
.bt-btn.is-active { background: rgba(255, 255, 255, 0.06); color: var(--text); }

.bt-dot { width: 7px; height: 7px; border-radius: 50%; }
.bt-dot-local { background: var(--ok); box-shadow: 0 0 8px rgba(74, 222, 128, 0.7); }
.bt-dot-cloud { background: var(--cyan); box-shadow: 0 0 8px rgba(47, 214, 232, 0.7); }

.backend-cmd {
  font-family: var(--font-mono);
  font-size: 14px;
  background: var(--bg-term);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 16px 20px;
  overflow-x: auto;
  margin-bottom: 16px;
}
.backend-desc { color: var(--text-dim); max-width: 62ch; }

/* ---------- faq ---------- */

.section-faq .headline { max-width: none; }

.faq-list {
  max-width: 780px;
  margin-top: 38px;
  border-top: 1px solid var(--line);
}

.faq-item { border-bottom: 1px solid var(--line); }

.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 4px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 4px;
  border-radius: 4px;
}

.faq-q {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
  transition: color 0.2s;
}
.faq-item summary:hover .faq-q { color: var(--cyan); }

.faq-plus {
  position: relative;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
}
.faq-plus::before,
.faq-plus::after {
  content: "";
  position: absolute;
  background: var(--text-dim);
  transition: transform 0.25s var(--ease-out), background 0.25s;
}
.faq-plus::before { left: 8px; right: 8px; top: 50%; height: 1.5px; margin-top: -0.75px; }
.faq-plus::after { top: 8px; bottom: 8px; left: 50%; width: 1.5px; margin-left: -0.75px; }

.faq-item[open] .faq-plus { border-color: rgba(255, 61, 154, 0.5); }
.faq-item[open] .faq-plus::before {
  background: var(--mag);
  transform: rotate(90deg);
}
.faq-item[open] .faq-plus::after { transform: scaleY(0); }

.faq-a {
  padding: 0 44px 22px 4px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.65;
  max-width: 64ch;
}
.faq-a p + p { margin-top: 10px; }
.faq-a a {
  color: var(--cyan);
  text-decoration: none;
  border-bottom: 1px solid rgba(47, 214, 232, 0.35);
}
.faq-a a:hover { color: var(--text); border-color: var(--text); }
.faq-a code {
  font-family: var(--font-mono);
  font-size: 13px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 6px;
  color: var(--text);
}

.faq-more {
  margin-top: 26px;
  font-size: 13px;
  color: var(--text-faint);
}
.faq-more a { color: var(--cyan); text-decoration: none; border-bottom: 1px solid rgba(47, 214, 232, 0.35); }
.faq-more a:hover { color: var(--text); border-color: var(--text); }

/* faq copyable card examples */

.faq-card {
  display: block;
  width: 100%;
  max-width: 560px;
  margin: 16px 0 4px;
  text-align: left;
  font-family: var(--font-mono);
  background: var(--bg-term);
  border: 1px solid var(--line);
  border-radius: var(--r-panel);
  padding: 0;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s var(--ease-out), box-shadow 0.2s;
}
.faq-card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
}
.faq-card:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
}
.faq-card.is-copied { border-color: rgba(74, 222, 128, 0.45); }

.fc-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
}
.fc-title { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; color: var(--text-dim); }
.fc-hint { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.fc-copied { display: none; font-size: 11px; }
.faq-card.is-copied .fc-hint { display: none; }
.faq-card.is-copied .fc-copied { display: inline; }

.fc-body { display: block; padding: 12px 16px 14px; }
.fc-row { display: flex; gap: 14px; padding: 3px 0; font-size: 12.5px; line-height: 1.5; }
.fc-row .t-card-k { flex: 0 0 108px; }
.fc-row .t-card-v { color: #c6c9dc; }

@media (max-width: 640px) {
  .faq-a { padding-right: 8px; }
  .faq-card { max-width: none; }
}

/* ---------- install ---------- */

.section-install { text-align: center; }
.section-install .headline { margin-inline: auto; max-width: none; }
.section-install .lede { margin-inline: auto; }

.install-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; margin: 30px 0 18px; }

.install-note { font-size: 12px; color: var(--text-faint); margin-bottom: 44px; }

.install-side .terminal { max-width: 640px; margin-inline: auto; text-align: left; }

.install-meta {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 40px;
  font-size: 13px;
  color: var(--text-faint);
}
.meta-link { color: var(--text-dim); }
.meta-link:hover { color: var(--cyan); }

/* ---------- footer ---------- */

.footer { border-top: 1px solid var(--line); padding: 30px 0; }
.footer-inner { display: flex; justify-content: center; align-items: center; gap: 12px; font-size: 13px; color: var(--text-faint); flex-wrap: wrap; }
.footer-item:hover { color: var(--text-dim); }
a.footer-item:hover { color: var(--mag); }

/* ---------- command palette ---------- */

.palette-overlay {
  position: fixed;
  inset: 0;
  z-index: 150;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 18vh 16px 16px;
  background: rgba(5, 6, 12, 0.7);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.palette-overlay.is-open { display: flex; }

.palette {
  width: min(580px, 100%);
  background: var(--bg-2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--r-panel);
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, 0.9), 0 0 60px -30px rgba(167, 139, 250, 0.5);
  overflow: hidden;
  animation: palettein 0.18s var(--ease-out);
}
@keyframes palettein {
  from { transform: translateY(-10px) scale(0.98); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.palette-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.palette-prompt { color: var(--mag); font-weight: 700; }
.palette-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 14px;
}
.palette-input::placeholder { color: var(--text-faint); }

.palette-list { list-style: none; max-height: 320px; overflow-y: auto; padding: 8px; }
.palette-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  padding: 10px 12px 4px;
}
.palette-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-btn);
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.palette-item .pi-hint { margin-left: auto; font-size: 11px; color: var(--text-faint); }
.palette-item.is-active { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.palette-item.is-active .pi-hint { color: var(--text-dim); }
.palette-empty { padding: 20px 12px; font-size: 13px; color: var(--text-faint); }

/* ---------- toast ---------- */

.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  z-index: 160;
  transform: translateX(-50%) translateY(12px);
  background: var(--bg-2);
  border: 1px solid rgba(47, 214, 232, 0.45);
  border-radius: var(--r-btn);
  padding: 10px 20px;
  font-size: 13px;
  color: var(--text);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s, transform 0.25s;
  max-width: calc(100vw - 32px);
}
.toast.is-on { opacity: 1; transform: translateX(-50%); }
.toast b { color: var(--cyan); font-weight: 600; }

/* ---------- responsive ---------- */

@media (max-width: 1024px) {
  .topbar-nav { display: none; }
  .hero { padding-top: 88px; }
  .hero-inner { grid-template-columns: 1fr; }
  .hero-headline { min-height: 0; }
  .step,
  .step-2 { grid-template-columns: 1fr; }
  .step-2 .step-copy { order: 1; }
  .step-2 .step-visual { order: 2; }
  .local-layout { grid-template-columns: 1fr; }
  .local-visual { order: 2; }
  .section { padding: 84px 0; }
}

@media (max-width: 560px) {
  body { font-size: 14px; }
  .wrap { width: calc(100% - 36px); }
  .t-pre { font-size: 11.5px; }
  .local-list { grid-template-columns: 1fr; }
  .ec-body { padding: 20px; }
  .ec-note { padding: 14px 20px; }
  .install-actions .btn { width: 100%; justify-content: center; }
  .silo-row:nth-child(2), .silo-row:nth-child(3) { margin-left: 0; }
  .silo-row-new, .silo-arrow { margin-left: 0; }
}

/* ---------- reduced motion: everything static, everything visible ---------- */

@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; }
  .t-pre.is-armed { opacity: 1; transform: none; }
  .caret { animation: none; }
  #constellation { display: none; }
}
