:root {
  --brand-primary: #2563eb;
  --brand-dark: #0f172a;
  --glass-bg: rgba(255, 255, 255, 0.85);
  --glass-border: rgba(255, 255, 255, 0.6);
}

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

/* --- 1. BACKGROUND --- */

#particles-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

section {
  position: relative;
  z-index: 1;
}

/* --- 2. HERO VISUAL --- */

.hero-visual-wrapper {
  height: 340px;
  position: relative;
  perspective: 1000px;
  margin-top: 0px;
}

.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(1000px);
  height: 100%;
  width: 100%;
  will-change: transform;
}

/* Browser Window */

.browser-window {
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid #e2e8f0;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  transform: translateZ(20px);
}

.browser-toolbar {
  background: #fff;
  border-bottom: 1px solid #f1f5f9;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
  z-index: 20;
}

.window-controls {
  display: flex;
  gap: 6px;
}

.control-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.dot-red {
  background: #ef4444;
}

.dot-yellow {
  background: #f59e0b;
}

.dot-green {
  background: #10b981;
}

.address-bar {
  background: #f1f5f9;
  border-radius: 8px;
  padding: 6px 14px;
  flex-grow: 1;
  font-size: 12px;
  color: #64748b;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.browser-content {
  flex-grow: 1;
  display: flex;
  position: relative;
  overflow: hidden;
}

/* Sidebar */

.sidebar-mockup {
  width: 30%;
  background: #fff;
  border-right: 1px solid #f1f5f9;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 10;
}

.search-bar-mock {
  height: 28px;
  width: 100%;
  background: #fef08a;
  margin-bottom: 10px;
  border-radius: 6px;
  flex-shrink: 0;
}

.sidebar-scroll-mask {
  flex-grow: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

.sidebar-scroll-content {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollVertical 8s linear infinite;
}

@keyframes scrollVertical {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-50%);
  }
}

.result-card-mock {
  height: 60px;
  width: 100%;
  background: #fff;
  border: 1px solid #f1f5f9;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.02);
  flex-shrink: 0;
}

.line-1 {
  height: 10px;
  width: 60%;
  background: #cbd5e1;
  border-radius: 2px;
}

.line-2 {
  height: 6px;
  width: 90%;
  background: #e2e8f0;
  border-radius: 2px;
}

.line-3 {
  height: 6px;
  width: 40%;
  background: #e2e8f0;
  border-radius: 2px;
}

/* Map Area */

.map-area-mock {
  flex-grow: 1;
  background: #eef2f6;
  position: relative;
  overflow: hidden;
}

.map-road-h {
  position: absolute;
  height: 16px;
  background: #ffffff;
  width: 100%;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.map-road-v {
  position: absolute;
  width: 16px;
  background: #ffffff;
  height: 100%;
  box-shadow: 0 0 4px rgba(0,0,0,0.05);
}

.map-park {
  position: absolute;
  background: #dcfce7;
  border-radius: 4px;
  opacity: 0.8;
}

.road-1 {
  top: 30%;
}

.road-2 {
  top: 65%;
}

.road-3 {
  left: 40%;
}

.road-4 {
  left: 75%;
}

.park-1 {
  top: 5%;
  left: 5%;
  width: 100px;
  height: 60px;
}

.park-2 {
  bottom: 10%;
  right: 10%;
  width: 80px;
  height: 50px;
}

.map-marker-container {
  position: absolute;
  transform: translate(-50%, -100%);
  z-index: 5;
}

.map-pin-icon {
  color: #ef4444;
  font-size: 28px;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.3));
  animation: pinDrop 0.8s ease-out forwards, pinFloat 2s ease-in-out infinite 0.8s;
}

.business-tooltip {
  position: absolute;
  bottom: 35px;
  left: 50%;
  transform: translateX(-50%);
  background: white;
  padding: 6px 10px;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  animation: tooltipFade 0.5s ease-out forwards;
  pointer-events: none;
  border: 1px solid #e2e8f0;
}

.tooltip-title {
  font-weight: 700;
  color: #1e293b;
}

.tooltip-rating {
  color: #f59e0b;
  font-size: 8px;
}

.marker-1 {
  top: 25%;
  left: 25%;
}

.marker-1 .map-pin-icon {
  animation-delay: 0s, 0.8s;
}

.marker-1 .business-tooltip {
  animation-delay: 0.5s;
}

.marker-2 {
  top: 60%;
  left: 55%;
}

.marker-2 .map-pin-icon {
  animation-delay: 0.3s, 1.1s;
}

.marker-2 .business-tooltip {
  animation-delay: 0.8s;
}

.marker-3 {
  top: 40%;
  left: 85%;
}

.marker-3 .map-pin-icon {
  animation-delay: 0.6s, 1.4s;
}

.marker-3 .business-tooltip {
  animation-delay: 1.1s;
}

@keyframes pinDrop {
  0% {
    transform: translateY(-40px) scale(0);
    opacity: 0;
  }
  60% {
    transform: translateY(5px) scale(1.1);
    opacity: 1;
  }
  80% {
    transform: translateY(-2px) scale(0.95);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

@keyframes pinFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes tooltipFade {
  from {
    opacity: 0;
    transform: translate(-50%, 10px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* Extension Popup */

.extension-popup {
  position: absolute;
  top: 15px;
  right: 15px;
  width: 220px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
  padding: 16px;
  z-index: 20;
  border: 1px solid #e2e8f0;
  transform: translateZ(40px);
  animation: popupEntrance 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards 1.5s;
  opacity: 0;
  transform-origin: top right;
}

@keyframes popupEntrance {
  from {
    opacity: 0;
    transform: translateZ(40px) scale(0.8);
  }
  to {
    opacity: 1;
    transform: translateZ(40px) scale(1);
  }
}

.popup-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  border-bottom: 1px solid #f1f5f9;
  padding-bottom: 8px;
}

.brand-logo {
  color: #2563eb;
  font-weight: 700;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.status-badge {
  background: #dcfce7;
  color: #16a34a;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}

.progress-container {
  margin: 12px 0;
}

.progress-bar-bg {
  height: 6px;
  background: #f1f5f9;
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  width: 0%;
  background: #1e293b;
  transition: width 0.5s;
  animation: fillProgress 4s ease-out forwards 1.8s;
}

@keyframes fillProgress {
  to {
    width: 70%;
  }
}

.download-btn {
  background: #1e293b;
  color: white;
  width: 100%;
  border: none;
  padding: 10px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.3s;
}

.download-btn:hover {
  background: #0f172a;
}

/* --- 3. UTILITIES --- */

.py-large {
  padding-top: 6rem;
  padding-bottom: 6rem;
}

.spotlight-card {
  position: relative;
  border-radius: 1.5rem;
  background: white;
  border: 1px solid #e2e8f0;
  transition: transform 0.2s;
  z-index: 1;
}

.spotlight-overlay {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  background: radial-gradient(500px circle at var(--mouse-x) var(--mouse-y), rgba(37, 99, 235, 0.08), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
  z-index: 10;
}

.spotlight-card:hover .spotlight-overlay {
  opacity: 1;
}

.spotlight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -5px rgba(0,0,0,0.1);
}

.gradient-bg-border {
  position: absolute;
  inset: 0;
  border-radius: 1.5rem;
  padding: 2px;
  background: linear-gradient(45deg, #2563eb, #06b6d4);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.spotlight-card:hover .gradient-bg-border {
  opacity: 1;
}

.spotlight-card.pro-card .gradient-bg-border {
  opacity: 1;
  animation: gradientFlow 2s linear infinite;
}

.btn-primary-custom {
  background: linear-gradient(90deg, #2563eb, #3b82f6);
  border: none;
  transition: all 0.3s ease;
}

.btn-primary-custom:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(37, 99, 235, 0.25);
}

/* REVEAL ANIMATIONS */

.reveal {
  /*opacity: 0;*/
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger Logic - Fixed for Instant Appearance */

.stagger-container .stagger-item, .stagger-container .reveal-child {
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.6s ease;
}

.stagger-container.active .stagger-item, .stagger-container.active .reveal-child {
  opacity: 1;
  transform: translateY(0);
}

.stagger-container.active .reveal-child:nth-child(1) {
  transition-delay: 0.05s;
}

.stagger-container.active .reveal-child:nth-child(2) {
  transition-delay: 0.1s;
}

.stagger-container.active .stagger-item:nth-child(1) {
  transition-delay: 0.15s;
}

.stagger-container.active .stagger-item:nth-child(2) {
  transition-delay: 0.2s;
}

.stagger-container.active .stagger-item:nth-child(3) {
  transition-delay: 0.25s;
}

.stagger-container.active .stagger-item:nth-child(4) {
  transition-delay: 0.3s;
}

.text-gradient {
  background: linear-gradient(300deg, #2563eb, #06b6d4, #8b5cf6);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 3s ease infinite;
}

@keyframes gradientFlow {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.navbar-glass {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar.scrolled {
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  background: rgba(255,255,255,0.95);
  padding-top: 0.75rem !important;
  padding-bottom: 0.75rem !important;
}

.range-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 8px;
  border-radius: 5px;
  background: #e2e8f0;
  outline: none;
  cursor: pointer;
}

.range-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-primary);
  transition: .15s;
  border: 4px solid white;
  box-shadow: 0 0 0 1px #cbd5e1, 0 4px 6px rgba(0,0,0,0.1);
}

.range-slider::-webkit-slider-thumb:hover {
  transform: scale(1.1);
}

.nav-pills .nav-link {
  border-radius: 50px;
  transition: 0.3s;
  color: #64748b;
  padding: 0.5rem 1.5rem;
  font-weight: 600;
  cursor: pointer;
  position: relative;
  z-index: 10;
}

.nav-pills .nav-link:hover {
  background: #e2e8f0;
}

.nav-pills .nav-link.active {
  background-color: var(--brand-primary);
  color: white;
  box-shadow: 0 10px 20px rgba(37, 99, 235, 0.2);
}

.marquee-container {
  overflow: hidden;
  white-space: nowrap;
  position: relative;
}

.marquee-content {
  display: inline-block;
  animation: scroll 30s linear infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

#pills-tab {
  position: relative;
  z-index: 20;
  background: #fff;
}

.btn-hover:hover {
  transform: translateY(-2px);
  transition: all 0.3s ease;
}

