/* ============================================================
   INDIAROAD MAP — style.css
   Navigation-themed design system
   Color palette: dark map base + navigation greens/blues + Indian accents
   ============================================================ */

:root {
  /* ── Map-dark base ────────────────────────────────── */
  --bg-base: #0a1628;
  --bg-surface: #0e1d33;
  --bg-surface-raised: #122640;
  --bg-card: rgba(14, 29, 51, 0.92);
  --bg-card-hover: rgba(18, 38, 64, 0.98);

  /* ── Navigation accent palette ────────────────────── */
  --nav-green: #2ecc71;       /* primary route green */
  --nav-green-strong: #27ae60;
  --nav-green-dim: rgba(46, 204, 113, 0.12);
  --nav-green-glow: rgba(46, 204, 113, 0.25);

  --nav-blue: #3498db;        /* info / waypoint blue */
  --nav-blue-dim: rgba(52, 152, 219, 0.12);

  --warn-amber: #f39c12;      /* hazard / warning */
  --warn-amber-dim: rgba(243, 156, 18, 0.12);

  --warn-red: #e74c3c;        /* danger / alert */
  --warn-red-dim: rgba(231, 76, 60, 0.10);

  /* ── Indian identity accents (subtle) ─────────────── */
  --saffron: #FF9933;
  --saffron-dim: rgba(255, 153, 51, 0.10);
  --india-green: #138808;
  --india-green-dim: rgba(19, 136, 8, 0.10);
  --navy-blue: #000080;

  /* ── Text ─────────────────────────────────────────── */
  --text-primary: #f0f4f8;
  --text-secondary: #b0bec5;
  --text-muted: #78909c;

  /* ── Borders & shadows ───────────────────────────── */
  --border: rgba(46, 204, 113, 0.12);
  --border-strong: rgba(46, 204, 113, 0.28);
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 24px 80px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 30px rgba(46, 204, 113, 0.08);

  /* ── Typography & layout ─────────────────────────── */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --radius-sm: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --container: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --dur: 0.3s;

  /* ── Legacy compat ───────────────────────────────── */
  --card-bg: rgba(14, 29, 51, 0.92);
  --glass-border: rgba(46, 204, 113, 0.12);
  --transition: transform 0.3s cubic-bezier(0.4,0,0.2,1), box-shadow 0.3s cubic-bezier(0.4,0,0.2,1);
  --text-main: #f0f4f8;
  --primary-blue: #3498db;
  --primary-orange: #FF9933;
}

/* ── Reset ────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  overflow-x: hidden;
}

body.nav-open { overflow: hidden; }

img { display: block; max-width: 100%; height: auto; }
svg { flex-shrink: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ── Accessibility ────────────────────────────────── */
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--nav-green);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 9999;
  padding: 0.85rem 1rem;
  background: var(--text-primary);
  color: var(--bg-base);
  border-radius: var(--radius-sm);
  font-weight: 700;
}
.skip-link:focus { top: 1rem; }

@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;
  }
}

/* ── Scroll-reveal ────────────────────────────────── */
.feature-card-nav,
.tool-card,
.route-step,
.review-card,
.stat-item,
.screenshot-frame,
.faq-item {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s var(--ease), transform 0.5s var(--ease);
}

.feature-card-nav.visible,
.tool-card.visible,
.route-step.visible,
.review-card.visible,
.stat-item.visible,
.screenshot-frame.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ══════════════════════════════════════════════════
   MAP BACKGROUND — floating grid + route lines + pins
   ══════════════════════════════════════════════════ */
.map-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  inset: -50%;
  background-image:
    linear-gradient(to right, rgba(46, 204, 113, 0.04) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(46, 204, 113, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
  opacity: 0.6;
}

.map-route-line {
  position: absolute;
  width: 3px;
  background: linear-gradient(180deg, transparent, rgba(46, 204, 113, 0.08), transparent);
  border-radius: 999px;
}
.route-1 { left: 15%; top: -10%; height: 120%; transform: rotate(12deg); }
.route-2 { right: 20%; top: -5%; height: 115%; transform: rotate(-8deg); }

.map-pin {
  position: absolute;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  opacity: 0.08;
  animation: pin-float 6s ease-in-out infinite;
}
.pin-1 { top: 18%; left: 8%; animation-delay: 0s; }
.pin-2 { top: 55%; right: 12%; animation-delay: 2s; }
.pin-3 { bottom: 22%; left: 28%; animation-delay: 4s; }

@keyframes pin-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

/* ══════════════════════════════════════════════════
   HEADER / NAVBAR
   ══════════════════════════════════════════════════ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.8rem 1.5rem;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  flex-shrink: 0;
}

.logo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-links a {
  padding: 0.6rem 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--dur) var(--ease), background var(--dur) var(--ease);
  white-space: nowrap;
}
.nav-links a:hover {
  color: var(--text-primary);
  background: rgba(46, 204, 113, 0.06);
}

/* ── Buttons ──────────────────────────────────────── */
.btn-primary,
.btn-download,
.cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  background: linear-gradient(135deg, var(--nav-green) 0%, var(--nav-green-strong) 100%);
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(46, 204, 113, 0.25);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  text-decoration: none;
}
.btn-primary:hover,
.btn-download:hover,
.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(46, 204, 113, 0.35);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text-primary);
  background: rgba(14, 29, 51, 0.6);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease);
  text-decoration: none;
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--border-strong);
  background: rgba(14, 29, 51, 0.95);
}

/* ── Play Store button + Coming Soon ribbon ──────── */
.playstore-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 999px;
}

.btn-playstore {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.85rem 1.5rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  border: 1px solid var(--border);
  color: var(--text-muted) !important;
  background: rgba(14, 29, 51, 0.6);
  cursor: default;
  opacity: 0.7;
  text-decoration: none;
}

.coming-soon-ribbon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-12deg);
  background: var(--saffron);
  color: #000;
  font-size: 0.6rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.25rem 2.5rem;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

/* ── Nav Toggle (hamburger) ───────────────────────── */
.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 1px solid var(--border);
  background: rgba(14, 29, 51, 0.72);
  border-radius: 14px;
  padding: 0.8rem;
  flex-shrink: 0;
}
.nav-toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  margin: 4px 0;
  border-radius: 999px;
}

/* ══════════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════════ */
main { overflow: hidden; position: relative; z-index: 1; }
section { padding: 5.5rem 1.5rem; }

.hero {
  position: relative;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  padding: 4rem 1.5rem;
  background:
    radial-gradient(circle at 25% 15%, rgba(46, 204, 113, 0.08), transparent 40%),
    radial-gradient(circle at 75% 30%, rgba(52, 152, 219, 0.06), transparent 35%),
    linear-gradient(180deg, #0c1e34 0%, var(--bg-base) 100%);
}

.hero-glow {
  position: absolute;
  width: 600px;
  height: 600px;
  top: -15%;
  left: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46, 204, 113, 0.06), transparent 70%);
  pointer-events: none;
  filter: blur(60px);
}

.hero-shell {
  position: relative;
  z-index: 2;
  width: min(var(--container), 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 3rem;
  align-items: center;
}

.hero-content { position: relative; z-index: 2; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 0.9rem;
  border: 1px solid rgba(46, 204, 113, 0.3);
  border-radius: 999px;
  background: rgba(10, 22, 40, 0.7);
  color: #a7f3d0;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--nav-green);
  box-shadow: 0 0 0 4px var(--nav-green-dim);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(46, 204, 113, 0.15); }
  50% { box-shadow: 0 0 0 10px rgba(46, 204, 113, 0.04); }
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--nav-green-dim);
  color: #d1fae5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.hero h1 {
  margin: 0.8rem 0 1rem;
  font-size: clamp(2.4rem, 5.5vw, 4.8rem);
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.gradient-text {
  background: linear-gradient(135deg, var(--nav-green) 0%, #6dd5ed 50%, var(--nav-blue) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  margin: 0;
  color: var(--text-secondary);
  font-size: clamp(1rem, 2vw, 1.15rem);
  max-width: 56ch;
  line-height: 1.7;
}

.hero-download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 2rem 0 2rem;
  align-items: center;
}

/* ── Hero Metrics ─────────────────────────────────── */
.hero-metrics {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1rem 1.3rem;
  background: rgba(10, 22, 40, 0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(8px);
}

.metric { display: flex; flex-direction: column; gap: 0.15rem; }
.metric-value {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--nav-green);
}
.metric-value.live-dot {
  color: var(--nav-blue);
}
.metric-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}
.metric-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ══════════════════════════════════════════════════
   HERO VISUAL — phone mockup + floating alerts
   ══════════════════════════════════════════════════ */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

.phone-mockup {
  position: relative;
  width: 260px;
  background: #111;
  border-radius: 32px;
  padding: 8px;
  box-shadow:
    0 0 0 2px rgba(46, 204, 113, 0.15),
    0 20px 60px rgba(0, 0, 0, 0.5),
    0 0 80px rgba(46, 204, 113, 0.06);
  overflow: hidden;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 24px;
  background: #111;
  border-radius: 0 0 16px 16px;
  z-index: 3;
}

.phone-mockup img {
  width: 100%;
  border-radius: 24px;
  display: block;
}

/* ── Floating alert cards ─────────────────────────── */
.floating-alert {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.75rem 1rem;
  background: rgba(14, 29, 51, 0.95);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-md);
  white-space: nowrap;
  animation: float-card 4s ease-in-out infinite;
}

.alert-hazard {
  top: 12%;
  left: -25%;
  border-color: rgba(243, 156, 18, 0.3);
  animation-delay: 0s;
}
.alert-route {
  bottom: 15%;
  right: -20%;
  border-color: rgba(46, 204, 113, 0.3);
  animation-delay: 2s;
}

@keyframes float-card {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.alert-icon.warn { background: var(--warn-amber-dim); }
.alert-icon.ok { background: var(--nav-green-dim); color: var(--nav-green); }

.alert-body { display: flex; flex-direction: column; gap: 0.1rem; }
.alert-body strong { font-size: 0.82rem; font-weight: 700; }
.alert-body span { font-size: 0.72rem; color: var(--text-muted); }

/* ══════════════════════════════════════════════════
   STATS BAR
   ══════════════════════════════════════════════════ */
.stats-bar {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 0 1.5rem 2rem;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.3rem 1.4rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.stat-item:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--nav-green);
  letter-spacing: -0.02em;
}
.stat-label { color: var(--text-muted); font-size: 0.85rem; }

/* ══════════════════════════════════════════════════
   SECTIONS
   ══════════════════════════════════════════════════ */
.section-header { max-width: 760px; margin: 0 auto 3rem; text-align: center; }
.section-header.narrow { max-width: 720px; }
.section-header h2 {
  margin: 0.8rem 0;
  font-size: clamp(1.85rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}
.section-header p { margin: 0.75rem auto 0; color: var(--text-secondary); font-size: 1.05rem; }
.alt-bg { background: linear-gradient(180deg, rgba(14, 29, 51, 0.5), rgba(10, 22, 40, 0.5)); }

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--nav-green-dim);
  color: #d1fae5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.section-tag svg { color: var(--nav-green); }

/* ══════════════════════════════════════════════════
   FEATURE CARDS (navigation-style)
   ══════════════════════════════════════════════════ */
.feature-grid-nav {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}

.feature-card-nav {
  padding: 1.8rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.feature-card-nav:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.feature-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}
.feature-icon-wrap.hazard { background: var(--warn-amber-dim); color: var(--warn-amber); }
.feature-icon-wrap.traffic { background: var(--warn-red-dim); color: var(--warn-red); }
.feature-icon-wrap.speed { background: var(--nav-blue-dim); color: var(--nav-blue); }
.feature-icon-wrap.community { background: var(--nav-green-dim); color: var(--nav-green); }

.feature-card-nav h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.feature-card-nav p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════
   SAFETY TOOL CARDS
   ══════════════════════════════════════════════════ */
.grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 1.25rem; }
.grid.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.tool-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.tool-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.tool-card h3 {
  margin: 0 0 0.65rem;
  font-size: 1.05rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.tool-card p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.92rem;
}

/* ══════════════════════════════════════════════════
   ROUTE STEPS (how it works — route-style timeline)
   ══════════════════════════════════════════════════ */
.route-steps {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.route-step {
  display: flex;
  gap: 1.2rem;
  align-items: stretch;
}

.route-step-marker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 28px;
  flex-shrink: 0;
  padding-top: 0.25rem;
}

.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg-surface-raised);
  border: 3px solid var(--nav-green);
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.step-dot.start {
  background: var(--nav-green);
  box-shadow: 0 0 0 6px var(--nav-green-dim);
}
.step-dot.end {
  background: var(--nav-green);
  box-shadow: 0 0 0 6px var(--nav-green-dim);
}

.step-connector {
  width: 2px;
  flex: 1;
  background: linear-gradient(180deg, var(--nav-green), rgba(46, 204, 113, 0.15));
  margin-top: 4px;
}

.route-step-body {
  padding: 0.2rem 0 2rem;
}
.route-step-body h3 {
  margin: 0 0 0.4rem;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.route-step-body p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* ══════════════════════════════════════════════════
   GALLERY
   ══════════════════════════════════════════════════ */
.gallery-grid {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
}

.screenshot-frame {
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.screenshot-frame:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.screenshot-frame img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  transition: transform 0.4s var(--ease);
}
.screenshot-frame:hover img { transform: scale(1.03); }
.screenshot-label {
  display: block;
  padding: 0.9rem 1rem 1rem;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
}

/* ══════════════════════════════════════════════════
   REVIEWS
   ══════════════════════════════════════════════════ */
.review-card {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.review-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
}
.user-info { display: flex; align-items: center; gap: 0.85rem; margin-bottom: 0.5rem; }
.avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 1rem;
  flex-shrink: 0;
}
.avatar.saffron { background: var(--saffron-dim); color: var(--saffron); }
.avatar.india-green { background: var(--india-green-dim); color: var(--nav-green); }
.avatar.navy { background: var(--nav-blue-dim); color: var(--nav-blue); }

.user-details p { color: var(--text-muted); font-size: 0.88rem; margin: 0; }
.user-details h3 { margin: 0 0 0.15rem; font-size: 0.95rem; }
.review-text { font-size: 0.95rem; font-style: italic; color: var(--text-secondary); margin: 0; }

/* ══════════════════════════════════════════════════
   FAQ
   ══════════════════════════════════════════════════ */
.faq-list { max-width: 820px; margin: 0 auto; display: grid; gap: 1rem; }

.faq-item {
  padding: 1.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  transition: border-color var(--dur) var(--ease);
}
.faq-item:hover { border-color: var(--border-strong); }
.faq-item h3 { margin: 0 0 0.6rem; font-size: 1.05rem; letter-spacing: -0.02em; }
.faq-item p { margin: 0; color: var(--text-secondary); }

.faq-item a,
.cta-section a:not(.btn-primary):not(.btn-secondary):not(.btn-playstore),
.footer-brand a,
.footer-links a {
  color: #a7f3d0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur) var(--ease);
}
.faq-item a:hover,
.footer-brand a:hover,
.footer-links a:hover { color: var(--nav-green); }

/* ══════════════════════════════════════════════════
   CTA
   ══════════════════════════════════════════════════ */
.cta-section { padding-top: 4rem; }

.cta-card {
  max-width: 900px;
  margin: 0 auto;
  padding: 3rem 2.5rem;
  text-align: center;
  background: linear-gradient(135deg, #0e1d33 0%, #102a1e 50%, #0e1d33 100%);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg), 0 0 60px rgba(46, 204, 113, 0.05);
}

.cta-icon-row {
  margin-bottom: 1rem;
}

.cta-app-icon {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  margin: 0 auto;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
}

.cta-card h2 { margin: 0.8rem 0; font-size: clamp(1.85rem, 4vw, 2.8rem); line-height: 1.1; letter-spacing: -0.03em; }
.cta-card p { margin: 0 auto; max-width: 60ch; color: rgba(255,255,255,0.75); font-size: 1rem; }
.cta-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
  align-items: center;
}

/* ══════════════════════════════════════════════════
   FOOTER
   ══════════════════════════════════════════════════ */
footer { padding: 0 1.5rem 2rem; position: relative; z-index: 1; }

.footer-content {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding-top: 2.5rem;
  border-top: 1px solid var(--border);
}

.footer-logo-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
}
.footer-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}
.footer-brand h2 { margin: 0; font-size: 1.2rem; }
.footer-brand p { margin: 0.4rem 0 0; color: var(--text-secondary); font-size: 0.92rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  align-content: flex-start;
  font-size: 0.92rem;
}

.footer-bottom {
  max-width: var(--container);
  margin: 1.5rem auto 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(46, 204, 113, 0.06);
  text-align: center;
}
.footer-bottom p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* ── Fixed live counter widget ────────────────────── */
.live-widget {
  position: fixed;
  bottom: 1.25rem;
  left: 1.25rem;
  z-index: 900;
  background: rgba(10, 22, 40, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.65rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35), 0 0 15px rgba(46, 204, 113, 0.04);
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  animation: widget-entrance 0.6s cubic-bezier(0.16, 1, 0.3, 1) 1s both;
}

@keyframes widget-entrance {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.live-widget-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

.live-widget-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--nav-green);
  box-shadow: 0 0 0 3px var(--nav-green-dim);
  animation: pulse 2s infinite;
  flex-shrink: 0;
}

.live-widget-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.live-widget-count {
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--nav-green);
  font-variant-numeric: tabular-nums;
}

.live-widget-label {
  color: var(--text-muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.live-widget-divider {
  height: 1px;
  background: var(--border);
  margin: 0 0.2rem;
}

/* ══════════════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ══════════════════════════════════════════════════ */

/* ── Tablet ≤1024px ──────────────────────────────── */
@media (max-width: 1024px) {
  .hero-shell {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .hero-content {
    text-align: center;
    align-items: center;
  }

  .hero-download-row { justify-content: center; }

  .hero-metrics { justify-content: center; }

  .hero-visual {
    min-height: auto;
    padding: 1rem 0;
    flex-direction: column;
    gap: 1rem;
    overflow: hidden;
  }

  .floating-alert {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    margin: 0;
    animation: none;
  }
  .alert-hazard, .alert-route {
    top: auto; left: auto; right: auto; bottom: auto;
  }

  .hero-visual {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
  }

  .phone-mockup {
    order: -1;
  }

  .feature-grid-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid.grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ── Mobile ≤768px ───────────────────────────────── */
@media (max-width: 768px) {
  .navbar { padding: 0.7rem 1rem; }

  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }

  .nav-links {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 1rem;
    right: 1rem;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(10, 22, 40, 0.98);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: opacity var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }

  body.nav-open .nav-links {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
  }

  .nav-links a { padding: 0.85rem 1rem; font-size: 1rem; }
  .nav-links .btn-download { margin-top: 0.5rem; text-align: center; }

  section { padding: 4rem 1.25rem; }

  .hero { min-height: auto; padding: 3rem 1.25rem 2rem; }
  .hero-shell { grid-template-columns: 1fr; gap: 2rem; }

  .hero h1 { font-size: 2.2rem; }
  .hero-subtitle { font-size: 0.95rem; }

  .hero-metrics { flex-wrap: wrap; justify-content: center; }

  .hero-visual {
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    min-height: auto;
    overflow: visible;
  }

  .phone-mockup { width: 200px; order: -1; }

  .floating-alert {
    position: relative;
    top: auto; left: auto; right: auto; bottom: auto;
    white-space: normal;
    animation: none;
    max-width: 280px;
  }

  .stats-bar { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0 1.25rem 1.5rem; }

  .cta-card { padding: 2rem 1.25rem; }
  .footer-content { flex-direction: column; }

  /* Live widget smaller on mobile */
  .live-widget {
    bottom: 0.75rem;
    left: 0.75rem;
    padding: 0.5rem 0.75rem;
    border-radius: 10px;
  }
  .live-widget-count { font-size: 0.8rem; }
  .live-widget-label { font-size: 0.65rem; }
}

/* ── Small Mobile ≤600px ─────────────────────────── */
@media (max-width: 600px) {
  .hero-metrics { gap: 0.6rem; }
  .metric-divider { display: none; }
  .metric { text-align: center; }
  .hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }
  .feature-grid-nav { grid-template-columns: 1fr; }
  .hero-badge { font-size: 0.72rem; }
  .hero-eyebrow { font-size: 0.72rem; }
}

/* ── Extra Small ≤480px ──────────────────────────── */
@media (max-width: 480px) {
  section, footer { padding-left: 1rem; padding-right: 1rem; }

  .hero h1 { font-size: 1.75rem; }

  .hero-download-row,
  .cta-actions { flex-direction: column; align-items: stretch; }

  .btn-primary,
  .btn-download,
  .btn-secondary,
  .playstore-wrapper { width: 100%; }

  .btn-playstore { width: 100%; }

  .hero-metrics {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.5rem;
  }
  .metric-value { font-size: 0.95rem; }
  .metric-label { font-size: 0.6rem; }

  .stats-bar { grid-template-columns: 1fr; }

  .grid.grid-3,
  .gallery-grid { grid-template-columns: 1fr; }

  .phone-mockup { width: 180px; }

  footer { padding-bottom: 1.5rem; }
  .footer-links { flex-direction: column; gap: 0.75rem; }

  /* Hide live widget on very small screens to avoid overlap */
  .live-widget {
    bottom: 0.5rem;
    left: 0.5rem;
    padding: 0.4rem 0.6rem;
    gap: 0.25rem;
  }
  .live-widget-dot { width: 5px; height: 5px; }
  .live-widget-row { gap: 0.3rem; font-size: 0.7rem; }
}

/* ── Print Styles ─────────────────────────────────── */
@media print {
  .site-header, .nav-toggle, .map-bg,
  .hero-glow, .floating-alert, .cta-section { display: none; }
  body { background: #fff; color: #000; }
  a[href]::after { content: " (" attr(href) ")"; font-size: 0.8em; }
}

/* ══════════════════════════════════════════════════
   ANIMATIONS — Competitor-inspired
   Based on Waze, HERE, TomTom patterns
   ══════════════════════════════════════════════════ */

/* ── Navbar shrink on scroll (Waze) ───────────────── */
.navbar {
  transition: padding var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.navbar.scrolled {
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
  background: rgba(10, 22, 40, 0.96);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35), 0 0 20px rgba(46, 204, 113, 0.04);
}
.navbar.scrolled .logo-icon {
  transform: scale(0.88);
}
.logo-icon {
  transition: transform var(--dur) var(--ease);
}

/* ── Hero entrance animation ──────────────────────── */
.hero-anim-init {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.hero-anim-init.hero-anim-in {
  opacity: 1;
  transform: translateY(0);
}

/* Hero visual slides in from the right */
.hero-visual.hero-anim-init {
  transform: translateX(60px) translateY(0);
}
.hero-visual.hero-anim-init.hero-anim-in {
  transform: translateX(0) translateY(0);
}

/* ── Enhanced scroll-reveal (with bounce easing) ──── */
.feature-card-nav,
.tool-card,
.route-step,
.review-card,
.stat-item,
.screenshot-frame,
.faq-item {
  opacity: 0;
  transform: translateY(32px) scale(0.97);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.feature-card-nav.visible,
.tool-card.visible,
.route-step.visible,
.review-card.visible,
.stat-item.visible,
.screenshot-frame.visible,
.faq-item.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ── Section header reveal ────────────────────────── */
.section-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Route timeline connector grow animation ─────── */
.step-connector {
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.step-connector.animate {
  transform: scaleY(1);
}

/* ── Step dot pulse on reveal ─────────────────────── */
.route-step.visible .step-dot {
  animation: dot-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes dot-pop {
  0% { transform: scale(0); }
  60% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ── Counter number glow flash ────────────────────── */
@keyframes counter-glow {
  0% { text-shadow: none; }
  50% { text-shadow: 0 0 20px var(--nav-green-glow), 0 0 40px rgba(46, 204, 113, 0.1); }
  100% { text-shadow: none; }
}

.metric-value {
  transition: color 0.3s var(--ease);
}

/* ── Enhanced card hovers (Waze/TomTom scale) ────── */
.feature-card-nav {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.feature-card-nav:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

/* Feature icon scale on card hover */
.feature-card-nav:hover .feature-icon-wrap {
  transform: scale(1.1) rotate(-3deg);
}
.feature-icon-wrap {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tool-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.tool-card:hover {
  transform: translateY(-5px) scale(1.01);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow), var(--shadow-md);
}

.stat-item {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease);
}
.stat-item:hover {
  transform: translateY(-3px) scale(1.02);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-glow);
}

.review-card {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--dur) var(--ease);
}
.review-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.screenshot-frame {
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--dur) var(--ease);
}
.screenshot-frame:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

/* ── Download button scale + glow (Waze) ──────────── */
.btn-primary,
.btn-download {
  position: relative;
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s var(--ease);
}
.btn-primary:hover,
.btn-download:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 14px 40px rgba(46, 204, 113, 0.35), 0 0 20px rgba(46, 204, 113, 0.1);
}
.btn-primary:active,
.btn-download:active {
  transform: translateY(0) scale(0.98);
}

/* ── Button ripple effect ─────────────────────────── */
.btn-ripple {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  animation: ripple-expand 0.6s ease-out forwards;
  pointer-events: none;
}

@keyframes ripple-expand {
  to {
    transform: translate(-50%, -50%) scale(40);
    opacity: 0;
  }
}

/* ── Floating alert improved animation ────────────── */
.floating-alert {
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.alert-hazard {
  animation: float-left 4.5s ease-in-out infinite;
}
.alert-route {
  animation: float-right 5s ease-in-out infinite;
}

@keyframes float-left {
  0%, 100% { transform: translateY(0) translateX(0); }
  30% { transform: translateY(-8px) translateX(3px); }
  70% { transform: translateY(4px) translateX(-2px); }
}

@keyframes float-right {
  0%, 100% { transform: translateY(0) translateX(0); }
  40% { transform: translateY(6px) translateX(-4px); }
  80% { transform: translateY(-6px) translateX(2px); }
}

/* ── Phone mockup hover tilt (TomTom) ─────────────── */
.phone-mockup {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.5s var(--ease);
}
.phone-mockup:hover {
  box-shadow:
    0 0 0 2px rgba(46, 204, 113, 0.2),
    0 25px 70px rgba(0, 0, 0, 0.55),
    0 0 100px rgba(46, 204, 113, 0.08);
}

/* ── Map background route pulse ───────────────────── */
.map-route-line {
  animation: route-pulse 4s ease-in-out infinite alternate;
}
.route-2 { animation-delay: 2s; }

@keyframes route-pulse {
  0% { opacity: 0.3; }
  100% { opacity: 0.8; }
}

/* ── Map pin bob animation (enhanced) ─────────────── */
@keyframes pin-float {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.06; }
  50% { transform: translateY(-10px) scale(1.1); opacity: 0.12; }
}

/* ── CTA card subtle breathe ──────────────────────── */
.cta-card {
  animation: cta-breathe 4s ease-in-out infinite;
}

@keyframes cta-breathe {
  0%, 100% { box-shadow: var(--shadow-lg), 0 0 60px rgba(46, 204, 113, 0.04); }
  50% { box-shadow: var(--shadow-lg), 0 0 80px rgba(46, 204, 113, 0.08); }
}

/* ── Gradient text shimmer ────────────────────────── */
.gradient-text {
  background-size: 200% auto;
  animation: gradient-shift 4s ease-in-out infinite;
}

@keyframes gradient-shift {
  0% { background-position: 0% center; }
  50% { background-position: 100% center; }
  100% { background-position: 0% center; }
}

/* ── Coming soon ribbon pulse ─────────────────────── */
.coming-soon-ribbon {
  animation: ribbon-pulse 2.5s ease-in-out infinite;
}

@keyframes ribbon-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.75; }
}

/* ── Pulse dot enhanced ───────────────────────────── */
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.4); }
  50% { box-shadow: 0 0 0 8px rgba(46, 204, 113, 0); }
  100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0); }
}

/* ── FAQ hover slide ──────────────────────────────── */
.faq-item {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              border-color var(--dur) var(--ease);
}
.faq-item:hover {
  transform: translateX(6px);
  border-color: var(--border-strong);
}

/* ── Hero glow animation ──────────────────────────── */
.hero-glow {
  animation: glow-drift 8s ease-in-out infinite alternate;
}

@keyframes glow-drift {
  0% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  100% { transform: translate(30px, 20px) scale(1.15); opacity: 0.7; }
}