/* ==========================================================================
   dAImonion.it — Corporate Stylesheet
   Design System: Experientia Heritage & Sovereign Enterprise AI
   Corporate Colors from www.experientia.it:
     - Experientia Heritage Blue: #0E3E98, #1B4FC0, #3B82F6
     - Experientia Warm Amber / Gold: #FCAF3B, #F59E0B, #AB641D
     - Deep Corporate Night Canvas: #060B18, #0A1329, #0E1B3A
     - Sovereign Status Accent: #10B981, #77B978
   ========================================================================== */

:root {
  /* Experientia Corporate Blue Palette */
  --experientia-blue: #0E3E98;
  --experientia-blue-deep: #08235A;
  --experientia-blue-light: #1B4FC0;
  --experientia-blue-vibrant: #2563EB;
  --experientia-blue-glow: #60A5FA;
  --experientia-blue-subtle: rgba(14, 62, 152, 0.12);
  --experientia-blue-border: rgba(37, 99, 235, 0.28);
  
  /* Experientia Corporate Amber / Gold Palette */
  --experientia-amber: #FCAF3B;
  --experientia-amber-deep: #AB641D;
  --experientia-amber-light: #FDE68A;
  --experientia-amber-glow: rgba(252, 175, 59, 0.45);
  --experientia-amber-subtle: rgba(252, 175, 59, 0.12);
  --experientia-amber-border: rgba(252, 175, 59, 0.35);

  /* Deep Corporate Canvas & Surfaces */
  --dark-bg: #060B18;
  --dark-surface: #0A1329;
  --dark-card: #0E1B3A;
  --dark-card-hover: #13254E;
  --dark-border: rgba(59, 130, 246, 0.20);
  
  /* Typography Colors */
  --text-main: #F8FAFC;
  --text-muted: #94A3B8;
  --text-dim: #64748B;
  
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--dark-bg);
  color: var(--text-main);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body {
  overflow-x: hidden;
  background-color: var(--dark-bg);
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 9px;
}
::-webkit-scrollbar-track {
  background: var(--dark-bg);
}
::-webkit-scrollbar-thumb {
  background: #15264F;
  border-radius: 4px;
  border: 2px solid var(--dark-bg);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--experientia-blue-vibrant);
}

/* Ambient glow background layers */
.bg-ambient-grid {
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
}

.radial-glow-top {
  position: absolute;
  top: -160px;
  left: 50%;
  transform: translateX(-50%);
  width: 960px;
  height: 640px;
  background: radial-gradient(circle, rgba(14, 62, 152, 0.38) 0%, rgba(252, 175, 59, 0.12) 45%, transparent 72%);
  pointer-events: none;
  z-index: 0;
  filter: blur(55px);
}

.radial-glow-accent {
  position: absolute;
  width: 650px;
  height: 480px;
  background: radial-gradient(circle, rgba(14, 62, 152, 0.28) 0%, rgba(252, 175, 59, 0.08) 50%, transparent 75%);
  pointer-events: none;
  filter: blur(65px);
}

/* Glassmorphism containers */
.glass-panel {
  background: rgba(10, 19, 41, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--dark-border);
}

.glass-panel-elevated {
  background: rgba(14, 27, 58, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(59, 130, 246, 0.26);
  box-shadow: 0 20px 40px -15px rgba(2, 6, 23, 0.7), 0 0 25px -5px rgba(14, 62, 152, 0.25);
}

.glass-nav {
  background: rgba(6, 11, 24, 0.90);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(59, 130, 246, 0.18);
}

/* Gradient text accents */
.text-gradient-amber {
  background: linear-gradient(135deg, #FFFFFF 0%, #FEF3C7 40%, #FCAF3B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-ai {
  background: linear-gradient(135deg, #93C5FD 0%, #3B82F6 45%, #FCAF3B 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-blue {
  background: linear-gradient(135deg, #BFDBFE 0%, #60A5FA 50%, #1D4ED8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Interactive Card Accents */
.feature-card {
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(252, 175, 59, 0.6), rgba(59, 130, 246, 0.6), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: rgba(252, 175, 59, 0.45);
  box-shadow: 0 16px 36px -10px rgba(2, 6, 23, 0.8), 0 0 30px -8px rgba(14, 62, 152, 0.4);
}

.feature-card:hover::before {
  opacity: 1;
}

/* Agent Slot Placeholder styling */
.agent-slot-placeholder {
  border: 2px dashed rgba(59, 130, 246, 0.35);
  background: rgba(10, 19, 41, 0.5);
  transition: all 0.3s ease;
}

.agent-slot-placeholder:hover {
  border-color: rgba(252, 175, 59, 0.7);
  background: rgba(14, 27, 58, 0.8);
  box-shadow: 0 0 25px rgba(252, 175, 59, 0.2);
}

/* Glow Badges & Buttons */
.btn-experientia-glow,
.btn-emerald-glow {
  background: linear-gradient(135deg, #0E3E98 0%, #1B4FC0 50%, #2563EB 100%);
  box-shadow: 0 0 20px -2px rgba(37, 99, 235, 0.5);
  transition: all 0.25s ease;
}

.btn-experientia-glow:hover,
.btn-emerald-glow:hover {
  background: linear-gradient(135deg, #1B4FC0 0%, #2563EB 50%, #3B82F6 100%);
  box-shadow: 0 0 30px 2px rgba(59, 130, 246, 0.7), 0 0 15px rgba(252, 175, 59, 0.3);
  transform: translateY(-1px);
}

.btn-amber-glow {
  background: linear-gradient(135deg, #AB641D 0%, #F59E0B 50%, #FCAF3B 100%);
  box-shadow: 0 0 20px -2px rgba(252, 175, 59, 0.5);
  transition: all 0.25s ease;
}

.btn-amber-glow:hover {
  background: linear-gradient(135deg, #F59E0B 0%, #FCAF3B 60%, #FDE68A 100%);
  box-shadow: 0 0 30px 4px rgba(252, 175, 59, 0.75);
  transform: translateY(-1px);
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.14);
  color: #6EE7B7;
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge-blue {
  background: rgba(14, 62, 152, 0.3);
  color: #93C5FD;
  border: 1px solid rgba(59, 130, 246, 0.35);
}

.badge-amber {
  background: rgba(252, 175, 59, 0.16);
  color: #FDE68A;
  border: 1px solid rgba(252, 175, 59, 0.38);
}

.badge-purple {
  background: rgba(168, 85, 247, 0.14);
  color: #D8B4FE;
  border: 1px solid rgba(216, 180, 254, 0.28);
}

/* Pulse animation */
@keyframes subtle-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.75; transform: scale(0.98); }
}

.live-indicator {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10B981;
  box-shadow: 0 0 10px #10B981;
  animation: subtle-pulse 2s infinite ease-in-out;
}

.live-indicator-amber {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #FCAF3B;
  box-shadow: 0 0 10px #FCAF3B;
  animation: subtle-pulse 2s infinite ease-in-out;
}

/* Chat Sandbox terminal window */
.sandbox-chat-container {
  max-height: 440px;
  overflow-y: auto;
  scrollbar-width: thin;
}

/* Quote styling */
.quote-experientia {
  position: relative;
  border-left: 3px solid var(--experientia-amber);
  background: linear-gradient(90deg, rgba(14, 62, 152, 0.15) 0%, rgba(252, 175, 59, 0.05) 50%, transparent 100%);
}
