/* Custom Styles for Aluagogo High-Converting Landing Page */

@import url('../fonts/fonts.css');

:root {
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

body {
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Modern Grid Backgrounds */
.bg-grid-pattern {
  background-size: 40px 40px;
  background-image: 
    linear-gradient(to right, rgba(0, 0, 0, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(0, 0, 0, 0.04) 1px, transparent 1px);
}

.dark .bg-grid-pattern {
  background-image: 
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
}

.bg-dots-pattern {
  background-image: radial-gradient(rgba(0, 0, 0, 0.07) 1px, transparent 1px);
  background-size: 24px 24px;
}

.dark .bg-dots-pattern {
  background-image: radial-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 24px 24px;
}

.bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.12) 0%, rgba(248, 250, 252, 0) 70%);
}

.dark .bg-radial-gradient {
  background: radial-gradient(circle at 50% 0%, rgba(99, 102, 241, 0.15) 0%, rgba(15, 23, 42, 0) 70%);
}

.bg-radial-glow {
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.08) 0%, rgba(59, 130, 246, 0.05) 40%, transparent 70%);
}

.dark .bg-radial-glow {
  background: radial-gradient(circle at center, rgba(147, 51, 234, 0.12) 0%, rgba(59, 130, 246, 0.08) 40%, transparent 70%);
}

/* Glassmorphic Effects - Light & Dark Modes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.dark .glass-panel {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.glass-panel-glow {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(99, 102, 241, 0.3);
  box-shadow: 0 10px 40px -10px rgba(99, 102, 241, 0.12);
}

.dark .glass-panel-glow {
  background: rgba(15, 23, 42, 0.85);
  border: 1px solid rgba(99, 102, 241, 0.25);
  box-shadow: 0 0 35px -5px rgba(99, 102, 241, 0.15);
}

.glass-card {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 4px 20px -4px rgba(0, 0, 0, 0.04);
}

.dark .glass-card {
  background: linear-gradient(135deg, rgba(30, 41, 59, 0.7) 0%, rgba(15, 23, 42, 0.8) 100%);
  border: 1px solid rgba(255, 255, 255, 0.07);
  box-shadow: none;
}

.glass-card:hover {
  border-color: rgba(99, 102, 241, 0.4);
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.15);
}

.dark .glass-card:hover {
  box-shadow: 0 10px 30px -10px rgba(99, 102, 241, 0.2);
}

/* Custom Range Slider Styling */
input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  cursor: pointer;
  width: 100%;
}

input[type="range"]:focus {
  outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  border-radius: 9999px;
  height: 10px;
}

input[type="range"]::-moz-range-track {
  background: linear-gradient(90deg, #4f46e5 0%, #06b6d4 100%);
  border-radius: 9999px;
  height: 10px;
}

input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  margin-top: -7px;
  background-color: #ffffff;
  border: 3px solid #6366f1;
  border-radius: 50%;
  height: 24px;
  width: 24px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

input[type="range"]::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.9);
}

input[type="range"]::-moz-range-thumb {
  background-color: #ffffff;
  border: 3px solid #6366f1;
  border-radius: 50%;
  height: 24px;
  width: 24px;
  box-shadow: 0 0 15px rgba(99, 102, 241, 0.6);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Pulse Beacon */
@keyframes beacon {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

.pulse-beacon {
  animation: beacon 2s infinite;
}

/* Shimmer Text */
.shimmer-text {
  background: linear-gradient(90deg, #1e293b 0%, #64748b 50%, #1e293b 100%);
  background-size: 200% auto;
  color: transparent;
  -webkit-background-clip: text;
  background-clip: text;
}

.dark .shimmer-text {
  background: linear-gradient(90deg, #ffffff 0%, #cbd5e1 50%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

/* Custom Scrollbar for Previews */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(241, 245, 249, 0.8);
}
.dark ::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.5);
}
::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.5);
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(100, 116, 139, 0.7);
}

/* Subtle Outgoing Soundwave Pulse for Brand Logo (Tight & Refined) */
.logo-soundwave-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.soundwave-emitter {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.soundwave-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1px solid rgba(99, 102, 241, 0.35);
  opacity: 0;
  pointer-events: none;
  animation: soundwaveRipples 2.8s cubic-bezier(0.16, 0.8, 0.35, 1) infinite;
}

.dark .soundwave-ring {
  border-color: rgba(129, 140, 248, 0.4);
  box-shadow: 0 0 6px rgba(99, 102, 241, 0.15);
}

.soundwave-ring:nth-child(1) {
  animation-delay: 0s;
}

.soundwave-ring:nth-child(2) {
  animation-delay: 0.9s;
}

.soundwave-ring:nth-child(3) {
  animation-delay: 1.8s;
}

@keyframes soundwaveRipples {
  0% {
    width: 92%;
    height: 92%;
    opacity: 0.65;
    transform: translate(-50%, -50%) scale(0.94);
  }
  45% {
    opacity: 0.25;
  }
  100% {
    width: 122%;
    height: 122%;
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.14);
  }
}
