/* ============================================================
   JAVELIN DESIGN SYSTEM
   Enterprise SaaS Marketing Website
   ============================================================ */

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

/* ============================================================
   1. CSS CUSTOM PROPERTIES (Design Tokens)
   ============================================================ */
:root {
  /* Brand — Javelin Violet-Blue */
  --jv-50:  #f0f3ff;
  --jv-100: #e0e7ff;
  --jv-200: #c7d2fe;
  --jv-300: #a5b4fc;
  --jv-400: #818cf8;
  --jv-500: #6366f1;
  --jv-600: #4f46e5;
  --jv-700: #4338ca;
  --jv-800: #3730a3;
  --jv-900: #1e1b4b;
  --jv-950: #0d0b2e;

  /* Accent — Electric Cyan */
  --ac-300: #67e8f9;
  --ac-400: #22d3ee;
  --ac-500: #06b6d4;

  /* Success */
  --em-400: #34d399;
  --em-500: #10b981;

  /* Warning */
  --am-400: #fbbf24;

  /* Background Tokens */
  --bg-dark-start: #080c1a;
  --bg-dark-mid:   #0d1533;
  --bg-dark-end:   #13194a;
  --bg-light:      #f8faff;
  --bg-card-dark:  rgba(255,255,255,0.05);
  --bg-card-light: rgba(255,255,255,0.85);

  /* Typography */
  --font-heading: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Shadows */
  --shadow-glow-jv: 0 0 40px rgba(99,102,241,0.35);
  --shadow-glow-ac: 0 0 40px rgba(6,182,212,0.3);
  --shadow-card:    0 8px 32px rgba(0,0,0,0.18);
  --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.28);
  --shadow-premium: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1), 0 0 0 1px rgba(99,102,241,0.12);

  /* Border Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   24px;
  --radius-2xl:  32px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  --ease-out:    cubic-bezier(0, 0, 0.2, 1);
  --duration-fast:   150ms;
  --duration-normal: 300ms;
  --duration-slow:   600ms;

  /* Z-index Scale */
  --z-base:    0;
  --z-raised:  10;
  --z-overlay: 100;
  --z-modal:   1000;
  --z-nav:     9999;
  --z-toast:   99999;
}

/* ============================================================
   1b. DESIGN.md TOKENS - "Precision Commerce" (Phase 1, marketing site)
   The public site is light-only; these are the canonical brand/semantic
   tokens from DESIGN.md. New shared-shell + page components should use
   these names directly rather than the legacy --jv- / --text-primary set.
   ============================================================ */
:root {
  --primary: #4B49AC;
  --primary-hover: #3B3A8F;
  --primary-light: #7978E9;
  --primary-soft: #98BDFF;
  --sky: #7DA0FA;
  --electric: #635BFF;

  --danger: #F3797E;
  --danger-dark: #C94F55;
  --success: #16A34A;
  --success-bg: #E9F9EF;
  --warning: #F59E0B;
  --warning-bg: #FEF5E7;
  --info-bg: #EEF0FB;

  --ink: #16173C;
  --text-body: #3E4060;
  --bg-page: #FFFFFF;
  --bg-section: #F6F7FC;
  --border: #E6E8F2;
  --border-strong: #D4D7E6;

  --shadow-raised: 0 12px 32px rgba(22,23,60,0.10);
  --container: 1200px;
}

/* Dark mode tokens (retired on the public site - retained for potential
   Phase 2 dashboard dark mode per DESIGN.md section 2.10, not applied here) */
[data-theme="dark"] {
  --bg-body:       var(--bg-dark-start);
  --bg-surface:    var(--bg-dark-mid);
  --bg-card:       rgba(255,255,255,0.03);
  --bg-card-hover: rgba(255,255,255,0.06);
  --border-color:  rgba(255,255,255,0.08);
  --border-light:  rgba(255,255,255,0.04);
  --text-primary:  #f1f5f9;
  --text-secondary:#94a3b8;
  --text-muted:    #64748b;
  --nav-bg:        rgba(8,12,26,0.85);

  /* RGB triplets — for rgba() color-mix use in inline styles across templates */
  --text-primary-rgb:   241,245,249;
  --text-secondary-rgb: 148,163,184;
  --surface-tint-rgb:   255,255,255;
  --bg-body-rgb:        8,12,26;

  /* Aurora hero background (dark = default site look) */
  --bg-dark-start: #080c1a;
  --bg-dark-mid:   #0d1533;
  --bg-dark-end:   #13194a;

  /* Shadows */
  --shadow-card:       0 8px 32px rgba(0,0,0,0.18);
  --shadow-card-hover: 0 20px 60px rgba(0,0,0,0.28);
  --shadow-premium:    0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1), 0 0 0 1px rgba(99,102,241,0.12);

  /* Accents */
  --accent-primary:   var(--jv-500);
  --accent-secondary: var(--ac-400);

  /* Buttons */
  --button-bg:       linear-gradient(135deg, var(--jv-500), var(--jv-600));
  --button-text:     #ffffff;
  --button-hover-bg: linear-gradient(135deg, var(--jv-600), var(--jv-700));

  /* Mega Menu */
  --mega-menu-bg:     rgba(10,14,35,0.98);
  --mega-menu-footer: rgba(0,0,0,0.2);

  /* Backgrounds */
  --gradient-mesh: linear-gradient(135deg, var(--bg-dark-start) 0%, var(--bg-dark-mid) 50%, var(--bg-dark-end) 100%);
  --footer-bg: linear-gradient(135deg, #050810, #070c1a, #05091a);
  --section-bg-darker: #050810;
  --section-bg-mid:    #0c1229;
}

/* Light mode tokens */
[data-theme="light"] {
  --bg-body:       #FAFAFC;
  --bg-surface:    #FFFFFF;
  --bg-card:       #FFFFFF;
  --bg-card-hover: #F5F7FA;
  --border-color:  #E6E8F2;
  --border-light:  #F3F4F6;
  --text-primary:  #16173C;
  --text-secondary:#6B6F8D;
  --text-muted:    #A0A3BD;
  --nav-bg:        rgba(255,255,255,0.9);

  /* RGB triplets — for rgba() color-mix use in inline styles across templates */
  --text-primary-rgb:   17,24,39;
  --text-secondary-rgb: 71,85,105;
  --surface-tint-rgb:   15,23,42;
  --bg-body-rgb:        250,250,252;

  /* Aurora hero background — soft tinted whites instead of near-black navy */
  --bg-dark-start: #FAFAFC;
  --bg-dark-mid:   #F3F0FF;
  --bg-dark-end:   #EEF2FF;
  
  /* Shadows */
  --shadow-card:       0 1px 3px rgba(22,23,60,0.06);
  --shadow-card-hover: 0 12px 32px rgba(22,23,60,0.10);
  --shadow-premium:    0 4px 6px -1px rgba(0,0,0,0.05), 0 2px 4px -2px rgba(0,0,0,0.03), 0 0 0 1px rgba(230,232,236,1);
  
  /* Accents */
  --accent-primary:   var(--jv-600);
  --accent-secondary: var(--jv-400);
  
  /* Buttons */
  --button-bg:       linear-gradient(135deg, var(--jv-600), var(--jv-500));
  --button-text:     #ffffff;
  --button-hover-bg: linear-gradient(135deg, var(--jv-700), var(--jv-600));
  
  /* Mega Menu */
  --mega-menu-bg:     rgba(255,255,255,0.98);
  --mega-menu-footer: #F5F7FA;

  /* Backgrounds */
  --gradient-mesh: linear-gradient(135deg, #FAFAFC 0%, #F5F7FA 100%);
  --footer-bg: linear-gradient(135deg, #F5F7FB, #FFFFFF, #F5F7FB);
  --section-bg-darker: #FFFFFF;
  --section-bg-mid:    #F3F4F8;
}

/* ============================================================
   2. BASE RESET & GLOBAL
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background: var(--bg-body, #080c1a);
  color: var(--text-primary, #f1f5f9);
  line-height: 1.6;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* ============================================================
   3. AURORA BACKGROUND
   ============================================================ */
.aurora-bg {
  position: relative;
  background: linear-gradient(135deg, var(--bg-dark-start) 0%, var(--bg-dark-mid) 50%, var(--bg-dark-end) 100%);
  overflow: hidden;
}

.aurora-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 40%, rgba(99,102,241,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 30%, rgba(6,182,212,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 80%, rgba(139,92,246,0.10) 0%, transparent 70%);
  animation: aurora-shift 12s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes aurora-shift {
  0%   { opacity: 0.8; transform: scale(1) rotate(0deg); }
  50%  { opacity: 1; transform: scale(1.05) rotate(1deg); }
  100% { opacity: 0.9; transform: scale(1.02) rotate(-1deg); }
}

/* ============================================================
   4. ANIMATED BLOBS
   ============================================================ */
.blob-container {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  animation: blob-float 8s ease-in-out infinite;
  will-change: transform;
}

.blob-1 {
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(99,102,241,0.25), transparent 70%);
  top: -200px; right: -100px;
  animation-duration: 9s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(6,182,212,0.2), transparent 70%);
  bottom: 100px; left: -100px;
  animation-duration: 11s;
  animation-delay: -3s;
}

.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(139,92,246,0.18), transparent 70%);
  top: 40%; left: 40%;
  animation-duration: 13s;
  animation-delay: -6s;
}

@keyframes blob-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25%       { transform: translate(20px, -30px) scale(1.05); }
  50%       { transform: translate(-15px, 20px) scale(0.97); }
  75%       { transform: translate(25px, 10px) scale(1.03); }
}

/* ============================================================
   5. GLASSMORPHISM
   ============================================================ */
.glass {
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
}

.glass-light {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 32px rgba(0,0,0,0.06);
}

.glass-card {
  background: var(--bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: rgba(99,102,241,0.3);
  box-shadow: var(--shadow-card-hover), var(--shadow-glow-jv);
  transform: translateY(-4px);
}

/* ============================================================
   6. GRADIENT TEXT
   ============================================================ */
.gradient-text {
  background: linear-gradient(135deg, #818cf8 0%, #22d3ee 50%, #a78bfa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-gold {
  background: linear-gradient(135deg, #fbbf24, #f59e0b, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.gradient-text-cyan {
  background: linear-gradient(135deg, #22d3ee, #06b6d4, #0ea5e9);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   7. GRADIENT BORDERS (via pseudo-elements)
   ============================================================ */
.gradient-border {
  position: relative;
  border-radius: var(--radius-xl);
}

.gradient-border::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, #6366f1, #22d3ee, #a78bfa);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gradient-border:hover::before {
  opacity: 1;
}

/* ============================================================
   8. BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.9375rem;
  line-height: 1;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  position: relative;
}

.btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(75,73,172,0.35);
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-page);
  color: var(--ink);
  height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-section);
}

.btn-lg {
  height: 52px;
  padding: 0 28px;
  font-size: 1rem;
}

.btn-icon {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-md);
}

/* ============================================================
   9. FEATURE CARDS
   ============================================================ */
.feature-card {
  background: rgba(var(--surface-tint-rgb),0.04);
  border: 1px solid rgba(var(--surface-tint-rgb),0.07);
  border-radius: var(--radius-xl);
  padding: 28px;
  transition: all var(--duration-normal) var(--ease-smooth);
  cursor: default;
}

.feature-card:hover {
  background: rgba(99,102,241,0.08);
  border-color: rgba(99,102,241,0.25);
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 0 1px rgba(99,102,241,0.15);
}

.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(99,102,241,0.2), rgba(6,182,212,0.15));
  border: 1px solid rgba(99,102,241,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.feature-card:hover .feature-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.35), rgba(6,182,212,0.3));
  border-color: rgba(99,102,241,0.4);
  transform: scale(1.1);
  box-shadow: 0 0 20px rgba(99,102,241,0.3);
}

/* ============================================================
   10. NAVIGATION
   ============================================================ */
.jv-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  height: 68px;
  display: flex;
  align-items: center;
  background: var(--bg-page);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--duration-normal) var(--ease-smooth);
}

.jv-nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.jv-nav.scrolled {
  box-shadow: var(--shadow-card);
}

.jv-nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}

.jv-nav-logo-mark {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1rem;
  color: #fff;
  position: relative;
}

/* Small electric accent mark per DESIGN.md's header spec - a dot, not a
   fill, so it never needs its own contrast-safe text color */
.jv-nav-logo-mark::after {
  content: '';
  position: absolute;
  top: -3px;
  right: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--electric);
  border: 1.5px solid var(--bg-page);
}

.jv-nav-logo-text {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 1.2rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}

.jv-nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.jv-nav-item {
  position: relative;
}

.jv-nav-link {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
  white-space: nowrap;
}

.jv-nav-link:hover,
.jv-nav-link.active {
  color: var(--ink);
  background: var(--bg-section);
}

.jv-nav-link svg {
  width: 14px;
  height: 14px;
  opacity: 0.6;
  stroke-width: 1.75;
  transition: transform var(--duration-fast);
}

.jv-nav-item:hover .jv-nav-link svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Mega Menu Dropdown */
.jv-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 200ms var(--ease-smooth);
  z-index: var(--z-nav);
}

.jv-nav-item:hover .jv-dropdown {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.jv-dropdown-inner {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
  padding: 20px;
  min-width: 220px;
}

.jv-dropdown-wide {
  min-width: 620px;
}

.jv-dropdown-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.jv-dropdown-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
}

.jv-dropdown-section-title {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  text-transform: uppercase;
  padding: 8px 12px 4px;
  margin-bottom: 4px;
}

.jv-dropdown-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--duration-fast);
  color: var(--ink);
}

.jv-dropdown-link:hover {
  background: var(--bg-section);
  color: var(--ink);
}

.jv-dropdown-link-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}

.jv-dropdown-link-icon svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.75;
}

.jv-dropdown-link:hover .jv-dropdown-link-icon {
  transform: scale(1.05);
}

.jv-dropdown-link-text {
  flex: 1;
}

.jv-dropdown-link-title {
  font-size: 0.9375rem;
  font-weight: 500;
  display: block;
}

.jv-dropdown-link-sub {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  display: block;
  margin-top: 1px;
}

/* Dropdown divider */
.jv-dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 0;
}

/* Dropdown CTA banner */
.jv-dropdown-cta {
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  transition: all var(--duration-fast);
}

.jv-dropdown-cta:hover {
  border-color: var(--primary);
}

/* ==================== MEGA MENU ==================== */
.jv-nav-item-mega {
  position: static;
}

.jv-mega-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-page);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-raised);
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: all 200ms var(--ease-smooth);
  z-index: var(--z-nav);
  transform: translateY(8px);
}

.jv-nav-item-mega:hover .jv-mega-menu {
  opacity: 1;
  pointer-events: auto;
  visibility: visible;
  transform: translateY(0);
}

.jv-mega-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px;
}

.jv-mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.5fr;
  gap: 32px;
}

.jv-mega-col-title {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  text-transform: uppercase;
  margin-bottom: 16px;
  padding-left: 8px;
}

.jv-mega-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--radius-md);
  text-decoration: none;
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 500;
  transition: all var(--duration-fast);
}

.jv-mega-link:hover {
  background: var(--bg-section);
  color: var(--ink);
}

.jv-mega-link-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration-fast);
}

.jv-mega-link-icon svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
}

.jv-mega-link:hover .jv-mega-link-icon {
  transform: scale(1.05);
}

.jv-mega-featured {
  background: var(--info-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.jv-mega-footer {
  border-top: 1px solid var(--border);
  padding: 16px 24px;
  background: var(--bg-section);
}

.jv-mega-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.jv-mega-footer-links {
  display: flex;
  gap: 24px;
}

.jv-mega-footer-link {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--duration-fast);
}
.jv-mega-footer-link:hover {
  color: var(--primary);
}

/* Nav Actions */
.jv-nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.jv-nav-login {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--primary);
  text-decoration: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast);
}

.jv-nav-login:hover {
  background: var(--bg-section);
}

.jv-nav-cta {
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  transition: all var(--duration-fast) var(--ease-out);
}

.jv-nav-cta:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.jv-hamburger {
  display: none;
  width: 40px;
  height: 40px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.jv-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: all var(--duration-normal) var(--ease-smooth);
}

/* Mobile nav drawer */
.jv-mobile-nav {
  position: fixed;
  inset: 0;
  background: var(--bg-page);
  z-index: calc(var(--z-nav) - 1);
  padding: 80px 24px 40px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.jv-mobile-nav.open {
  transform: translateX(0);
}

/* Bare dense-list icon (mobile drawer rows) */
.jv-mobile-link-icon {
  width: 18px;
  height: 18px;
  stroke-width: 1.75;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ============================================================
   11. SECTION UTILITIES
   ============================================================ */
.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-padding-sm {
  padding-top: 60px;
  padding-bottom: 60px;
}

.container-jv {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ac-400);
  background: rgba(6,182,212,0.08);
  border: 1px solid rgba(6,182,212,0.2);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 20px;
}

.section-title.dark {
  color: #0f172a;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: rgba(148,163,184,0.9);
  line-height: 1.7;
  max-width: 560px;
}

.text-center .section-subtitle {
  margin: 0 auto;
}

/* ============================================================
   12. HERO SECTION
   ============================================================ */
.jv-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 120px;
  padding-bottom: 80px;
  position: relative;
}

.jv-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(129,140,248,0.9);
  background: rgba(99,102,241,0.08);
  border: 1px solid rgba(99,102,241,0.2);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  animation: badge-pulse 3s ease-in-out infinite;
}

@keyframes badge-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
  50%       { box-shadow: 0 0 0 6px rgba(99,102,241,0.08); }
}

.jv-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ac-400);
  animation: dot-blink 2s ease-in-out infinite;
}

@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.3; }
}

.jv-hero-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 5.5rem);
  font-weight: 900;
  line-height: 1.0;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.jv-hero-title span.highlight {
  background: linear-gradient(135deg, #818cf8, #22d3ee, #a78bfa);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================
   13. STATS COUNTER
   ============================================================ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-page);
  padding: 28px 24px;
  text-align: center;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 6px;
}

.stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  font-weight: 500;
}

/* ============================================================
   14. FEATURE SHOWCASE TABS
   ============================================================ */
.showcase-tabs {
  display: flex;
  gap: 4px;
  padding: 6px;
  background: var(--bg-section);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  overflow-x: auto;
  scrollbar-width: none;
}

.showcase-tabs::-webkit-scrollbar { display: none; }

.showcase-tab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--duration-fast);
  border: none;
  background: transparent;
}

.showcase-tab:hover {
  color: var(--ink);
}

.showcase-tab.active {
  background: var(--primary);
  color: #fff;
}

/* ============================================================
   15. DELIVERY WORKFLOW ANIMATION
   ============================================================ */
.delivery-flow {
  display: flex;
  align-items: center;
  gap: 0;
  flex-wrap: wrap;
  justify-content: center;
}

.delivery-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  position: relative;
}

.delivery-step-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(99,102,241,0.12);
  border: 2px solid rgba(99,102,241,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  z-index: 1;
}

.delivery-step.active .delivery-step-icon {
  background: linear-gradient(135deg, rgba(99,102,241,0.4), rgba(6,182,212,0.3));
  border-color: var(--jv-500);
  box-shadow: 0 0 24px rgba(99,102,241,0.4);
  animation: step-pulse 2s ease-in-out infinite;
}

@keyframes step-pulse {
  0%, 100% { box-shadow: 0 0 24px rgba(99,102,241,0.4); }
  50%       { box-shadow: 0 0 40px rgba(99,102,241,0.7); }
}

.delivery-step-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
  max-width: 80px;
}

.delivery-step.active .delivery-step-label {
  color: var(--text-primary);
}

.delivery-connector {
  width: 40px;
  height: 2px;
  background: rgba(var(--surface-tint-rgb),0.1);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  margin: 0 -8px;
  margin-top: -24px;
}

.delivery-connector.active {
  background: linear-gradient(90deg, var(--jv-500), var(--ac-400));
}

.delivery-connector-dot {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ac-400);
  animation: connector-slide 2s linear infinite;
}

@keyframes connector-slide {
  0%   { left: -8px; }
  100% { left: 100%; }
}

/* ============================================================
   16. MAP VISUALIZATION
   ============================================================ */
.delivery-map {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, #0a1628, #0d2040, #071a34);
  aspect-ratio: 16/9;
  border: 1px solid rgba(99,102,241,0.2);
  box-shadow: var(--shadow-card);
}

.map-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(99,102,241,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(99,102,241,0.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.map-pin {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  transform: translate(-50%, -50%);
  cursor: pointer;
}

.map-pin-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(var(--surface-tint-rgb),0.8);
  position: relative;
}

.map-pin-dot::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: rgba(99,102,241,0.15);
  animation: pin-ripple 2s ease-out infinite;
}

@keyframes pin-ripple {
  0%   { transform: scale(1); opacity: 0.8; }
  100% { transform: scale(2.5); opacity: 0; }
}

.map-pin.store .map-pin-dot { background: var(--jv-500); }
.map-pin.customer .map-pin-dot { background: var(--ac-400); }
.map-pin.rider .map-pin-dot {
  background: var(--em-400);
  animation: rider-move 4s linear infinite;
}

/* ============================================================
   17. PRICING CARDS
   ============================================================ */
.pricing-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: all var(--duration-fast) var(--ease-out);
  position: relative;
}

.pricing-card.popular {
  border: 2px solid var(--primary);
}

.pricing-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.pricing-card.popular:hover {
  box-shadow: var(--shadow-raised);
}

.pricing-popular-badge {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.pricing-price {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}

.pricing-price-currency {
  font-size: 1.25rem;
  vertical-align: super;
  color: var(--text-muted);
}

/* ============================================================
   18. TESTIMONIAL CARDS
   ============================================================ */
.testimonial-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: all var(--duration-fast) var(--ease-out);
}

.testimonial-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: 16px;
  color: var(--warning);
}

.testimonial-stars svg { width: 14px; height: 14px; fill: currentColor; stroke: none; }

/* ============================================================
   19. INTEGRATION LOGOS
   ============================================================ */
.integration-logo {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  transition: all var(--duration-fast);
  cursor: default;
  height: 60px;
}

.integration-logo:hover {
  border-color: var(--border-strong);
  color: var(--ink);
}

/* ============================================================
   20. MARQUEE ANIMATION
   ============================================================ */
.marquee-track {
  display: flex;
  gap: 24px;
  width: max-content;
  animation: marquee-scroll 30s linear infinite;
}

.marquee-track:hover {
  animation-play-state: paused;
}

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

.marquee-wrapper {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(90deg, transparent, black 10%, black 90%, transparent);
}

/* ============================================================
   21. SCROLL REVEAL (JS hooks)
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
}

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

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ============================================================
   22. FLOATING ELEMENTS
   ============================================================ */
.float-slow {
  animation: float 6s ease-in-out infinite;
}

.float-medium {
  animation: float 4s ease-in-out infinite;
}

.float-fast {
  animation: float 3s ease-in-out infinite;
}

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

/* ============================================================
   23. DASHBOARD MOCKUP CARDS (floating UI previews)
   ============================================================ */
.ui-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-raised);
  padding: 16px;
  font-family: var(--font-body);
  font-size: 0.75rem;
}

.ui-card-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

.ui-card-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

/* ============================================================
   24. FOOTER
   ============================================================ */
/* Footer is the site's one deliberate dark band (same --ink treatment as
   the Hyperlocal signature section) - closes each page on a premium, more
   confident note against the otherwise all-light Phase 1 site. --ink is on
   the approved white-text list, so headings/links sit on it safely; body
   copy uses white-alpha since the light-mode --text-* tokens are tuned for
   white backgrounds and go muddy on dark. */
.jv-footer {
  background: var(--ink);
  padding: 80px 0 40px;
  --footer-text: rgba(255,255,255,0.68);
  --footer-text-muted: rgba(255,255,255,0.50);
  --footer-border: rgba(255,255,255,0.08);
}

.jv-footer-grid {
  display: grid;
  grid-template-columns: 280px repeat(5, 1fr);
  gap: 48px;
  margin-bottom: 56px;
}

.jv-footer-col-title {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--footer-text-muted);
  margin-bottom: 18px;
}

/* .jv-footer-link is shared with the (light) mobile drawer, so its base
   color stays light-safe; the dark footer overrides it explicitly. */
.jv-footer-link {
  display: block;
  font-size: 0.875rem;
  color: var(--text-secondary);
  text-decoration: none;
  padding: 5px 0;
  transition: color var(--duration-fast);
}

.jv-footer-link:hover {
  color: var(--ink);
}

.jv-footer .jv-footer-link {
  color: var(--footer-text);
}

.jv-footer .jv-footer-link:hover {
  color: #fff;
}

.jv-footer-cta-panel {
  background: var(--bg-page);
  border-radius: var(--radius-lg);
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  flex-wrap: wrap;
  margin-bottom: 56px;
  box-shadow: var(--shadow-raised);
}

.jv-footer-bottom {
  border-top: 1px solid var(--footer-border);
  padding-top: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.jv-footer-bottom-text {
  font-size: 0.8125rem;
  color: var(--footer-text-muted);
}

.jv-social-links {
  display: flex;
  gap: 10px;
}

.jv-social-link {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--footer-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--footer-text);
  text-decoration: none;
  transition: all var(--duration-fast);
  font-size: 0.875rem;
}

.jv-social-link:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  color: #fff;
  transform: translateY(-2px);
}

/* ============================================================
   25. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .jv-nav-links { display: none; }
  .jv-hamburger { display: flex; }
  .jv-footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}

@media (max-width: 768px) {
  .section-padding { padding-top: 72px; padding-bottom: 72px; }
  .jv-hero { padding-top: 100px; }
  .jv-footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .jv-footer-grid { grid-template-columns: 1fr; }
  .jv-hero-title { font-size: 2.5rem; }
  .delivery-flow { gap: 8px; }
  .delivery-connector { width: 24px; }
  /* Login link + CTA button overflow the nav bar on phone widths, pushing the
     hamburger off-screen and making the mobile menu unreachable. Both actions
     already exist inside the mobile drawer itself, so hide them here. */
  .jv-nav-login,
  .jv-nav-cta { display: none; }
}

/* ============================================================
   26. ACCESSIBILITY
   ============================================================ */
.skip-to-content {
  position: absolute;
  top: -100%;
  left: 0;
  background: var(--jv-600);
  color: #fff;
  padding: 12px 24px;
  font-weight: 600;
  z-index: calc(var(--z-nav) + 1);
  transition: top var(--duration-fast);
}

.skip-to-content:focus {
  top: 0;
}

:focus-visible {
  outline: 2px solid var(--jv-400);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   27. LOADING SKELETON
   ============================================================ */
.skeleton {
  background: linear-gradient(90deg,
    rgba(var(--surface-tint-rgb),0.04) 25%,
    rgba(var(--surface-tint-rgb),0.08) 50%,
    rgba(var(--surface-tint-rgb),0.04) 75%
  );
  background-size: 400% 100%;
  animation: shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius-sm);
}

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

/* ============================================================
   28. MISC UTILITIES
   ============================================================ */
.text-gradient-jv {
  background: linear-gradient(135deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.bg-dark-section { background: var(--bg-body); }
.bg-darker-section { background: var(--section-bg-darker); }
.bg-mid-section { background: var(--section-bg-mid); }
.bg-light-section { background: #f8faff; }

.border-subtle { border: 1px solid rgba(var(--surface-tint-rgb),0.07); }

.glow-jv { box-shadow: var(--shadow-glow-jv); }
.glow-ac { box-shadow: var(--shadow-glow-ac); }

/* Chart bars (for analytics section) */
.chart-bar {
  background: var(--primary-soft);
  border-radius: 3px 3px 0 0;
  width: 100%;
  transition: height 1s var(--ease-out);
  position: relative;
}

.chart-bar:last-child,
.chart-bar:nth-last-child(2) {
  background: var(--primary);
}

/* ============================================================
   MISSING UTILITIES — Added
   ============================================================ */

/* Dot blink (typing indicator, cursor) */
@keyframes dot-blink {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0; }
}
.dot-blink { animation: dot-blink 1s step-end infinite; }

/* Section padding variants */
.section-padding-sm { padding: 48px 0; }
.section-padding-xs { padding: 24px 0; }

/* Text alignment utility */
.text-center { text-align: center; }

/* Gradient text utility shorthand */
.highlight {
  background: linear-gradient(135deg, var(--jv-400), var(--ac-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Comparison table (for pricing page) */
.compare-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  color: var(--text-body);
}
.compare-table th {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: var(--bg-section);
  position: sticky;
  top: 0;
}
.compare-table tr:hover td {
  background: var(--bg-section);
}
.compare-table td:first-child {
  color: var(--ink);
  font-weight: 500;
}
.compare-check { color: var(--success); font-size: 1.1rem; }
.compare-cross  { color: var(--text-muted); font-size: 1.1rem; }

/* ROI calculator */
.roi-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-card);
}
.roi-result {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  color: var(--ink);
}

/* Range slider (pricing toggle / ROI) */
input[type=range] {
  -webkit-appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 2px;
  background: var(--border);
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  transition: box-shadow 0.2s;
}
input[type=range]::-webkit-slider-thumb:hover {
  box-shadow: 0 0 0 6px var(--info-bg);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.badge-popular {
  background: var(--primary);
  color: #fff;
}
.badge-new {
  background: var(--success-bg);
  color: var(--success);
}
.badge-hot {
  background: var(--warning-bg);
  color: var(--warning);
}

/* Pricing toggle switch */
.pricing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 24px 0;
}
.toggle-switch {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border-strong);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background 0.2s;
}
.toggle-switch.on { background: var(--primary); }
.toggle-knob {
  position: absolute;
  top: 2px; left: 2px;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.2s var(--ease-out);
}
.toggle-switch.on .toggle-knob { transform: translateX(20px); }

/* FAQ accordion */
.faq-item {
  border: 1px solid rgba(var(--surface-tint-rgb),0.07);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s;
}
.faq-item:hover { border-color: rgba(99,102,241,0.2); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 600;
  font-size: 0.9375rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}
.faq-answer {
  padding: 0 24px 20px;
  font-size: 0.875rem;
  color: rgba(var(--text-secondary-rgb),0.85);
  line-height: 1.7;
  border-top: 1px solid rgba(var(--surface-tint-rgb),0.05);
}

/* ============================================================
   HOME PAGE - DESIGN.md Phase 1, section 1.2
   New classes only (avoids .section-title/.section-label/.glass-card/
   .jv-hero/.feature-card/.pricing-card/.bg-dark-section/.gradient-text -
   those are still used, with old dark styling, by 10+ pages not yet
   redesigned). Existing home-only classes were restyled in place above.
   ============================================================ */

/* -- Section typography -- */
.jv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.jv-eyebrow-electric { color: var(--electric); }
.jv-eyebrow svg { width: 14px; height: 14px; stroke-width: 1.75; }

.jv-h2 {
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.4vw, 2.5rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
}
.jv-h2-onDark { color: #fff; }

.jv-subhead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.65;
  max-width: 560px;
}
.jv-subhead-onDark { color: rgba(255,255,255,0.68); }

.jv-section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px;
}
.jv-section-header .jv-subhead { margin: 0 auto; }

.jv-section-pad { padding: 88px 0; }

/* -- Trajectory line (signature device) -- */
.jv-trajectory-underline {
  width: 48px;
  height: 2px;
  background: var(--electric);
  margin: 0 auto 20px;
}
.jv-section-header .jv-trajectory-underline { margin-left: auto; margin-right: auto; }

/* -- Hero (new, avoids .jv-hero used by 12 other pages) -- */
.jv-hero2 {
  padding: 120px 0 80px;
  background: var(--bg-page);
}
.jv-hero2-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--primary);
  background: var(--info-bg);
  padding: 7px 16px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
}
.jv-hero2-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.jv-hero2-title .jv-highlight { color: var(--electric); }
.jv-hero2-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 28px;
}
.jv-hero2-trust span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.jv-hero2-trust svg { width: 14px; height: 14px; stroke-width: 2; color: var(--success); }

/* Browser-chrome frame for the hero + tab mockups */
.jv-browser-frame {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-raised);
  background: var(--bg-page);
}
.jv-browser-chrome {
  background: var(--bg-section);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--border);
}
.jv-browser-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.jv-browser-url {
  flex: 1;
  margin: 0 12px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}
.jv-floating-toast {
  position: absolute;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-raised);
  padding: 12px 16px;
}

/* -- Module grid (avoids .feature-card, shared by 10 pages) -- */
.jv-module-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: all var(--duration-fast) var(--ease-out);
}
.jv-module-card:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-card);
}
.jv-module-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.jv-module-icon svg { width: 20px; height: 20px; stroke-width: 1.75; }
.jv-module-title { font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; color: var(--ink); margin-bottom: 6px; }
.jv-module-desc { font-size: 0.875rem; color: var(--text-secondary); line-height: 1.55; }

/* -- Dark showcase band (reusable across every Phase 1 page per DESIGN.md) -- */
.jv-dark-band {
  background: var(--ink);
  padding: 88px 0;
}
.jv-dark-band-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
}
.jv-dark-band-feature svg { width: 18px; height: 18px; stroke-width: 1.75; color: var(--electric); flex-shrink: 0; margin-top: 2px; }
.jv-dark-band-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.68);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
}
.jv-dark-band-chip svg { width: 14px; height: 14px; stroke-width: 1.75; color: var(--electric); }

/* Map illustration for the Hyperlocal dark band */
.jv-map-card {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  overflow: hidden;
}
.jv-map-zone {
  position: absolute;
  border-radius: 50%;
  background: rgba(99,91,255,0.12);
  border: 1px solid rgba(99,91,255,0.3);
}
.jv-map-pin {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(22,23,60,0.9);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  padding: 6px 10px;
  font-size: 0.75rem;
  color: #fff;
  white-space: nowrap;
}
.jv-map-pin svg { width: 14px; height: 14px; stroke-width: 1.75; color: var(--electric); }
.jv-map-rider {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--electric);
  box-shadow: 0 0 0 4px rgba(99,91,255,0.25);
  animation: jv-rider-move 4s ease-in-out infinite;
}
@keyframes jv-rider-move {
  0%, 100% { top: 68%; left: 22%; }
  50% { top: 30%; left: 72%; }
}

/* -- AI tool chip -- */
.jv-ai-chip {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}
.jv-ai-chip-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--info-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jv-ai-chip-icon svg { width: 16px; height: 16px; stroke-width: 1.75; }
.jv-ai-chip-label { font-size: 0.8125rem; font-weight: 500; color: var(--ink); }

/* -- Analytics KPI cards -- */
.jv-kpi-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.jv-kpi-label { font-size: 0.75rem; color: var(--text-secondary); margin-bottom: 6px; }
.jv-kpi-value { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; color: var(--ink); }
.jv-kpi-delta { font-size: 0.75rem; color: var(--success); margin-top: 4px; font-weight: 500; }

/* -- Industry pills -- */
.jv-industry-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-body);
  text-decoration: none;
  transition: all var(--duration-fast);
}
.jv-industry-pill:hover { border-color: var(--primary); color: var(--primary); }
.jv-industry-pill svg { width: 16px; height: 16px; stroke-width: 1.75; color: var(--text-secondary); }
.jv-industry-pill:hover svg { color: var(--primary); }

/* -- Testimonial avatar + result chip -- */
.jv-avatar-initials {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--info-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.jv-result-chip {
  display: inline-flex;
  align-items: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--electric);
  background: var(--info-bg);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  white-space: nowrap;
}

/* -- Pricing mini cards (avoids .pricing-card, shared with pricing.html) -- */
.jv-price-mini-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
}
.jv-price-mini-card.popular {
  border: 2px solid var(--primary);
  position: relative;
}
.jv-price-mini-badge {
  position: absolute;
  top: -12px;
  left: 24px;
  background: var(--primary);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--radius-full);
}
.jv-price-mini-name { font-size: 1.125rem; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.jv-price-mini-amount { font-family: var(--font-heading); font-size: 2.75rem; font-weight: 600; color: var(--ink); }
.jv-price-mini-amount span { font-size: 0.875rem; font-weight: 400; color: var(--text-muted); }
.jv-price-mini-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-body);
  padding: 6px 0;
}
.jv-price-mini-feature svg { width: 16px; height: 16px; stroke-width: 2; color: var(--success); flex-shrink: 0; }

/* -- FAQ accordion (new, no page currently uses the pre-existing .faq-item) -- */
.jv-faq-item { border-bottom: 1px solid var(--border); }
.jv-faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 20px 4px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-weight: 500;
  font-size: 0.9375rem;
  color: var(--ink);
  font-family: var(--font-body);
}
.jv-faq-question svg { width: 18px; height: 18px; stroke-width: 1.75; color: var(--text-secondary); flex-shrink: 0; transition: transform var(--duration-fast); }
.jv-faq-answer {
  padding: 0 4px 20px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* -- Final CTA panel -- */
.jv-final-cta {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  padding: 64px 40px;
  text-align: center;
}

/* -- Responsive grid utilities (Home page uses these instead of inline
   grid-template-columns, since media queries can't override inline styles) -- */
/* minmax(0, 1fr) not bare 1fr - grid items otherwise refuse to shrink below
   their content's min-content size (e.g. an unbreakable "₹500M+" stat at
   36px), silently overflowing the grid's container even though the track
   is nominally "1fr". This bit us on the pricing page's dark stats band. */
.jv-grid-split { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); align-items: center; }
.jv-grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.jv-grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); }
.jv-grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); }
.jv-grid-kpi { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); }
.jv-mockup-scroll { overflow-x: auto; }
.jv-mockup-scroll > * { min-width: 480px; }

@media (max-width: 900px) {
  .jv-grid-split { grid-template-columns: minmax(0,1fr); gap: 32px !important; }
  .jv-grid-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jv-grid-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 640px) {
  .jv-grid-3 { grid-template-columns: minmax(0,1fr); }
  .jv-grid-2 { grid-template-columns: minmax(0,1fr); }
  .jv-grid-kpi { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .jv-hero2-title { font-size: 2.25rem; }
  .jv-final-cta { padding: 40px 24px; }
}

/* -- Dark hero variant (Pricing, Enterprise, and other pages that open on
   a dark note per the "dark showcase band on every page" decision) -- */
.jv-hero2.jv-hero-dark { background: var(--ink); }
.jv-hero-dark .jv-hero2-badge { background: rgba(255,255,255,0.08); color: var(--electric); }
.jv-hero-dark .jv-hero2-title { color: #fff; }
.jv-hero-dark .jv-hero2-title .jv-highlight { color: var(--electric); }
.jv-hero-dark .jv-subhead { color: rgba(255,255,255,0.68); }
.jv-hero-dark .jv-hero2-trust span { color: rgba(255,255,255,0.5); }
.jv-hero-dark .jv-hero2-trust svg { color: var(--success); }
