/* ============================================================
   Capability scenes: each blends an inline SVG animation
   with a small "real product UI" snippet to show the feature.
   Add to styles.css logically but kept separate for clarity.
   ============================================================ */

/* ---------- shared scene chrome ---------- */
.scene {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
}
.scene-bg-grid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(65, 101, 245, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(65, 101, 245, 0.05) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 100%);
  pointer-events: none;
}
.scene-bg-dot::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}

/* ---------- generic mini UI card chrome ---------- */
.ui-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.10), 0 2px 6px rgba(16,24,40,0.04);
  overflow: hidden;
  font-family: var(--edc-font-sans);
}
.ui-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--m-navy);
  color: #fff;
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.02em;
}
.ui-card-header .dots {
  display: inline-flex; gap: 5px;
}
.ui-card-header .dots span {
  width: 7px; height: 7px; border-radius: 50%;
  background: rgba(255,255,255,0.3);
}
.ui-card-header.light {
  background: #fff;
  color: var(--m-navy);
  border-bottom: 1px solid var(--m-line);
}
.ui-card-body {
  padding: 14px;
}
.ui-row {
  display: flex; align-items: center; gap: 10px;
}
.ui-label {
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 11px;
  color: var(--m-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ui-value {
  font-family: var(--edc-font-sans);
  font-weight: 500;
  font-size: 13px;
  color: var(--m-ink);
}

/* ============================================================
   1. PRIVATE AI ANIM — vault with data orbiting INSIDE
   ============================================================ */
.scene-private {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 28px;
  align-items: center;
  padding: 36px;
}
.vault {
  position: relative;
  aspect-ratio: 1;
  max-width: 320px;
  margin: 0 auto;
}
.vault-shield {
  width: 100%; height: 100%;
  display: block;
}
.vault-shield .shield-stroke {
  stroke: var(--m-accent);
  stroke-width: 1.5;
  fill: none;
  stroke-dasharray: 4 6;
  animation: rotate-dash 30s linear infinite;
  transform-origin: 50% 50%;
}
.vault-shield .shield-body {
  fill: rgba(255,255,255,0.04);
  stroke: rgba(255,255,255,0.18);
  stroke-width: 1;
}
@keyframes rotate-dash {
  to { stroke-dashoffset: -200; }
}
.vault-core {
  position: absolute;
  inset: 0;
  display: grid; place-items: center;
  color: var(--m-accent);
}
.vault-core .lock {
  font-size: 36px;
  filter: drop-shadow(0 0 16px rgba(243,167,16,0.5));
}
.vault-dot {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #BCE0FF;
  box-shadow: 0 0 8px rgba(188, 224, 255, 0.6);
  animation: orbit 6s linear infinite;
}
.vault-dot.d2 { animation-delay: -1.5s; background: #fff; }
.vault-dot.d3 { animation-delay: -3s; background: var(--m-accent); box-shadow: 0 0 8px rgba(243,167,16,0.5); }
.vault-dot.d4 { animation-delay: -4.5s; background: #BCE0FF; }
@keyframes orbit {
  from { transform: rotate(0) translateX(95px) rotate(0); }
  to   { transform: rotate(360deg) translateX(95px) rotate(-360deg); }
}
.vault-extern {
  position: absolute;
  top: 50%; left: -10%;
  font-size: 10px;
  color: var(--m-danger);
  font-family: var(--edc-font-ui);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex; align-items: center; gap: 6px;
  animation: blocked 4s ease-in-out infinite;
}
.vault-extern.right { left: auto; right: -10%; top: 30%; animation-delay: -2s; }
@keyframes blocked {
  0%, 100% { opacity: 0; transform: translateX(0); }
  40% { opacity: 1; transform: translateX(20px); }
  60% { opacity: 1; transform: translateX(10px); }
  80% { opacity: 0; transform: translateX(-10px); }
}
.vault-extern i { font-size: 14px; }

.privacy-card {
  position: relative;
  width: 100%;
  max-width: 280px;
}
.privacy-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 12px;
  border-top: 1px solid var(--m-line);
  font-size: 12px;
}
.privacy-row:first-of-type { border-top: none; }
.privacy-row .name { color: var(--m-ink); font-weight: 500; }
.privacy-row .status {
  display: inline-flex; align-items: center; gap: 4px;
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 11px;
}
.status.good { color: var(--m-success); }
.status.bad { color: var(--m-danger); }
.status.warn { color: var(--m-accent); }

/* ============================================================
   2. OCR ANIM — handwritten line scanned, fields populate
   ============================================================ */
.scene-ocr {
  display: flex; flex-direction: column;
  gap: 14px;
  padding: 32px;
  width: 100%;
  max-width: 480px;
}
.scan-box {
  position: relative;
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--m-line);
  padding: 18px 20px;
  overflow: hidden;
}
.scan-handwriting {
  font-family: 'Caveat', 'Brush Script MT', cursive;
  font-size: 30px;
  color: var(--m-ink);
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-style: italic;
}
.scan-handwriting span { display: block; margin-top: 4px; font-size: 22px; color: #444; }
.scan-line {
  position: absolute;
  left: 0; right: 0;
  height: 36px;
  top: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(243,167,16,0.18) 50%, transparent 100%);
  border-bottom: 1.5px solid var(--m-accent);
  animation: ocr-scan 4s cubic-bezier(0.6, 0, 0.4, 1) infinite;
  pointer-events: none;
}
@keyframes ocr-scan {
  0% { top: -36px; opacity: 0; }
  10% { opacity: 1; }
  60% { top: 100%; opacity: 1; }
  61%, 100% { opacity: 0; top: 100%; }
}
.scan-tag {
  position: absolute;
  right: 12px; top: 10px;
  font-family: var(--edc-font-ui);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--m-accent);
  background: rgba(243,167,16,0.1);
  padding: 3px 7px;
  border-radius: 4px;
  text-transform: uppercase;
}

.fields-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 8px;
  overflow: hidden;
}
.fields-header {
  padding: 8px 14px;
  background: var(--m-bg-soft);
  border-bottom: 1px solid var(--m-line);
  display: flex; align-items: center; justify-content: space-between;
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 11px;
  color: var(--m-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.fields-header .conf {
  color: var(--m-success);
  font-size: 11px;
}
.fields-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.field {
  padding: 10px 14px;
  border-right: 1px solid var(--m-line);
  border-top: 1px solid var(--m-line);
}
.field:nth-child(2n) { border-right: none; }
.field:nth-child(-n+2) { border-top: none; }
.field-label {
  font-family: var(--edc-font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--m-muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.field-value {
  font-family: var(--edc-font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--m-ink);
  min-height: 18px;
  position: relative;
}
.field-value.typing::after {
  content: '|';
  margin-left: 1px;
  color: var(--m-accent);
  animation: blink 1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }

/* ============================================================
   3. TRANSLATION ANIM — chat with messages swapping languages
   ============================================================ */
.scene-translation {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
}
.chat-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.chat-head {
  padding: 12px 16px;
  border-bottom: 1px solid var(--m-line);
  display: flex; align-items: center; gap: 10px;
}
.chat-head .avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--m-navy);
  color: #fff;
  display: grid; place-items: center;
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 11px;
}
.chat-head .who {
  font-family: var(--edc-font-ui);
  font-size: 13px;
  font-weight: 600;
  color: var(--m-ink);
}
.chat-head .where {
  font-size: 11px;
  color: var(--m-muted);
}
.chat-lang-toggle {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 4px;
  background: var(--m-bg-soft);
  padding: 3px 8px;
  border-radius: 999px;
  font-family: var(--edc-font-ui);
  font-size: 10px;
  font-weight: 600;
  color: var(--m-navy);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.chat-lang-toggle .live {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--m-success);
  animation: blink 1.4s ease-in-out infinite;
}
.chat-body {
  padding: 16px;
  display: grid;
  gap: 10px;
  background: var(--m-bg-soft);
  min-height: 180px;
}
.bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.45;
  background: #fff;
  border: 1px solid var(--m-line);
  color: var(--m-ink);
  position: relative;
}
.bubble.them {
  border-bottom-left-radius: 4px;
}
.bubble.us {
  margin-left: auto;
  background: var(--m-navy);
  color: #fff;
  border-color: var(--m-navy);
  border-bottom-right-radius: 4px;
}
.bubble .lang {
  font-family: var(--edc-font-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
  opacity: 0.6;
}
.bubble.us .lang { color: #BCE0FF; opacity: 0.9; }
.bubble .original {
  font-style: italic;
  color: var(--m-muted);
  font-size: 11px;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed var(--m-line);
}
.bubble.us .original {
  color: rgba(255,255,255,0.55);
  border-top-color: rgba(255,255,255,0.15);
}

/* Cross-fade the chat between language scenes */
.chat-frame {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 600ms var(--edc-ease);
}
.chat-frame.active { opacity: 1; position: relative; }

/* ============================================================
   4. PREDICTIVE ANIM — chart with drawing line and forecast
   ============================================================ */
.scene-predictive {
  width: 100%;
  max-width: 480px;
}
.dashboard-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.dash-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--m-line);
  display: flex; align-items: center; justify-content: space-between;
}
.dash-head .title {
  font-family: var(--edc-font-ui);
  font-size: 13px;
  font-weight: 700;
  color: var(--m-navy);
}
.dash-head .meta {
  font-size: 11px;
  color: var(--m-muted);
}
.dash-stats {
  padding: 14px 18px 6px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  border-bottom: 1px solid var(--m-line);
}
.dash-stat .l {
  font-family: var(--edc-font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--m-muted);
}
.dash-stat .v {
  font-family: var(--edc-font-sans);
  font-size: 18px;
  font-weight: 700;
  color: var(--m-navy);
  margin-top: 2px;
}
.dash-stat .v .delta {
  font-size: 11px;
  margin-left: 4px;
  color: var(--m-success);
  font-weight: 600;
}
.dash-stat .v .delta.up::before { content: '▲ '; font-size: 9px; }

.dash-chart {
  padding: 14px 18px 18px;
}
.dash-chart svg { width: 100%; height: 160px; display: block; }
.chart-axis { stroke: var(--m-line); stroke-width: 1; }
.chart-label { fill: var(--m-muted); font-size: 9px; font-family: var(--edc-font-ui); }
.chart-actual {
  fill: none;
  stroke: var(--m-navy);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 320;
  stroke-dashoffset: 320;
  animation: draw-line 3s ease-out forwards;
}
.chart-actual-area {
  fill: url(#chartActualGrad);
  opacity: 0;
  animation: fade-in 1.5s 2s ease-out forwards;
}
.chart-forecast {
  fill: none;
  stroke: var(--m-accent);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-dasharray: 5 5;
  stroke-dashoffset: 200;
  animation: draw-line 2s 2.5s ease-out forwards;
}
.chart-forecast-band {
  fill: var(--m-accent);
  opacity: 0;
  animation: fade-in 1s 3.5s ease-out forwards;
}
.chart-marker {
  fill: var(--m-accent);
  opacity: 0;
  animation: pop-in 0.4s 4.2s ease-out forwards;
}
@keyframes draw-line { to { stroke-dashoffset: 0; } }
@keyframes fade-in { to { opacity: 0.12; } }
@keyframes pop-in { to { opacity: 1; transform: scale(1); } }

.chart-legend {
  display: flex;
  gap: 16px;
  margin-top: 8px;
  font-family: var(--edc-font-ui);
  font-size: 11px;
  color: var(--m-muted);
}
.chart-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chart-legend i.actual { width: 12px; height: 2px; background: var(--m-navy); border-radius: 1px; display:inline-block; }
.chart-legend i.forecast {
  width: 12px; height: 2px;
  background: repeating-linear-gradient(90deg, var(--m-accent) 0 3px, transparent 3px 6px);
  display: inline-block;
}

/* ============================================================
   5. SPEECH-TO-TEXT ANIM — waveform + live transcript
   ============================================================ */
.scene-speech {
  width: 100%;
  max-width: 440px;
}
.transcript-card {
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 24, 40, 0.06);
}
.transcript-head {
  padding: 14px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--m-line);
}
.transcript-head .rec-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--m-danger);
  animation: blink 1s ease-in-out infinite;
}
.transcript-head .label {
  font-family: var(--edc-font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--m-navy);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.transcript-head .timer {
  margin-left: auto;
  font-family: var(--edc-font-ui);
  font-size: 11px;
  color: var(--m-muted);
  font-variant-numeric: tabular-nums;
}
.wave-strip {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 50px;
  padding: 0 18px;
  margin: 14px 0 6px;
}
.wave-bar {
  flex: 1;
  background: var(--m-accent);
  border-radius: 2px;
  animation: wave 1.2s ease-in-out infinite;
  min-height: 4px;
}
@keyframes wave {
  0%, 100% { height: 14%; opacity: 0.5; }
  50% { height: 90%; opacity: 1; }
}
.transcript-body {
  padding: 12px 18px 18px;
  display: grid;
  gap: 10px;
  font-size: 13px;
  line-height: 1.5;
}
.transcript-line {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  opacity: 0;
  animation: fade-up 0.4s ease-out forwards;
}
.transcript-line .who {
  font-family: var(--edc-font-ui);
  font-size: 11px;
  color: var(--m-muted);
  font-weight: 600;
}
.transcript-line .text {
  color: var(--m-ink);
}
@keyframes fade-up {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
.typing-cursor::after {
  content: '|';
  color: var(--m-accent);
  margin-left: 1px;
  animation: blink 1s steps(1) infinite;
}

/* ============================================================
   6. PDF SPLITTER — 1 PDF → AI → 3 PDFs (flow animation)
   ============================================================ */
.scene-split {
  display: grid;
  grid-template-columns: 1fr 0.95fr 1.2fr;
  align-items: center;
  justify-items: center;
  gap: 8px;
  padding: 24px 32px;
}

/* SVG connectors fill the splitter scene */
.split-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}
.split-wires path {
  fill: none;
  stroke: rgba(65, 101, 245, 0.22);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  vector-effect: non-scaling-stroke;
}
.split-wires .flow {
  stroke: var(--m-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 18;
  animation: flow 1.8s linear infinite;
}
.split-wires .flow.f2 { animation-delay: -0.6s; }
.split-wires .flow.f3 { animation-delay: -1.2s; }
@keyframes flow {
  to { stroke-dashoffset: -120; }
}

/* ---- source PDF ---- */
.src-pdf {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.src-pdf .pdf-doc {
  position: relative;
  width: 96px;
  height: 124px;
  background: #fff;
  border: 1.5px solid var(--m-line-2);
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(16, 24, 40, 0.08);
  overflow: hidden;
}
.src-pdf .pdf-doc::before {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 18px; height: 18px;
  background: linear-gradient(225deg, var(--m-bg-soft) 50%, #fff 50%);
  border-left: 1px solid var(--m-line-2);
  border-bottom: 1px solid var(--m-line-2);
}
.src-pdf .pdf-stack {
  position: absolute;
  inset: 8px 8px 30px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pdf-band {
  flex: 1;
  border-radius: 2px;
  position: relative;
  overflow: hidden;
}
.pdf-band::before,
.pdf-band::after {
  content: '';
  position: absolute;
  left: 4px; right: 4px;
  height: 2px;
  background: rgba(0,0,0,0.18);
  border-radius: 1px;
}
.pdf-band::before { top: 25%; right: 40%; }
.pdf-band::after  { top: 60%; right: 20%; }
.pdf-band.contract  { background: rgba(65, 101, 245, 0.12); border: 1px solid rgba(65, 101, 245, 0.30); }
.pdf-band.inventory { background: rgba(31, 138, 91, 0.12); border: 1px solid rgba(31, 138, 91, 0.30); }
.pdf-band.insurance { background: rgba(243, 167, 16, 0.16); border: 1px solid rgba(243, 167, 16, 0.40); }
.src-pdf .pdf-label {
  position: absolute;
  left: 0; right: 0; bottom: 6px;
  text-align: center;
  font-family: var(--edc-font-ui);
  font-size: 9px;
  font-weight: 700;
  color: var(--m-danger);
  letter-spacing: 0.04em;
}

.src-pdf .scan-sweep {
  position: absolute;
  left: 0; right: 0;
  height: 12px;
  background: linear-gradient(180deg, transparent, rgba(243,167,16,0.35), transparent);
  border-bottom: 1.5px solid var(--m-accent);
  animation: pdf-scan 3.4s ease-in-out infinite;
  top: -12px;
}
@keyframes pdf-scan {
  0%   { top: -12px; opacity: 0; }
  10%  { opacity: 1; }
  60%  { top: 100%; opacity: 1; }
  61%, 100% { opacity: 0; top: 100%; }
}

.src-caption {
  font-family: var(--edc-font-ui);
  font-size: 11px;
  font-weight: 600;
  color: var(--m-ink);
  text-align: center;
}
.src-caption .meta {
  display: block;
  font-weight: 400;
  font-size: 10px;
  color: var(--m-muted);
  margin-top: 2px;
}

/* ---- AI splitter brain ---- */
.splitter-brain {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.brain-disc {
  position: relative;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgba(243,167,16,0.18) 0%, rgba(65,101,245,0.06) 70%);
  display: grid;
  place-items: center;
}
.brain-disc::before,
.brain-disc::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid rgba(243, 167, 16, 0.4);
}
.brain-disc::before {
  animation: brain-pulse 2.4s ease-out infinite;
}
.brain-disc::after {
  animation: brain-pulse 2.4s ease-out infinite;
  animation-delay: -1.2s;
}
@keyframes brain-pulse {
  0%   { transform: scale(0.7); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}
.brain-disc .brain-core {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--m-navy);
  display: grid;
  place-items: center;
  color: var(--m-accent);
  font-size: 20px;
  position: relative;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(243, 167, 16, 0.3);
}
.brain-label {
  font-family: var(--edc-font-ui);
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--m-navy);
  padding: 3px 8px;
  background: var(--m-bg-soft);
  border-radius: 999px;
  border: 1px solid var(--m-line);
}

/* ---- result PDFs ---- */
.result-pdfs {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  max-width: 220px;
}
.result-pdf {
  display: flex;
  align-items: center;
  gap: 9px;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 6px;
  padding: 7px 10px;
  box-shadow: 0 2px 6px rgba(16, 24, 40, 0.05);
  opacity: 0;
  transform: translateX(-6px);
  animation: split-appear 0.6s ease-out forwards;
}
.result-pdf.r1 { animation-delay: 0.9s; }
.result-pdf.r2 { animation-delay: 1.3s; }
.result-pdf.r3 { animation-delay: 1.7s; }
@keyframes split-appear {
  to { opacity: 1; transform: translateX(0); }
}
.result-pdf .icon-pdf {
  position: relative;
  width: 28px;
  height: 34px;
  border-radius: 3px;
  flex-shrink: 0;
  border: 1px solid;
  display: grid;
  place-items: center;
  font-family: var(--edc-font-ui);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.result-pdf .icon-pdf::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 8px; height: 8px;
  background: #fff;
  border-left: 1px solid;
  border-bottom: 1px solid;
  border-color: inherit;
}
.result-pdf.r1 .icon-pdf { background: rgba(65, 101, 245, 0.12); color: var(--m-navy); border-color: rgba(65, 101, 245, 0.30); }
.result-pdf.r2 .icon-pdf { background: rgba(31, 138, 91, 0.10); color: var(--m-success); border-color: rgba(31, 138, 91, 0.30); }
.result-pdf.r3 .icon-pdf { background: rgba(243, 167, 16, 0.14); color: var(--m-accent); border-color: rgba(243, 167, 16, 0.40); }
.result-pdf .info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}
.result-pdf .info .name {
  font-family: var(--edc-font-ui);
  font-size: 12px;
  font-weight: 700;
  color: var(--m-ink);
  line-height: 1.2;
}
.result-pdf .info .meta {
  font-family: var(--edc-font-sans);
  font-size: 10px;
  color: var(--m-muted);
  line-height: 1.3;
  margin-top: 1px;
}
.result-pdf .conf {
  font-family: var(--edc-font-ui);
  font-size: 10px;
  font-weight: 700;
  color: var(--m-success);
  background: rgba(31, 138, 91, 0.10);
  padding: 2px 6px;
  border-radius: 999px;
  flex-shrink: 0;
}

/* ============================================================
   7. AI CALL CENTER ANIM — core + cycling call card + KB
   ============================================================ */
.scene-call {
  flex-direction: column;
  gap: 18px;
  padding: 30px 28px;
}
.call-core {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  width: 100%;
}
.call-core-disc {
  position: relative;
  z-index: 2;
  width: 52px; height: 52px;
  border-radius: 50%;
  display: grid; place-items: center;
  background: var(--m-accent);
  color: var(--m-navy-deep);
  font-size: 22px;
  box-shadow: 0 8px 24px rgba(243,167,16,0.4);
}
.call-core-ring {
  position: absolute;
  left: 50%; top: 50%;
  width: 52px; height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: call-ring 3s ease-out infinite;
}
.call-core-ring.r2 { animation-delay: 1.5s; }
@keyframes call-ring {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2.6); opacity: 0; }
}
.call-tab {
  position: absolute;
  top: 50%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 11px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  white-space: nowrap;
}
.call-tab i { font-size: 12px; }
.call-tab.in {
  right: calc(50% + 42px);
  color: #BCE0FF;
  animation: tab-drift 3.8s ease-in-out infinite;
}
.call-tab.out {
  left: calc(50% + 42px);
  color: var(--m-accent);
  animation: tab-drift 3.8s ease-in-out infinite;
  animation-delay: -1.9s;
}
.call-tab.in i { color: #BCE0FF; }
.call-tab.out i { color: var(--m-accent); }
@keyframes tab-drift {
  0%, 100% { transform: translate(0, -50%); opacity: 0.55; }
  50% { transform: translate(7px, -50%); opacity: 1; }
}
.call-card {
  width: 100%;
  max-width: 300px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 18px 44px rgba(0,0,0,0.32);
  overflow: hidden;
  font-family: var(--edc-font-sans);
  animation: fade-up 0.5s ease-out both;
}
.call-card-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px;
  border-bottom: 1px solid var(--m-line);
}
.call-dir {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 9px; border-radius: 999px;
  font-family: var(--edc-font-ui); font-weight: 700; font-size: 11px;
}
.call-dir.in { background: rgba(65,101,245,0.1); color: var(--m-navy); }
.call-dir.out { background: rgba(243,167,16,0.16); color: #9A6A04; }
.call-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--edc-font-ui); font-size: 11px; color: var(--m-muted);
  font-variant-numeric: tabular-nums;
}
.call-live .rec-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--m-danger);
  animation: blink 1.4s steps(1) infinite;
}
.call-who {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px 2px;
}
.call-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--m-navy); color: #fff;
  font-family: var(--edc-font-ui); font-weight: 700; font-size: 12px;
  flex: none;
}
.call-who-text { display: flex; flex-direction: column; line-height: 1.35; }
.cw-name { font-family: var(--edc-font-ui); font-weight: 700; font-size: 14px; color: var(--m-navy); }
.cw-num { font-size: 12px; color: var(--m-muted); font-variant-numeric: tabular-nums; }
.call-wave {
  height: 26px;
  margin: 10px 14px 4px;
  gap: 2px;
}
.call-meta {
  padding: 10px 14px;
  display: flex; flex-direction: column; gap: 9px;
  border-top: 1px solid var(--m-line);
  margin-top: 8px;
}
.cm-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cm-label {
  font-family: var(--edc-font-ui); font-size: 10px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--m-muted);
}
.cm-val { font-family: var(--edc-font-ui); font-weight: 600; font-size: 13px; color: var(--m-ink); }
.cm-source {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--edc-font-ui); font-size: 12px; font-weight: 600; color: var(--m-navy);
  background: var(--m-navy-tint); padding: 3px 10px; border-radius: 999px;
}
.cm-source i { font-size: 12px; }
.call-result {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 14px;
  background: rgba(31,138,91,0.08);
  border-top: 1px solid var(--m-line);
  font-family: var(--edc-font-ui); font-weight: 700; font-size: 13px;
  color: var(--m-success);
}
.call-result i { font-size: 15px; }
.kb-strip {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  justify-content: center;
}
.kb-label {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--edc-font-ui); font-weight: 700; font-size: 11px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}
.kb-label i { color: var(--m-accent); font-size: 13px; }
.kb-chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  font-family: var(--edc-font-ui); font-weight: 600; font-size: 12px;
  color: rgba(255,255,255,0.8);
}
.kb-chip i { color: var(--m-accent); font-size: 12px; }

/* why-this-matters callout (in the dark call-center section) */
.ccs-why {
  margin-top: 64px;
  padding-top: 36px;
  border-top: 1px solid rgba(255,255,255,0.12);
  max-width: 860px;
}
.ccs-why .eyebrow {
  background: rgba(243,167,16,0.12);
  color: var(--m-accent);
  margin-bottom: 18px;
}
.ccs-why-text {
  font-family: var(--edc-font-sans);
  font-weight: 500;
  font-size: clamp(20px, 2.1vw, 27px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  color: #fff;
  margin: 0;
  text-wrap: pretty;
}

/* ============================================================
   8. BUSINESS INTELLIGENCE ANIM — expert conveyor + processing
   ============================================================ */
.scene-experts {
  flex-direction: column;
  gap: 6px;
  padding: 28px 20px;
}
.exp-proc {
  width: 100%;
  max-width: 280px;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(16,24,40,0.12);
  padding: 14px;
  font-family: var(--edc-font-sans);
  z-index: 4;
}
.exp-proc-head {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--edc-font-ui); font-weight: 700; font-size: 12px;
  color: var(--m-navy);
}
.exp-proc-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--m-navy);
  animation: blink 1.4s steps(1) infinite;
}
.exp-proc-tag {
  margin-left: auto;
  font-family: var(--edc-font-ui); font-weight: 600; font-size: 10px;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--m-muted);
}
.exp-proc-task {
  font-family: var(--edc-font-ui); font-size: 12px;
  color: var(--m-muted);
  margin: 11px 0 9px;
}
.exp-proc-bars {
  display: flex; align-items: flex-end; gap: 4px;
  height: 36px;
}
.exp-proc-bars span {
  flex: 1;
  background: var(--m-navy-tint);
  border-radius: 3px;
  transform: scaleY(0);
  transform-origin: bottom;
  animation: exp-bar 0.5s cubic-bezier(.4,0,.2,1) forwards;
}
.exp-proc-bars span:nth-child(odd) { background: rgba(65,101,245,0.35); }
@keyframes exp-bar { to { transform: scaleY(1); } }
.exp-proc-status {
  display: flex; align-items: center; gap: 7px;
  margin-top: 11px;
  font-family: var(--edc-font-ui); font-weight: 700; font-size: 12px;
  color: var(--m-success);
  opacity: 0;
  animation: exp-status-in 0.4s ease-out 1.25s forwards;
}
.exp-proc-status i { font-size: 15px; }
@keyframes exp-status-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.exp-conn {
  position: relative;
  width: 2px; height: 30px;
  background: linear-gradient(rgba(65,101,245,0.18), rgba(65,101,245,0.18));
  z-index: 1;
}
.exp-conn .pkt {
  position: absolute; left: -2px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 8px rgba(243,167,16,0.6);
  animation: exp-pkt 1.6s ease-in infinite;
}
@keyframes exp-pkt {
  0% { top: 100%; opacity: 0; }
  20% { opacity: 1; }
  100% { top: -6px; opacity: 0; }
}
.exp-stage {
  position: relative;
  width: 100%;
  height: 104px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 20%, #000 80%, transparent);
}
.exp-spot {
  position: absolute;
  left: 50%; top: 50%;
  width: 68px; height: 68px;
  margin: -34px 0 0 -34px;
  border-radius: 50%;
  border: 1.5px dashed rgba(243,167,16,0.55);
  z-index: 3;
  pointer-events: none;
  animation: exp-spot-spin 9s linear infinite;
}
@keyframes exp-spot-spin { to { transform: rotate(360deg); } }
.exp-track {
  position: absolute;
  top: 50%; left: 50%;
  display: flex;
  align-items: center;
}
.exp-avatar {
  flex: 0 0 80px;
  display: flex;
  justify-content: center;
  opacity: 0.45;
  transform: scale(0.8);
  transition: transform 0.5s var(--edc-ease), opacity 0.5s var(--edc-ease);
}
.exp-person {
  position: relative;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid var(--m-line-2);
  display: grid; place-items: center;
  color: var(--m-navy);
  font-size: 22px;
  transition: all 0.5s var(--edc-ease);
}
.exp-badge {
  position: absolute;
  right: -4px; bottom: -4px;
  width: 21px; height: 21px;
  border-radius: 50%;
  background: var(--m-navy);
  color: #fff;
  display: grid; place-items: center;
  font-size: 10px;
  border: 2px solid #fff;
}
.exp-avatar.focused {
  opacity: 1;
  transform: scale(1.18);
}
.exp-avatar.focused .exp-person {
  background: var(--m-accent);
  border-color: var(--m-accent);
  color: var(--m-navy-deep);
  box-shadow: 0 0 0 5px rgba(243,167,16,0.16), 0 10px 22px rgba(243,167,16,0.32);
}
.exp-avatar.focused .exp-badge {
  background: var(--m-navy);
  border-color: #fff;
}
.exp-focus-label {
  margin-top: 4px;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--m-navy);
  color: #fff;
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
  white-space: nowrap;
  z-index: 4;
  animation: exp-label-in 0.4s ease-out;
}
@keyframes exp-label-in {
  from { opacity: 0; transform: translateY(5px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* ============================================================
   BUILT-IN EDC SCENE — agent arranging blocks + route building
   ============================================================ */
.scene-builtin {
  flex-direction: column;
  gap: 18px;
  padding: 28px 30px;
}
.bie-half {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.bie-arrange { border-bottom: 1px solid var(--m-line); padding-bottom: 22px; }
.bie-cap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--m-navy);
}
.bie-cap-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 0 0 rgba(243,167,16,0.5);
  animation: pulse 2.4s ease-out infinite;
}

/* --- top: agent + block fitting --- */
.bie-arrange-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}
.bie-agent {
  position: relative;
  flex: none;
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 15px;
  background: var(--m-navy-tint);
  border: 1px solid rgba(65,101,245,0.25);
}
.bie-agent-mark {
  width: 32px; height: 24px;
  fill: var(--m-navy);
}
.bie-agent-ring {
  position: absolute;
  inset: -5px;
  border-radius: 19px;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 2.8s ease-out infinite;
}
.bie-arm {
  position: relative;
  flex: none;
  width: 34px;
  height: 2px;
  margin: 0 6px;
  background-image: linear-gradient(90deg, var(--m-navy) 50%, transparent 50%);
  background-size: 7px 2px;
  opacity: 0.4;
}
.bie-pkt {
  position: absolute;
  top: 50%; left: 0;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 0 3px rgba(243,167,16,0.18);
  animation: bie-pkt-run 2s cubic-bezier(.5,0,.5,1) infinite;
}
@keyframes bie-pkt-run {
  0% { left: 0; opacity: 0; }
  18% { opacity: 1; }
  82% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
.bie-frame {
  position: relative;
  flex: none;
  width: 168px;
  height: 117px;
}
.bie-blk {
  position: absolute;
  border-radius: 7px;
  animation: bie-block-loop 5.6s cubic-bezier(.34,1.2,.5,1) infinite;
}
.bie-blk-a { left: 0;  top: 0;  width: 80px;  height: 57px; background: var(--m-navy); }
.bie-blk-b { left: 88px; top: 0;  width: 80px;  height: 57px; background: var(--m-accent); }
.bie-blk-c { left: 0;  top: 60px; width: 61px;  height: 57px; background: var(--m-indigo); }
.bie-blk-d { left: 65px; top: 60px; width: 103px; height: 57px; background: var(--m-navy-soft); }
@keyframes bie-block-loop {
  0%, 4%    { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.72); opacity: 0; }
  10%       { opacity: 1; }
  24%, 74%  { transform: translate(0,0) rotate(0deg) scale(1); opacity: 1; }
  88%, 100% { transform: translate(var(--sx), var(--sy)) rotate(var(--sr)) scale(0.72); opacity: 0; }
}

/* --- bottom: route building --- */
.bie-route-stage { width: 100%; }
.bie-route-svg { width: 100%; height: auto; display: block; overflow: visible; }
.bie-route-ghost {
  fill: none;
  stroke: var(--m-line-2);
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 2 8;
}
.bie-route-line {
  fill: none;
  stroke: var(--m-navy);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 380;
  stroke-dashoffset: 380;
  animation: bie-route-loop 5.6s cubic-bezier(.45,.05,.4,1) infinite;
}
@keyframes bie-route-loop {
  0%, 4%    { stroke-dashoffset: 380; }
  42%, 76%  { stroke-dashoffset: 0; }
  94%, 100% { stroke-dashoffset: 380; }
}
.bie-stop-base {
  fill: var(--m-navy);
  opacity: 0;
  animation: bie-base-loop 5.6s ease infinite;
  animation-delay: var(--d);
}
.bie-pin {
  transform-box: fill-box;
  transform-origin: 50% 100%;
  animation: bie-pin-loop 5.6s cubic-bezier(.3,1.4,.55,1) infinite;
  animation-delay: var(--d);
}
.bie-pin-body { fill: var(--m-accent); }
.bie-pin-dot { fill: #fff; }
@keyframes bie-base-loop {
  0%, 8%    { opacity: 0; }
  16%, 82%  { opacity: 1; }
  92%, 100% { opacity: 0; }
}
@keyframes bie-pin-loop {
  0%, 6%    { transform: translateY(-12px); opacity: 0; }
  14%       { opacity: 1; }
  20%, 78%  { transform: translateY(0); opacity: 1; }
  90%, 100% { transform: translateY(-12px); opacity: 0; }
}

/* ============================================================
   MOAT SCENE — MERCED core, orbiting dots + rotating data beams
   ============================================================ */
.scene-moat { padding: 24px; }
.mo-stage {
  position: relative;
  width: 320px;
  height: 320px;
  max-width: 100%;
}
.mo-glow {
  position: absolute;
  inset: 18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(94,112,224,0.28), rgba(94,112,224,0) 70%);
  filter: blur(6px);
}
.mo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.14);
}
.mo-ring-outer {
  inset: 0;
  box-shadow: 0 0 24px rgba(94,112,224,0.18), inset 0 0 24px rgba(94,112,224,0.08);
}
.mo-ring-inner {
  width: 120px; height: 120px;
  left: 50%; top: 50%;
  margin: -60px 0 0 -60px;
  border-color: rgba(255,255,255,0.2);
}

/* orbit tracks (rotate around stage center; dot offset to radius) */
.mo-track { position: absolute; inset: 0; }
.mo-track-cw  { animation: mo-spin 9s linear infinite; }          /* left -> right (clockwise) */
.mo-track-ccw { animation: mo-spin 6.5s linear infinite reverse; } /* right -> left (counter-cw) */
.mo-dot {
  position: absolute;
  left: 50%; top: 50%;
  border-radius: 50%;
}
.mo-dot-lg {
  width: 12px; height: 12px;
  margin: -6px 0 0 -6px;
  transform: translateY(-160px);
  background: var(--m-accent);
  box-shadow: 0 0 14px 4px rgba(243,167,16,0.7), 0 0 4px 1px #fff;
}
.mo-dot-sm {
  width: 9px; height: 9px;
  margin: -4.5px 0 0 -4.5px;
  transform: translateY(-60px);
  background: #fff;
  box-shadow: 0 0 12px 4px rgba(94,112,224,0.85);
}

/* rotating beams — thin bright spokes masked into an annulus */
.mo-beams {
  position: absolute;
  inset: 16px;
  border-radius: 50%;
  -webkit-mask: radial-gradient(closest-side, transparent 0 40%, #000 46%, #000 90%, transparent 97%);
  mask: radial-gradient(closest-side, transparent 0 40%, #000 46%, #000 90%, transparent 97%);
  filter: blur(0.4px);
}
.mo-beams-a {
  background: repeating-conic-gradient(from 0deg,
    rgba(243,167,16,0) 0deg, rgba(243,167,16,0.6) 1.5deg, rgba(243,167,16,0) 3.4deg, rgba(243,167,16,0) 30deg);
  animation: mo-spin 16s linear infinite;
}
.mo-beams-b {
  background: repeating-conic-gradient(from 9deg,
    rgba(94,112,224,0) 0deg, rgba(94,112,224,0.55) 1.4deg, rgba(94,112,224,0) 3.2deg, rgba(94,112,224,0) 45deg);
  animation: mo-spin 22s linear infinite reverse;
}

/* center core */
.mo-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 94px; height: 94px;
  margin: -47px 0 0 -47px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 38%, rgba(94,112,224,0.4), rgba(10,18,69,0.92));
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 0 34px rgba(94,112,224,0.45), inset 0 0 18px rgba(255,255,255,0.06);
}
.mo-core-pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 3.2s ease-out infinite;
}
.mo-core-mark {
  position: relative;
  width: 48px; height: 36px;
  fill: #fff;
}
@keyframes mo-spin { to { transform: rotate(360deg); } }

/* ============================================================
   USE CASES SCENES
   ============================================================ */

/* ---- UCHeroScene: capabilities converging (dark) ---- */
.uch { padding: 24px; }
.uch-wires {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.uch-wire {
  stroke: rgba(255,255,255,0.16);
  stroke-width: 1.5;
  stroke-dasharray: 5 9;
  animation: uch-flow 1.4s linear infinite;
}
.uch-wire.n2 { animation-delay: -0.4s; }
.uch-wire.n3 { animation-delay: -0.8s; }
.uch-wire.n4 { animation-delay: -1.1s; }
@keyframes uch-flow { to { stroke-dashoffset: -14; } }
.uch-core {
  position: absolute;
  left: 50%; top: 50%;
  width: 84px; height: 84px;
  margin: -42px 0 0 -42px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 38%, rgba(94,112,224,0.5), rgba(10,18,69,0.95));
  border: 1px solid rgba(255,255,255,0.3);
  box-shadow: 0 0 34px rgba(94,112,224,0.5);
  z-index: 2;
}
.uch-core-mark { position: relative; width: 42px; height: 32px; fill: #fff; }
.uch-core-pulse {
  position: absolute;
  inset: -1px;
  border-radius: 50%;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 3s ease-out infinite;
}
.uch-core-pulse.p2 { animation-delay: 1.5s; }
.uch-node {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border-radius: 999px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  color: #fff;
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 13px;
  backdrop-filter: blur(4px);
  animation: uch-float 4s ease-in-out infinite;
  z-index: 3;
}
.uch-node i { color: var(--m-accent); font-size: 15px; }
.uch-node.n1 { left: 6%;  top: 13%; }
.uch-node.n2 { right: 6%; top: 13%; }
.uch-node.n3 { left: 6%;  bottom: 13%; animation-delay: -1s; }
.uch-node.n4 { right: 6%; bottom: 13%; animation-delay: -2s; }
@keyframes uch-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* ---- UC247Scene: calls answered round the clock (light) ---- */
.uc247 { padding: 24px; }
.uc247-dial {
  position: relative;
  width: 260px; height: 260px;
  max-width: 86%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid var(--m-line-2);
  background: radial-gradient(circle, #fff 58%, rgba(65,101,245,0.04) 100%);
  box-shadow: 0 16px 44px rgba(16,24,40,0.08);
}
.uc247-tick {
  position: absolute;
  left: 50%; top: 6px;
  width: 2px; height: 9px;
  margin-left: -1px;
  background: var(--m-line-2);
  transform-origin: 50% 124px;
}
.uc247-tick:nth-child(3n+1) { background: var(--m-navy); height: 12px; }
.uc247-hand {
  position: absolute;
  left: 50%; top: 50%;
  width: 3px; height: 96px;
  margin-left: -1.5px;
  background: linear-gradient(180deg, var(--m-accent), rgba(243,167,16,0.2));
  border-radius: 3px;
  transform-origin: 50% 0;
  transform: translateY(0);
  animation: uc247-sweep 8s linear infinite;
}
@keyframes uc247-sweep { to { transform: rotate(360deg); } }
.uc247-center {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 108px; height: 108px;
  border-radius: 50%;
  background: var(--m-navy);
  display: grid;
  place-items: center;
  text-align: center;
  z-index: 3;
  box-shadow: 0 0 0 6px #fff, 0 8px 20px rgba(16,24,40,0.18);
}
.uc247-num {
  display: block;
  font-family: var(--edc-font-sans);
  font-weight: 700;
  font-size: 30px;
  line-height: 1;
  color: #fff;
}
.uc247-cap {
  display: block;
  font-family: var(--edc-font-ui);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.6);
  margin-top: 5px;
}
.uc247-call {
  position: absolute;
  width: 40px; height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 6px 16px rgba(16,24,40,0.12);
  z-index: 4;
}
.uc247-call i { position: absolute; font-size: 17px; }
.uc247-call .phone { color: var(--m-accent); animation: uc247-phone 3s ease-in-out infinite; }
.uc247-call .check { color: var(--m-success); opacity: 0; animation: uc247-check 3s ease-in-out infinite; }
.uc247-call.k1 { left: 84%; top: 30%; }
.uc247-call.k2 { left: 22%; top: 80%; animation-delay: -1s; }
.uc247-call.k3 { left: 10%; top: 32%; }
.uc247-call.k2 .phone, .uc247-call.k2 .check { animation-delay: -1s; }
.uc247-call.k3 .phone, .uc247-call.k3 .check { animation-delay: -2s; }
@keyframes uc247-phone {
  0%, 8% { transform: scale(0); opacity: 0; }
  18%, 45% { transform: scale(1); opacity: 1; }
  55%, 100% { transform: scale(1); opacity: 0; }
}
@keyframes uc247-check {
  0%, 50% { transform: scale(0.4); opacity: 0; }
  60%, 88% { transform: scale(1); opacity: 1; }
  96%, 100% { transform: scale(1); opacity: 0; }
}

/* ---- UCKnowledgeScene: knowledge powering the call (light) ---- */
.uck { padding: 22px; }
.uck-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
}
.uck-sources {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: none;
}
.uck-src {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 9px 13px 9px 11px;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(16,24,40,0.06);
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--m-navy);
}
.uck-src i { color: var(--m-navy); font-size: 16px; }
.uck-pulse {
  position: absolute;
  right: -7px; top: 50%;
  width: 7px; height: 7px;
  margin-top: -3.5px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 8px 2px rgba(243,167,16,0.6);
  opacity: 0;
  animation: uck-send 2.6s ease-in infinite;
}
.uck-src.s2 .uck-pulse { animation-delay: -0.87s; }
.uck-src.s3 .uck-pulse { animation-delay: -1.74s; }
@keyframes uck-send {
  0% { transform: translateX(0); opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { transform: translateX(54px); opacity: 0; }
}
.uck-core {
  position: relative;
  flex: none;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--m-navy);
  box-shadow: 0 0 0 6px rgba(65,101,245,0.12), 0 10px 24px rgba(16,24,40,0.18);
}
.uck-core-mark { width: 36px; height: 27px; fill: #fff; position: relative; }
.uck-core-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 2.6s ease-out infinite;
}
.uck-call {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.uck-wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 48px;
}
.uck-bar {
  width: 5px;
  height: 14px;
  border-radius: 3px;
  background: var(--m-accent);
  animation: uck-eq 1s ease-in-out infinite;
}
@keyframes uck-eq {
  0%, 100% { height: 10px; opacity: 0.55; }
  50% { height: 40px; opacity: 1; }
}
.uck-call-tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--m-navy-tint);
  color: var(--m-navy);
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 12px;
}
.uck-call-tag i { color: var(--m-accent); }

/* ---- UCTranslateScene: two speakers + AI bridge (light) ---- */
.uctr { padding: 20px; }
.uctr-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
}
.uctr-person {
  position: relative;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 92px;
}
.uctr-avatar {
  width: 58px; height: 58px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 6px 16px rgba(16,24,40,0.1);
  font-size: 28px;
  color: var(--m-navy);
}
.uctr-left .uctr-avatar { color: var(--m-navy); }
.uctr-right .uctr-avatar { color: var(--m-indigo); }
.uctr-flag {
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--m-muted);
}
.uctr-bubble {
  position: absolute;
  top: -6px;
  padding: 6px 11px;
  border-radius: 12px;
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  box-shadow: 0 6px 16px rgba(16,24,40,0.12);
  opacity: 0;
}
.uctr-b-l {
  right: -16px;
  background: var(--m-navy);
  color: #fff;
  border-bottom-left-radius: 3px;
  animation: uctr-bub 4s ease-in-out infinite;
}
.uctr-b-r {
  left: -16px;
  background: var(--m-indigo);
  color: #fff;
  border-bottom-right-radius: 3px;
  animation: uctr-bub 4s ease-in-out infinite;
  animation-delay: 2s;
}
@keyframes uctr-bub {
  0%, 4% { opacity: 0; transform: translateY(6px) scale(0.9); }
  12%, 40% { opacity: 1; transform: translateY(0) scale(1); }
  48%, 100% { opacity: 0; transform: translateY(-4px) scale(0.96); }
}
.uctr-bridge {
  position: relative;
  flex: 1;
  max-width: 150px;
  height: 80px;
  display: grid;
  place-items: center;
}
.uctr-core {
  position: relative;
  width: 56px; height: 56px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--m-navy);
  box-shadow: 0 0 0 5px rgba(65,101,245,0.12), 0 8px 20px rgba(16,24,40,0.18);
  z-index: 2;
}
.uctr-core-mark { width: 30px; height: 22px; fill: #fff; position: relative; }
.uctr-core-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 2.8s ease-out infinite;
}
.uctr-spark {
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 8px 2px rgba(243,167,16,0.6);
  opacity: 0;
}
.uctr-spark.s-lr { left: 0; animation: uctr-lr 4s ease-in-out infinite; }
.uctr-spark.s-rl { right: 0; animation: uctr-rl 4s ease-in-out infinite; animation-delay: 2s; }
@keyframes uctr-lr {
  0%, 8% { left: 0; opacity: 0; }
  14% { opacity: 1; }
  40% { left: calc(50% - 4.5px); opacity: 1; }
  48%, 100% { left: calc(50% - 4.5px); opacity: 0; }
}
@keyframes uctr-rl {
  0%, 8% { right: 0; opacity: 0; }
  14% { opacity: 1; }
  40% { right: calc(50% - 4.5px); opacity: 1; }
  48%, 100% { right: calc(50% - 4.5px); opacity: 0; }
}

/* ---- UCExpertsScene: two agents collaborate to an answer (light) ---- */
.ucex { padding: 22px; }
.ucex-stage {
  position: relative;
  width: 320px; height: 240px;
  max-width: 100%;
}
.ucex-agent {
  position: absolute;
  top: 18px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  width: 110px;
  z-index: 2;
}
.ucex-a1 { left: 6px; }
.ucex-a2 { right: 6px; }
.ucex-badge {
  width: 54px; height: 54px;
  display: grid; place-items: center;
  border-radius: 14px;
  font-size: 24px;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 6px 16px rgba(16,24,40,0.1);
}
.ucex-a1 .ucex-badge { color: var(--m-navy); }
.ucex-a2 .ucex-badge { color: var(--m-indigo); }
.ucex-role {
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--m-navy);
}
.ucex-wires { position: absolute; inset: 0; width: 100%; height: 100%; }
.ucex-wire {
  fill: none;
  stroke: var(--m-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 6 8;
  opacity: 0.7;
  animation: ucex-flow 1.3s linear infinite;
}
.ucex-wire.w2 { animation-delay: -0.65s; stroke: var(--m-indigo); }
@keyframes ucex-flow { to { stroke-dashoffset: -14; } }
.ucex-answer {
  position: absolute;
  left: 50%; bottom: 16px;
  transform: translateX(-50%);
  width: 92px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 3;
}
.ucex-answer i {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--m-success);
  color: #fff;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(31,138,91,0.3);
}
.ucex-answer-pulse {
  position: absolute;
  top: 0; left: 50%;
  width: 52px; height: 52px;
  margin-left: -26px;
  border-radius: 50%;
  border: 2px solid var(--m-success);
  opacity: 0;
  animation: ucex-pop 2.4s ease-out infinite;
}
@keyframes ucex-pop {
  0% { transform: scale(0.7); opacity: 0.7; }
  70%, 100% { transform: scale(1.6); opacity: 0; }
}
.ucex-answer-label {
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--m-success);
}

/* ---- UCDocsScene: documents processed (light) ---- */
.ucd { padding: 20px; }
.ucd-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
}
.ucd-feed {
  position: relative;
  flex: none;
  width: 46px;
  height: 120px;
}
.ucd-doc {
  position: absolute;
  left: 50%;
  width: 38px; height: 46px;
  margin-left: -19px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 4px 12px rgba(16,24,40,0.08);
  color: var(--m-muted);
  font-size: 18px;
  animation: ucd-glide 3s ease-in infinite;
}
.ucd-doc.d1 { top: 0; }
.ucd-doc.d2 { top: 37px; animation-delay: -1s; }
.ucd-doc.d3 { top: 74px; animation-delay: -2s; }
@keyframes ucd-glide {
  0% { transform: translateX(0); opacity: 0; }
  18% { opacity: 1; }
  70% { transform: translateX(34px); opacity: 1; }
  85%, 100% { transform: translateX(46px); opacity: 0; }
}
.ucd-core {
  position: relative;
  flex: none;
  width: 72px; height: 72px;
  display: grid; place-items: center;
  border-radius: 16px;
  background: var(--m-navy);
  box-shadow: 0 0 0 5px rgba(65,101,245,0.12), 0 10px 24px rgba(16,24,40,0.18);
  overflow: hidden;
}
.ucd-core-mark { width: 36px; height: 27px; fill: #fff; position: relative; z-index: 2; }
.ucd-core-ring {
  position: absolute;
  inset: -5px;
  border-radius: 18px;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 2.6s ease-out infinite;
}
.ucd-scan {
  position: absolute;
  left: 0; right: 0;
  height: 14px;
  background: linear-gradient(180deg, rgba(243,167,16,0), rgba(243,167,16,0.55), rgba(243,167,16,0));
  animation: ucd-scan 2s linear infinite;
}
@keyframes ucd-scan {
  0% { top: -14px; }
  100% { top: 72px; }
}
.ucd-out {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ucd-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 12px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 4px 12px rgba(16,24,40,0.06);
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 13px;
  color: var(--m-navy);
}
.ucd-chip i { color: var(--m-accent); font-size: 14px; }
.ucd-tick {
  display: grid; place-items: center;
  width: 16px; height: 16px;
  margin-left: auto;
  border-radius: 50%;
  background: var(--m-success);
  color: #fff;
  font-size: 10px;
  opacity: 0;
  transform: scale(0.4);
}
.ucd-chip i.bi-check { color: #fff; }
.ucd-chip.o1 .ucd-tick { animation: ucd-done 3s ease-in-out infinite; animation-delay: 0.4s; }
.ucd-chip.o2 .ucd-tick { animation: ucd-done 3s ease-in-out infinite; animation-delay: 1.0s; }
.ucd-chip.o3 .ucd-tick { animation: ucd-done 3s ease-in-out infinite; animation-delay: 1.6s; }
@keyframes ucd-done {
  0%, 10% { opacity: 0; transform: scale(0.4); }
  22%, 80% { opacity: 1; transform: scale(1); }
  92%, 100% { opacity: 0; transform: scale(0.4); }
}

/* ---- UCDispatchScene: jobs matched to crews (light) ---- */
.ucdp { padding: 20px; }
.ucdp-stage {
  position: relative;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 70px;
  width: 100%;
  max-width: 360px;
}
.ucdp-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: none;
  width: 120px;
}
.ucdp-col-head {
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--m-muted);
  text-align: center;
}
.ucdp-job, .ucdp-crew {
  position: relative;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 11px;
  border-radius: 9px;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 4px 12px rgba(16,24,40,0.06);
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 12px;
  color: var(--m-navy);
}
.ucdp-job i { color: var(--m-accent); font-size: 14px; }
.ucdp-crew i { color: var(--m-navy); font-size: 14px; }
.ucdp-crew {
  animation: ucdp-pick 3s ease-in-out infinite;
}
.ucdp-crew.c1 { animation-delay: 0.2s; }
.ucdp-crew.c2 { animation-delay: 1.0s; }
.ucdp-crew.c3 { animation-delay: 1.8s; }
@keyframes ucdp-pick {
  0%, 18% { border-color: var(--m-line); box-shadow: 0 4px 12px rgba(16,24,40,0.06); }
  30%, 64% { border-color: var(--m-success); box-shadow: 0 6px 18px rgba(31,138,91,0.22); }
  78%, 100% { border-color: var(--m-line); box-shadow: 0 4px 12px rgba(16,24,40,0.06); }
}
.ucdp-match {
  position: absolute;
  right: -8px; top: -8px;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--m-success);
  color: #fff;
  font-size: 11px;
  opacity: 0;
  transform: scale(0.4);
}
.ucdp-crew.c1 .ucdp-match { animation: ucd-done 3s ease-in-out infinite; animation-delay: 0.2s; }
.ucdp-crew.c2 .ucdp-match { animation: ucd-done 3s ease-in-out infinite; animation-delay: 1.0s; }
.ucdp-crew.c3 .ucdp-match { animation: ucd-done 3s ease-in-out infinite; animation-delay: 1.8s; }
.ucdp-wires {
  position: absolute;
  left: 50%; top: 22px;
  transform: translateX(-50%);
  width: 70px; height: calc(100% - 22px);
  z-index: 0;
}
.ucdp-wire {
  fill: none;
  stroke: var(--m-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 5 7;
  opacity: 0.6;
  animation: ucdp-flow 1.3s linear infinite;
}
.ucdp-wire.m2 { stroke: var(--m-indigo); animation-delay: -0.5s; }
.ucdp-wire.m3 { stroke: var(--m-navy); animation-delay: -0.9s; }
@keyframes ucdp-flow { to { stroke-dashoffset: -12; } }

/* ---- UCSecureScene: safe, in-house, compliant (light) ---- */
.ucsec { padding: 18px; }
.ucsec-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.ucsec-perimeter {
  position: relative;
  width: 230px; height: 168px;
  border: 2px dashed rgba(65,101,245,0.35);
  border-radius: 18px;
  background: rgba(65,101,245,0.04);
  display: grid;
  place-items: center;
}
.ucsec-tag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--m-line);
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.02em;
  color: var(--m-navy);
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(16,24,40,0.07);
}
.ucsec-tag i { color: var(--m-accent); font-size: 12px; }
.ucsec-core {
  position: relative;
  width: 70px; height: 70px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--m-navy);
  color: #fff;
  font-size: 30px;
  box-shadow: 0 0 0 6px rgba(65,101,245,0.12), 0 10px 24px rgba(16,24,40,0.2);
  z-index: 2;
}
.ucsec-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1.5px solid var(--m-accent);
  opacity: 0;
  animation: hero-pulse 2.8s ease-out infinite;
}
.ucsec-ring.r2 { animation-delay: 1.4s; }
.ucsec-orbit {
  position: absolute;
  left: 50%; top: 50%;
  width: 8px; height: 8px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 7px 1px rgba(243,167,16,0.5);
  transform-origin: 4px 4px;
  animation: ucsec-spin 5s linear infinite;
}
.ucsec-orbit.o1 { transform: rotate(0deg) translateX(58px); }
.ucsec-orbit.o2 { transform: rotate(120deg) translateX(58px); animation-delay: -1.6s; }
.ucsec-orbit.o3 { transform: rotate(240deg) translateX(58px); animation-delay: -3.3s; }
@keyframes ucsec-spin {
  to { transform: rotate(360deg) translateX(58px) rotate(-360deg); }
}
.ucsec-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: 280px;
}
.ucsec-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--m-line);
  box-shadow: 0 3px 9px rgba(16,24,40,0.05);
  font-family: var(--edc-font-ui);
  font-weight: 600;
  font-size: 12px;
  color: var(--m-navy);
  opacity: 0;
  animation: ucsec-badge-in 5s ease-in-out infinite;
}
.ucsec-badge i { color: var(--m-success); font-size: 13px; }
.ucsec-badge.b1 { animation-delay: 0.3s; }
.ucsec-badge.b2 { animation-delay: 0.8s; }
.ucsec-badge.b3 { animation-delay: 1.3s; }
.ucsec-badge.b4 { animation-delay: 1.8s; }
@keyframes ucsec-badge-in {
  0%, 4% { opacity: 0; transform: translateY(6px); }
  14%, 88% { opacity: 1; transform: translateY(0); }
  96%, 100% { opacity: 0; transform: translateY(0); }
}

/* ---- UCEcosystemScene: MERCED integrated with EDC products (light) ---- */
.uceco { padding: 20px; }
.uceco-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
}
.uceco-node {
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}
.uceco-node-label {
  font-family: var(--edc-font-ui);
  font-weight: 700;
  font-size: 12px;
  color: var(--m-navy);
}
.uceco-merced .uceco-merced-mark {
  width: 44px; height: 33px;
  fill: #fff;
}
.uceco-merced > :first-child {
  width: 82px; height: 82px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: var(--m-navy);
  box-shadow: 0 0 0 6px rgba(65,101,245,0.12), 0 12px 28px rgba(16,24,40,0.2);
}
.uceco-edc {
  width: 150px;
}
.uceco-edc-logo {
  width: 134px;
  padding: 20px 16px;
  background: #fff;
  border: 1px solid var(--m-line);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(16,24,40,0.1);
}
.uceco-link {
  position: relative;
  flex: 1;
  max-width: 130px;
  height: 3px;
  margin: 0 4px;
  align-self: center;
  margin-bottom: 28px;
  background-image: linear-gradient(90deg, var(--m-navy) 45%, transparent 45%);
  background-size: 9px 3px;
  border-radius: 3px;
  opacity: 0.45;
}
.uceco-link-badge {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--m-accent);
  color: var(--m-navy-deep);
  font-size: 17px;
  box-shadow: 0 4px 12px rgba(243,167,16,0.4);
  z-index: 2;
}
.uceco-pkt {
  position: absolute;
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--m-accent);
  box-shadow: 0 0 8px 2px rgba(243,167,16,0.6);
}
.uceco-pkt.p-right { left: 0; animation: uceco-right 2.2s ease-in-out infinite; }
.uceco-pkt.p-left { right: 0; animation: uceco-left 2.2s ease-in-out infinite; animation-delay: 1.1s; }
@keyframes uceco-right {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: 100%; opacity: 0; }
}
@keyframes uceco-left {
  0% { right: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { right: 100%; opacity: 0; }
}

/* ============================================================
   Tweaks panel positioning override (lighter shadow on light bg)
   ============================================================ */
@media (max-width: 600px) {
  .scene-private { grid-template-columns: 1fr; padding: 24px; }
  .vault { max-width: 240px; }
  .moat-grid { grid-template-columns: 1fr; }
  .ccs-stats { grid-template-columns: 1fr; }
  .bie-arrange-stage { flex-wrap: wrap; gap: 10px; }
  .bie-arm { display: none; }
}
