/* ============================================
   Maps Hit Bot - Custom Styles
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ---------- CSS Variables ---------- */
:root {
  --accent-primary: #ff3131;
  --accent-secondary: #ff914d;
  --bg-dark: #0a0a0a;
  --bg-card: #171717;
  --text-primary: #ffffff;
  --text-secondary: #e0e0e0;
  --text-muted: #9ca3af;
  --border-subtle: rgba(255, 255, 255, 0.1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-weight: 500;
  font-size: 0.95rem;
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: var(--accent-primary);
  color: #fff;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent-primary); }

/* ---------- Section Container ---------- */
.section-container {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

/* ---------- Neon Card ---------- */
.neon-card {
  background: transparent;
  border: 1px solid rgba(255, 49, 49, 0.2);
  border-radius: 0.75rem;
  padding: 1.5rem;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(255, 49, 49, 0.05);
}
.neon-card:hover {
  border-color: rgba(255, 49, 49, 0.5);
  box-shadow: 0 0 20px rgba(255, 49, 49, 0.2), inset 0 0 20px rgba(255, 49, 49, 0.05);
}

/* ---------- Neon Text Gradient ---------- */
.neon-text-gradient {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- Neon Button ---------- */
.neon-button {
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  font-weight: 700;
  border: none;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(255, 49, 49, 0.5);
  transition: all 0.3s ease;
}
.neon-button:hover {
  box-shadow: 0 0 25px rgba(255, 49, 49, 0.7);
  transform: translateY(-1px);
}

/* ---------- Section Separator ---------- */
.section-separator {
  width: 100%;
  height: 40px;
  background-color: var(--bg-card);
}

/* ---------- Scroll Animations ---------- */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}
.animate-on-scroll.from-left {
  transform: translateX(-30px);
}
.animate-on-scroll.from-left.visible {
  transform: translateX(0);
}
.animate-on-scroll.from-right {
  transform: translateX(30px);
}
.animate-on-scroll.from-right.visible {
  transform: translateX(0);
}
.animate-on-scroll.scale-in {
  transform: scale(0.9);
}
.animate-on-scroll.scale-in.visible {
  transform: scale(1);
}

/* ---------- Hero Animations ---------- */
@keyframes pulseGlow {
  0%, 100% { transform: translate(-50%, 0) scale(1); opacity: 0.15; }
  50% { transform: translate(-50%, 0) scale(1.1); opacity: 0.25; }
}
.hero-glow {
  animation: pulseGlow 8s ease-in-out infinite;
}

@keyframes routeDash {
  to { stroke-dashoffset: -100; }
}
.route-animated {
  stroke-dasharray: 10 5;
  animation: routeDash 3s linear infinite;
}

@keyframes pingPulse {
  0%, 100% { r: 8; opacity: 0.8; }
  50% { r: 16; opacity: 0; }
}

@keyframes moveAlongPath {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}
.car-indicator {
  offset-path: path('M 80 420 Q 200 350, 320 100');
  offset-rotate: auto;
  animation: moveAlongPath 3s linear infinite;
}

@keyframes pinBounce {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---------- FAQ Accordion ---------- */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out, opacity 0.35s ease-out;
  opacity: 0;
}
.faq-answer.open {
  opacity: 1;
}
.faq-chevron {
  transition: transform 0.3s ease;
}
.faq-chevron.rotated {
  transform: rotate(180deg);
}

/* ---------- Mobile Menu ---------- */
.mobile-menu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-out, opacity 0.3s ease;
  opacity: 0;
}
.mobile-menu.open {
  opacity: 1;
}

/* ---------- Navigation Fixed ---------- */
.nav-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: rgba(10, 10, 10, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
  height: 80px;
  display: flex;
  align-items: center;
}

/* ---------- Toast Notification ---------- */
.toast-container {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  pointer-events: none;
}
.toast-item {
  pointer-events: auto;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 0.5rem;
  padding: 1rem 1.5rem;
  color: #fff;
  font-size: 0.875rem;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  animation: toastSlideIn 0.3s ease-out;
  max-width: 400px;
}
@keyframes toastSlideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ---------- Comparison Table ---------- */
.comparison-grid {
  display: grid;
  grid-template-columns: 6fr 3fr 3fr;
}

/* ---------- Pricing Cards ---------- */
.pricing-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
  color: #fff;
  padding: 0.25rem 1rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  box-shadow: 0 0 10px rgba(255, 49, 49, 0.5);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

/* ---------- Rotating card ---------- */
.rotate-card {
  transform: rotate(3deg);
  transition: transform 0.5s ease;
}
.rotate-card:hover {
  transform: rotate(0deg);
}

/* ---------- Loading Spinner ---------- */
@keyframes spin {
  to { transform: rotate(360deg); }
}
.spinner {
  animation: spin 1s linear infinite;
}

/* ---------- Responsive Helpers ---------- */
@media (max-width: 768px) {
  .comparison-grid {
    grid-template-columns: 5fr 3.5fr 3.5fr;
  }
  .hide-mobile { display: none !important; }
}
@media (min-width: 769px) {
  .hide-desktop { display: none !important; }
}
