/**
 * Scion Presentation Styles
 * Custom variables and themes adapted from Scion Web client dark-mode.
 */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500&family=Outfit:wght@400;500;600;700;800&display=swap');

/* ==========================================================================
   Design Tokens (Scion Dark Palette)
   ========================================================================== */
:root {
  /* Scion Slate Neutrals */
  --scion-bg: #0f172a;          /* slate-900 */
  --scion-bg-subtle: #1e293b;   /* slate-800 */
  --scion-surface: #1e293b;     /* slate-800 */
  --scion-surface-raised: #334155; /* slate-700 */
  --scion-border: #334155;      /* slate-700 */
  --scion-border-hover: #475569; /* slate-600 */

  /* Scion Primary Accents */
  --scion-primary: #60a5fa;     /* blue-400 */
  --scion-primary-hover: #93c5fd; /* blue-300 */
  --scion-primary-active: #3b82f6; /* blue-500 */
  --scion-primary-muted: rgba(96, 165, 250, 0.15);

  /* Status Colors */
  --scion-success: #22c55e;
  --scion-warning: #f59e0b;
  --scion-danger: #ef4444;
  --scion-info: #60a5fa;

  /* Text Colors */
  --scion-text: #f1f5f9;        /* slate-100 */
  --scion-text-secondary: #cbd5e1; /* slate-300 */
  --scion-text-muted: #94a3b8;   /* slate-400 */
  --scion-text-disabled: #64748b;

  /* Typography */
  --font-sans: 'Inter', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-header: 'Outfit', var(--font-sans);
  --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, monospace;

  /* Effects */
  --scion-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3), 0 2px 4px -2px rgb(0 0 0 / 0.3);
  --scion-shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4), 0 4px 6px -4px rgb(0 0 0 / 0.4);
  --scion-radius-sm: 0.25rem;
  --scion-radius: 0.5rem;
  --scion-radius-lg: 0.75rem;
  --scion-radius-xl: 1rem;

  --transition-fast: 150ms ease;
  --transition-normal: 300ms cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* ==========================================================================
   Reset & Baseline
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background-color: var(--scion-bg);
  color: var(--scion-text);
  font-family: var(--font-sans);
  overflow: hidden;
  height: 100vh;
  width: 100vw;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Background grid glow effects */
.bg-glows {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.bg-glow-1 {
  position: absolute;
  top: -10%;
  right: -10%;
  width: 50vw;
  height: 50vw;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.08) 0%, transparent 70%);
  filter: blur(80px);
}

.bg-glow-2 {
  position: absolute;
  bottom: -10%;
  left: -10%;
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, transparent 70%);
  filter: blur(100px);
}

/* ==========================================================================
   Slide Structure
   ========================================================================== */
.presentation-container {
  position: relative;
  width: 100vw;
  height: 100vh;
  z-index: 2;
  display: flex;
  flex-direction: column;
}

/* Header */
.presentation-header {
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  border-bottom: 1px solid var(--scion-border);
  background-color: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 32px;
  height: 32px;
  color: var(--scion-primary);
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.4));
}

.logo-text {
  font-family: var(--font-header);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.025em;
  color: var(--scion-text);
}

.logo-text span {
  color: var(--scion-primary);
}

.deck-title {
  font-family: var(--font-header);
  font-weight: 500;
  font-size: 0.875rem;
  color: var(--scion-text-muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* Slides Workspace */
.slides-wrapper {
  flex: 1;
  position: relative;
  width: 100%;
  height: calc(100% - 52px - 46px); /* accounting for header and footer */
}

.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: grid;
  grid-template-columns: 45% 55%;
  padding: 1rem 3rem;
  gap: 2.5rem;
  opacity: 0;
  pointer-events: none;
  transform: translateX(100px);
  transition: opacity var(--transition-slow), transform var(--transition-slow);
  z-index: 5;
}

.slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 6;
}

.slide.previous {
  opacity: 0;
  pointer-events: none;
  transform: translateX(-100px);
}

/* Slide Content (Left Side) */
.slide-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.slide-number {
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: var(--scion-primary);
  font-weight: 500;
  margin-bottom: 0.75rem;
  letter-spacing: 0.1em;
}

.slide-title {
  font-family: var(--font-header);
  font-size: 2.15rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--scion-text);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}

.slide-desc {
  font-size: 0.975rem;
  color: var(--scion-text-secondary);
  line-height: 1.5;
  margin-bottom: 1rem;
}

.slide-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.slide-bullets li {
  position: relative;
  padding-left: 2rem;
  font-size: 0.95rem;
  color: var(--scion-text-secondary);
  line-height: 1.5;
  transition: transform var(--transition-fast);
}

.slide-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.4rem;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--scion-primary);
  box-shadow: 0 0 6px var(--scion-primary);
}

.slide-bullets li strong {
  color: var(--scion-text);
  font-weight: 600;
}

/* Slide Visual Container (Right Side) */
.slide-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  position: relative;
}

.visual-panel {
  width: 100%;
  height: 90%;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius-xl);
  backdrop-filter: blur(12px);
  padding: 2rem;
  box-shadow: var(--scion-shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.5);
  padding-bottom: 0.75rem;
}

.panel-title {
  font-family: var(--font-header);
  font-size: 1rem;
  font-weight: 600;
  color: var(--scion-text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.panel-title svg {
  width: 18px;
  height: 18px;
  color: var(--scion-primary);
}

.panel-controls {
  display: flex;
  gap: 0.5rem;
}

.window-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: #334155;
}
.window-dot.red { background-color: var(--scion-danger); opacity: 0.7; }
.window-dot.yellow { background-color: var(--scion-warning); opacity: 0.7; }
.window-dot.green { background-color: var(--scion-success); opacity: 0.7; }

/* ==========================================================================
   Navigation & Footer Controls
   ========================================================================== */
.presentation-footer {
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 3rem;
  border-top: 1px solid var(--scion-border);
  background-color: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(12px);
  z-index: 10;
}

.footer-instructions {
  font-size: 0.75rem;
  color: var(--scion-text-muted);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.key-badge {
  background-color: var(--scion-surface);
  border: 1px solid var(--scion-border);
  padding: 0.2rem 0.4rem;
  border-radius: var(--scion-radius-sm);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--scion-text-secondary);
}

.footer-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.progress-dots {
  display: flex;
  gap: 0.5rem;
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--scion-border);
  cursor: pointer;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.progress-dot.active {
  background-color: var(--scion-primary);
  transform: scale(1.3);
  box-shadow: 0 0 8px var(--scion-primary);
}

.nav-buttons {
  display: flex;
  gap: 0.5rem;
}

.nav-btn {
  background: var(--scion-surface);
  border: 1px solid var(--scion-border);
  color: var(--scion-text);
  padding: 0.5rem;
  border-radius: var(--scion-radius);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.nav-btn:hover:not(:disabled) {
  border-color: var(--scion-primary);
  color: var(--scion-primary);
  background: var(--scion-primary-muted);
}

.nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.nav-btn svg {
  width: 18px;
  height: 18px;
}

/* Progress bar at very bottom of screen */
.bottom-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background-color: var(--scion-primary);
  width: 0%;
  transition: width var(--transition-normal);
  z-index: 100;
  box-shadow: 0 0 8px var(--scion-primary);
}

/* Floating overlay arrows */
.floating-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 50px;
  height: 50px;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--scion-border);
  border-radius: 50%;
  color: var(--scion-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--transition-normal), color var(--transition-fast), background var(--transition-fast);
  z-index: 20;
  backdrop-filter: blur(4px);
}

.floating-arrow.left { left: 1rem; }
.floating-arrow.right { right: 1rem; }

body:hover .floating-arrow {
  opacity: 0.7;
}

.floating-arrow:hover {
  opacity: 1 !important;
  color: var(--scion-primary);
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--scion-primary);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.2);
}

.floating-arrow svg {
  width: 24px;
  height: 24px;
}

/* ==========================================================================
   Slide 1 Widget: Anatomy of an Agent
   ========================================================================== */
.agent-schema {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  max-width: 450px;
  margin: auto;
}

.schema-block {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  padding: 0.75rem 1.25rem;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  gap: 1rem;
  overflow: hidden;
}

.schema-block::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 4px;
  background-color: var(--scion-border);
  transition: background-color var(--transition-normal);
}

.schema-block svg {
  width: 20px;
  height: 20px;
  color: var(--scion-text-muted);
  transition: color var(--transition-normal), transform var(--transition-normal);
}

.schema-block-info {
  flex: 1;
}

.schema-block-title {
  font-family: var(--font-header);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--scion-text-secondary);
  margin-bottom: 0.15rem;
  transition: color var(--transition-normal);
}

.schema-block-desc {
  font-size: 0.75rem;
  color: var(--scion-text-muted);
}

/* Selected/Hovered states */
.schema-block:hover, .schema-block.active {
  background: rgba(30, 41, 59, 0.8);
  border-color: var(--scion-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(96, 165, 250, 0.1);
}

.schema-block:hover::before, .schema-block.active::before {
  background-color: var(--scion-primary);
}

.schema-block:hover svg, .schema-block.active svg {
  color: var(--scion-primary);
  transform: scale(1.1);
}

.schema-block:hover .schema-block-title, .schema-block.active .schema-block-title {
  color: var(--scion-text);
}

/* Detail tooltip board */
.schema-details-board {
  margin-top: 1rem;
  background: rgba(15, 23, 42, 0.8);
  border: 1px dashed var(--scion-primary);
  border-radius: var(--scion-radius);
  padding: 1rem;
  min-height: 90px;
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--scion-text-secondary);
  transition: opacity var(--transition-normal);
}

.schema-details-board strong {
  color: var(--scion-primary);
}

/* ==========================================================================
   Slide 2 Widget: State Model Simulator
   ========================================================================== */
.state-simulator {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.sim-visualizer {
  flex: 1;
  display: grid;
  grid-template-rows: auto auto 1fr;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  padding: 1.25rem;
  gap: 1.25rem;
}

.sim-row {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* Label */
.sim-label {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--scion-text-muted);
}

.sim-state-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.state-badge {
  background: var(--scion-bg-subtle);
  border: 1px solid var(--scion-border);
  padding: 0.4rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.85rem;
  color: var(--scion-text-secondary);
  transition: all var(--transition-normal);
}

.state-badge.active-phase {
  background: rgba(59, 130, 246, 0.15);
  border-color: var(--scion-primary);
  color: var(--scion-primary);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.15);
}

.state-badge.active-activity {
  background: rgba(34, 197, 94, 0.1);
  border-color: var(--scion-success);
  color: var(--scion-success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.1);
}

.state-badge.active-activity.blocked {
  background: rgba(245, 158, 11, 0.1);
  border-color: var(--scion-warning);
  color: var(--scion-warning);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.1);
}

.sim-detail-box {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.detail-line {
  font-family: var(--font-mono);
  font-size: 0.925rem;
  color: var(--scion-text-secondary);
  line-height: 1.4;
}

.detail-line span {
  color: var(--scion-primary);
}

.sim-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sim-btn {
  background: var(--scion-primary);
  color: var(--scion-bg);
  border: none;
  padding: 0.5rem 1rem;
  font-family: var(--font-header);
  font-weight: 600;
  font-size: 0.85rem;
  border-radius: var(--scion-radius);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-btn:hover {
  background: var(--scion-primary-hover);
  transform: translateY(-1px);
}

.sim-btn svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   Slide 3 Widget: Message Broker Simulator
   ========================================================================== */
.broker-simulator {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.broker-playground {
  flex: 1;
  position: relative;
  background: rgba(15, 23, 42, 0.5);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2rem;
  overflow: hidden;
}

.agent-node {
  width: 90px;
  height: 90px;
  background: var(--scion-bg-subtle);
  border: 2px solid var(--scion-border);
  border-radius: var(--scion-radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  z-index: 5;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.agent-node.active-sender {
  border-color: var(--scion-primary);
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.3);
}

.agent-node.active-receiver {
  border-color: var(--scion-success);
  box-shadow: 0 0 15px rgba(34, 197, 94, 0.3);
}

.agent-node svg {
  width: 24px;
  height: 24px;
  color: var(--scion-text-secondary);
}

.agent-node span {
  font-family: var(--font-header);
  font-size: 0.875rem;
  font-weight: 600;
}

.broker-pipe {
  position: absolute;
  left: 110px;
  right: 110px;
  height: 4px;
  background: var(--scion-border);
  display: flex;
  align-items: center;
}

.broker-envelope {
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  color: var(--scion-primary);
  opacity: 0;
  pointer-events: none;
  transform: translateX(-10px);
}

@keyframes mail-flow {
  0% {
    left: 20px;
    opacity: 0;
    transform: scale(0.8) translateY(0);
  }
  15% {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
  }
  85% {
    opacity: 1;
    transform: scale(1.1) translateY(-5px);
  }
  100% {
    left: calc(100% - 40px);
    opacity: 0;
    transform: scale(0.8) translateY(0);
  }
}

.broker-envelope.animating {
  animation: mail-flow 1.5s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

/* Simulated terminal output logs */
.broker-logs {
  height: 110px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: #10b981; /* emerald-500 */
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.log-line {
  display: flex;
  gap: 0.5rem;
}

.log-time {
  color: var(--scion-text-muted);
}

.log-content {
  color: var(--scion-text-secondary);
}

.log-content span.cmd {
  color: var(--scion-primary);
}

.log-content span.msg {
  color: #fcd34d;
}

/* ==========================================================================
   Slide 4 Widget: Reactive Wakeup Diagram
   ========================================================================== */
/* ==========================================================================
   Slide 4 Widget: Reactive Swarm Notification Flow Styles
   ========================================================================== */
.wakeup-diagram {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 0.75rem;
}

/* Swarm notification nodes */
.notif-node-group {
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.notif-node-group.idle {
  opacity: 0;
  pointer-events: none;
}

.notif-node-group.running,
.notif-node-group.blocked,
.notif-node-group.waiting,
.notif-node-group.completed {
  opacity: 1;
}

.notif-node-circle {
  transition: stroke 0.4s, fill 0.4s, opacity 0.4s, filter 0.4s;
}

.notif-node-circle.idle {
  stroke: #334155 !important;
  fill: #0f172a !important;
  opacity: 0.4;
}

.notif-node-circle.running {
  stroke: var(--scion-primary) !important;
  fill: rgba(96, 165, 250, 0.1) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.5));
}

.notif-node-circle.blocked {
  stroke: var(--scion-warning) !important;
  fill: rgba(245, 158, 11, 0.05) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(245, 158, 11, 0.5));
  animation: pulse-glow-blocked 1.5s infinite alternate;
}

.notif-node-circle.waiting {
  stroke: #d946ef !important;
  fill: rgba(217, 70, 239, 0.1) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 8px rgba(217, 70, 239, 0.6));
  animation: pulse-glow-waiting 1s infinite alternate;
}

.notif-node-circle.completed {
  stroke: var(--scion-success) !important;
  fill: rgba(34, 197, 94, 0.1) !important;
  opacity: 1 !important;
  filter: drop-shadow(0 0 6px rgba(34, 197, 94, 0.5));
}

.notif-edge {
  stroke: var(--scion-border);
  stroke-width: 1.5;
  transition: stroke 0.4s, stroke-width 0.4s;
  fill: none;
}

.notif-edge-pulse {
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
  transition: opacity 0.3s;
}

.state-emoji-overlay {
  transition: opacity 0.25s ease-out;
  pointer-events: none;
}

.notif-node-label {
  transition: opacity 0.4s;
}

/* Animations */
@keyframes pulse-glow-blocked {
  from { filter: drop-shadow(0 0 4px rgba(245, 158, 11, 0.2)); }
  to { filter: drop-shadow(0 0 10px rgba(245, 158, 11, 0.6)); }
}

@keyframes pulse-glow-waiting {
  from { filter: drop-shadow(0 0 4px rgba(217, 70, 239, 0.3)); }
  to { filter: drop-shadow(0 0 12px rgba(217, 70, 239, 0.7)); }
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.pulse-reverse {
  animation: laser-pulse-backward 2s linear infinite !important;
}

.secondary-btn:hover:not(:disabled) {
  border-color: var(--scion-primary) !important;
  color: var(--scion-primary) !important;
  background: rgba(96, 165, 250, 0.05) !important;
}

.wakeup-btn-bar {
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Slide 5 Widget: Shared Filesystem Simulator
   ========================================================================== */
.fs-simulator-widget {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 1rem;
}

.fs-diagram-container {
  flex: 1;
  background: rgba(15, 23, 42, 0.4);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fs-svg {
  width: 100%;
  height: 100%;
  max-height: 240px;
  display: block;
}

/* Base static tree lines */
.fs-tree-edge {
  stroke: var(--scion-border);
  stroke-width: 1.5;
  stroke-linecap: round;
  opacity: 0.6;
}

/* Operation lines (Agent to File) */
.fs-op-edge {
  stroke: var(--scion-border);
  stroke-width: 1.5;
  stroke-dasharray: 4 4;
  opacity: 0.3;
  transition: opacity var(--transition-normal);
}

.fs-op-edge-pulse {
  stroke-width: 2.5;
  stroke-dasharray: 6 12;
  opacity: 0;
  fill: none;
  transition: opacity var(--transition-normal);
}

.fs-op-edge-pulse.write {
  stroke: var(--scion-warning);
}

.fs-op-edge-pulse.read {
  stroke: var(--scion-primary);
}

/* Pulse animation on the dashed line */
@keyframes fs-dash {
  to {
    stroke-dashoffset: -36;
  }
}

.fs-op-edge-pulse.active {
  opacity: 1;
  animation: fs-dash 1.5s linear infinite;
}

/* Node Styling */
.fs-node-circle {
  fill: var(--scion-bg);
  stroke-width: 2;
  transition: all var(--transition-normal);
}

/* Directories */
.fs-node-circle.dir-node {
  stroke: #475569;
  fill: rgba(30, 41, 59, 0.9);
}

.fs-node-group:hover .dir-node {
  stroke: var(--scion-primary);
  filter: drop-shadow(0 0 6px rgba(96, 165, 250, 0.4));
}

/* Files */
.fs-node-circle.file-node {
  stroke: #334155;
  fill: rgba(15, 23, 42, 0.85);
}

.fs-node-group:hover .file-node {
  stroke: var(--scion-text-muted);
}

/* Active locks or accesses */
.fs-node-circle.file-node.locked {
  stroke: var(--scion-warning);
  fill: rgba(245, 158, 11, 0.08);
  filter: drop-shadow(0 0 8px rgba(245, 158, 11, 0.3));
}

.fs-node-circle.file-node.reading {
  stroke: var(--scion-primary);
  fill: rgba(96, 165, 250, 0.08);
  filter: drop-shadow(0 0 8px rgba(96, 165, 250, 0.3));
}

/* Agents */
.fs-node-circle.agent-node {
  stroke: var(--scion-border);
}

.fs-node-circle.agent-node.a1 {
  stroke: #f59e0b; /* Amber */
}

.fs-node-circle.agent-node.a2 {
  stroke: #06b6d4; /* Cyan/Teal read/write */
}

.fs-node-circle.agent-node.active {
  fill: rgba(15, 23, 42, 0.5);
}

/* Node labels */
.fs-node-label {
  font-family: var(--font-header);
  font-size: 0.65rem;
  font-weight: 600;
  fill: var(--scion-text-muted);
  pointer-events: none;
}

.fs-node-group:hover .fs-node-label {
  fill: var(--scion-text);
}

/* Lock overlay text standard formatting */
.lock-overlay {
  font-size: 0.72rem;
  opacity: 0;
  transition: opacity var(--transition-normal), transform var(--transition-normal);
  transform-origin: center;
  pointer-events: none;
  filter: drop-shadow(0 0 2px black);
}

.lock-overlay.active {
  opacity: 1;
}

/* Transient dot */
.transient-dot {
  pointer-events: none;
}

/* Dynamic simulator status card */
.fs-status-card {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  padding: 0.75rem 1rem;
  font-family: var(--font-header);
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--scion-text-secondary);
  text-align: center;
  transition: border-color var(--transition-normal), box-shadow var(--transition-normal);
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.fs-status-card.active-write {
  border-color: var(--scion-warning);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.fs-status-card.active-read {
  border-color: var(--scion-primary);
  box-shadow: 0 0 10px rgba(96, 165, 250, 0.15);
}

.fs-status-card.active-done {
  border-color: var(--scion-success);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.15);
}

.fs-btn-bar {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}


/* ==========================================================================
   Slide 1 Specialized Styles: Full-Width Layout & Definition Cards
   ========================================================================== */
.slide.slide-full {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.agent-definition-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
  width: 100%;
  max-width: 1080px;
}

.def-card {
  position: relative;
  overflow: hidden;
  background: rgba(30, 41, 59, 0.4);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius-lg);
  padding: 1.75rem 2.25rem;
  text-align: left;
  backdrop-filter: blur(12px);
  box-shadow: var(--scion-shadow);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.def-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
  background-color: var(--scion-border);
  transition: background-color var(--transition-normal);
}

.def-card-icon {
  width: 48px;
  height: 48px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--scion-text-muted);
  transition: all var(--transition-normal);
}

.def-card-icon svg {
  width: 26px;
  height: 26px;
}

.def-card-title {
  font-family: var(--font-header);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--scion-text);
  transition: color var(--transition-normal);
}

.def-card-body {
  font-size: 1.08rem;
  color: var(--scion-text-secondary);
  line-height: 1.58;
}

/* Hover & Active effects */
.def-card:hover, .def-card.active {
  background: rgba(30, 41, 59, 0.7);
  border-color: var(--scion-primary);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(96, 165, 250, 0.15);
}

.def-card:hover::before, .def-card.active::before {
  background-color: var(--scion-primary);
}

.def-card:hover .def-card-icon, .def-card.active .def-card-icon {
  color: var(--scion-primary);
  border-color: var(--scion-primary);
  background: var(--scion-primary-muted);
}

@media (max-width: 768px) {
  .agent-definition-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .def-card {
    padding: 1.5rem;
  }
}

/* ==========================================================================
   Slide 3 Widget: Co-mingled Collaborators Graph Styles
   ========================================================================== */
.collaborators-svg {
  display: block;
  overflow: visible;
}

.graph-edge {
  stroke: var(--scion-border);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.graph-edge-pulse {
  stroke: var(--scion-primary);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 32;
  fill: none;
  animation: laser-pulse-forward 3s linear infinite;
}

.graph-edge-pulse-reverse {
  stroke: var(--scion-success);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 8 32;
  fill: none;
  animation: laser-pulse-backward 3s linear infinite;
}

.graph-edge-transitive {
  stroke: rgba(148, 163, 184, 0.22);
  stroke-width: 1.5;
  fill: none;
}

/* Lateral Edge and glowing message dots styling */
.graph-edge-lateral {
  stroke: rgba(148, 163, 184, 0.15);
  stroke-width: 1.5;
  fill: none;
}

.graph-edge-pulse-lateral {
  stroke: var(--scion-primary);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 4 150;
  fill: none;
  animation: laser-dot-forward 4s linear infinite;
}

.graph-edge-pulse-lateral-reverse {
  stroke: var(--scion-success);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-dasharray: 4 150;
  fill: none;
  animation: laser-dot-backward 4s linear infinite;
}

@keyframes laser-dot-forward {
  from {
    stroke-dashoffset: 150;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes laser-dot-backward {
  from {
    stroke-dashoffset: -150;
  }
  to {
    stroke-dashoffset: 0;
  }
}

.graph-node-circle {
  fill: rgba(15, 23, 42, 0.9);
  stroke: var(--scion-border);
  stroke-width: 2;
  transition: all var(--transition-fast);
}

.graph-node-circle.rect-human {
  stroke: var(--scion-primary);
  stroke-width: 2.5;
}

.graph-node-circle.rect-parent {
  stroke: var(--scion-primary);
  stroke-width: 2;
}

.graph-node-circle.rect-child-left {
  stroke: var(--scion-success);
  stroke-width: 2;
}

.graph-node-circle.rect-child-right {
  stroke: var(--scion-info);
  stroke-width: 2;
}

.node-emoji-text {
  font-size: 1.35rem;
  fill: var(--scion-text); /* ensures emojis render in standard system colors with high contrast */
}

/* ==========================================================================
   Slide 3 Loop Animations (Creation / Deletion)
   ========================================================================== */
.dynamic-node, .dynamic-edge {
  opacity: 0;
  transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.dynamic-node.active {
  opacity: 1;
}

.dynamic-edge.active {
  opacity: 1;
}

.graph-node-group {
  cursor: pointer;
  transition: all var(--transition-fast);
}

.graph-node-group:hover {
  filter: brightness(1.3) drop-shadow(0 0 10px rgba(96, 165, 250, 0.4));
}

@keyframes laser-pulse-forward {
  from {
    stroke-dashoffset: 80;
  }
  to {
    stroke-dashoffset: 0;
  }
}

@keyframes laser-pulse-backward {
  from {
    stroke-dashoffset: -80;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* ==========================================================================
   Slide 6 Widget: Swarm Orchestration Summary (Static Grid)
   ========================================================================== */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.25rem;
  width: 95%;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.summary-card {
  background: rgba(30, 41, 59, 0.35);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius-lg);
  padding: 2.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
  min-height: 330px;
}

/* Individual Stage Colors and Outline Glows (Static Visual Distinction) */
.summary-card:nth-child(1) { border-color: rgba(245, 158, 11, 0.35); background: rgba(245, 158, 11, 0.02); }
.summary-card:nth-child(1) .pipeline-card-title { color: #f59e0b; }
.summary-card:nth-child(1) .pipeline-card-icon { opacity: 0.95; }

.summary-card:nth-child(2) { border-color: rgba(168, 85, 247, 0.35); background: rgba(168, 85, 247, 0.02); }
.summary-card:nth-child(2) .pipeline-card-title { color: #a855f7; }
.summary-card:nth-child(2) .pipeline-card-icon { opacity: 0.95; }

.summary-card:nth-child(3) { border-color: rgba(59, 130, 246, 0.35); background: rgba(59, 130, 246, 0.02); }
.summary-card:nth-child(3) .pipeline-card-title { color: #3b82f6; }
.summary-card:nth-child(3) .pipeline-card-icon { opacity: 0.95; }

.summary-card:nth-child(4) { border-color: rgba(6, 182, 212, 0.35); background: rgba(6, 182, 212, 0.02); }
.summary-card:nth-child(4) .pipeline-card-title { color: #06b6d4; }
.summary-card:nth-child(4) .pipeline-card-icon { opacity: 0.95; }

.summary-card:nth-child(5) { border-color: rgba(234, 179, 8, 0.35); background: rgba(234, 179, 8, 0.02); }
.summary-card:nth-child(5) .pipeline-card-title { color: #eab308; }
.summary-card:nth-child(5) .pipeline-card-icon { opacity: 0.95; }

/* Custom Hovers (Visual Feedback) */
.summary-card:hover {
  transform: translateY(-6px);
  background: rgba(30, 41, 59, 0.5);
}

.summary-card:nth-child(1):hover { border-color: #f59e0b; box-shadow: 0 8px 24px rgba(245, 158, 11, 0.15); }
.summary-card:nth-child(2):hover { border-color: #a855f7; box-shadow: 0 8px 24px rgba(168, 85, 247, 0.15); }
.summary-card:nth-child(3):hover { border-color: #3b82f6; box-shadow: 0 8px 24px rgba(59, 130, 246, 0.15); }
.summary-card:nth-child(4):hover { border-color: #06b6d4; box-shadow: 0 8px 24px rgba(6, 182, 212, 0.15); }
.summary-card:nth-child(5):hover { border-color: #eab308; box-shadow: 0 8px 24px rgba(234, 179, 8, 0.15); }

.summary-card .pipeline-card-icon {
  height: 55px;
  width: 100%;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  transition: transform var(--transition-normal);
}

.summary-card .pipeline-card-icon svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.summary-card:hover .pipeline-card-icon {
  transform: scale(1.08);
}

.summary-card .pipeline-card-title {
  font-family: var(--font-header);
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0;
  transition: color var(--transition-normal);
}

.summary-card .pipeline-card-body {
  font-family: var(--font-body);
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--scion-text-secondary);
  margin: 0;
}

/* Colors for specific icons on hover/active */
.summary-card:hover .define-color { filter: drop-shadow(0 0 4px #f59e0b); }
.summary-card:hover .boot-color { filter: drop-shadow(0 0 4px #a855f7); }
.summary-card:hover .spawn-color { filter: drop-shadow(0 0 4px #3b82f6); }
.summary-card:hover .notify-color { filter: drop-shadow(0 0 4px #06b6d4); }
.summary-card:hover .sync-color { filter: drop-shadow(0 0 4px #eab308); }

/* Responsive adjustments */
@media (max-width: 1024px) {
  .slide {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
    overflow-y: auto;
    padding: 2rem;
    gap: 2rem;
  }
  .slide-content {
    justify-content: flex-start;
  }
  .slide-visual {
    height: 380px;
  }
  .presentation-header {
    padding: 0 2rem;
  }
  .presentation-footer {
    padding: 0 2rem;
  }
}

/* ==========================================================================
   Slide 0 Widget: Scion Core Agenda
   ========================================================================== */
.agenda-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.5rem;
  width: 95%;
  max-width: 1100px;
  margin: 0 auto;
  align-items: stretch;
}

.agenda-card {
  background: rgba(30, 41, 59, 0.25);
  border: 1px solid var(--scion-border);
  border-radius: var(--scion-radius-lg);
  padding: 3rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  transition: transform var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal), background var(--transition-normal);
  text-align: center;
  cursor: pointer;
  min-height: 250px;
}

.agenda-card .agenda-num {
  font-family: var(--font-header);
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  transition: transform var(--transition-normal), text-shadow var(--transition-normal);
}

.agenda-card .agenda-title {
  font-family: var(--font-header);
  font-size: 1.45rem;
  font-weight: 700;
  margin: 0;
  color: var(--scion-text);
}

.agenda-card .agenda-subtitle {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--scion-text-muted);
  margin: 0;
}

/* Agenda Card Colors and Outline Glows */
.agenda-card:nth-child(1) { border-color: rgba(245, 158, 11, 0.25); background: rgba(245, 158, 11, 0.01); }
.agenda-card:nth-child(1) .agenda-num { color: #f59e0b; text-shadow: 0 0 15px rgba(245, 158, 11, 0.2); }
.agenda-card:nth-child(1):hover { border-color: #f59e0b; box-shadow: 0 8px 32px rgba(245, 158, 11, 0.2); background: rgba(245, 158, 11, 0.04); }

.agenda-card:nth-child(2) { border-color: rgba(168, 85, 247, 0.25); background: rgba(168, 85, 247, 0.01); }
.agenda-card:nth-child(2) .agenda-num { color: #a855f7; text-shadow: 0 0 15px rgba(168, 85, 247, 0.2); }
.agenda-card:nth-child(2):hover { border-color: #a855f7; box-shadow: 0 8px 32px rgba(168, 85, 247, 0.2); background: rgba(168, 85, 247, 0.04); }

.agenda-card:nth-child(3) { border-color: rgba(59, 130, 246, 0.25); background: rgba(59, 130, 246, 0.01); }
.agenda-card:nth-child(3) .agenda-num { color: #3b82f6; text-shadow: 0 0 15px rgba(59, 130, 246, 0.2); }
.agenda-card:nth-child(3):hover { border-color: #3b82f6; box-shadow: 0 8px 32px rgba(59, 130, 246, 0.2); background: rgba(59, 130, 246, 0.04); }

.agenda-card:nth-child(4) { border-color: rgba(6, 182, 212, 0.25); background: rgba(6, 182, 212, 0.01); }
.agenda-card:nth-child(4) .agenda-num { color: #06b6d4; text-shadow: 0 0 15px rgba(6, 182, 212, 0.2); }
.agenda-card:nth-child(4):hover { border-color: #06b6d4; box-shadow: 0 8px 32px rgba(6, 182, 212, 0.2); background: rgba(6, 182, 212, 0.04); }

.agenda-card:nth-child(5) { border-color: rgba(234, 179, 8, 0.25); background: rgba(234, 179, 8, 0.01); }
.agenda-card:nth-child(5) .agenda-num { color: #eab308; text-shadow: 0 0 15px rgba(234, 179, 8, 0.2); }
.agenda-card:nth-child(5):hover { border-color: #eab308; box-shadow: 0 8px 32px rgba(234, 179, 8, 0.2); background: rgba(234, 179, 8, 0.04); }

.agenda-card:hover {
  transform: translateY(-8px);
}

.agenda-card:hover .agenda-num {
  transform: scale(1.08);
}

@media (max-width: 768px) {
  .agenda-grid {
    grid-template-columns: 1fr;
    width: 100%;
    gap: 1rem;
  }
  .agenda-card {
    min-height: auto;
    padding: 1.5rem;
    flex-direction: row;
    justify-content: flex-start;
    gap: 1.5rem;
    text-align: left;
  }
  .agenda-card .agenda-num {
    font-size: 2.2rem;
  }
}
