/* ============================================================
   AINNA NEURALOPS HR — MARKETING WEBSITE
   Metallic Green / Neural Infrastructure Theme
   ============================================================ */

/* === THEME VARIABLES === */
:root {
  /* Day Mode — sage green, soft white, light grey */
  --bg-primary: #f8faf8;
  --bg-secondary: #f0f4f0;
  --bg-tertiary: #e8ede8;
  --bg-card: rgba(255,255,255,0.85);
  --bg-card-hover: rgba(255,255,255,0.95);
  --bg-nav: rgba(248,250,248,0.88);
  --bg-hero-overlay: linear-gradient(135deg, rgba(248,250,248,0.92) 0%, rgba(240,244,240,0.88) 100%);
  --border-primary: rgba(34,80,60,0.1);
  --border-secondary: rgba(34,80,60,0.06);
  --border-accent: rgba(34,120,80,0.25);
  --text-primary: #1a2e28;
  --text-secondary: #3d5a4e;
  --text-muted: #6b8a7c;
  --text-inverse: #ffffff;
  --accent-primary: #2d7a5a;
  --accent-secondary: #3a9d6e;
  --accent-tertiary: #4cc088;
  --accent-glow: rgba(45,122,90,0.15);
  --accent-glow-strong: rgba(45,122,90,0.3);
  --green-50: #ecfdf5;
  --green-100: #d1fae5;
  --green-200: #a7f3d0;
  --green-600: #16a34a;
  --green-700: #15803d;
  --green-800: #166534;
  --green-900: #14532d;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #ef4444;
  --red-600: #dc2626;
  --red-700: #b91c1c;
  --yellow-50: #fefce8;
  --yellow-100: #fef9c3;
  --yellow-500: #eab308;
  --yellow-600: #ca8a04;
  --blue-50: #eff6ff;
  --blue-500: #3b82f6;
  --blue-600: #2563eb;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.1), 0 4px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.12), 0 8px 16px rgba(0,0,0,0.06);
  --shadow-glow: 0 0 40px rgba(45,122,90,0.12);
  --shadow-glow-strong: 0 0 60px rgba(45,122,90,0.2);
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s cubic-bezier(0.4,0,0.2,1);
  --nav-height: 72px;
}

/* Night Mode — deep emerald, dark metallic */
html[data-theme="dark"], html.theme-dark {
  --bg-primary: #0a1210;
  --bg-secondary: #0e1a16;
  --bg-tertiary: #132218;
  --bg-card: rgba(16,32,24,0.7);
  --bg-card-hover: rgba(20,40,30,0.85);
  --bg-nav: rgba(10,18,16,0.92);
  --bg-hero-overlay: linear-gradient(135deg, rgba(10,18,16,0.95) 0%, rgba(14,26,22,0.9) 100%);
  --border-primary: rgba(45,122,90,0.2);
  --border-secondary: rgba(45,122,90,0.1);
  --border-accent: rgba(76,192,136,0.35);
  --text-primary: #e8f5ef;
  --text-secondary: #a8c8b8;
  --text-muted: #6b9480;
  --text-inverse: #0a1210;
  --accent-primary: #4cc088;
  --accent-secondary: #5fd4a0;
  --accent-tertiary: #7ee8b8;
  --accent-glow: rgba(76,192,136,0.15);
  --accent-glow-strong: rgba(76,192,136,0.3);
  --green-50: rgba(22,101,52,0.15);
  --green-100: rgba(22,101,52,0.2);
  --green-200: rgba(34,197,94,0.25);
  --green-600: #4ade80;
  --green-700: #22c55e;
  --green-800: #16a34a;
  --green-900: #166534;
  --red-50: rgba(185,28,28,0.12);
  --red-100: rgba(220,38,38,0.15);
  --red-500: #f87171;
  --red-600: #ef4444;
  --red-700: #dc2626;
  --yellow-50: rgba(202,138,4,0.12);
  --yellow-100: rgba(234,179,8,0.15);
  --yellow-500: #facc15;
  --yellow-600: #eab308;
  --blue-50: rgba(37,99,235,0.12);
  --blue-500: #60a5fa;
  --blue-600: #3b82f6;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.35), 0 2px 4px rgba(0,0,0,0.2);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4), 0 4px 8px rgba(0,0,0,0.25);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5), 0 8px 16px rgba(0,0,0,0.3);
  --shadow-glow: 0 0 50px rgba(76,192,136,0.15);
  --shadow-glow-strong: 0 0 80px rgba(76,192,136,0.25);
}

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-height); font-size: 16px; }
body {
  font-family: var(--font-sans);
  background: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.4s ease, color 0.4s ease;
}
::selection { background: var(--accent-glow-strong); color: var(--text-primary); }
img { max-width: 100%; display: block; }
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition-fast); }
a:hover { color: var(--accent-secondary); }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul, ol { list-style: none; }

/* === UTILITY === */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container--wide { max-width: 1400px; }
.section { padding: 100px 0; position: relative; }
.section--alt { background: var(--bg-secondary); }
.text-center { text-align: center; }
.text-accent { color: var(--accent-primary); }
.text-muted { color: var(--text-muted); }
.mono { font-family: var(--font-mono); }
.label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  background: var(--accent-glow);
  margin-bottom: 20px;
}
.label::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-primary);
}
.section-header { text-align: center; max-width: 760px; margin: 0 auto 64px; }
.section-title {
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}
.section-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 600px;
  margin: 0 auto;
}
.highlight { color: var(--accent-primary); }
hr.divider {
  border: none;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-primary), transparent);
  margin: 0;
}

/* === SCROLL REVEAL === */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }
.reveal-delay-6 { transition-delay: 0.6s; }

/* === NAVIGATION === */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: var(--bg-nav);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-bottom: 1px solid var(--border-secondary);
  transition: background 0.4s ease, border-color 0.4s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  box-shadow: var(--shadow-md);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-brand-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.85rem;
  font-family: var(--font-mono);
  box-shadow: 0 0 16px var(--accent-glow-strong);
  transition: box-shadow var(--transition-base);
}
.nav-brand:hover .nav-brand-icon {
  box-shadow: 0 0 24px var(--accent-glow-strong);
}
.nav-brand-text {
  font-weight: 800;
  font-size: 1rem;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}
.nav-brand-sub {
  font-size: 0.6rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.nav-links {
  display: flex;
  gap: 4px;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  color: var(--text-secondary);
  font-size: 0.82rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  white-space: nowrap;
  transition: color var(--transition-fast), background var(--transition-fast);
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--accent-primary);
  background: var(--accent-glow);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius-pill);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all var(--transition-base);
  white-space: nowrap;
  text-decoration: none;
}
.btn--primary {
  background: var(--accent-primary);
  color: white;
  box-shadow: 0 2px 12px var(--accent-glow-strong);
}
.btn--primary:hover {
  background: var(--accent-secondary);
  box-shadow: 0 4px 20px var(--accent-glow-strong);
  transform: translateY(-1px);
  color: white;
}
.btn--outline {
  border: 1.5px solid var(--border-accent);
  color: var(--accent-primary);
  background: transparent;
}
.btn--outline:hover {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}
.btn--ghost {
  color: var(--text-secondary);
  padding: 8px 14px;
}
.btn--ghost:hover {
  color: var(--accent-primary);
  background: var(--accent-glow);
}
.btn--sm { padding: 7px 16px; font-size: 0.78rem; }
.btn--lg { padding: 14px 32px; font-size: 0.95rem; }

/* Theme Toggle */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-accent);
  background: var(--bg-card);
  cursor: pointer;
  transition: all var(--transition-base);
  box-shadow: var(--shadow-sm);
}
.theme-toggle:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-md);
}
.theme-toggle-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
}
.theme-toggle-track {
  position: relative;
  width: 40px; height: 22px;
  border-radius: 999px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  transition: background var(--transition-base);
}
.theme-toggle-thumb {
  position: absolute;
  top: 2px; left: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 8px var(--accent-glow-strong);
  transition: transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
html[data-theme="dark"] .theme-toggle-thumb,
html.theme-dark .theme-toggle-thumb {
  transform: translateX(18px);
}

/* Mobile Nav */
.nav-mobile-toggle {
  display: none;
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  font-size: 1.3rem;
}
.nav-mobile-menu {
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  bottom: 0;
  background: var(--bg-primary);
  z-index: 999;
  padding: 24px;
  overflow-y: auto;
  flex-direction: column;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0.25s;
}
.nav-mobile-menu.open {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0s 0s;
}
.nav-mobile-menu a {
  display: block;
  padding: 14px 16px;
  color: var(--text-primary);
  font-weight: 500;
  border-radius: var(--radius-md);
  transition: background var(--transition-fast);
}
.nav-mobile-menu a:hover,
.nav-mobile-menu a.active {
  background: var(--accent-glow);
  color: var(--accent-primary);
}

/* === HERO === */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero-bg::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background:
    radial-gradient(ellipse at 25% 30%, var(--accent-glow-strong) 0%, transparent 50%),
    radial-gradient(ellipse at 75% 70%, rgba(76,192,136,0.08) 0%, transparent 50%);
  animation: heroDrift 20s ease-in-out infinite;
}
@keyframes heroDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  33% { transform: translate(-2%,1%) scale(1.02); }
  66% { transform: translate(1%,-2%) scale(0.98); }
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border-secondary) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-secondary) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.4;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 30%, transparent 70%);
}
.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-text { max-width: 580px; }
.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-primary);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-eyebrow::before {
  content: '';
  width: 32px; height: 2px;
  background: var(--accent-primary);
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin-bottom: 12px;
}
.hero-title-line2 {
  display: block;
  color: var(--accent-primary);
}
.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Operational Chain Animation */
.op-chain {
  width: 100%;
  max-width: 440px;
  position: relative;
}
.op-chain-node {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  position: relative;
  transition: all var(--transition-base);
  opacity: 0;
  transform: translateX(20px);
}
.op-chain-node.visible {
  opacity: 1;
  transform: translateX(0);
}
.op-chain-node:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: translateX(4px);
}
.op-chain-icon {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.op-chain-icon--green { background: var(--green-50); color: var(--green-700); }
.op-chain-icon--blue { background: var(--blue-50); color: var(--blue-600); }
.op-chain-icon--yellow { background: var(--yellow-50); color: var(--yellow-600); }
.op-chain-icon--red { background: var(--red-50); color: var(--red-600); }
html[data-theme="dark"] .op-chain-icon--green { background: var(--green-50); color: var(--green-600); }
html[data-theme="dark"] .op-chain-icon--blue { background: var(--blue-50); color: var(--blue-500); }
html[data-theme="dark"] .op-chain-icon--yellow { background: var(--yellow-50); color: var(--yellow-500); }
html[data-theme="dark"] .op-chain-icon--red { background: var(--red-50); color: var(--red-500); }
.op-chain-label {
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.op-chain-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 2px;
}
.op-chain-connector {
  width: 2px;
  height: 16px;
  background: linear-gradient(to bottom, var(--accent-primary), transparent);
  margin-left: 39px;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.op-chain-connector.visible { opacity: 1; }
.op-chain-data-particle {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 12px var(--accent-primary);
  animation: particleFlow 2s ease-in-out infinite;
  left: 39px;
}
@keyframes particleFlow {
  0% { top: 0; opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* === CARDS === */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-accent), transparent);
  opacity: 0;
  transition: opacity var(--transition-base);
}
.card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}
.card:hover::before { opacity: 1; }
.card-icon {
  width: 48px; height: 48px;
  border-radius: var(--radius-md);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
}
.card-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}
.card-desc {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.card-workflow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.card-workflow-step {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  padding: 4px 8px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-sm);
  color: var(--accent-primary);
  font-weight: 500;
}
.card-workflow-arrow {
  color: var(--text-muted);
  font-size: 0.7rem;
}

/* === GRID LAYOUTS === */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-2-1 { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.grid-1-2 { display: grid; grid-template-columns: 1fr 2fr; gap: 24px; }

/* === PROBLEM SECTION — Fragmentation === */
.fragmentation-visual {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin: 32px 0;
}
.fragment-tool {
  padding: 14px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-base);
}
.fragment-tool:hover {
  border-color: var(--red-500);
  color: var(--red-600);
}
.fragment-plus {
  font-size: 1.2rem;
  color: var(--text-muted);
  align-self: center;
}
.fragment-consequence {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.fragment-item {
  padding: 16px;
  background: var(--red-50);
  border: 1px solid rgba(239,68,68,0.15);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--red-600);
  display: flex;
  align-items: center;
  gap: 10px;
}
html[data-theme="dark"] .fragment-item {
  background: var(--red-50);
  color: var(--red-500);
}

/* Fragmentation to Integration animation */
.integration-arrow {
  text-align: center;
  padding: 40px 0;
}
.integration-arrow svg {
  width: 48px; height: 48px;
  color: var(--accent-primary);
  animation: arrowPulse 2s ease-in-out infinite;
}
@keyframes arrowPulse {
  0%, 100% { opacity: 0.5; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(6px); }
}

/* === PHILOSOPHY SECTION === */
.philosophy-flow {
  display: flex;
  align-items: stretch;
  gap: 0;
  justify-content: center;
  margin: 40px 0;
  flex-wrap: wrap;
}
.philosophy-step {
  flex: 1;
  min-width: 160px;
  max-width: 200px;
  padding: 24px 18px;
  text-align: center;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  transition: all var(--transition-base);
}
.philosophy-step:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.philosophy-step:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.philosophy-step:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 16px solid transparent;
  border-bottom: 16px solid transparent;
  border-left: 12px solid var(--border-primary);
  z-index: 2;
}
.philosophy-step:hover {
  border-color: var(--accent-primary);
  z-index: 3;
}
.philosophy-step-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.philosophy-step-icon {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.philosophy-step-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 6px;
  color: var(--text-primary);
}
.philosophy-step-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.philosophy-examples {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 40px;
}
.philosophy-example {
  padding: 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 14px;
}
.philosophy-example-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
  color: var(--accent-primary);
  border: 1px solid var(--border-accent);
}
.philosophy-example-text {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}
.philosophy-example-sub {
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-top: 2px;
}

/* === ROLE DEMO === */
.role-demo {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.role-tabs {
  display: flex;
  border-bottom: 1px solid var(--border-primary);
  overflow-x: auto;
  scrollbar-width: none;
}
.role-tabs::-webkit-scrollbar { display: none; }
.role-tab {
  padding: 14px 22px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: all var(--transition-fast);
  cursor: pointer;
  background: none;
}
.role-tab:hover {
  color: var(--text-primary);
  background: var(--accent-glow);
}
.role-tab.active {
  color: var(--accent-primary);
  border-bottom-color: transparent;
}
.role-panel {
  display: none;
  padding: 28px;
  min-height: 400px;
}
.role-panel.active { display: block; }
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}
.dash-card {
  padding: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}
.dash-card:hover {
  border-color: var(--border-accent);
  box-shadow: var(--shadow-sm);
}
.dash-card-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.dash-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-primary);
  font-family: var(--font-mono);
}
.dash-card-value--green { color: var(--green-600); }
.dash-card-value--red { color: var(--red-500); }
.dash-card-value--yellow { color: var(--yellow-500); }
.dash-card-change {
  font-size: 0.7rem;
  font-weight: 600;
  margin-top: 4px;
}
.dash-card-change--up { color: var(--red-500); }
.dash-card-change--down { color: var(--green-600); }
.dash-exceptions {
  margin-top: 16px;
}
.dash-exception-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  transition: all var(--transition-base);
}
.dash-exception-item:hover {
  border-color: var(--accent-primary);
}
.dash-exception-text {
  font-size: 0.82rem;
  font-weight: 500;
}
.dash-exception-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.badge--critical { background: var(--red-50); color: var(--red-600); border: 1px solid rgba(239,68,68,0.2); }
.badge--warning { background: var(--yellow-50); color: var(--yellow-600); border: 1px solid rgba(234,179,8,0.2); }
.badge--info { background: var(--blue-50); color: var(--blue-600); border: 1px solid rgba(59,130,246,0.2); }
.badge--success { background: var(--green-50); color: var(--green-700); border: 1px solid rgba(22,163,74,0.2); }
html[data-theme="dark"] .badge--critical { color: var(--red-500); }
html[data-theme="dark"] .badge--warning { color: var(--yellow-500); }
html[data-theme="dark"] .badge--info { color: var(--blue-500); }
html[data-theme="dark"] .badge--success { color: var(--green-600); }

.dash-quick-actions {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: wrap;
}
.dash-action-btn {
  padding: 8px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.dash-action-btn:hover {
  background: var(--accent-primary);
  color: white;
}

/* === ASK AINNA CHAT === */
.chat-demo {
  max-width: 640px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.chat-header {
  padding: 16px 20px;
  background: var(--accent-glow);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
  font-size: 0.8rem;
}
.chat-header-text { font-weight: 700; font-size: 0.9rem; }
.chat-header-status {
  font-size: 0.7rem;
  color: var(--accent-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
.chat-header-status::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-600);
  animation: statusPulse 2s ease-in-out infinite;
}
@keyframes statusPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}
.chat-messages {
  padding: 20px;
  min-height: 320px;
  max-height: 400px;
  overflow-y: auto;
}
.chat-msg {
  margin-bottom: 16px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.4s ease;
}
.chat-msg.visible {
  opacity: 1;
  transform: translateY(0);
}
.chat-msg-user {
  display: flex;
  justify-content: flex-end;
}
.chat-msg-user .chat-bubble {
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-lg) var(--radius-lg) 4px var(--radius-lg);
  padding: 12px 16px;
  max-width: 85%;
  font-size: 0.85rem;
}
.chat-msg-ai {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}
.chat-msg-ai .chat-bubble {
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg) var(--radius-lg) var(--radius-lg) 4px;
  padding: 14px 18px;
  max-width: 85%;
  font-size: 0.85rem;
  color: var(--text-primary);
}
.chat-response-section {
  margin-bottom: 12px;
}
.chat-response-label {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 6px;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  display: inline-block;
}
.chat-response-label--critical { background: var(--red-50); color: var(--red-600); }
.chat-response-label--attention { background: var(--yellow-50); color: var(--yellow-600); }
.chat-response-label--approval { background: var(--blue-50); color: var(--blue-600); }
html[data-theme="dark"] .chat-response-label--critical { color: var(--red-500); }
html[data-theme="dark"] .chat-response-label--attention { color: var(--yellow-500); }
html[data-theme="dark"] .chat-response-label--approval { color: var(--blue-500); }
.chat-response-item {
  font-size: 0.82rem;
  padding: 4px 0;
  color: var(--text-secondary);
}
.chat-response-item strong {
  color: var(--text-primary);
}
.chat-input {
  display: flex;
  padding: 16px 20px;
  border-top: 1px solid var(--border-primary);
  gap: 10px;
}
.chat-input input {
  flex: 1;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  color: var(--text-primary);
  outline: none;
  transition: border-color var(--transition-fast);
}
.chat-input input:focus {
  border-color: var(--accent-primary);
}
.chat-input button {
  padding: 10px 20px;
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  transition: background var(--transition-fast);
}
.chat-input button:hover {
  background: var(--accent-secondary);
}
.chat-quick-questions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 20px 16px;
}
.chat-quick-q {
  padding: 6px 12px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill);
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.chat-quick-q:hover {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
  background: var(--accent-glow);
}

/* === MANAGEMENT BY EXCEPTION === */
.exception-flow {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 700px;
  margin: 40px auto 0;
}
.exception-step {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.5s ease;
}
.exception-step.visible {
  opacity: 1;
  transform: translateX(0);
}
.exception-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent-primary);
  flex-shrink: 0;
}
.exception-step-text {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
}
.exception-step-badge {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}
.exception-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.exception-compare {
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-primary);
}
.exception-compare--old {
  background: var(--red-50);
  border-color: rgba(239,68,68,0.15);
}
.exception-compare--new {
  background: var(--green-50);
  border-color: rgba(22,163,74,0.15);
}
.exception-compare-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.exception-compare--old .exception-compare-title { color: var(--red-600); }
.exception-compare--new .exception-compare-title { color: var(--green-700); }
html[data-theme="dark"] .exception-compare--old .exception-compare-title { color: var(--red-500); }
html[data-theme="dark"] .exception-compare--new .exception-compare-title { color: var(--green-600); }
.exception-compare-steps {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.8;
}

/* === PAYROLL ALERT === */
.payroll-alert-card {
  max-width: 520px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 2px solid var(--yellow-500);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 0 40px rgba(234,179,8,0.15);
}
.payroll-alert-header {
  padding: 16px 24px;
  background: var(--yellow-50);
  border-bottom: 1px solid rgba(234,179,8,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--yellow-600);
}
html[data-theme="dark"] .payroll-alert-header {
  background: var(--yellow-50);
  color: var(--yellow-500);
}
.payroll-alert-header-icon {
  font-size: 1.2rem;
}
.payroll-alert-body {
  padding: 24px;
}
.payroll-alert-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-secondary);
}
.payroll-alert-row:last-child { border-bottom: none; }
.payroll-alert-label {
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
}
.payroll-alert-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.payroll-alert-value--red { color: var(--red-500); }
.payroll-alert-ai-note {
  margin-top: 16px;
  padding: 14px 16px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: var(--radius-md);
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.payroll-alert-ai-note strong {
  color: var(--accent-primary);
}
.payroll-alert-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
  flex-wrap: wrap;
}

/* === AI AGENTS NETWORK === */
.agents-network {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  min-height: 420px;
}
.agents-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%,-50%);
  width: 120px; height: 120px;
  border-radius: 50%;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: white;
  z-index: 5;
  box-shadow: 0 0 40px var(--accent-glow-strong), 0 0 80px var(--accent-glow);
}
.agents-center-label {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  opacity: 0.8;
}
.agents-center-title {
  font-size: 0.78rem;
  font-weight: 800;
  margin-top: 2px;
}
.agent-node {
  position: absolute;
  width: 100px; height: 100px;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  z-index: 3;
  transition: all var(--transition-base);
  cursor: default;
}
.agent-node:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
  transform: scale(1.08);
  z-index: 6;
}
.agent-node-icon { font-size: 1.4rem; }
.agent-node-label {
  font-size: 0.62rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-secondary);
  line-height: 1.3;
}
.agent-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, var(--accent-primary), transparent);
  transform-origin: left center;
  opacity: 0.3;
  z-index: 1;
}

/* === HUMAN IN LOOP === */
.hil-flow {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: wrap;
  margin: 40px 0;
}
.hil-step {
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 120px;
  transition: all var(--transition-base);
}
.hil-step:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.hil-step-icon {
  font-size: 1.4rem;
  margin-bottom: 6px;
}
.hil-step-title {
  font-weight: 700;
  font-size: 0.78rem;
  color: var(--text-primary);
}
.hil-step-desc {
  font-size: 0.68rem;
  color: var(--text-muted);
  margin-top: 4px;
}
.hil-arrow {
  font-size: 1.2rem;
  color: var(--accent-primary);
  padding: 0 8px;
  opacity: 0.5;
}
.hil-critical-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-top: 40px;
}
.hil-critical-item {
  padding: 14px 16px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 0.82rem;
  font-weight: 600;
}
.hil-critical-item::before {
  content: '🔒 ';
}

/* === WORKFORCE INTELLIGENCE DASHBOARD === */
.wi-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
}
.wi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}
.wi-title {
  font-weight: 800;
  font-size: 1.1rem;
}
.wi-period {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 4px 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-secondary);
}
.wi-sections {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.wi-section {
  padding: 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-lg);
}
.wi-section-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.wi-metrics {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.wi-metric {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.wi-metric-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
}
.wi-metric-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--text-primary);
}
.wi-chart-bar {
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  margin-top: 6px;
  overflow: hidden;
}
.wi-chart-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--accent-primary);
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}

/* === TRUE WORKFORCE COST === */
.cost-formula {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 40px 0;
}
.cost-formula-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.cost-item {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.85rem;
  transition: all var(--transition-base);
}
.cost-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.cost-operator {
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--text-muted);
}
.cost-equals {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent-primary);
}
.cost-total {
  padding: 20px 40px;
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-lg);
  font-size: 1.4rem;
  font-weight: 900;
  box-shadow: 0 0 30px var(--accent-glow-strong);
}
.cost-toggle {
  display: flex;
  gap: 4px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-pill);
  padding: 4px;
  margin: 24px auto 0;
  width: fit-content;
}
.cost-toggle-btn {
  padding: 8px 18px;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
}
.cost-toggle-btn.active {
  background: var(--accent-primary);
  color: white;
  box-shadow: var(--shadow-sm);
}

/* === SCALABILITY === */
.scale-path {
  display: flex;
  gap: 0;
  align-items: stretch;
  overflow-x: auto;
  padding-bottom: 8px;
}
.scale-stage {
  flex: 1;
  min-width: 180px;
  padding: 28px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  text-align: center;
  position: relative;
  transition: all var(--transition-base);
}
.scale-stage:first-child { border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.scale-stage:last-child { border-radius: 0 var(--radius-lg) var(--radius-lg) 0; }
.scale-stage:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -1px; top: 50%;
  transform: translateY(-50%);
  width: 0; height: 0;
  border-top: 14px solid transparent;
  border-bottom: 14px solid transparent;
  border-left: 10px solid var(--border-primary);
  z-index: 2;
}
.scale-stage:hover {
  border-color: var(--accent-primary);
  z-index: 3;
}
.scale-stage-label {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-primary);
  margin-bottom: 8px;
}
.scale-stage-title {
  font-weight: 800;
  font-size: 0.92rem;
  margin-bottom: 6px;
}
.scale-stage-desc {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === COST COMPARISON === */
.compare-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-top: 40px;
}
.compare-panel {
  padding: 32px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border-primary);
  background: var(--bg-card);
}
.compare-panel-title {
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-primary);
}
.compare-flow {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.compare-flow-step {
  padding: 12px 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all var(--transition-base);
}
.compare-flow-arrow {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === COMPUTATIONAL EFFICIENCY === */
.comp-bars {
  max-width: 600px;
  margin: 40px auto 0;
}
.comp-bar-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.comp-bar-label {
  width: 140px;
  font-size: 0.78rem;
  font-weight: 600;
  text-align: right;
  flex-shrink: 0;
  color: var(--text-secondary);
}
.comp-bar-track {
  flex: 1;
  height: 28px;
  background: var(--bg-secondary);
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
}
.comp-bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  color: white;
  transition: width 1.5s cubic-bezier(0.4,0,0.2,1);
  width: 0;
}
.comp-bar-fill--db { background: var(--accent-primary); }
.comp-bar-fill--rules { background: var(--green-600); }
.comp-bar-fill--light { background: var(--yellow-500); color: var(--text-primary); }
.comp-bar-fill--ai { background: var(--blue-500); }
.comp-bar-count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  width: 70px;
  flex-shrink: 0;
  color: var(--text-primary);
}

/* === DAILY BRIEF === */
.brief-sim {
  max-width: 380px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.brief-header {
  padding: 16px 20px;
  background: var(--accent-glow);
  border-bottom: 1px solid var(--border-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brief-header-title {
  font-weight: 700;
  font-size: 0.88rem;
}
.brief-header-date {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--text-muted);
}
.brief-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border-primary);
}
.brief-stat {
  padding: 14px 8px;
  text-align: center;
  background: var(--bg-card);
}
.brief-stat-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.1rem;
  color: var(--text-primary);
}
.brief-stat-label {
  font-size: 0.62rem;
  color: var(--text-muted);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.brief-attention {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-secondary);
}
.brief-attention-title {
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 10px;
  color: var(--yellow-600);
}
.brief-notification {
  padding: 10px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-secondary);
  border-radius: var(--radius-sm);
  margin-bottom: 8px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  transform: translateX(-12px);
  transition: all 0.4s ease;
}
.brief-notification.visible {
  opacity: 1;
  transform: translateX(0);
}
.brief-notification-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.brief-notification-dot--red { background: var(--red-500); }
.brief-notification-dot--yellow { background: var(--yellow-500); }
.brief-notification-dot--blue { background: var(--blue-500); }
.brief-approval {
  padding: 16px 20px;
}
.brief-approval-title {
  font-weight: 700;
  font-size: 0.78rem;
  margin-bottom: 10px;
  color: var(--blue-600);
}

/* === ARCHITECTURE DIAGRAM === */
.arch-diagram {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
}
.arch-layer {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  position: relative;
}
.arch-node {
  padding: 12px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  min-width: 120px;
  transition: all var(--transition-base);
}
.arch-node:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.arch-node--primary {
  background: var(--accent-primary);
  color: white;
  border-color: var(--accent-primary);
}
.arch-connector {
  text-align: center;
  padding: 6px 0;
  color: var(--accent-primary);
  font-size: 1.2rem;
  opacity: 0.5;
}

/* === SECURITY === */
.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.security-item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-md);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: all var(--transition-base);
}
.security-item:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-glow);
}
.security-icon {
  width: 36px; height: 36px;
  border-radius: var(--radius-sm);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  color: var(--accent-primary);
}
.security-title {
  font-weight: 700;
  font-size: 0.85rem;
  margin-bottom: 4px;
}
.security-desc {
  font-size: 0.75rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* === BUSINESS OUTCOME === */
.outcome-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}
.outcome-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  transition: all var(--transition-slow);
}
.outcome-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-4px);
}
.outcome-question {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 10px;
  line-height: 1.4;
}
.outcome-answer {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* === FINAL CTA === */
.cta-section {
  padding: 120px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 50%, var(--accent-glow-strong) 0%, transparent 60%);
  opacity: 0.4;
}
.cta-content {
  position: relative;
  z-index: 2;
}
.cta-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: 16px;
}
.cta-subtitle {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.cta-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.cta-secondary {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-top: 8px;
}

/* === CTA ENHANCED BUTTONS === */
.cta-secondary-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.btn--accent-flat {
  background: transparent;
  color: var(--accent-primary);
  border: 1.5px solid var(--border-accent);
  position: relative;
  overflow: hidden;
}
.btn--accent-flat:hover {
  background: var(--accent-glow);
  border-color: var(--accent-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px var(--accent-glow);
}

/* CTA primary glow pulse */
.cta-btn-glow {
  animation: ctaBtnGlow 3s ease-in-out infinite;
}
@keyframes ctaBtnGlow {
  0%, 100% { box-shadow: 0 2px 12px var(--accent-glow-strong); }
  50% { box-shadow: 0 4px 30px var(--accent-glow-strong), 0 0 60px var(--accent-glow); }
}

/* Download button states */
.cta-download-btn { position: relative; }
.cta-download-loading,
.cta-download-done { display: none; }
.cta-download-btn.loading .cta-download-text { opacity: 0; }
.cta-download-btn.loading .cta-download-icon { opacity: 0; }
.cta-download-btn.loading .cta-download-loading { display: inline-flex; }
.cta-download-btn.done .cta-download-text { opacity: 0; }
.cta-download-btn.done .cta-download-icon { opacity: 0; }
.cta-download-btn.done .cta-download-loading { display: none; }
.cta-download-btn.done .cta-download-done { display: inline; }
.cta-download-btn.done { border-color: var(--green-600); color: var(--green-600); }
.cta-download-spinner {
  width: 18px; height: 18px;
  border: 2px solid var(--border-accent);
  border-top-color: var(--accent-primary);
  border-radius: 50%;
  animation: downloadSpin 0.7s linear infinite;
}
@keyframes downloadSpin {
  to { transform: rotate(360deg); }
}

/* Book a Call pulse ring */
.cta-book-btn { position: relative; z-index: 1; }
.cta-book-pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent-primary);
  opacity: 0;
  animation: bookPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes bookPulse {
  0% { opacity: 0.6; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.15); }
}

/* === CTA TRUST STRIP === */
.cta-trust-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 1px solid var(--border-secondary);
  flex-wrap: wrap;
}
.cta-trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 28px;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.5s cubic-bezier(0.4,0,0.2,1);
}
.cta-content.revealed .cta-trust-item {
  opacity: 1;
  transform: translateY(0);
}
.cta-content.revealed .cta-trust-item:nth-child(1) { transition-delay: 0.3s; }
.cta-content.revealed .cta-trust-item:nth-child(2) { transition-delay: 0.4s; }
.cta-content.revealed .cta-trust-item:nth-child(3) { transition-delay: 0.5s; }
.cta-content.revealed .cta-trust-item:nth-child(4) { transition-delay: 0.6s; }
.cta-content.revealed .cta-trust-divider { transition: opacity 0.3s ease 0.35s; opacity: 0.3; }
.cta-trust-value {
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.4rem;
  color: var(--accent-primary);
}
.cta-trust-label {
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.cta-trust-divider {
  width: 1px;
  height: 36px;
  background: var(--border-primary);
}

/* === DEMO PREVIEW CARDS === */
.demo-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.demo-preview-card {
  display: flex;
  flex-direction: column;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border-primary);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: all var(--transition-slow);
  position: relative;
  overflow: hidden;
  opacity: 0;
  transform: translateY(20px);
}
.demo-preview-card.revealed {
  opacity: 1;
  transform: translateY(0);
}
.demo-preview-card:nth-child(1).revealed { transition-delay: 0.05s; }
.demo-preview-card:nth-child(2).revealed { transition-delay: 0.15s; }
.demo-preview-card:nth-child(3).revealed { transition-delay: 0.25s; }
.demo-preview-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: var(--accent-primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.4,0,0.2,1);
}
.demo-preview-card:hover {
  border-color: var(--accent-primary);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  transform: translateY(-6px);
}
.demo-preview-card:hover::before { transform: scaleX(1); }
.demo-preview-card:hover .demo-preview-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.demo-preview-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.demo-preview-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-primary);
  margin-bottom: 8px;
}
.demo-preview-desc {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  flex: 1;
}
.demo-preview-action {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
}
.demo-preview-btn {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.demo-preview-arrow {
  color: var(--accent-primary);
  font-size: 1rem;
  opacity: 0.5;
  transition: all 0.3s ease;
}

/* === FLOATING ACTION BUTTON === */
.fab {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 998;
  opacity: 0;
  transform: translateY(20px) scale(0.8);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34,1.56,0.64,1);
  pointer-events: none;
}
.fab.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.fab-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  background: var(--accent-primary);
  color: white;
  border-radius: var(--radius-pill);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  box-shadow: 0 4px 24px var(--accent-glow-strong), 0 8px 40px rgba(0,0,0,0.15);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}
.fab-inner:hover {
  background: var(--accent-secondary);
  transform: translateY(-2px);
  box-shadow: 0 6px 32px var(--accent-glow-strong), 0 12px 48px rgba(0,0,0,0.2);
  color: white;
}
.fab-icon { font-size: 1.2rem; }
.fab-pulse {
  position: absolute;
  inset: -3px;
  border-radius: var(--radius-pill);
  border: 2px solid var(--accent-primary);
  opacity: 0;
  animation: fabPulse 2.5s ease-out infinite;
  pointer-events: none;
}
@keyframes fabPulse {
  0% { opacity: 0.5; transform: scale(1); }
  100% { opacity: 0; transform: scale(1.2); }
}
@media (max-width: 480px) {
  .fab { bottom: 20px; right: 20px; }
  .fab-text { display: none; }
  .fab-inner { padding: 16px; border-radius: 50%; }
  .demo-preview-grid { grid-template-columns: 1fr; }
  .cta-trust-strip { flex-direction: column; gap: 16px; }
  .cta-trust-divider { width: 36px; height: 1px; }
  .cta-secondary-actions { flex-direction: column; align-items: center; }
  .cta-secondary-actions .btn { width: 100%; max-width: 300px; }
}

/* === FOOTER === */
.footer {
  padding: 48px 0 32px;
  border-top: 1px solid var(--border-secondary);
  background: var(--bg-secondary);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  background: var(--accent-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 900;
  font-size: 0.7rem;
}
.footer-brand-text {
  font-weight: 700;
  font-size: 0.85rem;
}
.footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { order: -1; max-width: 440px; margin: 0 auto; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .philosophy-flow { gap: 0; }
  .philosophy-step { min-width: 120px; }
  .compare-split { grid-template-columns: 1fr; }
  .exception-split { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 16px; }
  .nav-links { display: none; }
  .nav-mobile-toggle { display: flex; }
  .hero { min-height: auto; padding: 100px 0 64px; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-2-1, .grid-1-2 { grid-template-columns: 1fr; }
  .philosophy-flow {
    flex-direction: column;
    align-items: center;
  }
  .philosophy-step {
    max-width: 100%;
    width: 100%;
    border-radius: var(--radius-md) !important;
  }
  .philosophy-step:not(:last-child)::after { display: none; }
  .hil-flow {
    flex-direction: column;
    align-items: center;
  }
  .hil-arrow { transform: rotate(90deg); }
  .scale-path {
    flex-direction: column;
  }
  .scale-stage {
    border-radius: var(--radius-md) !important;
    min-width: auto;
  }
  .scale-stage:not(:last-child)::after { display: none; }
  .role-tabs {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .role-tab { padding: 12px 16px; font-size: 0.78rem; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
  .agents-network { min-height: auto; display: flex; flex-direction: column; gap: 12px; align-items: center; }
  .agents-center { position: static; transform: none; margin-bottom: 20px; }
  .agent-node { position: static !important; width: auto; height: auto; flex-direction: row; gap: 10px; padding: 12px 16px; }
  .agent-connection { display: none; }
  .arch-layer { flex-direction: column; align-items: center; }
  .arch-node { width: 100%; max-width: 280px; }
  .cost-formula-row { justify-content: center; }
  .fragment-consequence { grid-template-columns: 1fr; }
  .brief-stats { grid-template-columns: repeat(2, 1fr); }
  .nav-brand-sub { display: none; }
  .btn--lg { padding: 12px 24px; font-size: 0.88rem; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .dash-grid { grid-template-columns: 1fr; }
  .chat-quick-questions { flex-direction: column; }
  .payroll-alert-actions { flex-direction: column; }
  .payroll-alert-actions .btn { width: 100%; }
  .footer-inner { flex-direction: column; text-align: center; gap: 12px; }
  .footer-inner > div:last-child { justify-content: center; }
}

/* === REDUCED MOTION === */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
  .op-chain-node { opacity: 1; transform: none; }
  .op-chain-connector { opacity: 1; }
  .exception-step { opacity: 1; transform: none; }
  .brief-notification { opacity: 1; transform: none; }
  .hero-stagger > * { opacity: 1; transform: none; animation: none; }
  .cta-section::after { opacity: 0; animation: none; }
  .nav-brand-icon { animation: none; }
  .label::before { animation: none; }
  hr.divider { animation: none; }
  .fragmentation-visual .fragment-tool,
  .fragmentation-visual .fragment-plus { opacity: 1; transform: none; }
}

/* === ANIMATIONS === */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.animate-float { animation: float 4s ease-in-out infinite; }

/* ============================================================
   FULL ANIMATION SET — Every Aspect
   ============================================================ */

/* === NEURAL PARTICLE BACKGROUND === */
.neural-particles {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}
.neural-particle {
  position: absolute;
  width: var(--p-size, 3px);
  height: var(--p-size, 3px);
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0;
  animation: particleFloat var(--p-duration, 12s) var(--p-delay, 0s) ease-in-out infinite;
}
@keyframes particleFloat {
  0% { opacity: 0; transform: translate(0, 0) scale(0.5); }
  15% { opacity: var(--p-opacity, 0.3); }
  50% { transform: translate(var(--p-dx, 30px), var(--p-dy, -40px)) scale(1); }
  85% { opacity: var(--p-opacity, 0.3); }
  100% { opacity: 0; transform: translate(var(--p-dx2, -20px), var(--p-dy2, 20px)) scale(0.5); }
}

/* === SCROLL PROGRESS BAR === */
.scroll-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent-primary), var(--accent-tertiary));
  z-index: 10001;
  width: 0%;
  transition: width 0.1s linear;
  box-shadow: 0 0 10px var(--accent-primary);
}

/* === HERO TEXT STAGGER === */
.hero-stagger > * {
  opacity: 0;
  transform: translateY(24px);
  animation: heroStaggerIn 0.8s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hero-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.hero-stagger > *:nth-child(2) { animation-delay: 0.25s; }
.hero-stagger > *:nth-child(3) { animation-delay: 0.4s; }
.hero-stagger > *:nth-child(4) { animation-delay: 0.55s; }
@keyframes heroStaggerIn {
  to { opacity: 1; transform: translateY(0); }
}

/* === NAV BRAND GLOW PULSE === */
.nav-brand-icon {
  animation: navBrandPulse 3s ease-in-out infinite;
}
@keyframes navBrandPulse {
  0%, 100% { box-shadow: 0 0 16px var(--accent-glow-strong); }
  50% { box-shadow: 0 0 28px var(--accent-glow-strong), 0 0 48px var(--accent-glow); }
}

/* === LABEL DOT PULSE === */
.label::before {
  animation: labelDotPulse 2s ease-in-out infinite;
}
@keyframes labelDotPulse {
  0%, 100% { box-shadow: 0 0 8px var(--accent-primary); transform: scale(1); }
  50% { box-shadow: 0 0 16px var(--accent-primary), 0 0 24px var(--accent-glow); transform: scale(1.3); }
}

/* === SECTION DIVIDER GRADIENT ANIMATION === */
hr.divider {
  background-size: 200% 100%;
  animation: dividerFlow 4s linear infinite;
}
@keyframes dividerFlow {
  0% { background-position: -100% 0; }
  100% { background-position: 200% 0; }
}

/* === STAGGERED GRID CHILDREN === */
.grid-3 > .card,
.grid-2 > .card,
.security-grid > .security-item,
.outcome-grid > .outcome-card,
.philosophy-examples > .philosophy-example,
.fragment-consequence > .fragment-item,
.hil-critical-list > .hil-critical-item {
  opacity: 0;
  transform: translateY(20px);
}
.grid-3 > .card.revealed,
.grid-2 > .card.revealed,
.security-grid > .security-item.revealed,
.outcome-grid > .outcome-card.revealed,
.philosophy-examples > .philosophy-example.revealed,
.fragment-consequence > .fragment-item.revealed,
.hil-critical-list > .hil-critical-item.revealed {
  opacity: 1;
  transform: translateY(0);
}
.grid-3 > .card:nth-child(1), .security-grid > .security-item:nth-child(1), .outcome-grid > .outcome-card:nth-child(1) { transition-delay: 0.05s; }
.grid-3 > .card:nth-child(2), .security-grid > .security-item:nth-child(2), .outcome-grid > .outcome-card:nth-child(2) { transition-delay: 0.12s; }
.grid-3 > .card:nth-child(3), .security-grid > .security-item:nth-child(3), .outcome-grid > .outcome-card:nth-child(3) { transition-delay: 0.19s; }
.grid-3 > .card:nth-child(4), .security-grid > .security-item:nth-child(4), .outcome-grid > .outcome-card:nth-child(4) { transition-delay: 0.26s; }
.grid-3 > .card:nth-child(5), .security-grid > .security-item:nth-child(5), .outcome-grid > .outcome-card:nth-child(5) { transition-delay: 0.33s; }
.grid-3 > .card:nth-child(6), .security-grid > .security-item:nth-child(6), .outcome-grid > .outcome-card:nth-child(6) { transition-delay: 0.40s; }
.grid-3 > .card:nth-child(7) { transition-delay: 0.47s; }
.grid-3 > .card:nth-child(8) { transition-delay: 0.54s; }
.security-grid > .security-item:nth-child(7) { transition-delay: 0.47s; }
.security-grid > .security-item:nth-child(8) { transition-delay: 0.54s; }

/* === CARD ICON BOUNCE ON HOVER === */
.card:hover .card-icon {
  animation: iconBounce 0.5s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes iconBounce {
  0% { transform: scale(1); }
  40% { transform: scale(1.2) rotate(-5deg); }
  70% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); }
}

/* === CARD WORKFLOW STEP PULSE === */
.card:hover .card-workflow-step {
  animation: workflowPulse 0.6s ease-out;
}
@keyframes workflowPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); box-shadow: 0 0 12px var(--accent-glow-strong); }
  100% { transform: scale(1); }
}
.card:hover .card-workflow-step:nth-child(1) { animation-delay: 0s; }
.card:hover .card-workflow-step:nth-child(3) { animation-delay: 0.1s; }
.card:hover .card-workflow-step:nth-child(5) { animation-delay: 0.2s; }

/* === FRAGMENT TOOL SHAKE === */
.fragment-tool:hover {
  animation: toolShake 0.4s ease-in-out;
}
@keyframes toolShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.fragmentation-visual .fragment-tool {
  opacity: 0;
  transform: translateY(12px) scale(0.95);
}
.fragmentation-visual.revealed .fragment-tool {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.fragmentation-visual .fragment-tool:nth-child(1) { transition: all 0.4s ease 0.05s; }
.fragmentation-visual .fragment-tool:nth-child(3) { transition: all 0.4s ease 0.12s; }
.fragmentation-visual .fragment-tool:nth-child(5) { transition: all 0.4s ease 0.19s; }
.fragmentation-visual .fragment-tool:nth-child(7) { transition: all 0.4s ease 0.26s; }
.fragmentation-visual .fragment-tool:nth-child(9) { transition: all 0.4s ease 0.33s; }
.fragmentation-visual .fragment-tool:nth-child(11) { transition: all 0.4s ease 0.40s; }
.fragmentation-visual .fragment-plus {
  opacity: 0;
  transition: opacity 0.3s ease;
}
.fragmentation-visual.revealed .fragment-plus { opacity: 1; }
.fragmentation-visual .fragment-plus:nth-child(2) { transition-delay: 0.08s; }
.fragmentation-visual .fragment-plus:nth-child(4) { transition-delay: 0.15s; }
.fragmentation-visual .fragment-plus:nth-child(6) { transition-delay: 0.22s; }
.fragmentation-visual .fragment-plus:nth-child(8) { transition-delay: 0.29s; }
.fragmentation-visual .fragment-plus:nth-child(10) { transition-delay: 0.36s; }

/* === PHILOSOPHY STEP STAGGER === */
.philosophy-flow.revealed .philosophy-step {
  opacity: 0;
  animation: philoStepIn 0.6s cubic-bezier(0.4,0,0.2,1) forwards;
}
.philosophy-flow.revealed .philosophy-step:nth-child(1) { animation-delay: 0.05s; }
.philosophy-flow.revealed .philosophy-step:nth-child(2) { animation-delay: 0.15s; }
.philosophy-flow.revealed .philosophy-step:nth-child(3) { animation-delay: 0.25s; }
.philosophy-flow.revealed .philosophy-step:nth-child(4) { animation-delay: 0.35s; }
.philosophy-flow.revealed .philosophy-step:nth-child(5) { animation-delay: 0.45s; }
@keyframes philoStepIn {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.philosophy-step:hover .philosophy-step-icon {
  animation: iconFloat 0.6s ease;
}
@keyframes iconFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* === SCALE PATH STAGGER === */
.scale-path.revealed .scale-stage {
  opacity: 0;
  animation: scaleStageIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
.scale-path.revealed .scale-stage:nth-child(1) { animation-delay: 0.05s; }
.scale-path.revealed .scale-stage:nth-child(2) { animation-delay: 0.12s; }
.scale-path.revealed .scale-stage:nth-child(3) { animation-delay: 0.19s; }
.scale-path.revealed .scale-stage:nth-child(4) { animation-delay: 0.26s; }
.scale-path.revealed .scale-stage:nth-child(5) { animation-delay: 0.33s; }
@keyframes scaleStageIn {
  from { opacity: 0; transform: translateX(-16px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === ARCHITECTURE NODE STAGGER === */
.arch-diagram.revealed .arch-layer {
  opacity: 0;
  animation: archLayerIn 0.4s ease forwards;
}
.arch-diagram.revealed .arch-layer:nth-child(1) { animation-delay: 0s; }
.arch-diagram.revealed .arch-layer:nth-child(3) { animation-delay: 0.1s; }
.arch-diagram.revealed .arch-layer:nth-child(5) { animation-delay: 0.2s; }
.arch-diagram.revealed .arch-layer:nth-child(7) { animation-delay: 0.3s; }
.arch-diagram.revealed .arch-layer:nth-child(9) { animation-delay: 0.4s; }
.arch-diagram.revealed .arch-layer:nth-child(11) { animation-delay: 0.5s; }
.arch-diagram.revealed .arch-layer:nth-child(13) { animation-delay: 0.6s; }
.arch-diagram.revealed .arch-layer:nth-child(15) { animation-delay: 0.7s; }
.arch-diagram.revealed .arch-layer:nth-child(17) { animation-delay: 0.8s; }
@keyframes archLayerIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
.arch-diagram.revealed .arch-connector {
  opacity: 0;
  animation: archConnIn 0.3s ease forwards;
}
.arch-diagram.revealed .arch-connector:nth-child(2) { animation-delay: 0.05s; }
.arch-diagram.revealed .arch-connector:nth-child(4) { animation-delay: 0.15s; }
.arch-diagram.revealed .arch-connector:nth-child(6) { animation-delay: 0.25s; }
.arch-diagram.revealed .arch-connector:nth-child(8) { animation-delay: 0.35s; }
.arch-diagram.revealed .arch-connector:nth-child(10) { animation-delay: 0.45s; }
.arch-diagram.revealed .arch-connector:nth-child(12) { animation-delay: 0.55s; }
.arch-diagram.revealed .arch-connector:nth-child(14) { animation-delay: 0.65s; }
.arch-diagram.revealed .arch-connector:nth-child(16) { animation-delay: 0.75s; }
@keyframes archConnIn {
  from { opacity: 0; transform: scaleY(0); }
  to { opacity: 0.5; transform: scaleY(1); }
}

/* === HIL STEP STAGGER === */
.hil-flow.revealed .hil-step {
  opacity: 0;
  animation: hilStepIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
.hil-flow.revealed .hil-step:nth-child(1) { animation-delay: 0s; }
.hil-flow.revealed .hil-step:nth-child(3) { animation-delay: 0.1s; }
.hil-flow.revealed .hil-step:nth-child(5) { animation-delay: 0.2s; }
.hil-flow.revealed .hil-step:nth-child(7) { animation-delay: 0.3s; }
.hil-flow.revealed .hil-step:nth-child(9) { animation-delay: 0.4s; }
.hil-flow.revealed .hil-step:nth-child(11) { animation-delay: 0.5s; }
.hil-flow.revealed .hil-arrow {
  opacity: 0;
  animation: hilArrowIn 0.3s ease forwards;
}
.hil-flow.revealed .hil-arrow:nth-child(2) { animation-delay: 0.05s; }
.hil-flow.revealed .hil-arrow:nth-child(4) { animation-delay: 0.15s; }
.hil-flow.revealed .hil-arrow:nth-child(6) { animation-delay: 0.25s; }
.hil-flow.revealed .hil-arrow:nth-child(8) { animation-delay: 0.35s; }
.hil-flow.revealed .hil-arrow:nth-child(10) { animation-delay: 0.45s; }
@keyframes hilStepIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes hilArrowIn {
  from { opacity: 0; transform: translateX(-8px); }
  to { opacity: 0.5; transform: translateX(0); }
}

/* === COST FORMULA STAGGER === */
.cost-formula.revealed .cost-item {
  opacity: 0;
  animation: costItemIn 0.4s ease forwards;
}
.cost-formula.revealed .cost-item:nth-child(1) { animation-delay: 0.05s; }
.cost-formula.revealed .cost-item:nth-child(3) { animation-delay: 0.12s; }
.cost-formula.revealed .cost-item:nth-child(5) { animation-delay: 0.19s; }
.cost-formula.revealed .cost-item:nth-child(7) { animation-delay: 0.26s; }
.cost-formula.revealed .cost-item:nth-child(9) { animation-delay: 0.33s; }
.cost-formula.revealed .cost-item:nth-child(11) { animation-delay: 0.40s; }
.cost-formula.revealed .cost-operator {
  opacity: 0;
  animation: costOpIn 0.3s ease forwards;
}
.cost-formula.revealed .cost-operator:nth-child(2) { animation-delay: 0.08s; }
.cost-formula.revealed .cost-operator:nth-child(4) { animation-delay: 0.15s; }
.cost-formula.revealed .cost-operator:nth-child(6) { animation-delay: 0.22s; }
.cost-formula.revealed .cost-operator:nth-child(8) { animation-delay: 0.29s; }
.cost-formula.revealed .cost-operator:nth-child(10) { animation-delay: 0.36s; }
.cost-formula.revealed .cost-equals {
  opacity: 0;
  animation: costOpIn 0.3s ease 0.45s forwards;
}
.cost-formula.revealed .cost-total {
  opacity: 0;
  animation: costTotalIn 0.6s cubic-bezier(0.34,1.56,0.64,1) 0.55s forwards;
}
@keyframes costItemIn {
  from { opacity: 0; transform: translateY(10px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes costOpIn {
  from { opacity: 0; transform: scale(0.5); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes costTotalIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* === COST TOTAL GLOW PULSE === */
.cost-total {
  animation: costTotalGlow 3s ease-in-out infinite;
}
@keyframes costTotalGlow {
  0%, 100% { box-shadow: 0 0 30px var(--accent-glow-strong); }
  50% { box-shadow: 0 0 50px var(--accent-glow-strong), 0 0 80px var(--accent-glow); }
}

/* === AGENT NETWORK CENTER PULSE === */
.agents-center::before {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 2px solid var(--accent-primary);
  animation: agentPulseRing 3s ease-out infinite;
}
.agents-center::after {
  content: '';
  position: absolute;
  width: 100%; height: 100%;
  border-radius: 50%;
  border: 1px solid var(--accent-primary);
  animation: agentPulseRing 3s ease-out 1s infinite;
}
@keyframes agentPulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(2); opacity: 0; }
}

/* === AGENT NODE ORBIT FLOAT (added by JS after entrance) === */
.agent-node.agent-float {
  animation: agentFloat 6s ease-in-out infinite;
}
@keyframes agentFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* === EXCEPTION STEP GLOW === */
.exception-step.visible {
  animation: excGlow 0.6s ease;
}
@keyframes excGlow {
  0% { box-shadow: none; }
  50% { box-shadow: 0 0 20px var(--accent-glow); }
  100% { box-shadow: none; }
}
.exception-step.visible .exception-step-num {
  animation: excNumPop 0.4s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes excNumPop {
  0% { transform: scale(0.5); }
  100% { transform: scale(1); }
}

/* === BRIEF STAT COUNTER PULSE === */
.brief-stat {
  cursor: default;
  transition: transform 0.3s ease;
}
.brief-stat:hover .brief-stat-value {
  transform: scale(1.1);
}
.brief-stat.stat-pulse .brief-stat-value {
  transform: scale(1.15);
  color: var(--accent-primary) !important;
}

/* === BADGE PULSE FOR CRITICAL === */
.badge--critical {
  animation: badgeCriticalPulse 2s ease-in-out infinite;
}
@keyframes badgeCriticalPulse {
  0%, 100% { box-shadow: none; }
  50% { box-shadow: 0 0 8px rgba(239,68,68,0.3); }
}

/* === DASHBOARD CARD SHIMMER ON HOVER === */
.dash-card {
  position: relative;
  overflow: hidden;
}
.dash-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.06), transparent);
  transition: left 0.6s ease;
}
.dash-card:hover::after {
  left: 100%;
}
html[data-theme="dark"] .dash-card::after {
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
}

/* === PAYROLL ALERT SHIMMER === */
.payroll-alert-card {
  position: relative;
  overflow: hidden;
}
.payroll-alert-card::after {
  content: '';
  position: absolute;
  top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(234,179,8,0.08), transparent);
  animation: payrollShimmer 3s ease-in-out infinite;
}
@keyframes payrollShimmer {
  0% { left: -50%; }
  100% { left: 150%; }
}

/* === CHAT TYPING INDICATOR === */
.chat-typing {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
  align-items: center;
}
.chat-typing-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-6px); opacity: 1; }
}

/* === BUTTON RIPPLE === */
.btn, .dash-action-btn, .chat-quick-q, .cost-toggle-btn {
  position: relative;
  overflow: hidden;
}
.btn::after, .dash-action-btn::after, .chat-quick-q::after, .cost-toggle-btn::after {
  content: '';
  position: absolute;
  width: 0; height: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  transform: translate(-50%, -50%);
  transition: width 0.5s ease, height 0.5s ease, opacity 0.5s ease;
  opacity: 0;
}
.btn:active::after, .dash-action-btn:active::after, .chat-quick-q:active::after, .cost-toggle-btn:active::after {
  width: 200px; height: 200px;
  opacity: 1;
  transition: 0s;
}

/* === CTA SECTION PARTICLE RING === */
.cta-section::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  width: 400px; height: 400px;
  border-radius: 50%;
  border: 1px solid var(--border-accent);
  transform: translate(-50%, -50%);
  animation: ctaRing 8s linear infinite;
  opacity: 0.2;
}
@keyframes ctaRing {
  0% { transform: translate(-50%, -50%) rotate(0deg) scale(1); }
  50% { transform: translate(-50%, -50%) rotate(180deg) scale(1.1); }
  100% { transform: translate(-50%, -50%) rotate(360deg) scale(1); }
}

/* === OUTCOME CARD SLIDE === */
.outcome-card {
  transform-origin: bottom center;
}
.outcome-card.revealed {
  animation: outcomeIn 0.5s cubic-bezier(0.4,0,0.2,1) forwards;
}
.outcome-card:nth-child(1).revealed { animation-delay: 0.05s; }
.outcome-card:nth-child(2).revealed { animation-delay: 0.12s; }
.outcome-card:nth-child(3).revealed { animation-delay: 0.19s; }
.outcome-card:nth-child(4).revealed { animation-delay: 0.26s; }
.outcome-card:nth-child(5).revealed { animation-delay: 0.33s; }
.outcome-card:nth-child(6).revealed { animation-delay: 0.40s; }
@keyframes outcomeIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === SECURITY ICON SPIN ON HOVER === */
.security-item:hover .security-icon {
  animation: secIconSpin 0.5s ease;
}
@keyframes secIconSpin {
  0% { transform: rotate(0) scale(1); }
  50% { transform: rotate(10deg) scale(1.1); }
  100% { transform: rotate(0) scale(1); }
}

/* === ROLE TAB INDICATOR === */
.role-tab {
  position: relative;
}
.role-tab::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  width: 0; height: 2px;
  background: var(--accent-primary);
  transition: width 0.3s ease, left 0.3s ease;
  border-radius: 1px;
}
.role-tab.active::after {
  width: 100%;
  left: 0;
}

/* === DASH CARD VALUE COUNT ANIMATION === */
.dash-card-value[data-count] {
  font-variant-numeric: tabular-nums;
}

/* === COMP BAR GLOW === */
.comp-bar-fill {
  position: relative;
}
.comp-bar-fill::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 4px; height: 100%;
  background: rgba(255,255,255,0.4);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  animation: barGlow 2s ease-in-out infinite;
}
@keyframes barGlow {
  0%, 100% { opacity: 0.3; }
  50% { opacity: 0.8; }
}

/* === EXCEPTION COMPARE PANEL ANIMATION === */
.exception-split.revealed .exception-compare {
  animation: compareSlide 0.6s ease forwards;
}
.exception-split.revealed .exception-compare--old { animation-name: compareSlideLeft; }
.exception-split.revealed .exception-compare--new { animation-name: compareSlideRight; }
@keyframes compareSlideLeft {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes compareSlideRight {
  from { opacity: 0; transform: translateX(20px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === WI SECTION STAGGER === */
.wi-sections.revealed .wi-section {
  opacity: 0;
  animation: wiSectionIn 0.4s ease forwards;
}
.wi-sections.revealed .wi-section:nth-child(1) { animation-delay: 0.05s; }
.wi-sections.revealed .wi-section:nth-child(2) { animation-delay: 0.12s; }
.wi-sections.revealed .wi-section:nth-child(3) { animation-delay: 0.19s; }
.wi-sections.revealed .wi-section:nth-child(4) { animation-delay: 0.26s; }
.wi-sections.revealed .wi-section:nth-child(5) { animation-delay: 0.33s; }
@keyframes wiSectionIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === COMP BAR ROW STAGGER === */
.comp-bars.revealed .comp-bar-row {
  opacity: 0;
  animation: compBarIn 0.4s ease forwards;
}
.comp-bars.revealed .comp-bar-row:nth-child(1) { animation-delay: 0.05s; }
.comp-bars.revealed .comp-bar-row:nth-child(2) { animation-delay: 0.15s; }
.comp-bars.revealed .comp-bar-row:nth-child(3) { animation-delay: 0.25s; }
.comp-bars.revealed .comp-bar-row:nth-child(4) { animation-delay: 0.35s; }
@keyframes compBarIn {
  from { opacity: 0; transform: translateX(-12px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === COMPARE FLOW STEP STAGGER === */
.compare-flow .compare-flow-step {
  opacity: 0;
  transform: translateX(-8px);
}
.compare-split.revealed .compare-flow-step {
  opacity: 1;
  transform: translateX(0);
}
.compare-split.revealed .compare-flow-step:nth-child(1) { transition: all 0.3s ease 0.05s; }
.compare-split.revealed .compare-flow-step:nth-child(3) { transition: all 0.3s ease 0.12s; }
.compare-split.revealed .compare-flow-step:nth-child(5) { transition: all 0.3s ease 0.19s; }
.compare-split.revealed .compare-flow-step:nth-child(7) { transition: all 0.3s ease 0.26s; }
.compare-split.revealed .compare-flow-step:nth-child(9) { transition: all 0.3s ease 0.33s; }
.compare-flow-arrow {
  opacity: 0;
}
.compare-split.revealed .compare-flow-arrow {
  opacity: 1;
}
.compare-split.revealed .compare-flow-arrow:nth-child(2) { transition: opacity 0.3s ease 0.08s; }
.compare-split.revealed .compare-flow-arrow:nth-child(4) { transition: opacity 0.3s ease 0.15s; }
.compare-split.revealed .compare-flow-arrow:nth-child(6) { transition: opacity 0.3s ease 0.22s; }
.compare-split.revealed .compare-flow-arrow:nth-child(8) { transition: opacity 0.3s ease 0.29s; }

/* === CHAT DEMO ENTRANCE === */
.chat-demo.revealed {
  animation: chatDemoIn 0.6s cubic-bezier(0.4,0,0.2,1);
}
@keyframes chatDemoIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* === BRIEF NOTIFICATION DOT PULSE === */
.brief-notification-dot--red {
  animation: dotPulseRed 1.5s ease-in-out infinite;
}
@keyframes dotPulseRed {
  0%, 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}
.brief-notification-dot--yellow {
  animation: dotPulseYellow 1.5s ease-in-out infinite 0.3s;
}
@keyframes dotPulseYellow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(234,179,8,0.4); }
  50% { box-shadow: 0 0 0 4px rgba(234,179,8,0); }
}

/* === ROLE DEMO PANEL TRANSITION === */
.role-panel {
  animation: none;
}
.role-panel.active {
  animation: panelFadeIn 0.35s ease;
}
@keyframes panelFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* === SECTION REVEAL VARIANTS === */
.reveal-left {
  opacity: 0;
  transform: translateX(-32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-left.revealed { opacity: 1; transform: translateX(0); }
.reveal-right {
  opacity: 0;
  transform: translateX(32px);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-right.revealed { opacity: 1; transform: translateX(0); }
.reveal-scale {
  opacity: 0;
  transform: scale(0.92);
  transition: opacity 0.7s cubic-bezier(0.4,0,0.2,1), transform 0.7s cubic-bezier(0.4,0,0.2,1);
}
.reveal-scale.revealed { opacity: 1; transform: scale(1); }
