/* whitelabel-demo · demo.whitelabel.dev
   Static, black-and-white, ten demo cards each with a unique animation. */

:root {
  --bg: #050505;
  --ink: #ffffff;
  --ink-soft: rgba(255,255,255,0.65);
  --ink-quiet: rgba(255,255,255,0.4);
  --line: rgba(255,255,255,0.18);
  --line-soft: rgba(255,255,255,0.08);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--ink); color: var(--bg); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 1rem; top: 1rem; padding: 0.5rem 1rem; background: #fff; color: #000; z-index: 99; }

/* ── topbar ──────────────────────────────────────────────────────── */
.topbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 2rem;
  background: linear-gradient(180deg, rgba(5,5,5,0.85), transparent);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.brand {
  display: inline-flex; align-items: center; gap: 0.65rem;
  font-family: var(--font-mono); font-size: 0.75rem;
  letter-spacing: 0.12em; text-transform: lowercase;
}
.brand-mark { display: inline-block; width: 1rem; height: 1rem; border: 1.5px solid #fff; position: relative; }
.brand-mark::after { content: ''; position: absolute; inset: 28%; border: 1.5px solid #fff; }
.brand-name { font-weight: 500; }
.brand-dot { color: rgba(255,255,255,0.5); }
.brand-sub { color: rgba(255,255,255,0.35); padding-left: 0.35rem; border-left: 1px solid var(--line-soft); margin-left: 0.35rem; }
.topbar nav { display: flex; gap: 1.2rem; }
.topbar nav a {
  color: var(--ink-soft);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  transition: color 0.2s ease;
}
.topbar nav a:hover { color: #fff; }

/* ── shared scene primitives ─────────────────────────────────────── */
section { padding: 7rem 2rem 5rem; max-width: 96rem; margin: 0 auto; }
.scene-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.35em;
  color: var(--ink-quiet);
  text-transform: lowercase;
  margin-bottom: 1rem;
}
.scene-tag {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  letter-spacing: 0.06em;
  margin-top: 1rem;
}

/* ── hero ────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  overflow: hidden;
  padding-top: 8rem;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(closest-side at 50% 50%, #000 30%, transparent 70%);
}
.hero-orbs { position: absolute; inset: 0; }
.hero-orbs span {
  position: absolute;
  width: 30rem; height: 30rem;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.18;
  background: radial-gradient(circle, #fff 0%, transparent 60%);
  animation: orb-drift 18s ease-in-out infinite;
}
.hero-orbs span:nth-child(1) { top: 10%; left: 10%; animation-delay: 0s; }
.hero-orbs span:nth-child(2) { top: 60%; right: 8%; animation-delay: -4.5s; }
.hero-orbs span:nth-child(3) { bottom: 5%; left: 30%; animation-delay: -9s; }
.hero-orbs span:nth-child(4) { top: 30%; right: 30%; animation-delay: -13.5s; }
@keyframes orb-drift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(40px,-30px) scale(1.15); }
}

.hero-content { position: relative; z-index: 2; max-width: 56rem; }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.35em;
  text-transform: lowercase;
  color: var(--ink-quiet);
  margin: 0 0 1.6rem;
}
.hero h1 {
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: clamp(3rem, 8vw, 6.5rem);
  line-height: 0.95;
  letter-spacing: -0.04em;
  margin: 0 0 1.8rem;
}
.sub {
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  line-height: 1.6;
  color: var(--ink-soft);
  max-width: 44rem;
  margin: 0 auto 2.5rem;
}
.scroll-cta {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  color: var(--ink-soft);
  padding: 0.85rem 1.4rem;
  border: 1px solid var(--line);
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.scroll-cta:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.chev {
  width: 0.5rem; height: 0.5rem;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg);
  display: inline-block;
}

/* ── demos section ───────────────────────────────────────────────── */
.demos-head { text-align: center; margin-bottom: 4rem; }
.demos-head h2 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0;
}

.demo-grid {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr));
  gap: 1.2rem;
}
.demo-card {
  display: block;
  position: relative;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line-soft);
  padding: 1.5rem 1.5rem 1.5rem;
  height: 100%;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}
.demo-card::after {
  content: '→';
  position: absolute;
  right: 1.4rem; bottom: 1.4rem;
  font-family: var(--font-mono);
  color: var(--ink-quiet);
  transition: transform 0.25s ease, color 0.25s ease;
}
.demo-card:hover { border-color: rgba(255,255,255,0.45); background: rgba(255,255,255,0.04); transform: translateY(-3px); }
.demo-card:hover::after { transform: translateX(4px); color: #fff; }
.demo-anim {
  position: relative;
  width: 100%;
  height: 9rem;
  margin-bottom: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.demo-num {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  color: var(--ink-quiet);
  margin: 0 0 0.4rem;
}
.demo-card h3 {
  font-family: var(--font-sans);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin: 0 0 0.5rem;
}
.demo-tag {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.5;
  margin: 0 0 0.9rem;
}
.demo-biz {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  color: var(--ink-quiet);
  line-height: 1.5;
  border-top: 1px solid var(--line-soft);
  padding-top: 0.8rem;
  margin: 0;
}
.demo-biz span { color: var(--ink); text-transform: uppercase; letter-spacing: 0.15em; margin-right: 0.4rem; }

/* ── demo animations ─────────────────────────────────────────────── */

/* 01 brand — five rising bars (palette) */
.demo-anim-brand { gap: 0.4rem; }
.demo-anim-brand .b {
  width: 1.2rem;
  background: var(--ink);
  animation: brand-rise 2.4s ease-in-out infinite;
}
.demo-anim-brand .b1 { height: 30%; }
.demo-anim-brand .b2 { height: 55%; animation-delay: -0.4s; }
.demo-anim-brand .b3 { height: 80%; animation-delay: -0.8s; }
.demo-anim-brand .b4 { height: 45%; animation-delay: -1.2s; }
.demo-anim-brand .b5 { height: 65%; animation-delay: -1.6s; }
@keyframes brand-rise {
  0%, 100% { transform: scaleY(0.4); transform-origin: bottom; opacity: 0.6; }
  50%      { transform: scaleY(1);   transform-origin: bottom; opacity: 1;   }
}

/* 02 meeting — waveform + listener dot */
.demo-anim-meeting { gap: 0.4rem; }
.demo-anim-meeting .wave {
  width: 0.25rem; height: 60%;
  background: var(--ink);
  border-radius: 1px;
  transform-origin: center;
  animation: wave-pulse 1.2s ease-in-out infinite;
}
.demo-anim-meeting .wave:nth-child(1) { animation-delay: 0s;    }
.demo-anim-meeting .wave:nth-child(2) { animation-delay: -0.18s; }
.demo-anim-meeting .wave:nth-child(3) { animation-delay: -0.36s; }
.demo-anim-meeting .wave:nth-child(4) { animation-delay: -0.54s; }
.demo-anim-meeting .wave:nth-child(5) { animation-delay: -0.72s; }
.demo-anim-meeting .dot {
  position: absolute;
  width: 0.6rem; height: 0.6rem; border-radius: 50%;
  background: #fff;
  bottom: 18%; right: 18%;
  box-shadow: 0 0 0 0 rgba(255,255,255,0.7);
  animation: dot-ping 1.6s ease-out infinite;
}
@keyframes wave-pulse {
  0%, 100% { transform: scaleY(0.25); }
  50%      { transform: scaleY(1);    }
}
@keyframes dot-ping {
  0%   { box-shadow: 0 0 0 0   rgba(255,255,255,0.55); }
  100% { box-shadow: 0 0 0 16px rgba(255,255,255,0);    }
}

/* 03 inbox — lines sweeping in */
.demo-anim-inbox {
  flex-direction: column; align-items: stretch; gap: 0.45rem;
  padding: 0 1.4rem;
}
.demo-anim-inbox .ln {
  display: block;
  height: 0.45rem;
  background: rgba(255,255,255,0.18);
  position: relative;
  overflow: hidden;
}
.demo-anim-inbox .ln::after {
  content: '';
  position: absolute; inset: 0;
  width: 30%;
  background: var(--ink);
  transform: translateX(-100%);
  animation: inbox-sweep 2s ease-in-out infinite;
}
.demo-anim-inbox .ln:nth-child(1)::after  { animation-delay: 0s;    }
.demo-anim-inbox .ln:nth-child(2)::after  { animation-delay: -0.2s; }
.demo-anim-inbox .ln:nth-child(3)::after  { animation-delay: -0.4s; }
.demo-anim-inbox .ln:nth-child(4)::after  { animation-delay: -0.6s; }
.demo-anim-inbox .ln:nth-child(5)::after  { animation-delay: -0.8s; }
.demo-anim-inbox .ln:nth-child(6)::after  { animation-delay: -1.0s; }
.demo-anim-inbox .ln:nth-child(7)::after  { animation-delay: -1.2s; }
.demo-anim-inbox .ln:nth-child(8)::after  { animation-delay: -1.4s; }
.demo-anim-inbox .ln:nth-child(9)::after  { animation-delay: -1.6s; }
.demo-anim-inbox .ln:nth-child(10)::after { animation-delay: -1.8s; }
@keyframes inbox-sweep {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(440%);  }
}

/* 04 content cloner — single source, six radial replicas */
.demo-anim-clone .src {
  position: absolute;
  width: 1.2rem; height: 1.2rem;
  background: #fff;
  border-radius: 2px;
  z-index: 2;
}
.demo-anim-clone .rep {
  position: absolute;
  width: 0.7rem; height: 0.7rem;
  background: rgba(255,255,255,0.55);
  border-radius: 2px;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: clone-out 2.4s ease-out infinite;
}
.demo-anim-clone .r1 { --dx: -3.8rem; --dy: -2.5rem; animation-delay: 0s;     }
.demo-anim-clone .r2 { --dx:  3.8rem; --dy: -2.5rem; animation-delay: -0.3s; }
.demo-anim-clone .r3 { --dx: -3.8rem; --dy:  2.5rem; animation-delay: -0.6s; }
.demo-anim-clone .r4 { --dx:  3.8rem; --dy:  2.5rem; animation-delay: -0.9s; }
.demo-anim-clone .r5 { --dx: -4.5rem; --dy:  0;      animation-delay: -1.2s; }
.demo-anim-clone .r6 { --dx:  4.5rem; --dy:  0;      animation-delay: -1.5s; }
@keyframes clone-out {
  0%   { transform: translate(-50%, -50%) scale(0.2); opacity: 0; }
  20%  { opacity: 1; }
  100% { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1); opacity: 0; }
}

/* 05 site roast — scanning screen */
.demo-anim-roast .screen {
  position: relative;
  width: 12rem; height: 7rem;
  border: 1px solid var(--ink);
  overflow: hidden;
}
.demo-anim-roast .screen i {
  display: block;
  height: 0.45rem;
  background: rgba(255,255,255,0.18);
  margin: 0.45rem 0.7rem;
}
.demo-anim-roast .screen i:nth-child(1) { width: 80%; }
.demo-anim-roast .screen i:nth-child(2) { width: 60%; }
.demo-anim-roast .screen i:nth-child(3) { width: 70%; }
.demo-anim-roast .screen i:nth-child(4) { width: 50%; }
.demo-anim-roast .scan {
  position: absolute; left: 0; right: 0;
  height: 1.2rem;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.45), transparent);
  top: -1.2rem;
  animation: roast-scan 2.5s linear infinite;
}
@keyframes roast-scan {
  0%   { top: -1.2rem; }
  100% { top: 100%;    }
}

/* 06 voice print — 12 dynamic vertical bars */
.demo-anim-voice { gap: 0.32rem; }
.demo-anim-voice .bar {
  width: 0.25rem;
  background: #fff;
  border-radius: 1px;
  animation: voice-bar 1.4s ease-in-out infinite;
}
.demo-anim-voice .bar:nth-child(1)  { height: 30%; animation-delay: 0s;     }
.demo-anim-voice .bar:nth-child(2)  { height: 50%; animation-delay: -0.1s;  }
.demo-anim-voice .bar:nth-child(3)  { height: 80%; animation-delay: -0.2s;  }
.demo-anim-voice .bar:nth-child(4)  { height: 60%; animation-delay: -0.3s;  }
.demo-anim-voice .bar:nth-child(5)  { height: 90%; animation-delay: -0.4s;  }
.demo-anim-voice .bar:nth-child(6)  { height: 70%; animation-delay: -0.5s;  }
.demo-anim-voice .bar:nth-child(7)  { height: 85%; animation-delay: -0.6s;  }
.demo-anim-voice .bar:nth-child(8)  { height: 55%; animation-delay: -0.7s;  }
.demo-anim-voice .bar:nth-child(9)  { height: 75%; animation-delay: -0.8s;  }
.demo-anim-voice .bar:nth-child(10) { height: 40%; animation-delay: -0.9s;  }
.demo-anim-voice .bar:nth-child(11) { height: 65%; animation-delay: -1.0s;  }
.demo-anim-voice .bar:nth-child(12) { height: 35%; animation-delay: -1.1s;  }
@keyframes voice-bar {
  0%, 100% { transform: scaleY(0.35); transform-origin: center; }
  50%      { transform: scaleY(1);    transform-origin: center; }
}

/* 07 customer x-ray — pulsing concentric rings */
.demo-anim-xray .ring {
  position: absolute;
  border: 1px solid var(--ink);
  border-radius: 50%;
  width: 5rem; height: 5rem;
  opacity: 0;
  animation: xray-ring 2.4s ease-out infinite;
}
.demo-anim-xray .ring:nth-child(1) { animation-delay: 0s;    }
.demo-anim-xray .ring:nth-child(2) { animation-delay: -0.8s; }
.demo-anim-xray .ring:nth-child(3) { animation-delay: -1.6s; }
.demo-anim-xray .core {
  width: 0.9rem; height: 0.9rem; background: #fff; border-radius: 50%;
}
@keyframes xray-ring {
  0%   { transform: scale(0.2); opacity: 1; }
  100% { transform: scale(1.8); opacity: 0; }
}

/* 08 workspace genesis — tiles cascade in */
.demo-anim-genesis {
  display: grid;
  grid-template-columns: repeat(3, 1.8rem);
  grid-template-rows: repeat(3, 1.8rem);
  gap: 0.4rem;
}
.demo-anim-genesis .tile {
  background: rgba(255,255,255,0.18);
  border: 1px solid var(--line);
  animation: genesis-pop 2.4s ease-in-out infinite;
}
.demo-anim-genesis .tile:nth-child(1) { animation-delay: 0s;    }
.demo-anim-genesis .tile:nth-child(2) { animation-delay: -0.15s; }
.demo-anim-genesis .tile:nth-child(3) { animation-delay: -0.3s;  }
.demo-anim-genesis .tile:nth-child(4) { animation-delay: -0.45s; }
.demo-anim-genesis .tile:nth-child(5) { animation-delay: -0.6s;  }
.demo-anim-genesis .tile:nth-child(6) { animation-delay: -0.75s; }
.demo-anim-genesis .tile:nth-child(7) { animation-delay: -0.9s;  }
.demo-anim-genesis .tile:nth-child(8) { animation-delay: -1.05s; }
.demo-anim-genesis .tile:nth-child(9) { animation-delay: -1.2s;  }
@keyframes genesis-pop {
  0%, 100% { background: rgba(255,255,255,0.06); }
  50%      { background: #fff; }
}

/* 09 deal radar — sweeping arm + blips */
.demo-anim-radar {
  position: relative;
  width: 8rem; height: 8rem;
  border: 1px solid var(--ink);
  border-radius: 50%;
}
.demo-anim-radar::before, .demo-anim-radar::after {
  content: ''; position: absolute; inset: 18%;
  border: 1px solid var(--line); border-radius: 50%;
  pointer-events: none;
}
.demo-anim-radar::after { inset: 38%; }
.demo-anim-radar .sweep {
  position: absolute; inset: 0;
  background: conic-gradient(from 0deg, rgba(255,255,255,0.35) 0deg, transparent 60deg);
  border-radius: 50%;
  animation: radar-sweep 2.8s linear infinite;
}
.demo-anim-radar .blip {
  position: absolute;
  width: 0.45rem; height: 0.45rem;
  background: #fff;
  border-radius: 50%;
}
.demo-anim-radar .b1 { top: 25%; left: 70%; animation: radar-blip 2.8s ease-out 0.4s infinite; }
.demo-anim-radar .b2 { top: 65%; left: 30%; animation: radar-blip 2.8s ease-out 1.4s infinite; }
.demo-anim-radar .b3 { top: 80%; left: 60%; animation: radar-blip 2.8s ease-out 2.2s infinite; }
@keyframes radar-sweep { to { transform: rotate(360deg); } }
@keyframes radar-blip {
  0%, 100% { opacity: 0; transform: scale(0.6); }
  20%      { opacity: 1; transform: scale(1);   }
}

/* 10 legal lens — paper + moving loupe */
.demo-anim-legal {
  position: relative;
  width: 10rem; height: 7rem;
}
.demo-anim-legal .page {
  position: absolute; inset: 0;
  border: 1px solid var(--ink);
  padding: 0.6rem;
}
.demo-anim-legal .page i {
  display: block;
  height: 0.4rem;
  background: rgba(255,255,255,0.2);
  margin-bottom: 0.4rem;
}
.demo-anim-legal .page i:nth-child(1) { width: 70%; }
.demo-anim-legal .page i:nth-child(2) { width: 50%; }
.demo-anim-legal .page i:nth-child(3) { width: 80%; }
.demo-anim-legal .page i:nth-child(4) { width: 40%; }
.demo-anim-legal .page i:nth-child(5) { width: 60%; }
.demo-anim-legal .loupe {
  position: absolute;
  width: 2.5rem; height: 2.5rem;
  border: 1px solid #fff;
  border-radius: 50%;
  top: 0; left: 0;
  animation: legal-loupe 5s ease-in-out infinite;
}
.demo-anim-legal .loupe::after {
  content: '';
  position: absolute;
  bottom: -0.7rem;
  right: -0.2rem;
  width: 0.9rem; height: 1px;
  background: #fff;
  transform: rotate(45deg);
}
@keyframes legal-loupe {
  0%   { top: 0;    left: 0;    }
  25%  { top: 50%;  left: 60%;  }
  50%  { top: 20%;  left: 70%;  }
  75%  { top: 60%;  left: 10%;  }
  100% { top: 0;    left: 0;    }
}

/* ── why ─────────────────────────────────────────────────────────── */
.why { text-align: center; max-width: 56rem; }
.why-content h2 {
  font-family: var(--font-sans);
  font-weight: 200;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: -0.03em;
  line-height: 0.95;
  margin: 0 0 1.5rem;
}
.why-sub {
  color: var(--ink-soft);
  font-size: 1.05rem;
  line-height: 1.6;
  margin: 0 auto 1.2rem;
  max-width: 40rem;
}
.ship-btn {
  display: inline-flex; align-items: center; gap: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.2em;
  text-transform: lowercase;
  padding: 1rem 1.6rem;
  margin-top: 1.5rem;
  border: 1px solid var(--line);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.ship-btn.primary { background: #fff; color: #000; border-color: #fff; }
.ship-btn:hover { transform: translateY(-2px); }
.ship-btn.primary:hover { background: rgba(255,255,255,0.92); }
.ship-btn .arr { transition: transform 0.2s ease; }
.ship-btn:hover .arr { transform: translateX(4px); }

/* ── footer ──────────────────────────────────────────────────────── */
.bottombar {
  border-top: 1px solid var(--line-soft);
  padding: 1.5rem 2rem;
  display: flex; justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: lowercase;
  color: var(--ink-quiet);
}
.bottombar a:hover { color: #fff; }

/* ── reduced motion ──────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ── mobile ──────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .topbar { padding: 0.9rem 1.1rem; }
  .topbar nav { gap: 0.7rem; }
  .brand-sub { display: none; }
  section { padding: 5.5rem 1rem 3rem; }
  .demo-card { padding: 1.2rem; }
}

/* ────────────────────────────────────────────────────────────────── */
/* ADDITIONAL DEMOS — agent fleet, llm switch, compute cluster,        */
/* api vault, reasoning trace                                          */
/* ────────────────────────────────────────────────────────────────── */

/* 11 agent fleet — hub + four orbiting nodes with pulse links */
.demo-anim-fleet {
  position: relative;
}
.demo-anim-fleet .hub {
  width: 1rem; height: 1rem;
  background: #fff;
  border-radius: 50%;
  z-index: 2;
}
.demo-anim-fleet .node {
  position: absolute;
  width: 0.7rem; height: 0.7rem;
  background: rgba(255,255,255,0.85);
  border-radius: 50%;
  animation: fleet-node-pulse 1.8s ease-in-out infinite;
}
.demo-anim-fleet .n1 { top: 18%; left: 20%; animation-delay: 0s;    }
.demo-anim-fleet .n2 { top: 18%; right: 20%; animation-delay: -0.45s; }
.demo-anim-fleet .n3 { bottom: 18%; left: 20%; animation-delay: -0.9s; }
.demo-anim-fleet .n4 { bottom: 18%; right: 20%; animation-delay: -1.35s; }
.demo-anim-fleet .link {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.6), transparent);
  top: 50%; left: 50%;
  transform-origin: left center;
  width: 3.4rem;
  animation: fleet-link 1.8s linear infinite;
}
.demo-anim-fleet .l1 { transform: translate(-50%, -50%) rotate(-135deg); animation-delay: 0s;    }
.demo-anim-fleet .l2 { transform: translate(-50%, -50%) rotate(-45deg);  animation-delay: -0.45s; }
.demo-anim-fleet .l3 { transform: translate(-50%, -50%) rotate(135deg);  animation-delay: -0.9s; }
.demo-anim-fleet .l4 { transform: translate(-50%, -50%) rotate(45deg);   animation-delay: -1.35s; }
@keyframes fleet-node-pulse {
  0%, 100% { transform: scale(0.7); opacity: 0.5; }
  50%      { transform: scale(1);   opacity: 1;   }
}
@keyframes fleet-link {
  0%, 100% { opacity: 0.15; }
  50%      { opacity: 0.85; }
}

/* 12 llm switch — stacked provider labels + scanning highlight */
.demo-anim-llm {
  flex-direction: column;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0 1.4rem;
  position: relative;
}
.demo-anim-llm .prov {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: var(--ink-quiet);
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(255,255,255,0.02);
  text-align: center;
  animation: llm-cycle 5s ease-in-out infinite;
}
.demo-anim-llm .p1 { animation-delay: 0s;    }
.demo-anim-llm .p2 { animation-delay: -1s;   }
.demo-anim-llm .p3 { animation-delay: -2s;   }
.demo-anim-llm .p4 { animation-delay: -3s;   }
.demo-anim-llm .p5 { animation-delay: -4s;   }
.demo-anim-llm .cursor-line { display: none; }
@keyframes llm-cycle {
  0%, 80%, 100% { color: var(--ink-quiet); border-color: rgba(255,255,255,0.18); background: rgba(255,255,255,0.02); }
  20%, 50%      { color: #fff;             border-color: #fff;                   background: rgba(255,255,255,0.12); }
}

/* 13 compute cluster — 4x4 grid pulsing in waves */
.demo-anim-cluster .grid {
  display: grid;
  grid-template-columns: repeat(4, 0.9rem);
  grid-template-rows: repeat(4, 0.9rem);
  gap: 0.32rem;
}
.demo-anim-cluster .grid i {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.22);
  animation: cluster-cell 3s ease-in-out infinite;
}
.demo-anim-cluster .grid i:nth-child(1)  { animation-delay: 0s;    }
.demo-anim-cluster .grid i:nth-child(2)  { animation-delay: -0.1s; }
.demo-anim-cluster .grid i:nth-child(3)  { animation-delay: -0.2s; }
.demo-anim-cluster .grid i:nth-child(4)  { animation-delay: -0.3s; }
.demo-anim-cluster .grid i:nth-child(5)  { animation-delay: -0.4s; }
.demo-anim-cluster .grid i:nth-child(6)  { animation-delay: -0.5s; }
.demo-anim-cluster .grid i:nth-child(7)  { animation-delay: -0.6s; }
.demo-anim-cluster .grid i:nth-child(8)  { animation-delay: -0.7s; }
.demo-anim-cluster .grid i:nth-child(9)  { animation-delay: -0.8s; }
.demo-anim-cluster .grid i:nth-child(10) { animation-delay: -0.9s; }
.demo-anim-cluster .grid i:nth-child(11) { animation-delay: -1.0s; }
.demo-anim-cluster .grid i:nth-child(12) { animation-delay: -1.1s; }
.demo-anim-cluster .grid i:nth-child(13) { animation-delay: -1.2s; }
.demo-anim-cluster .grid i:nth-child(14) { animation-delay: -1.3s; }
.demo-anim-cluster .grid i:nth-child(15) { animation-delay: -1.4s; }
.demo-anim-cluster .grid i:nth-child(16) { animation-delay: -1.5s; }
@keyframes cluster-cell {
  0%, 80%, 100% { background: rgba(255,255,255,0.06); }
  20%, 40%      { background: #fff; }
}

/* 14 api vault — radial spokes + rotating key */
.demo-anim-vault {
  position: relative;
}
.demo-anim-vault .spokes {
  position: absolute;
  inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.demo-anim-vault .spokes i {
  position: absolute;
  width: 1px; height: 2.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.45), transparent);
  top: 50%; left: 50%;
  transform-origin: top center;
  transform: translate(-50%, 0);
  animation: vault-spin 8s linear infinite;
}
.demo-anim-vault .spokes i:nth-child(1) { transform: translate(-50%, 0) rotate(0deg);   }
.demo-anim-vault .spokes i:nth-child(2) { transform: translate(-50%, 0) rotate(60deg);  }
.demo-anim-vault .spokes i:nth-child(3) { transform: translate(-50%, 0) rotate(120deg); }
.demo-anim-vault .spokes i:nth-child(4) { transform: translate(-50%, 0) rotate(180deg); }
.demo-anim-vault .spokes i:nth-child(5) { transform: translate(-50%, 0) rotate(240deg); }
.demo-anim-vault .spokes i:nth-child(6) { transform: translate(-50%, 0) rotate(300deg); }
.demo-anim-vault .spokes {
  animation: vault-spin 8s linear infinite;
}
.demo-anim-vault .key {
  position: relative;
  z-index: 2;
  width: 3rem; height: 1rem;
  display: flex; align-items: center;
}
.demo-anim-vault .bow {
  width: 1rem; height: 1rem;
  border: 1.5px solid #fff;
  border-radius: 50%;
  background: rgba(5,5,5,1);
}
.demo-anim-vault .shaft {
  flex: 1;
  height: 1.5px;
  background: #fff;
}
.demo-anim-vault .tooth {
  width: 1.5px;
  background: #fff;
}
.demo-anim-vault .t1 { height: 0.4rem; }
.demo-anim-vault .t2 { height: 0.6rem; margin-left: 1px; }
.demo-anim-vault .t3 { height: 0.4rem; margin-left: 1px; }
@keyframes vault-spin {
  to { transform: rotate(360deg); }
}

/* 15 reasoning trace — branching tree growing */
.demo-anim-reason .tree {
  position: relative;
  width: 7rem; height: 6rem;
}
.demo-anim-reason .root,
.demo-anim-reason .branch {
  position: absolute;
  background: #fff;
  height: 1.5px;
  transform-origin: left center;
  opacity: 0;
  animation: reason-grow 4s ease-in-out infinite;
}
.demo-anim-reason .root   { top: 50%; left: 0; width: 2rem; animation-delay: 0s;   }
.demo-anim-reason .b1     { top: 35%; left: 2rem; width: 1.6rem; transform: rotate(-30deg); animation-delay: -0.8s; }
.demo-anim-reason .b2     { top: 65%; left: 2rem; width: 1.6rem; transform: rotate(30deg);  animation-delay: -0.8s; }
.demo-anim-reason .leaf {
  position: absolute;
  width: 0.45rem; height: 0.45rem;
  background: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: reason-leaf 4s ease-in-out infinite;
}
.demo-anim-reason .leaf:nth-of-type(1) { top: 18%; left: 4rem; animation-delay: -1.5s; }
.demo-anim-reason .leaf:nth-of-type(2) { top: 38%; left: 4.5rem; animation-delay: -1.7s; }
.demo-anim-reason .leaf:nth-of-type(3) { top: 60%; left: 4.5rem; animation-delay: -1.9s; }
.demo-anim-reason .leaf:nth-of-type(4) { top: 78%; left: 4rem; animation-delay: -2.1s; }
@keyframes reason-grow {
  0%, 100% { opacity: 0; transform-origin: left center; }
  25%      { opacity: 1; }
  60%      { opacity: 1; }
  80%      { opacity: 0; }
}
@keyframes reason-leaf {
  0%, 100% { opacity: 0; transform: scale(0.4); }
  40%      { opacity: 1; transform: scale(1);   }
  70%      { opacity: 1; }
}

/* ── api connect chip (injected by common.js into every topbar) ──── */
.topbar nav { display: flex; align-items: center; gap: 1.2rem; }
.api-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.45rem 0.85rem;
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: lowercase;
  color: var(--ink-soft);
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}
.api-chip:hover { color: #fff; border-color: rgba(255,255,255,0.55); background: rgba(255,255,255,0.04); }
.api-chip-dot {
  width: 0.45rem; height: 0.45rem;
  border-radius: 50%;
  background: rgba(255,170,170,0.85);
  box-shadow: 0 0 0 0 rgba(255,170,170,0.55);
  animation: api-chip-pulse 2.2s ease-in-out infinite;
}
.api-chip.is-connected { color: #fff; border-color: rgba(150,255,200,0.55); }
.api-chip.is-connected .api-chip-dot {
  background: rgba(150,255,200,0.9);
  box-shadow: 0 0 0 0 rgba(150,255,200,0.55);
  animation: api-chip-pulse-ok 2.2s ease-in-out infinite;
}
@keyframes api-chip-pulse {
  0%, 100% { box-shadow: 0 0 0 0   rgba(255,170,170,0.45); }
  60%      { box-shadow: 0 0 0 6px rgba(255,170,170,0);    }
}
@keyframes api-chip-pulse-ok {
  0%, 100% { box-shadow: 0 0 0 0   rgba(150,255,200,0.45); }
  60%      { box-shadow: 0 0 0 6px rgba(150,255,200,0);    }
}
