/* ============================================================
   dendrite.sh home page: motion layer.
   Loaded after site.css on index.html only. Every animation is
   paused off screen and disabled under prefers-reduced-motion.
   ============================================================ */

@font-face {
  font-family: "Fira Code";
  src: url("../assets/fonts/firacode-var.woff2") format("woff2-variations"),
       url("../assets/fonts/firacode-var.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root { --fira: "Fira Code", var(--mono); --grad: linear-gradient(95deg, #01F4FB, #3076F6 55%, #555CE7); }

.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;
}

/* ---------- Scroll reveal (only once JS has run) ---------- */
.js .reveal {
  opacity: 0; transform: translateY(22px);
  transition: opacity .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms),
              transform .8s cubic-bezier(.16, 1, .3, 1) var(--d, 0ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.home .hero { padding: 118px 0 72px; }
.home .hero::after {
  background: radial-gradient(70% 55% at 50% 30%, rgba(7, 11, 20, 0) 0%, rgba(7, 11, 20, .55) 70%, var(--bg) 100%);
}
.net-canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.hero-copy { position: relative; z-index: 2; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 11px; margin-bottom: 26px;
  border-radius: 999px; border: 1px solid var(--border-strong);
  background: rgba(10, 16, 29, .72); backdrop-filter: blur(8px);
  color: var(--text-dim); font-size: 13px; font-weight: 600;
  transition: border-color .2s ease, color .2s ease;
}
.hero-pill:hover { text-decoration: none; color: var(--text); border-color: var(--blue); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #23d18b; animation: live 2.2s ease-out infinite; }
@keyframes live {
  0% { box-shadow: 0 0 0 0 rgba(35, 209, 139, .55); }
  70%, 100% { box-shadow: 0 0 0 9px rgba(35, 209, 139, 0); }
}
.grad {
  background: var(--grad); background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: grad-shift 9s ease-in-out infinite;
}
@keyframes grad-shift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.hero .btn svg { transition: transform .2s ease; }
.hero .btn:hover svg { transform: translateY(2px); }
.hero-demo { position: relative; z-index: 2; margin-top: 60px; max-width: 1220px; scroll-margin-top: 84px; }

/* ---------- Stage: caption, demo, step chips ---------- */
.stage {
  position: relative; margin: 0; overflow: hidden; text-align: left;
  border-radius: 22px; border: 1px solid rgba(255, 255, 255, .07);
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(74, 141, 255, .16), transparent 70%),
    radial-gradient(circle at 1px 1px, rgba(255, 255, 255, .05) 1px, transparent 0) 0 0 / 24px 24px,
    #080c15;
  box-shadow: 0 40px 120px rgba(0, 0, 0, .55);
}
.stage-caption { display: flex; gap: 14px; align-items: flex-start; padding: 22px 30px 0; }
.stage-count { flex: none; padding-top: 3px; font-family: var(--fira); font-size: 12px; color: var(--blue); }
.stage-text { min-height: 1.5em; font-size: 16.5px; line-height: 1.5; color: rgba(255, 255, 255, .86); }
.stage-text.in { animation: cap-in .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes cap-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.stage-view { padding: 20px 30px 24px; }
.stage-poster { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--frame-border); }
.stage-controls {
  display: flex; align-items: center; gap: 16px;
  padding: 14px 30px; border-top: 1px solid rgba(255, 255, 255, .07);
}
.stage-play {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, .1); color: #fff; transition: background .15s ease;
}
.stage-play:hover { background: rgba(255, 255, 255, .2); }
.stage-play:focus-visible, .stage-chips button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.stage-chips { list-style: none; display: flex; flex: 1; gap: 10px; min-width: 0; }
.stage-chips li { flex: 1; min-width: 0; }
.stage-chips button { display: block; width: 100%; padding: 6px 0; border: 0; background: none; cursor: pointer; font: inherit; text-align: left; }
.chip-bar { display: block; height: 3px; border-radius: 3px; overflow: hidden; background: rgba(255, 255, 255, .12); }
.chip-bar i { display: block; height: 100%; background: var(--grad); transform: scaleX(0); transform-origin: left; }
.chip-label {
  display: block; margin-top: 8px; font-size: 12.5px; font-weight: 500;
  color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: color .2s ease;
}
.stage-chips button:hover .chip-label { color: rgba(255, 255, 255, .75); }
.stage-chips button[aria-current] .chip-label { color: #fff; }

/* ---------- The Dendrite UI, recreated (zinc theme, from the app) ---------- */
.dd-window {
  max-width: 1040px; margin: 0 auto; overflow: hidden;
  border: 1px solid #2a2a2e; border-radius: 12px; background: #111;
  box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 30px 80px rgba(5, 8, 20, .45);
  font-family: var(--sans); font-size: 13px; line-height: 1.45; color: #e4e4e7;
}
.dd-chrome { display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px; background: #18181b; border-bottom: 1px solid #27272a; }
.dd-lights { display: flex; gap: 6px; flex: none; }
.dd-lights i { width: 10px; height: 10px; border-radius: 50%; background: #ff5f57; opacity: .8; }
.dd-lights i:nth-child(2) { background: #febc2e; }
.dd-lights i:nth-child(3) { background: #28c840; }
.dd-lights.is-term i { width: 12px; height: 12px; opacity: 1; }
.dd-lights-pad { width: 42px; flex: none; }
.dd-url {
  display: flex; align-items: center; gap: 6px; min-width: 0; max-width: 70%; margin: 0 auto;
  padding: 2px 12px; border-radius: 6px; background: #111; color: #a1a1aa; font-size: 11.5px;
  white-space: nowrap; overflow: hidden;
}
.dd-body { position: relative; height: 470px; }
.dd-page { position: absolute; inset: 0; overflow: hidden; }
.dd-dash { background: #111; }
.dd-session {
  background-color: #111;
  background-image: radial-gradient(circle at 1px 1px, #26262a 1.2px, transparent 0);
  background-size: 24px 24px;
}
.dd-dash-inner { max-width: 620px; margin: 0 auto; padding: 20px 24px 0; }
.dd-dash-head { display: flex; align-items: center; gap: 12px; }
.dd-logo { display: block; border-radius: 6px; }
.dd-icons { display: flex; gap: 16px; color: #e4e4e7; }
.dd-muted { color: #a1a1aa; }
.dd-faint { color: #71717a; }
.dd-accent { color: #79b4d4; }
.dd-ml { margin-left: auto; }
.dd-rel { position: relative; display: inline-flex; }
.dd-row { display: flex; align-items: center; }
.dd-gap { gap: 8px; }
.dd-card { margin-top: 16px; padding: 10px 12px; border: 1px solid #27272a; border-radius: 8px; background: #18181b; }
.dd-notif { padding: 12px; color: #a1a1aa; font-size: 12.5px; }
.dd-h { font-size: 14px; font-weight: 500; color: #e4e4e7; }
.dd-strong { font-size: 13px; font-weight: 600; color: #e4e4e7; }
.dd-small { font-size: 11.5px; }
.dd-mono { font-family: var(--fira); font-size: 11px; font-variant-ligatures: none; }
.dd-fab {
  position: absolute; right: 16px; bottom: 16px; width: 48px; height: 48px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #79b4d4; color: #fff; box-shadow: 0 10px 20px rgba(0, 0, 0, .35);
}
.dd-foot { position: absolute; left: 16px; bottom: 10px; margin: 0; font-size: 10.5px; color: #71717a; }

.dd-modal-veil { position: absolute; inset: 0; z-index: 20; display: flex; align-items: flex-start; justify-content: center; padding: 72px 12px 0; }
.dd-modal-veil.is-center { align-items: center; padding-top: 0; }
.dd-modal { width: 100%; max-width: 460px; padding: 20px; border: 1px solid #2e2e33; border-radius: 12px; background: #18181b; }
.dd-modal-title { font-size: 16px; font-weight: 500; color: #e4e4e7; }
.dd-input {
  flex: 1; min-width: 0; height: 36px; display: flex; align-items: center; padding: 0 12px;
  border: 1px solid #3a3a40; border-radius: 6px; background: #27272a; color: #e4e4e7; font-size: 13px;
  white-space: nowrap; overflow: hidden;
}
.dd-input.is-focus { border-color: #79b4d4; }
.dd-input-plain { background: #18181b; }
.dd-caret { display: inline-block; width: 1px; height: 16px; margin-left: 1px; background: #e4e4e7; }
.dd-btn {
  display: inline-flex; align-items: center; height: 36px; padding: 0 12px; border-radius: 6px;
  background: #395565; color: rgba(255, 255, 255, .45); font-size: 13px; font-weight: 500;
}
.dd-btn.is-on { background: #79b4d4; color: #0b1a22; }
.dd-btn-sm { height: auto; padding: 4px 12px; font-size: 12.5px; }
.dd-btn-ghost { padding: 4px 12px; border: 1px solid #3f3f46; border-radius: 6px; color: #a1a1aa; font-size: 12.5px; font-weight: 500; }
.dd-label { margin-top: 16px; font-size: 10.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: #71717a; }
.dd-hosts { display: flex; flex-direction: column; gap: 2px; margin-top: 6px; font-size: 13px; }
.dd-host { position: relative; margin: 0 -8px; padding: 4px 8px; border-radius: 6px; }
.dd-host.is-hl { background: #27272a; }
.dd-host b { font-weight: 600; color: #e4e4e7; }
.dd-field-label { margin: 16px 0 6px; font-size: 13px; font-weight: 500; color: #e4e4e7; }

.dd-click { position: absolute; left: 50%; top: 50%; z-index: 50; pointer-events: none; }
.dd-ring { position: absolute; left: -20px; top: -20px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #79b4d4; }
.dd-ptr { position: absolute; left: 0; top: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); }

.dd-export {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid #3a3a40; border-radius: 6px; color: #a1a1aa; font-size: 12px; font-weight: 500;
}
.dd-export.is-on { border-color: #79b4d4; color: #79b4d4; }
.dd-audit { margin-top: 8px; overflow: hidden; border: 1px solid #27272a; border-radius: 8px; }
.dd-audit-row { display: flex; align-items: baseline; gap: 12px; padding: 7px 12px; border-bottom: 1px solid #27272a; font-size: 12px; }
.dd-audit-row:last-child { border-bottom: 0; }
.dd-audit-row:nth-child(odd) { background: rgba(255, 255, 255, .015); }
.dd-ev { flex: none; width: 9.5rem; font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.dd-who { flex: none; width: 5.5rem; color: #e4e4e7; overflow: hidden; text-overflow: ellipsis; }
.dd-what { min-width: 0; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-nowrap { white-space: nowrap; }

/* The Recording badge every participant sees, and the replay page. */
.dd-rec {
  position: absolute; top: 16px; right: 16px; z-index: 30; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px;
  border: 1px solid rgba(239, 68, 68, .4); border-radius: 999px; background: rgba(9, 9, 11, .8);
  color: #fca5a5; font-size: 12px; font-weight: 500; line-height: 16px;
}
.dd-rec i { width: 8px; height: 8px; border-radius: 50%; background: #ef4444; animation: dd-pulse 2s cubic-bezier(.4, 0, .6, 1) infinite; }
@keyframes dd-pulse { 50% { opacity: .5; } }
.dd-replay-link { padding: 4px 10px; border-radius: 6px; color: #01f4fb; font-size: 12.5px; font-weight: 500; transition: background .2s; }
.dd-replay-link.is-hl { background: rgba(1, 185, 216, .12); }
.dd-rp { max-width: 940px; padding-top: 16px; }
.dd-rp-back { font-size: 12px; color: #a1a1aa; }
.dd-rp-title { margin-top: 8px; font-size: 17px; font-weight: 600; color: #e4e4e7; }
.dd-rp-sub { margin-top: 2px; font-size: 12px; color: #a1a1aa; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-rp-sub b { font-weight: 600; color: #e4e4e7; }
.dd-rp-verdict {
  margin-top: 12px; padding: 7px 12px; border: 1px solid rgba(1, 185, 216, .4); border-radius: 6px;
  background: rgba(1, 185, 216, .06); color: #67e8f9; font-size: 12.5px;
}
.dd-rp-grid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; margin-top: 12px; }
.dd-rp-player { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #27272a; border-radius: 8px; }
.dd-rp-screen { height: 240px; background: #1e1e1e; font-family: var(--fira); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.dd-rp-screen .dd-log { padding: 6px 10px 10px; font-size: 11px; }
.dd-rp-controls {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border-top: 1px solid #27272a; background: #18181b; font-size: 11.5px;
}
.dd-rp-play { padding: 4px 12px; border-radius: 6px; background: #01b9d8; color: #09090b; font-size: 12px; font-weight: 500; }
.dd-rp-scrub { position: relative; flex: 1; min-width: 40px; height: 4px; border-radius: 2px; background: #3f3f46; }
.dd-rp-scrub i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 2px; background: #01b9d8; }
.dd-rp-scrub b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #01b9d8; }
.dd-rp-opt { display: inline-flex; align-items: center; gap: 5px; color: #a1a1aa; white-space: nowrap; }
.dd-rp-sel { padding: 1px 6px; border: 1px solid #3f3f46; border-radius: 5px; color: #e4e4e7; }
.dd-rp-check { display: inline-flex; align-items: center; justify-content: center; width: 13px; height: 13px; border-radius: 3px; background: #01b9d8; color: #09090b; }
.dd-rp-export { padding: 3px 8px; border: 1px solid rgba(1, 185, 216, .5); border-radius: 6px; color: #01f4fb; white-space: nowrap; }
.dd-rp-panel { min-width: 0; padding: 12px; border: 1px solid #27272a; border-radius: 8px; background: rgba(24, 24, 27, .6); }
.dd-rp-h { margin-bottom: 6px; font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: #71717a; }
.dd-rp-timeline { list-style: none; display: flex; flex-direction: column; gap: 1px; font-size: 12px; }
.dd-rp-timeline li { display: flex; gap: 10px; padding: 3px 6px; border-radius: 4px; color: #d4d4d8; transition: background .2s; }
.dd-rp-timeline li > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-rp-timeline .dd-mono { flex: none; color: #71717a; }
.dd-rp-timeline .is-input > span:last-child { color: #fde68a; }
.dd-rp-timeline .is-end > span:last-child { color: #a1a1aa; }
.dd-rp-timeline .is-now { background: #27272a; }
@media (max-width: 980px) {
  .dd-rp-skip { display: none; }
}

.dd-tb-wrap { position: absolute; left: 50%; top: 12px; z-index: 30; transform: translateX(-50%); }
.dd-toolbar {
  display: flex; align-items: center; gap: 4px; padding: 6px 10px;
  border: 1px solid #27272a; border-radius: 12px; background: rgba(24, 24, 27, .94); color: #e4e4e7;
}
.dd-tb-div { height: 20px; margin: 0 6px; border-left: 4px solid #27272a; }
.dd-tb-btn { position: relative; display: inline-flex; padding: 4px; border-radius: 6px; }
.dd-net-pos { position: absolute; left: 50%; top: calc(100% + 12px); width: 290px; transform: translateX(-50%); }
.dd-net { padding: 16px; border: 1px solid #27272a; border-radius: 12px; background: rgba(24, 24, 27, .96); }
.dd-net-title { text-align: center; font-size: 14px; font-weight: 500; }
.dd-net-sub { text-align: center; font-size: 12.5px; color: #a1a1aa; }
.dd-net-line { display: flex; align-items: center; margin-top: 20px; }
.dd-ball { flex: none; width: 16px; height: 16px; border-radius: 50%; border: 1px solid #d4d4d8; background: #52525b; }
.dd-netdash { flex: 1; margin: 0 4px; border-top: 2px dashed #52525b; }
.dd-net-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 11.5px; color: #d4d4d8; }
.dd-lat { color: #b3e9b3; }

.dd-names { position: absolute; left: 20px; top: 16px; z-index: 10; }
.dd-connected { margin-bottom: 6px; color: #9ae6b4; font-size: 14px; }
.dd-names ul { list-style: none; display: flex; flex-direction: column; }
.dd-names li { display: flex; align-items: center; gap: 12px; padding: 4px; }
.dd-dot { flex: none; width: 14px; height: 14px; border-radius: 50%; }
.dd-chip { padding: 2px 6px; border-radius: 4px; background: #27272a; color: #d4d4d8; font-size: 13px; font-weight: 500; }
.dd-viewer { display: flex; align-items: center; gap: 4px; color: #e0a458; font-size: 11px; }

.dd-term-pos { position: absolute; z-index: 10; left: 20px; top: 146px; bottom: 40px; width: 58%; }
.dd-term { height: 100%; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #3f3f46; border-radius: 8px; background: #171717; }
.dd-term-bar { display: flex; align-items: center; }
.dd-term-bar .dd-lights { flex: 1; padding: 0 12px; }
.dd-term-bar p { flex: 4; width: 0; padding: 8px; text-align: center; font-size: 13px; font-weight: 500; color: #d4d4d8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-term-bar > span:last-child { flex: 1; }
.dd-term-body { position: relative; flex: 1; min-height: 0; font-family: var(--fira); font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.dd-log {
  height: 100%; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: 4px 14px 12px; font-size: 12.5px; line-height: 1.5;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 22px);
}
.dd-log-inner { min-height: 100%; flex-shrink: 0; }
.dd-tl { white-space: pre; color: #ccc; }
.t-red { color: #f14c4c; }
.t-green { color: #23d18b; }
.t-dim { color: #8b8b8b; }
.dd-tcaret { display: inline-block; width: .6em; height: 1.15em; vertical-align: -.2em; background: #ccc; }
.dd-watermark { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.dd-watermark > div {
  position: absolute; inset: -60%; display: flex; flex-direction: column; justify-content: center; gap: 32px;
  transform: rotate(-20deg); font-size: 11px; color: #fff; white-space: nowrap;
}
.dd-term-avatar { position: absolute; right: 10px; bottom: 10px; }
.dd-avatar { display: flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-family: var(--sans); font-weight: 500; }

.dd-side { position: absolute; z-index: 20; right: 16px; top: 64px; bottom: 40px; width: 262px; }
.dd-side-chat { position: absolute; inset: 0; }
.dd-side-join, .dd-side-top { position: absolute; left: 0; right: 0; top: 0; }
.dd-chat { height: 100%; display: flex; flex-direction: column; border: 1px solid #27272a; border-radius: 12px; background: rgba(24, 24, 27, .94); }
.dd-chat-head { display: flex; align-items: center; gap: 12px; padding: 12px; color: #d4d4d8; font-size: 13px; font-weight: 500; }
.dd-red-dot { width: 12px; height: 12px; border-radius: 50%; background: #e0573e; }
.dd-chat-log { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden; padding: 4px 12px; }
.dd-chat-inner { min-height: 100%; flex-shrink: 0; display: flex; flex-direction: column; gap: 12px; }
.dd-msg { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; max-width: 82%; }
.dd-msg.me { margin-left: auto; align-items: flex-end; }
.dd-msg-who { padding-left: 10px; color: #a1a1aa; font-size: 11px; }
.dd-bubble { padding: 6px 10px; border-radius: 16px; background: #27272a; color: #e4e4e7; font-size: 12.5px; line-height: 1.35; }
.dd-msg.me .dd-bubble { background: #79b4d4; color: #0b1a22; }
.dd-chat-input { margin: 12px; padding: 6px 14px; border-radius: 16px; background: #27272a; color: #71717a; font-size: 13px; }
.dd-panel { padding: 14px; border: 1px solid #34343a; border-radius: 12px; background: rgba(24, 24, 27, .96); }
.dd-panel.is-ok { border-color: rgba(154, 230, 180, .45); }
.dd-panel.is-warn { display: flex; align-items: flex-start; gap: 10px; padding: 12px; border-color: rgba(224, 164, 88, .45); background: #18181b; }
.dd-ok { color: #9ae6b4; font-size: 13px; }
.dd-p { color: #e4e4e7; font-size: 13px; line-height: 1.45; }
.dd-p b { font-weight: 600; }
.dd-warn-icon { margin-top: 1px; color: #e0a458; }
.dd-cursor { position: absolute; z-index: 30; display: flex; align-items: flex-start; pointer-events: none; }
.dd-cursor span { margin-top: 16px; padding: 1px 6px; border-radius: 4px; background: #3f3f46; color: #fff; font-size: 10.5px; font-weight: 500; white-space: nowrap; }
.dd-settings { width: 100%; max-width: 470px; padding: 20px; border: 1px solid #27272a; border-radius: 12px; background: #111; }
.dd-set-title { text-align: center; font-size: 16px; font-weight: 600; }
.dd-set-sub { margin: 2px 0 14px; text-align: center; color: #a1a1aa; font-size: 12.5px; }
.dd-set-row { display: flex; align-items: center; gap: 16px; margin-top: 8px; padding: 10px 16px; border-radius: 8px; background: #171717; }
.dd-set-row > div { flex: 1; min-width: 0; }
.dd-set-box { flex: none; width: 140px; padding: 6px 10px; border: 1px solid #3f3f46; border-radius: 6px; background: #171717; color: #e4e4e7; font-size: 12px; }
.dd-toggle-wrap { flex: none; display: flex; align-items: center; gap: 8px; }
.dd-toggle { position: relative; width: 36px; height: 20px; border-radius: 999px; background: #3f3f46; }
.dd-toggle.is-on { background: #79b4d4; }
.dd-toggle i { position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; }
.dd-toggle.is-on i { left: 18px; }
.dd-toggle-label { color: #71717a; font-size: 12px; }
.dd-toggle-label.is-on { color: #e4e4e7; }

/* ---------- Install: the real installer, replayed ---------- */
.home .install { text-align: center; }
.install-demo { max-width: 940px; margin: 0 auto 28px; }
.it-window {
  overflow: hidden; border: 1px solid var(--frame-border); border-radius: 12px;
  background: #05080f; box-shadow: 0 30px 80px rgba(0, 0, 0, .45); text-align: left;
}
.it-bar {
  display: flex; align-items: center; gap: 12px; height: 36px; padding: 0 14px;
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  font-family: var(--fira); font-size: 12px; color: var(--text-faint);
}
.it-bar span:nth-child(2) { margin: 0 auto; }
.it-body {
  height: 400px; display: flex; flex-direction: column; justify-content: flex-end; overflow: hidden;
  padding: 14px 18px; font-family: var(--fira); font-size: 13px; line-height: 1.6; color: #cbd3e1;
  font-variant-ligatures: none;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
  mask-image: linear-gradient(to bottom, transparent 0, #000 28px);
}
.it-inner { min-height: 100%; flex-shrink: 0; }
.it-l { min-height: 1.6em; white-space: pre-wrap; word-break: break-word; }
.i-p { color: var(--blue); }
.i-info { color: #d670d6; font-weight: 700; }
.i-ok { color: #23d18b; }
.i-dim { color: #6f7b93; }
.i-b { color: #f2f5fb; font-weight: 700; }
.i-y { color: #e5c07b; }
.i-caret { display: inline-block; width: .6em; height: 1.1em; vertical-align: -.18em; background: var(--blue); }

/* ---------- Showcase: real screenshots with callouts ---------- */
.showcase-more { display: inline-block; margin-top: 22px; font-weight: 600; font-size: 14.5px; }
.showcase-visual .frame .shot-stage img.is-shown { animation: shot-in 1.1s cubic-bezier(.16, 1, .3, 1); }
@keyframes shot-in { from { transform: scale(1.035); } to { transform: none; } }
.callouts { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.callout-group { position: absolute; inset: 0; }
.callout {
  position: absolute; width: 0; height: 0; opacity: 0; transform: translateY(6px);
  transition: opacity .45s ease, transform .55s cubic-bezier(.16, 1, .3, 1);
}
.callout-group.is-shown .callout { opacity: 1; transform: none; transition-delay: var(--d); }
.callout .pin {
  position: absolute; left: -6px; top: -6px; width: 12px; height: 12px; border-radius: 50%;
  background: var(--blue); box-shadow: 0 0 0 4px rgba(74, 141, 255, .25);
}
.callout .pin::after {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--blue);
  animation: pin-pulse 2.2s ease-out infinite;
}
@keyframes pin-pulse { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.9); opacity: 0; } }
.callout .lbl {
  position: absolute; top: -13px; left: 16px; padding: 4px 10px; border-radius: 999px;
  background: rgba(7, 11, 20, .9); border: 1px solid var(--border-strong); backdrop-filter: blur(6px);
  color: var(--text); font-size: 12px; font-weight: 600; white-space: nowrap;
}
.callout.left .lbl { left: auto; right: 16px; }

/* ---------- Features: bento with micro-animations ---------- */
.bento { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.tile {
  position: relative; display: flex; flex-direction: column; overflow: hidden;
  padding: 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface);
  transition: border-color .25s ease, transform .25s ease;
}
.tile::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 0%), rgba(74, 141, 255, .12), transparent 45%);
  transition: opacity .3s ease;
}
.tile:hover { border-color: var(--border-strong); transform: translateY(-3px); }
.tile:hover::before { opacity: 1; }
.tile-lg { grid-column: span 2; }
.tile > h3 { margin: 18px 0 6px; font-size: 17px; font-weight: 700; }
.tile > p { color: var(--text-dim); font-size: 14.5px; }
.fx {
  position: relative; height: 150px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2);
  font-size: 12.5px; line-height: 1.4;
}
.tile-lg .fx { height: 180px; }
.fx, .fx * { animation-play-state: paused !important; }
.tile.is-live .fx, .tile.is-live .fx * { animation-play-state: running !important; }
.swap { position: relative; display: block; height: 18px; }
.swap > span, .pk-msgs > span, .ft-msgs > span, .upd-msgs > span, .en-msgs > span {
  position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
@keyframes show-a { 0%, 45% { opacity: 1; transform: none; } 52%, 92% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes show-b { 0%, 48% { opacity: 0; transform: translateY(6px); } 55%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Passkey */
.pk-card { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.pk-print {
  position: relative; width: 74px; height: 74px; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--border-strong); border-radius: 18px; background: var(--surface-2); color: #66748e;
  animation: pk-print 5s infinite;
}
@keyframes pk-print {
  0%, 45% { color: #66748e; border-color: #2a3a5e; box-shadow: none; }
  55%, 90% { color: #23d18b; border-color: rgba(35, 209, 139, .5); box-shadow: 0 0 26px rgba(35, 209, 139, .25); }
  100% { color: #66748e; }
}
.pk-scan {
  position: absolute; left: 8px; right: 8px; top: 12%; height: 2px; opacity: 0;
  background: linear-gradient(90deg, transparent, #4a8dff, transparent); box-shadow: 0 0 10px #4a8dff;
  animation: pk-scan 5s infinite;
}
@keyframes pk-scan { 0% { top: 12%; opacity: 0; } 5% { opacity: 1; } 22% { top: 85%; } 39% { top: 12%; } 46% { top: 60%; opacity: 1; } 50%, 100% { opacity: 0; } }
.pk-msgs { position: relative; display: block; width: 240px; height: 20px; text-align: center; font-size: 13px; font-weight: 600; }
.pk-a { color: var(--text-dim); animation: show-a 5s infinite; }
.pk-b { color: #23d18b; opacity: 0; animation: show-b 5s infinite; }

/* Just-in-time approvals */
.jit-card { position: relative; width: min(340px, 88%); height: 98px; }
.jit-req, .jit-ok {
  position: absolute; inset: 0; padding: 14px 16px; text-align: left;
  border: 1px solid var(--border-strong); border-radius: 12px; background: var(--surface-2); font-size: 13px;
}
.jit-req { animation: show-a 6s infinite; }
.jit-req p { color: var(--text); font-size: 13px; }
.jit-req b { font-weight: 600; }
.jit-btns { display: flex; gap: 8px; margin-top: 10px; }
.jit-approve { position: relative; padding: 4px 12px; border-radius: 6px; background: #79b4d4; color: #0b1a22; font-size: 12.5px; font-weight: 600; animation: jit-press 6s infinite; }
.jit-deny { padding: 4px 12px; border: 1px solid #3f3f46; border-radius: 6px; color: var(--text-dim); font-size: 12.5px; }
.jit-ok {
  display: flex; align-items: center; justify-content: center; opacity: 0;
  border-color: rgba(35, 209, 139, .45); color: #23d18b; font-weight: 600; animation: show-b 6s infinite;
}
@keyframes jit-press { 0%, 40% { transform: none; } 42% { transform: scale(.92); } 45%, 100% { transform: none; } }
.fx-ptr { position: absolute; left: 50%; top: 50%; opacity: 0; filter: drop-shadow(0 2px 4px rgba(0, 0, 0, .5)); animation: jit-ptr 6s infinite; }
@keyframes jit-ptr {
  0% { transform: translate(110px, 50px); opacity: 0; }
  10% { opacity: 1; }
  36%, 44% { transform: translate(-2px, -2px); opacity: 1; }
  52%, 100% { transform: translate(-2px, -2px); opacity: 0; }
}

/* Audit log */
.fx-audit {
  align-items: flex-start; justify-content: stretch;
  -webkit-mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
  mask-image: linear-gradient(transparent, #000 22%, #000 78%, transparent);
}
.audit-scroll { width: 100%; animation: audit-scroll 16s linear infinite; }
@keyframes audit-scroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }
.audit-set p {
  display: flex; gap: 16px; padding: 7px 18px; border-bottom: 1px solid rgba(255, 255, 255, .04);
  font-family: var(--fira); font-size: 12px; font-variant-ligatures: none; text-align: left;
}
.audit-set span { color: var(--text-faint); }
.audit-set b { flex: 1; color: #8ab8ff; font-weight: 500; }
.audit-set em { font-style: normal; color: var(--text-dim); }

/* File transfer */
.fx-file { flex-direction: column; gap: 12px; }
.ft-term {
  position: relative; width: min(380px, 90%); height: 86px; padding: 10px 12px;
  display: flex; justify-content: space-between; align-items: flex-start;
  border: 1px dashed var(--border-strong); border-radius: 10px;
  font-family: var(--fira); font-size: 12px; color: var(--text-faint);
  animation: ft-zone 6s infinite;
}
@keyframes ft-zone {
  0%, 12% { border-color: #2a3a5e; background: transparent; }
  18%, 55% { border-color: #4a8dff; background: rgba(74, 141, 255, .06); }
  62%, 100% { border-color: #2a3a5e; background: transparent; }
}
.ft-prompt { color: #ccc; }
.ft-drop { font-family: var(--sans); font-size: 11px; }
.ft-file {
  position: absolute; left: 50%; bottom: 10px; margin-left: -100px; width: 200px;
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2);
  font-family: var(--sans); font-size: 12px; color: var(--text); white-space: nowrap;
  animation: ft-file 6s infinite;
}
.ft-file small { color: var(--text-faint); }
@keyframes ft-file {
  0% { transform: translate(90px, -90px) rotate(8deg); opacity: 0; }
  6% { opacity: 1; }
  18%, 92% { transform: none; opacity: 1; }
  100% { transform: none; opacity: 0; }
}
.ft-bar { display: block; width: min(380px, 90%); height: 4px; overflow: hidden; border-radius: 4px; background: var(--surface-2); }
.ft-bar i { display: block; height: 100%; background: var(--grad); transform-origin: left; animation: ft-bar 6s infinite; }
@keyframes ft-bar { 0%, 20% { transform: scaleX(0); } 52% { transform: scaleX(1); } 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.ft-msgs { position: relative; display: block; width: min(380px, 90%); height: 18px; text-align: center; font-size: 12px; }
.ft-a { color: var(--text-dim); animation: show-a 6s infinite; }
.ft-b { color: #23d18b; opacity: 0; font-family: var(--fira); font-variant-ligatures: none; animation: show-b 6s infinite; }

/* RBAC */
.fx-rbac { padding: 0 12px; }
.rb-col { flex: none; height: 90px; display: flex; flex-direction: column; justify-content: space-between; }
.rb-col span {
  padding: 3px 7px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2);
  font-family: var(--fira); font-size: 10.5px; color: var(--text-dim); white-space: nowrap;
}
.rb-roles span { border-color: rgba(74, 141, 255, .4); color: #8ab8ff; }
.rb-lines { flex: 1; min-width: 18px; height: 90px; overflow: visible; }
.rb-lines path {
  fill: none; stroke: #4a8dff; stroke-width: 1.5; vector-effect: non-scaling-stroke;
  stroke-dasharray: 1; stroke-dashoffset: 0; animation: rb-draw 6s infinite;
}
.rb-lines path:nth-child(2) { animation-delay: .35s; }
.rb-lines path:nth-child(3) { animation-delay: .7s; }
@keyframes rb-draw { 0% { stroke-dashoffset: 1; } 25%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -1; } }

/* View-only */
.vo-term {
  position: relative; width: min(280px, 90%); padding: 12px 14px; text-align: left;
  border: 1px solid #3f3f46; border-radius: 10px; background: #171717;
  font-family: var(--fira); font-size: 12px; font-variant-ligatures: none;
}
.vo-who { margin-bottom: 6px; color: #e0a458; font-family: var(--sans); font-size: 11.5px; font-weight: 600; }
.vo-who small { color: var(--text-faint); font-weight: 500; }
.vo-line { color: #ccc; white-space: nowrap; }
.vo-line::before { content: "$ "; color: var(--blue); }
.vo-typed { position: relative; display: inline-block; vertical-align: bottom; width: 15ch; overflow: hidden; white-space: nowrap; animation: vo-type 6s steps(15) infinite; }
@keyframes vo-type { 0%, 8% { width: 0; } 40%, 92% { width: 15ch; } 100% { width: 0; } }
.vo-typed::after { content: ""; position: absolute; left: 0; top: 52%; width: 0; height: 1.5px; background: #f14c4c; animation: vo-strike 6s infinite; }
@keyframes vo-strike { 0%, 45% { width: 0; } 55%, 92% { width: 100%; } 100% { width: 0; } }
.vo-badge {
  position: absolute; right: 10px; bottom: -12px; padding: 3px 9px; opacity: 0;
  border: 1px solid rgba(241, 76, 76, .5); border-radius: 999px; background: #2a1414;
  color: #f8a5a5; font-family: var(--sans); font-size: 11px; font-weight: 600; white-space: nowrap;
  animation: pop-in 6s infinite;
}
@keyframes pop-in { 0%, 50% { opacity: 0; transform: translateY(6px); } 58%, 90% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Defence in depth */
.def-win { position: relative; width: min(280px, 90%); height: 108px; overflow: hidden; border: 1px solid #3f3f46; border-radius: 10px; background: #171717; }
.def-lines { padding: 10px 12px; font-family: var(--fira); font-size: 10.5px; line-height: 1.6; color: #9aa3b5; font-variant-ligatures: none; text-align: left; white-space: nowrap; overflow: hidden; }
.def-lines span { color: #ccc; }
.def-wm {
  position: absolute; inset: -40%; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  color: rgba(255, 255, 255, .07); font-size: 10px; white-space: nowrap;
  transform: rotate(-18deg); animation: def-drift 12s linear infinite;
}
@keyframes def-drift { from { transform: rotate(-18deg) translateX(0); } to { transform: rotate(-18deg) translateX(-70px); } }
.def-toast {
  position: absolute; left: 50%; bottom: 12px; display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 10px; border: 1px solid rgba(242, 201, 109, .45); border-radius: 8px; background: #1a1708;
  color: #f2c96d; font-size: 11.5px; font-weight: 600; white-space: nowrap; opacity: 0;
  transform: translateX(-50%); animation: def-toast 6s infinite;
}
@keyframes def-toast {
  0%, 35% { opacity: 0; transform: translate(-50%, 8px); }
  42%, 80% { opacity: 1; transform: translate(-50%, 0); }
  88%, 100% { opacity: 0; transform: translate(-50%, 8px); }
}

/* Deploy anywhere */
.fx-dep { flex-direction: column; gap: 8px; }
.dep {
  width: 150px; padding: 5px 0; text-align: center; border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--surface-2); color: var(--text-faint); font-size: 12.5px; font-weight: 600;
  animation: dep 6s infinite;
}
.dep.d2 { animation-delay: 2s; }
.dep.d3 { animation-delay: 4s; }
@keyframes dep {
  0%, 30% { color: var(--text); border-color: #4a8dff; box-shadow: 0 0 0 3px rgba(74, 141, 255, .15); }
  36%, 100% { color: var(--text-faint); border-color: #2a3a5e; box-shadow: none; }
}
.fx-dep small { margin-top: 4px; color: var(--text-faint); font-size: 11px; }

/* Admin dashboard */
.fx-admin { flex-direction: column; gap: 16px; }
.ad-tabs { position: relative; display: flex; gap: 4px; padding: 3px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); }
.ad-tabs span { position: relative; z-index: 1; width: 52px; padding: 3px 0; text-align: center; color: var(--text-dim); font-size: 10.5px; }
.ad-ind {
  position: absolute; z-index: 0; top: 3px; bottom: 3px; left: 3px; width: 52px; border-radius: 6px;
  border: 1px solid rgba(74, 141, 255, .45); background: rgba(74, 141, 255, .2);
  animation: ad-ind 8s infinite;
}
@keyframes ad-ind {
  0%, 20% { transform: translateX(0); }
  25%, 45% { transform: translateX(56px); }
  50%, 70% { transform: translateX(112px); }
  75%, 95% { transform: translateX(168px); }
  100% { transform: translateX(0); }
}
.ad-bars { display: flex; align-items: flex-end; gap: 8px; height: 50px; }
.ad-bars i { width: 16px; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(#4a8dff, #2f6fed); transform-origin: bottom; animation: ad-bar 3.6s ease-in-out infinite alternate; }
.ad-bars i:nth-child(2n) { animation-delay: -1.3s; }
.ad-bars i:nth-child(3n) { animation-delay: -2.2s; }
@keyframes ad-bar { from { transform: scaleY(.45); } to { transform: scaleY(1); } }

/* Signed updates */
.fx-upd { flex-direction: column; align-items: stretch; gap: 8px; padding: 0 20px; font-family: var(--fira); font-size: 11.5px; font-variant-ligatures: none; text-align: left; }
.upd-cmd { color: #ccc; }
.upd-cmd span { color: var(--blue); }
.upd-msgs { position: relative; display: block; height: 18px; }
.upd-a { color: var(--text-faint); animation: show-a 6s infinite; }
.upd-b { color: #23d18b; opacity: 0; animation: show-b 6s infinite; }

/* Telemetry */
.fx-tel { flex-direction: column; justify-content: flex-end; gap: 8px; padding-bottom: 12px; }
.fx-tel svg { width: 100%; height: 84px; }
.tel-line { fill: none; stroke: #4a8dff; stroke-width: 2; stroke-dasharray: 1; stroke-dashoffset: 0; animation: tel-draw 6s ease-in-out infinite; }
.tel-area { fill: rgba(74, 141, 255, .12); animation: tel-area 6s ease-in-out infinite; }
@keyframes tel-draw { 0% { stroke-dashoffset: 1; } 50%, 92% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 0; opacity: 0; } }
@keyframes tel-area { 0%, 30% { opacity: 0; } 55%, 90% { opacity: 1; } 100% { opacity: 0; } }
.fx-tel small { color: var(--text-faint); font-size: 11.5px; }
.fx-tel small b { color: var(--text); }

/* Enrolment */
.fx-enrol { flex-direction: column; gap: 12px; }
.en-ring circle { fill: none; stroke: var(--border-strong); stroke-width: 3; }
.en-ring .en-prog {
  stroke: #4a8dff; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0;
  transform: rotate(-90deg); transform-origin: center; animation: en-count 6s linear infinite;
}
@keyframes en-count { 0% { stroke-dashoffset: 0; stroke: #4a8dff; } 70% { stroke-dashoffset: .85; stroke: #4a8dff; } 72%, 100% { stroke-dashoffset: 0; stroke: #23d18b; } }
.en-msgs { position: relative; display: block; width: 100%; height: 18px; text-align: center; font-size: 12px; }
.en-a { color: var(--text-dim); animation: en-a 6s infinite; }
.en-b { color: #23d18b; opacity: 0; font-weight: 600; animation: en-b 6s infinite; }
@keyframes en-a { 0%, 68% { opacity: 1; } 72%, 100% { opacity: 0; } }
@keyframes en-b { 0%, 70% { opacity: 0; } 74%, 96% { opacity: 1; } 100% { opacity: 0; } }

.new-tag {
  display: inline-block; margin-left: 6px; padding: 1px 7px; vertical-align: 2px;
  border: 1px solid rgba(74, 141, 255, .45); border-radius: 999px; background: rgba(74, 141, 255, .12);
  color: #8ab8ff; font-size: 10.5px; font-weight: 600; letter-spacing: .02em;
}
.tier-tag { border-color: rgba(224, 164, 88, .45); background: rgba(224, 164, 88, .12); color: #e9b872; }
.jit-ok { flex-direction: column; gap: 3px; }

/* Agents that verify the server: key shares, then sealed frames both ways */
.fx-seal { flex-direction: column; gap: 10px; padding: 0 14px; }
.sl-row { display: flex; align-items: center; gap: 8px; width: 100%; max-width: 480px; }
.sl-node {
  flex: none; display: flex; flex-direction: column; gap: 2px; padding: 7px 10px;
  border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface-2);
  font-family: var(--fira); font-size: 11px; font-variant-ligatures: none; color: var(--text); white-space: nowrap; text-align: left;
}
.sl-node small { color: var(--text-faint); font-size: 10px; }
.sl-pin b { color: #23d18b; font-weight: 600; animation: sl-pin 6s infinite; }
@keyframes sl-pin { 0%, 18% { opacity: 0; } 24%, 94% { opacity: 1; } 100% { opacity: 0; } }
.sl-wire { position: relative; flex: 1; min-width: 28px; height: 24px; }
.sl-wire::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1.5px; background: linear-gradient(90deg, #2a3a5e, #4a8dff, #2a3a5e); }
.sl-key, .sl-pkt { position: absolute; top: 50%; opacity: 0; }
.sl-key { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: #e0a458; box-shadow: 0 0 8px rgba(224, 164, 88, .6); }
.sl-pkt {
  width: 16px; height: 10px; margin: -5px 0 0 -8px; border-radius: 3px;
  border: 1px solid rgba(74, 141, 255, .75); background: rgba(74, 141, 255, .25); box-shadow: 0 0 8px rgba(74, 141, 255, .4);
}
.sl-k1 { animation: sl-k1 6s infinite; }
.sl-k2 { animation: sl-k2 6s infinite; }
.sl-p1 { animation: sl-p1 6s infinite; }
.sl-p2 { animation: sl-p2 6s infinite; }
.sl-p3 { animation: sl-p3 6s infinite; }
@keyframes sl-k1 { 0%, 4% { left: 0; opacity: 0; } 6% { opacity: 1; } 18% { left: 100%; opacity: 1; } 20%, 100% { left: 100%; opacity: 0; } }
@keyframes sl-k2 { 0%, 18% { left: 100%; opacity: 0; } 20% { opacity: 1; } 32% { left: 0; opacity: 1; } 34%, 100% { left: 0; opacity: 0; } }
@keyframes sl-p1 { 0%, 40% { left: 0; opacity: 0; } 42% { opacity: 1; } 58% { left: 100%; opacity: 1; } 60%, 100% { left: 100%; opacity: 0; } }
@keyframes sl-p2 { 0%, 54% { left: 100%; opacity: 0; } 56% { opacity: 1; } 72% { left: 0; opacity: 1; } 74%, 100% { left: 0; opacity: 0; } }
@keyframes sl-p3 { 0%, 70% { left: 0; opacity: 0; } 72% { opacity: 1; } 88% { left: 100%; opacity: 1; } 90%, 100% { left: 100%; opacity: 0; } }
.sl-proxy { color: var(--text-faint); font-size: 11px; animation: sl-proxy 6s infinite; }
@keyframes sl-proxy { 0%, 44% { opacity: 0; } 50%, 92% { opacity: 1; } 100% { opacity: 0; } }
.sl-msgs { position: relative; display: block; width: 100%; height: 18px; text-align: center; font-size: 12px; }
.sl-msgs > span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sl-a { color: #e9b872; animation: sl-a 6s infinite; }
.sl-b { color: #23d18b; font-weight: 600; opacity: 0; animation: sl-b 6s infinite; }
@keyframes sl-a { 0%, 36% { opacity: 1; transform: none; } 40%, 96% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes sl-b { 0%, 38% { opacity: 0; transform: translateY(6px); } 42%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Failover between servers: the first record is dead, the next one answers */
.fx-srv { padding: 0 14px; }
.sv-box {
  width: 100%; max-width: 230px; padding: 10px 12px; text-align: left;
  border: 1px solid var(--border-strong); border-radius: 10px; background: #0d1426;
  font-family: var(--fira); font-size: 11px; font-variant-ligatures: none;
}
.sv-q { margin-bottom: 6px; color: var(--text-faint); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-r { display: flex; align-items: center; gap: 8px; padding: 3px 6px; border-radius: 5px; color: var(--text-dim); }
.sv-r span { flex: none; width: 16px; color: var(--text-faint); }
.sv-r em { margin-left: auto; font-style: normal; }
.sv-r1 { animation: sv-r1 6s infinite; }
.sv-r1 em { color: #f14c4c; animation: sv-x 6s infinite; }
.sv-r2 { animation: sv-r2 6s infinite; }
.sv-r2 em { color: #23d18b; animation: sv-ok 6s infinite; }
@keyframes sv-r1 {
  0%, 8% { background: transparent; color: var(--text-dim); text-decoration: none; }
  12%, 34% { background: rgba(74, 141, 255, .15); color: var(--text); text-decoration: none; }
  40%, 100% { background: transparent; color: var(--text-faint); text-decoration: line-through; }
}
@keyframes sv-x { 0%, 30% { opacity: 0; } 36%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes sv-r2 { 0%, 40% { background: transparent; color: var(--text-dim); } 46%, 94% { background: rgba(35, 209, 139, .12); color: var(--text); } 100% { background: transparent; } }
@keyframes sv-ok { 0%, 50% { opacity: 0; } 56%, 94% { opacity: 1; } 100% { opacity: 0; } }

/* Invisible to scanners: a bare 404 for the scanner, admitted for the agent */
.fx-adm { padding: 0 14px; }
.adm-term {
  display: flex; flex-direction: column; gap: 10px; width: 100%; max-width: 250px; padding: 12px; text-align: left;
  border: 1px solid #3f3f46; border-radius: 10px; background: #171717;
  font-family: var(--fira); font-size: 10.5px; font-variant-ligatures: none;
}
.adm-term p { display: flex; align-items: center; gap: 6px; color: #ccc; white-space: nowrap; }
.adm-term p > span { flex: none; width: 46px; color: var(--text-faint); }
.adm-term b { margin-left: auto; padding: 1px 7px; border-radius: 999px; font-family: var(--sans); font-size: 10.5px; font-weight: 700; }
.adm-404 { border: 1px solid rgba(241, 76, 76, .5); background: #2a1414; color: #f8a5a5; animation: adm-a 6s infinite; }
.adm-ok { border: 1px solid rgba(35, 209, 139, .45); background: rgba(35, 209, 139, .1); color: #23d18b; animation: adm-b 6s infinite; }
.adm-1 { animation: adm-l1 6s infinite; }
.adm-2 { animation: adm-l2 6s infinite; }
@keyframes adm-l1 { 0%, 4% { opacity: 0; } 8%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes adm-l2 { 0%, 44% { opacity: 0; } 48%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes adm-a { 0%, 22% { opacity: 0; } 28%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes adm-b { 0%, 62% { opacity: 0; } 68%, 94% { opacity: 1; } 100% { opacity: 0; } }
@media (max-width: 760px) {
  .sl-node { padding: 6px 8px; font-size: 10px; }
  .sl-node small { font-size: 9.5px; }
  .sl-pin b { display: block; }
}
.jit-ok small { color: var(--text-dim); font-size: 11.5px; font-weight: 500; }
.fx-rbac .rb-col, .fx-rbac .rb-lines { height: 100px; }
.rb-lines path:nth-child(4) { animation-delay: 1.05s; }

/* Session recording: a replay at 8x, then the integrity verdict */
.rec-player {
  width: min(400px, 92%); padding: 9px 12px 8px; text-align: left;
  border: 1px solid #3f3f46; border-radius: 10px; background: #171717;
}
.rec-title { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; color: var(--text-dim); font-size: 11px; font-weight: 600; }
.rec-speed { padding: 0 6px; border: 1px solid #3f3f46; border-radius: 5px; color: var(--text); font-weight: 500; }
.rec-screen { height: 68px; font-family: var(--fira); font-size: 11px; font-variant-ligatures: none; line-height: 17px; color: #ccc; }
.rec-screen p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-screen p span { color: var(--blue); }
.rec-l1 { animation: rec-l1 6s infinite; }
.rec-l2 { animation: rec-l2 6s infinite; }
.rec-l3 { animation: rec-l3 6s infinite; }
.rec-l4 { animation: rec-l4 6s infinite; }
@keyframes rec-l1 { 0%, 5% { opacity: 0; } 7%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rec-l2 { 0%, 17% { opacity: 0; } 19%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rec-l3 { 0%, 31% { opacity: 0; } 33%, 94% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rec-l4 { 0%, 45% { opacity: 0; } 47%, 94% { opacity: 1; } 100% { opacity: 0; } }
.rec-bar { position: relative; height: 4px; margin: 10px 0; border-radius: 2px; background: #3f3f46; }
.rec-fill { position: absolute; inset: 0; border-radius: 2px; background: #01b9d8; transform-origin: left; animation: rec-fill 6s infinite; }
@keyframes rec-fill { 0% { transform: scaleX(0); } 55%, 94% { transform: scaleX(1); opacity: 1; } 100% { transform: scaleX(1); opacity: 0; } }
.rec-bar em { position: absolute; top: -3px; width: 2px; height: 10px; border-radius: 1px; background: #fde68a; opacity: .75; }
.rec-head { position: absolute; top: 50%; left: 100%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #01b9d8; animation: rec-head 6s infinite; }
@keyframes rec-head { 0% { left: 0%; } 55%, 94% { left: 100%; opacity: 1; } 100% { left: 100%; opacity: 0; } }
.rec-msgs { position: relative; display: block; height: 18px; font-size: 11.5px; }
.rec-msgs > span { position: absolute; inset: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rec-a { color: var(--text-dim); animation: rec-a 6s infinite; }
.rec-b { color: #67e8f9; font-weight: 600; opacity: 0; animation: rec-b 6s infinite; }
@keyframes rec-a { 0%, 54% { opacity: 1; transform: none; } 58%, 94% { opacity: 0; transform: translateY(-6px); } 100% { opacity: 1; transform: none; } }
@keyframes rec-b { 0%, 56% { opacity: 0; transform: translateY(6px); } 60%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Audit to SIEM: events fan out to every sink, and the hash chain verifies */
.fx-siem { flex-direction: column; gap: 12px; }
.sm-flow { display: flex; align-items: center; }
.sm-src {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px;
  border: 1px solid rgba(74, 141, 255, .45); border-radius: 8px; background: rgba(74, 141, 255, .12);
  color: #8ab8ff; font-family: var(--fira); font-size: 11.5px; font-weight: 500;
}
.sm-src small { color: var(--text-faint); font-size: 9.5px; font-weight: 400; white-space: nowrap; }
.sm-lines { flex: none; overflow: visible; }
.sm-lines path { fill: none; stroke: #4a8dff; stroke-width: 1.5; stroke-dasharray: 3 7; opacity: .75; animation: sm-flow 1s linear infinite; }
@keyframes sm-flow { to { stroke-dashoffset: -10; } }
.sm-sinks { display: flex; flex-direction: column; justify-content: space-between; height: 120px; }
.sm-sinks span {
  padding: 2px 8px; border: 1px solid var(--border-strong); border-radius: 6px; background: var(--surface-2);
  font-family: var(--fira); font-size: 10.5px; color: var(--text-dim); white-space: nowrap;
  animation: sm-ack 5s infinite;
}
.sm-sinks span:nth-child(2) { animation-delay: .3s; }
.sm-sinks span:nth-child(3) { animation-delay: .6s; }
.sm-sinks span:nth-child(4) { animation-delay: .9s; }
.sm-sinks span:nth-child(5) { animation-delay: 1.2s; }
@keyframes sm-ack {
  0%, 30%, 100% { border-color: var(--border-strong); color: var(--text-dim); }
  8%, 20% { border-color: rgba(35, 209, 139, .5); color: #23d18b; }
}
.sm-chain { display: flex; align-items: center; font-size: 11.5px; }
.sm-chain i { position: relative; width: 10px; height: 10px; border: 1.5px solid var(--border-strong); border-radius: 3px; animation: sm-link 5s infinite; }
.sm-chain i + i { margin-left: 8px; }
.sm-chain i + i::before { content: ""; position: absolute; left: -9.5px; top: 3px; width: 8px; height: 1.5px; background: var(--border-strong); }
.sm-chain i:nth-child(2) { animation-delay: .2s; }
.sm-chain i:nth-child(3) { animation-delay: .4s; }
.sm-chain i:nth-child(4) { animation-delay: .6s; }
.sm-chain i:nth-child(5) { animation-delay: .8s; }
@keyframes sm-link {
  0%, 40%, 100% { border-color: var(--border-strong); background: transparent; }
  48%, 88% { border-color: #23d18b; background: rgba(35, 209, 139, .25); }
}
.sm-chain span { margin-left: 10px; color: var(--text-faint); animation: sm-ok 5s infinite; }
@keyframes sm-ok { 0%, 60%, 100% { color: var(--text-faint); } 66%, 90% { color: #23d18b; } }

/* ---------- Pricing, FAQ, CTA polish ---------- */
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
.tier { transition: transform .25s ease, border-color .25s ease; }
.tier:hover { transform: translateY(-4px); }
.tier.featured {
  border: 2px solid transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    conic-gradient(from var(--ang), #01F4FB, #3076F6, #555CE7, #01F4FB) border-box;
  animation: spin-ang 6s linear infinite;
}
@keyframes spin-ang { to { --ang: 360deg; } }
.price .amt { display: inline-block; }
.price .amt.flip { animation: flip .45s cubic-bezier(.16, 1, .3, 1); }
@keyframes flip { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
:root { interpolate-size: allow-keywords; }
.faq details::details-content { block-size: 0; overflow: hidden; transition: block-size .35s ease, content-visibility .35s allow-discrete; }
.faq details[open]::details-content { block-size: auto; }
.cta-band { position: relative; overflow: hidden; }
.cta-band > .container { position: relative; z-index: 2; }
.cta-band .net-canvas { opacity: .7; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .home .hero { padding: 84px 0 48px; }
  .hero-demo { margin-top: 40px; padding: 0 12px; }
  .stage { border-radius: 18px; }
  .stage-caption { padding: 16px 18px 0; }
  .stage-text { min-height: 3em; font-size: 15px; }
  .stage-view { padding: 16px 10px 14px; }
  .stage-controls { padding: 12px 16px; }
  .chip-label { display: none; }
  .dd-body { height: 440px; }
  .dd-foot { display: none; }
  .dd-names { left: 12px; top: 54px; }
  .dd-names ul { flex-direction: row; flex-wrap: wrap; column-gap: 10px; }
  .dd-names li { gap: 8px; padding: 2px; }
  .dd-chip { font-size: 12px; }
  .dd-viewer { display: none; }
  .dd-connected { font-size: 13px; margin-bottom: 4px; }
  .dd-term-pos { left: 12px; right: 12px; top: 112px; bottom: 12px; width: auto; }
  .dd-log { font-size: 10.5px; }
  .dd-side { left: 12px; right: 12px; top: 42%; bottom: 12px; width: auto; }
  .dd-side-join { top: auto; bottom: 0; }
  .dd-set-box, .dd-toggle-label, .dd-who { display: none; }
  .dd-ev { width: 8.5rem; }
  .dd-rec { top: 52px; right: 12px; padding: 2px 8px; font-size: 11px; }
  .dd-rp-grid { grid-template-columns: minmax(0, 1fr); }
  .dd-rp-screen { height: 150px; }
  .dd-rp-opt, .dd-rp-export { display: none; }
  .dd-rp-timeline li:not(.is-now) { display: none; }
  .it-body { height: 360px; font-size: 11px; padding: 12px; }
  .bento { grid-template-columns: 1fr; }
  .tile-lg { grid-column: auto; }
  .callout .lbl { font-size: 10.5px; padding: 3px 8px; }
}

/* ---------- Reduced motion: still frames, no loops ---------- */
@media (prefers-reduced-motion: reduce) {
  .fx *, .live-dot, .dd-rec i, .grad, .tier.featured, .callout .pin::after, .stage-text.in,
  .showcase-visual .frame .shot-stage img.is-shown { animation: none !important; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
}
.i-b-ok { font-weight: 700; }
.billing-toggle { display: flex; }
