/* ==========================================================================
   Emanzo LLC — Enterprise Distribution Platform Stylesheet (Enhanced)
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800;900&family=Space+Grotesk:wght@500;700&display=swap');

:root {
  --primary-dark: #020617;
  --indigo-primary: #4f46e5;
  --indigo-hover: #4338ca;
  --emerald-primary: #059669;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: #f8fafc;
  color: #020617;
  overflow-x: hidden;
}

.font-display {
  font-family: 'Space Grotesk', sans-serif;
}

/* Glassmorphism */
.glass-panel {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.glass-dark {
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(51, 65, 85, 0.7);
}

/* Ambient Glows */
.ambient-glow-indigo {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, rgba(99, 102, 241, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
}

.ambient-glow-emerald {
  position: absolute;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(16, 185, 129, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
  filter: blur(45px);
}

/* Card Transitions */
.interactive-card {
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}
.interactive-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 25px 35px -10px rgba(15, 23, 42, 0.08), 0 0 20px -5px rgba(79, 70, 229, 0.12);
  border-color: #a5b4fc;
}

/* Gradient Borders */
.gradient-border-card {
  position: relative;
  background: #ffffff;
  border-radius: 1rem;
}
.gradient-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: 1.05rem;
  background: linear-gradient(135deg, #4f46e5, #059669, transparent, #e2e8f0);
  z-index: -1;
  opacity: 0.4;
  transition: opacity 0.3s ease;
}
.gradient-border-card:hover::before {
  opacity: 1;
}

/* Ticker Slide */
@keyframes tickerSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.ticker-track {
  display: flex;
  width: max-content;
  animation: tickerSlide 30s linear infinite;
}
.ticker-track:hover {
  animation-play-state: paused;
}

/* Live Pulse */
.live-pulse {
  position: relative;
  display: inline-block;
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
}
.live-pulse::after {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background-color: rgba(16, 185, 129, 0.4);
  animation: pulseRipple 1.8s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes pulseRipple {
  0% { transform: scale(0.8); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

/* Scroll To Top Button */
.scroll-top-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 45;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #020617;
  color: #ffffff;
  border: 1px solid #334155;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.scroll-top-btn.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.scroll-top-btn:hover {
  background: #4f46e5;
  border-color: #6366f1;
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(79, 70, 229, 0.4);
}

/* Mega Menu Dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.nav-dropdown-trigger:hover .nav-dropdown-menu,
.nav-dropdown-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

/* FAQ Accordion Styling */
.faq-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  opacity: 0;
}
.faq-item.active .faq-content {
  max-height: 350px;
  opacity: 1;
}
.faq-item.active .faq-icon {
  transform: rotate(180deg);
  color: #4f46e5;
}

/* Modals */
.modal-enter {
  animation: modalScaleIn 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalScaleIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(8px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: #f8fafc;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Toast */
.toast-appear {
  animation: toastSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes toastSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
