/* ==========================================================
   BijliSpot — Design tokens
   Palette: cool light surface + deep circuit-navy ink + one
   bold "electric" accent (lime) used sparingly, plus a
   supporting live-blue for interactive states.
   Type: Space Grotesk (display) / Inter (body) / JetBrains Mono
   (utility — radius figures, PIN codes, stats) because the
   product's whole mechanic runs on precise numbers: mile
   radius, kWh, PIN codes, ETAs.
   ========================================================== */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;600;700&family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');

:root {
  --bijli-bg: #F5F8FC;
  --bijli-surface: #FFFFFF;
  --bijli-ink: #0B1F3A;
  --bijli-ink-soft: #4A5C7A;
  --bijli-line: #E3E9F2;
  --bijli-lime: #C6F135;
  --bijli-lime-ink: #2B3300;
  --bijli-blue: #2D6CDF;
  --bijli-teal: #0FA3B1;
  --bijli-radius-lg: 28px;
  --bijli-radius-md: 16px;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--bijli-bg);
  color: var(--bijli-ink);
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .font-display {
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  letter-spacing: -0.02em;
}

.font-mono, .stat-number, .pin-demo, .step-index {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

/* ---- Accent utilities not in default Tailwind palette ---- */
.bg-bijli-lime { background-color: var(--bijli-lime); }
.text-bijli-lime { color: var(--bijli-lime); }
.bg-bijli-ink { background-color: var(--bijli-ink); }
.text-bijli-ink { color: var(--bijli-ink); }
.text-bijli-ink-soft { color: var(--bijli-ink-soft); }
.bg-bijli-blue { background-color: var(--bijli-blue); }
.text-bijli-blue { color: var(--bijli-blue); }
.border-bijli-line { border-color: var(--bijli-line); }

.btn-lime {
  background-color: var(--bijli-lime);
  color: var(--bijli-lime-ink);
  font-weight: 600;
  transition: transform .15s ease, box-shadow .15s ease;
  box-shadow: 0 0 0 0 rgba(198,241,53,0.6);
}
.btn-lime:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -8px rgba(198,241,53,0.55); }
.btn-lime:focus-visible, a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--bijli-blue);
  outline-offset: 2px;
}

.btn-outline-ink {
  border: 1.5px solid var(--bijli-ink);
  color: var(--bijli-ink);
  font-weight: 600;
  transition: background-color .15s ease, color .15s ease;
}
.btn-outline-ink:hover { background-color: var(--bijli-ink); color: #fff; }

.card-hover { transition: transform .2s ease, box-shadow .2s ease; }
.card-hover:hover { transform: translateY(-4px); box-shadow: 0 20px 40px -18px rgba(11,31,58,0.18); }

/* ==========================================================
   Signature element — the radius pulse
   Concentric rings pulse outward from the driver's current
   location, exactly mirroring workflow step B: "spots within
   selected mile radius". Spot pins sit at fixed points inside
   the rings and light up in sequence.
   ========================================================== */
.radius-pulse-stage {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 460px;
  margin: 0 auto;
}

.radius-ring {
  position: absolute;
  inset: 0;
  margin: auto;
  border-radius: 50%;
  border: 1.5px solid rgba(45,108,223,0.35);
  animation: bijli-pulse 3.2s ease-out infinite;
}
.radius-ring.r1 { width: 30%; height: 30%; animation-delay: 0s; }
.radius-ring.r2 { width: 55%; height: 55%; animation-delay: .7s; }
.radius-ring.r3 { width: 80%; height: 80%; animation-delay: 1.4s; }
.radius-ring.r4 { width: 100%; height: 100%; animation-delay: 2.1s; }

@keyframes bijli-pulse {
  0%   { transform: scale(0.85); opacity: 0; }
  15%  { opacity: .8; }
  100% { transform: scale(1); opacity: 0; }
}

.radius-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  background: var(--bijli-ink);
  color: var(--bijli-lime);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 12px 30px -8px rgba(11,31,58,0.45);
  z-index: 10;
}

.spot-pin {
  position: absolute;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--bijli-teal);
  color: var(--bijli-teal);
  display: flex; align-items: center; justify-content: center;
  font-size: .85rem;
  box-shadow: 0 8px 18px -6px rgba(11,31,58,0.25);
  animation: bijli-pin-in .6s ease-out both;
  z-index: 5;
}
.spot-pin.available { border-color: var(--bijli-blue); color: var(--bijli-blue); }
.spot-pin.p1 { top: 8%;  left: 52%; animation-delay: .3s; }
.spot-pin.p2 { top: 30%; left: 10%; animation-delay: .6s; }
.spot-pin.p3 { top: 68%; left: 20%; animation-delay: .9s; }
.spot-pin.p4 { top: 78%; left: 65%; animation-delay: 1.2s; }
.spot-pin.p5 { top: 22%; left: 82%; animation-delay: 1.5s; }

@keyframes bijli-pin-in {
  0% { transform: scale(0); opacity: 0; }
  70% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

/* ---- Workflow step index ---- */
.step-index {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bijli-ink);
  color: var(--bijli-lime);
  font-weight: 700;
  font-size: 1.05rem;
  flex-shrink: 0;
}

/* ---- Nav ---- */
.bijli-nav { backdrop-filter: saturate(180%) blur(10px); background-color: rgba(245,248,252,0.85); }
.bijli-nav.scrolled { box-shadow: 0 1px 0 var(--bijli-line); }

/* ---- Modal tabs (Bootstrap modal, custom tab look) ---- */
.auth-tab {
  flex: 1;
  text-align: center;
  padding: .65rem 0;
  font-weight: 600;
  color: var(--bijli-ink-soft);
  border-bottom: 2px solid var(--bijli-line);
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.auth-tab.active { color: var(--bijli-ink); border-color: var(--bijli-lime); }

.otp-box {
  width: 48px; height: 56px;
  text-align: center;
  font-size: 1.4rem;
  border: 1.5px solid var(--bijli-line);
  border-radius: 10px;
}
.otp-box:focus { border-color: var(--bijli-blue); outline: none; box-shadow: 0 0 0 3px rgba(45,108,223,0.15); }

/* Bootstrap modal — restrained overrides so it matches the Tailwind system */
.modal-content { border-radius: var(--bijli-radius-lg); border: none; }
.modal-backdrop.show { opacity: .55; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-thumb { background: var(--bijli-line); border-radius: 10px; }
