/* 
  SME360 OS - Design System v2 (Apple-Level Aesthetics)
  Focus: Motion Hierarchy, Depth Layers, High-Fidelity Glows
*/

:root {
  --os-primary-glow: rgba(0, 242, 255, 0.4);
  --os-secondary-glow: rgba(112, 0, 255, 0.4);
  --os-danger-glow: rgba(239, 68, 68, 0.4);
  --os-success-glow: rgba(16, 185, 129, 0.4);
  
  --os-bg-ultra: #020617;
  --os-glass: rgba(15, 23, 42, 0.8);
  --os-border: rgba(255, 255, 255, 0.08);
  
  --os-transition-slow: 0.8s cubic-bezier(0.19, 1, 0.22, 1);
  --os-transition-fast: 0.3s cubic-bezier(0.19, 1, 0.22, 1);
}

/* 1. Global Motion Hierarchy */
.os-reveal {
  opacity: 0;
  transform: translateY(20px) scale(0.98);
  transition: var(--os-transition-slow);
}
.os-reveal.active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* 2. Depth & Layering */
.os-glass-panel {
  background: var(--os-glass);
  backdrop-filter: blur(40px);
  -webkit-backdrop-filter: blur(40px);
  border: 1px solid var(--os-border);
  box-shadow: 0 40px 100px -20px rgba(0,0,0,0.5);
  border-radius: 32px;
}

/* 3. Global Glow System */
.glow-primary { box-shadow: 0 0 30px var(--os-primary-glow); }
.glow-secondary { box-shadow: 0 0 30px var(--os-secondary-glow); }
.glow-danger { box-shadow: 0 0 30px var(--os-danger-glow); }

/* 4. Autopilot UI Elements */
.autopilot-banner {
  position: fixed; top: 80px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(90deg, #00f2ff, #2563eb);
  color: #000; padding: 10px 30px; border-radius: 50px;
  font-weight: 900; z-index: 1000; font-size: 0.8rem;
  box-shadow: 0 10px 30px rgba(0, 242, 255, 0.4);
  display: flex; align-items: center; gap: 10px;
  animation: slideDownIn 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}
@keyframes slideDownIn { from { top: -50px; opacity: 0; } to { top: 80px; opacity: 1; } }

.autopilot-dot { 
  width: 8px; height: 8px; background: #000; border-radius: 50%;
  animation: autopilotPulse 1.5s infinite;
}
@keyframes autopilotPulse { 0% { opacity: 0.3; } 50% { opacity: 1; } 100% { opacity: 0.3; } }

/* 5. Live Insight Overlay (Narrative Engine) */
.narrative-insight {
  position: fixed; bottom: 30px; left: 30px; max-width: 320px;
  background: rgba(0, 242, 255, 0.1); border: 1px solid var(--os-primary-glow);
  padding: 20px; border-radius: 24px; color: #fff; z-index: 1000;
  backdrop-filter: blur(20px); animation: slideUpIn 0.8s;
}
@keyframes slideUpIn { from { bottom: -100px; opacity: 0; } to { bottom: 30px; opacity: 1; } }

/* 6. Ecosystem Node View */
.ecosystem-container {
  position: fixed; inset: 0; z-index: 99999; 
  background: var(--os-bg-ultra); display: none;
}
.ecosystem-container.active { display: block; }

.node {
  position: absolute; border-radius: 50%;
  background: var(--primary-neon); box-shadow: 0 0 10px var(--primary-neon);
  transition: 0.5s;
}
.node-line {
  position: absolute; background: linear-gradient(90deg, var(--primary-neon), transparent);
  height: 1px; transform-origin: left; opacity: 0.2;
}
