/* ==========================================================================
   NexuSend Enterprise Landing Page — Design System & Advanced Interactivity
   Ultra-Clean Light Corporate Aesthetic, Glassmorphism, Micro-Animations
   ========================================================================== */

:root {
  --color-primary: #059669;
  --color-primary-dark: #047857;
  --color-primary-light: #10b981;
  --color-indigo: #4f46e5;
  --color-indigo-dark: #3730a3;
  --color-surface: #ffffff;
  --color-bg: #f8fafc;
  --color-text: #0f172a;
  --color-text-muted: #64748b;
  --color-border: #e2e8f0;
  
  --wa-green: #25d366;
  --wa-teal: #075e54;
  --wa-dark-green: #128c7e;
  --wa-chat-bg: #efeae2;

  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.07), 0 2px 4px -2px rgb(0 0 0 / 0.07);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.07), 0 4px 6px -4px rgb(0 0 0 / 0.07);
  --shadow-xl: 0 20px 25px -5px rgb(0 0 0 / 0.08), 0 8px 10px -6px rgb(0 0 0 / 0.08);
  --shadow-2xl: 0 25px 50px -12px rgb(0 0 0 / 0.15);
  --shadow-glow: 0 0 35px -5px rgba(16, 185, 129, 0.2);
}

/* Base resets & typography */
html {
  scroll-behavior: smooth;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--color-text);
  background-color: var(--color-bg);
}

.font-heading {
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* Glassmorphism Navigation */
.nav-scrolled {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  -webkit-backdrop-filter: blur(20px) !important;
  box-shadow: 0 4px 25px -2px rgba(15, 23, 42, 0.08) !important;
  border-bottom-color: rgba(226, 232, 240, 0.9) !important;
}

/* Gradient text accents */
.text-gradient-emerald {
  background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.text-gradient-brand {
  background: linear-gradient(135deg, #059669 0%, #4f46e5 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

#sim-messages::-webkit-scrollbar {
  width: 5px;
}
#sim-messages::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
}
#sim-messages::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 9999px;
}

/* Message Bubble Animation */
@keyframes bubbleSlideUp {
  0% {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
.msg-bubble {
  animation: bubbleSlideUp 0.28s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Typing Indicator Animation */
.typing-dot {
  animation: typingBounce 1.4s infinite ease-in-out both;
}
.typing-dot:nth-child(1) { animation-delay: -0.32s; }
.typing-dot:nth-child(2) { animation-delay: -0.16s; }

@keyframes typingBounce {
  0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; }
  40% { transform: scale(1.1); opacity: 1; }
}

/* OCR Laser Scanner Animation */
@keyframes laserScan {
  0% {
    top: 0%;
    opacity: 0.8;
  }
  50% {
    top: 96%;
    opacity: 1;
  }
  100% {
    top: 0%;
    opacity: 0.8;
  }
}

.scanner-laser {
  animation: laserScan 2.2s infinite ease-in-out;
}

/* Audio Waveform Bars Animation */
@keyframes waveMotion {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}
.audio-bar {
  animation: waveMotion 1.2s infinite ease-in-out;
}
.audio-bar:nth-child(1) { animation-delay: 0.1s; }
.audio-bar:nth-child(2) { animation-delay: 0.3s; }
.audio-bar:nth-child(3) { animation-delay: 0.5s; }
.audio-bar:nth-child(4) { animation-delay: 0.2s; }
.audio-bar:nth-child(5) { animation-delay: 0.4s; }
.audio-bar:nth-child(6) { animation-delay: 0.15s; }
.audio-bar:nth-child(7) { animation-delay: 0.35s; }
.audio-bar:nth-child(8) { animation-delay: 0.25s; }

/* Custom Range Slider (ROI Calculator) */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: #e2e8f0;
  border-radius: 9999px;
  outline: none;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #059669;
  border: 3px solid #ffffff;
  box-shadow: 0 4px 10px rgba(5, 150, 105, 0.4);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.18);
  box-shadow: 0 6px 14px rgba(5, 150, 105, 0.5);
}

/* Lightbox Modal Animation & Controls */
@keyframes lightboxFadeIn {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-content {
  animation: lightboxFadeIn 0.24s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Floating pulse animation for WA Widget */
@keyframes floatWobble {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.floating-widget {
  animation: floatWobble 3.5s ease-in-out infinite;
}

/* Shimmer on cards */
.shimmer-card {
  position: relative;
  overflow: hidden;
}
.shimmer-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent 20%,
    rgba(255, 255, 255, 0.4) 50%,
    transparent 80%
  );
  transform: rotate(30deg);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.shimmer-card:hover::after {
  opacity: 1;
}

/* WhatsApp background pattern simulation */
.wa-bg-chat {
  background-color: #efeae2;
  background-image: radial-gradient(#d5ccbf 1px, transparent 1px);
  background-size: 16px 16px;
}
