/* ==========================================================================
   AEGIS GUARD — Premium Homepage Glassmorphic Purple & Indigo Theme Override
   ========================================================================== */

:root {
  /* Override core design variables */
  --bg: #030014;
  --bg-alt: #08051e;
  --surface: rgba(18, 12, 47, 0.45);
  --border: rgba(255, 255, 255, 0.08);
  --border-h: rgba(192, 132, 252, 0.3);
  --blue: #c084fc;       /* Neon purple */
  --indigo: #6366f1;     /* Indigo */
  --text-1: #f8fafc;
  --text-2: #cbd5e1;
  --text-3: #64748b;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 24px;
  --max-w: 1200px;
  --transition: 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  
  /* Additional theme-specific tokens */
  --hot-pink: #f472b6;
  --accent-gradient: linear-gradient(135deg, #c084fc 0%, #6366f1 50%, #f472b6 100%);
  --accent-glow: 0 0 30px rgba(99, 102, 241, 0.3);
  --glass-bg: rgba(255, 255, 255, 0.03);
  --glass-border: rgba(255, 255, 255, 0.06);
}

/* Base Body Modifications */
body {
  background-color: var(--bg);
  background-image: 
    radial-gradient(circle at 50% -20%, rgba(99, 102, 241, 0.15) 0%, transparent 60%),
    radial-gradient(circle at 10% 40%, rgba(192, 132, 252, 0.08) 0%, transparent 40%),
    radial-gradient(circle at 90% 70%, rgba(244, 114, 182, 0.08) 0%, transparent 40%);
  position: relative;
}

/* ---- DYNAMIC BACKGROUND GLOW ORBS ---- */
.glow-orb-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.15;
  will-change: transform;
}

.orb-1 {
  top: 15vh;
  left: -150px;
  width: 500px;
  height: 500px;
  background: var(--indigo);
  animation: float-orb-1 25s infinite alternate ease-in-out;
}

.orb-2 {
  top: 90vh;
  right: -200px;
  width: 600px;
  height: 600px;
  background: var(--blue);
  animation: float-orb-2 30s infinite alternate ease-in-out;
}

.orb-3 {
  top: 220vh;
  left: 10%;
  width: 550px;
  height: 550px;
  background: var(--hot-pink);
  animation: float-orb-1 22s infinite alternate-reverse ease-in-out;
}

@keyframes float-orb-1 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(80px, 60px) scale(1.15); }
  100% { transform: translate(-40px, 120px) scale(0.9); }
}

@keyframes float-orb-2 {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-100px, -80px) scale(0.9); }
  100% { transform: translate(50px, 60px) scale(1.2); }
}

/* ---- COMPONENT OVERRIDES & ELEVATIONS ---- */

/* Text Gradient Override */
.text-gradient {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 8px rgba(192, 132, 252, 0.15));
}

/* ---- FLOATING GLASSMORPHIC PILL NAVBAR ---- */
.nav-bar {
  position: fixed;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 48px);
  max-width: 1120px;
  height: 64px;
  background: rgba(8, 5, 28, 0.35);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  z-index: 1000;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.3),
    inset 0 1px 1px rgba(255, 255, 255, 0.03);
}

.nav-bar.scrolled {
  top: 12px;
  background: rgba(5, 3, 20, 0.65);
  border-color: rgba(192, 132, 252, 0.2);
  box-shadow: 
    0 12px 40px rgba(0, 0, 0, 0.5),
    0 0 20px rgba(99, 102, 241, 0.1),
    inset 0 1px 1px rgba(255, 255, 255, 0.06);
  height: 60px;
}

/* Center links when in row layout */
.nav-inner {
  max-width: 100% !important;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0 2rem !important;
  box-sizing: border-box;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  flex: 1;
}

.nav-link {
  position: relative;
  padding: 0.5rem 1.25rem !important;
  font-size: 0.85rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  border-radius: 100px;
  transition: all var(--transition);
  background: transparent;
}

.nav-link:hover, .nav-link.active {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nav-logo svg defs linearGradient stop:first-child {
  stop-color: #c084fc;
}
.nav-logo svg defs linearGradient stop:last-child {
  stop-color: #6366f1;
}

/* Expand floating pill menu on mobile when open */
.nav-bar:has(.nav-links.open) {
  border-radius: 24px;
  height: auto;
  padding-bottom: 1.25rem;
  background: rgba(8, 5, 28, 0.95);
  border-color: rgba(192, 132, 252, 0.25);
  box-shadow: 0 20px 50px rgba(0,0,0,0.6);
}

/* Mobile responsive layout */
@media (max-width: 768px) {
  .nav-bar {
    width: calc(100% - 32px);
    top: 12px;
    height: 56px;
  }
  .nav-bar.scrolled {
    top: 12px;
    height: 56px;
  }
  
  .nav-inner {
    flex-wrap: wrap;
    height: auto !important;
    min-height: 56px;
    padding: 0 1.25rem !important;
  }
  
  .nav-logo {
    height: 56px;
    display: flex;
    align-items: center;
  }
  
  .nav-toggle {
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1001;
  }

  .nav-links {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 0.75rem 0 0.5rem 0;
    gap: 0.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    order: 3;
  }

  .nav-links.open {
    display: flex;
  }
  
  .nav-link {
    width: 100%;
    text-align: center;
    padding: 0.75rem !important;
    background: rgba(255, 255, 255, 0.02);
  }
  
  /* Hamburger to X Animations */
  .nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
    background: #fff;
  }
  .nav-toggle.open span:nth-child(2) {
    opacity: 0;
  }
  .nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
    background: #fff;
  }
}

/* Buttons */
.btn--primary {
  background: var(--accent-gradient);
  border: none;
  color: #fff;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.35);
  position: relative;
  overflow: hidden;
  z-index: 1;
}
.btn--primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(135deg, #f472b6 0%, #6366f1 50%, #c084fc 100%);
  opacity: 0;
  z-index: -1;
  transition: opacity 0.4s ease;
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(192, 132, 252, 0.5);
}
.btn--primary:hover::before {
  opacity: 1;
}

.btn--outline {
  background: rgba(255, 255, 255, 0.02);
  border-color: var(--glass-border);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
}
.btn--outline:hover {
  border-color: #c084fc;
  color: #fff;
  background: rgba(192, 132, 252, 0.05);
  box-shadow: 0 0 15px rgba(192, 132, 252, 0.1);
  transform: translateY(-1px);
}

/* Hero Section */
.hero {
  z-index: 1;
}
.hero-inner {
  padding-top: 9rem !important; /* Clear floating navbar */
}

.hero-grid-overlay {
  background-image:
    linear-gradient(rgba(192, 132, 252, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(192, 132, 252, 0.025) 1px, transparent 1px);
}

.hero-content .badge {
  background: rgba(192, 132, 252, 0.06);
  border-color: rgba(192, 132, 252, 0.15);
  color: #e2e8f0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.badge-dot {
  background: #c084fc;
  box-shadow: 0 0 10px #c084fc;
}

/* Hero Orbit & Visuals */
.shield-icon {
  filter: drop-shadow(0 0 60px rgba(99, 102, 241, 0.4)) drop-shadow(0 0 20px rgba(244, 114, 182, 0.2));
}

.shield-orbit {
  border-color: rgba(255, 255, 255, 0.06);
}

.shield-orbit--outer::after {
  background: #f472b6;
  box-shadow: 0 0 12px #f472b6;
}

.shield-orbit--inner::after {
  background: #c084fc;
  box-shadow: 0 0 12px #c084fc;
}

/* Metrics Bar */
.metrics-bar {
  background: rgba(8, 5, 30, 0.5);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 1;
  position: relative;
}

.metric-value {
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.metric-divider {
  background: var(--glass-border);
}

/* About Section */
.section--alt {
  background: rgba(8, 5, 30, 0.35);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.section-overline {
  color: #c084fc;
  letter-spacing: 0.25em;
  font-weight: 700;
}

/* ---- GLASSMORPHIC FEATURE CARDS ---- */
.feature-card {
  background: rgba(18, 12, 47, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

/* Subtle inner glow */
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.01) 40%, rgba(192, 132, 252, 0.05) 70%, rgba(244, 114, 182, 0.15) 100%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.feature-card:hover {
  border-color: rgba(192, 132, 252, 0.35);
  transform: translateY(-6px);
  background: rgba(22, 15, 59, 0.5);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.4),
    0 0 30px rgba(99, 102, 241, 0.15);
}

.feature-icon {
  position: relative;
  transition: transform 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1) rotate(5deg);
}

.feature-icon--blue    { background: rgba(192, 132, 252, 0.15); color: #d8b4fe; }
.feature-icon--indigo  { background: rgba(99, 102, 241, 0.15);  color: #a5b4fc; }
.feature-icon--purple  { background: rgba(244, 114, 182, 0.15);  color: #fbcfe8; }
.feature-icon--emerald { background: rgba(52, 211, 153, 0.15);  color: #a7f3d0; }
.feature-icon--amber   { background: rgba(251, 191, 36, 0.15);  color: #fde68a; }
.feature-icon--cyan    { background: rgba(34, 211, 238, 0.15);  color: #c7d2fe; }

.feature-link {
  color: #c084fc;
}

/* Steps Section */
.step-num {
  -webkit-text-stroke: 1px rgba(192, 132, 252, 0.4);
  font-family: 'Inter', sans-serif;
  font-weight: 800;
  text-shadow: 0 0 20px rgba(192, 132, 252, 0.15);
}

.step-connector {
  background: linear-gradient(90deg, transparent, rgba(192, 132, 252, 0.2), transparent);
}

/* Testimonial Cards */
.testimonial-card {
  background: rgba(18, 12, 47, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.testimonial-card:hover {
  border-color: rgba(192, 132, 252, 0.25);
  background: rgba(18, 12, 47, 0.4);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.3);
}

/* CTA Section */
.cta-section {
  background: rgba(8, 5, 30, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

/* Footer Section */
.site-footer {
  background: #030010;
  border-top: 1px solid var(--glass-border);
  position: relative;
  z-index: 1;
}

.social-link {
  border-color: var(--glass-border);
}
.social-link:hover {
  border-color: rgba(192, 132, 252, 0.4);
  background: rgba(192, 132, 252, 0.1);
  color: #fff;
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.2);
}

.footer-bottom {
  border-top-color: var(--glass-border);
}

/* Custom Scrollbar override for premium dark feel */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #030010;
}
::-webkit-scrollbar-thumb {
  background: rgba(192, 132, 252, 0.2);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(192, 132, 252, 0.45);
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .nav-links {
    background: #08051e;
    border-bottom: 1px solid var(--glass-border);
  }
}
