/* =============================================================================
   AutoElectro – Custom Styles (Mobile-First)
   Tailwind v4 @theme tokens + third-party overrides
============================================================================= */

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

/* ---------- Design Tokens ---------- */
@theme {
  --color-bg:      #111318;
  --color-surface: #1C1F27;
  --color-border:  #2A2D38;
  --color-accent:  #00b4fd;
  --color-text:    #E5E7EB;
  --color-muted:   #6B7280;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: #111318;
  color: #E5E7EB;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: #00b4fd;
  color: #111318;
}

/* ---------- Scrollbar ---------- */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #111318; }
::-webkit-scrollbar-thumb { background: #2A2D38; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #00b4fd; }

/* ---------- Utility Classes ---------- */
.glass {
  background: rgba(17, 19, 24, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.accent-glow {
  box-shadow: 0 0 24px rgba(0, 180, 253, 0.35);
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0, 180, 253, 0.15);
}

/* ---------- Swiper Overrides ---------- */
.swiper-pagination-bullet {
  background: #6B7280 !important;
  opacity: 1 !important;
  width: 8px !important;
  height: 8px !important;
}
.swiper-pagination-bullet-active {
  background: #00b4fd !important;
  width: 24px !important;
  border-radius: 4px !important;
}
.swiper-button-next,
.swiper-button-prev {
  color: #00b4fd !important;
  background: #1C1F27 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 50% !important;
  border: 1px solid #2A2D38 !important;
}
.swiper-button-next::after,
.swiper-button-prev::after {
  font-size: 14px !important;
  font-weight: 900 !important;
}

/* ---------- Pulse animation for hero badge ---------- */
@keyframes pulse-ring {
  0%   { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.5); opacity: 0; }
}
.pulse-ring {
  animation: pulse-ring 1.5s ease-out infinite;
}

/* ---------- Sticky Mobile CTA ---------- */
#sticky-cta {
  /* always rendered, visibility toggled via JS on desktop */
  transition: transform 0.3s ease;
}

/* ---------- GSAP invisible defaults — only when GSAP is loaded ---------- */
/* .reveal opacity is controlled entirely by GSAP inline styles, not CSS */

/* ---------- Mascot float animation ---------- */
@keyframes mascot-float {
  0%, 100% { transform: translateY(0px);   }
  50%       { transform: translateY(-12px); }
}
.mascot-float {
  animation: mascot-float 4s ease-in-out infinite;
}

/* ---------- Floating bubbles ---------- */
@keyframes bubble-float-1 {
  0%, 100% { transform: translateY(0) rotate(-2deg);  }
  50%       { transform: translateY(-8px) rotate(2deg); }
}
@keyframes bubble-float-2 {
  0%, 100% { transform: translateY(0) rotate(1deg);  }
  50%       { transform: translateY(-10px) rotate(-1deg); }
}
@keyframes bubble-float-3 {
  0%, 100% { transform: translateY(0) rotate(-1deg);  }
  50%       { transform: translateY(-6px) rotate(2deg); }
}
.bubble-1 { animation: bubble-float-1 3.5s ease-in-out infinite; }
.bubble-2 { animation: bubble-float-2 4.2s ease-in-out infinite 0.8s; }
.bubble-3 { animation: bubble-float-3 3.8s ease-in-out infinite 0.4s; }

/* ---------- Gradient text ---------- */
.text-gradient {
  background: linear-gradient(135deg, #00b4fd 0%, #ffffff 60%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ---------- How section connecting line on step 1 ---------- */
.how-card { position: relative; }

/* ---------- Live Master Status Badge & Radar Pulse ---------- */
.status-wrap {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: rgba(28, 31, 39, 0.85);
  backdrop-filter: blur(8px);
  border: 1.5px solid #2A2D38;
  font-size: 0.875rem;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  z-index: 2;
  position: relative;
}

.status-indicator.free {
  border-color: #10b981;
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.25);
}

.status-indicator.busy {
  border-color: #f59e0b;
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
}

.status-indicator.offline {
  border-color: #6b7280;
}

.status-icon {
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  flex-shrink: 0;
}

.status-indicator.free .status-icon {
  background: #10b981;
  box-shadow: 0 0 8px #10b981;
}

.status-indicator.busy .status-icon {
  background: #f59e0b;
  box-shadow: 0 0 8px #f59e0b;
}

.status-indicator.offline .status-icon {
  background: #6b7280;
}

.radar-ring {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  border: 2px solid rgba(16, 185, 129, 0.5);
  border-radius: 50%;
  animation: pulseRadar 2s infinite ease-out;
  pointer-events: none;
  z-index: 1;
}

.status-indicator.busy ~ .radar-ring {
  border-color: rgba(245, 158, 11, 0.5);
}

.status-indicator.offline ~ .radar-ring {
  display: none;
}

@keyframes pulseRadar {
  0%   { transform: translateY(-50%) scale(0.6); opacity: 0.9; }
  60%  { opacity: 0.4; }
  100% { transform: translateY(-50%) scale(2.2); opacity: 0; }
}

/* ---------- Express Calculator ---------- */
.calc-opt-btn {
  background: rgba(28, 31, 39, 0.7);
  border: 1px solid #2A2D38;
  border-radius: 1rem;
  padding: 1rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.calc-opt-btn:hover {
  border-color: #00b4fd;
  background: rgba(0, 180, 253, 0.08);
  transform: translateY(-2px);
}

.calc-opt-btn.selected {
  border-color: #00b4fd;
  background: rgba(0, 180, 253, 0.15);
  box-shadow: 0 0 16px rgba(0, 180, 253, 0.2);
}

/* ---------- Reduced Motion (Accessibility) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .radar-ring { display: none !important; }
  .mascot-float { transform: none !important; }
}

