/* ==========================================================================
   NAVI.TECH / ROUTE FORECAST - DESIGN SYSTEM & STYLESHEET
   ========================================================================== */

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

/* --- Root Variables --- */
:root {
  /* Colors */
  --bg-dark: #f8fafc; /* Premium crisp slate-50 backdrop */
  --bg-card: rgba(255, 255, 255, 0.7); /* Translucent pure white cards */
  --bg-card-hover: rgba(255, 255, 255, 0.92);
  
  --primary: #4f46e5; /* Deep Electric Indigo for high-contrast slate borders */
  --primary-glow: rgba(79, 70, 229, 0.12);
  --secondary: #c084fc; /* Deeper Cyber Purple */
  --secondary-glow: rgba(192, 132, 252, 0.12);
  --accent-green: #059669; /* Elegant Emerald Green */
  --accent-green-glow: rgba(5, 150, 105, 0.12);
  --accent-amber: #d97706; /* Caution Amber */
  --accent-red: #dc2626; /* Crimson Red */
  
  --text-primary: #0f172a; /* Deep slate-900 for razor-sharp typography */
  --text-secondary: #475569; /* Medium slate-600 */
  --text-muted: #64748b; /* Slate-500 */
  
  --border: rgba(15, 23, 42, 0.07); /* Slate-based transparent dividing lines */
  --border-active: rgba(79, 70, 229, 0.22);
  --glass-bg: rgba(255, 255, 255, 0.82);
  --glass-border: rgba(15, 23, 42, 0.05);
  
  /* Fonts */
  --font-display: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
  
  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- Base & Resets --- */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: var(--bg-dark);
}

body {
  font-family: var(--font-body);
  color: var(--text-primary);
  background-color: var(--bg-dark);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
}

/* Ambient Background Blobs */
body::before, body::after {
  content: '';
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  filter: blur(140px);
  z-index: -2;
  opacity: 0.12;
  pointer-events: none;
  animation: floatBlobs 20s infinite alternate ease-in-out;
}

body::before {
  background: radial-gradient(circle, var(--primary) 0%, transparent 70%);
  top: 10%;
  right: -10%;
}

body::after {
  background: radial-gradient(circle, var(--secondary) 0%, transparent 70%);
  top: 60%;
  left: -10%;
  animation-delay: -5s;
}

@keyframes floatBlobs {
  0% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(80px, 50px) scale(1.15);
  }
}

/* --- Typography & Headings --- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  font-weight: 900;
}

h2 {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  text-align: center;
  margin-bottom: 1rem;
}

h3 {
  font-size: 1.5rem;
}

p {
  color: var(--text-secondary);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* --- Utility Classes --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.text-gradient {
  background: linear-gradient(135deg, var(--text-primary) 30%, #a5b4fc 70%, var(--secondary) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.accent-text-gradient {
  background: linear-gradient(135deg, #818cf8 0%, #c084fc 50%, #f472b6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.glass-panel {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(16px) saturate(120%);
  border-radius: 24px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 2rem;
  border-radius: 50px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, #4f46e5 100%);
  color: white;
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.3);
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--primary) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: 1;
  border-radius: 50px;
}

.btn-primary:hover::after {
  opacity: 1;
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(99, 102, 241, 0.5), 0 0 15px rgba(217, 70, 239, 0.2);
}

.btn-primary > * {
  position: relative;
  z-index: 2;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}

/* --- Sticky Header / Navbar --- */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition-normal);
  padding: 1.25rem 0;
}

header.scrolled {
  background: rgba(7, 4, 15, 0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0.8rem 0;
}

nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

.logo-icon {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  border-radius: 10px;
  color: white;
  box-shadow: 0 4px 15px rgba(99, 102, 241, 0.3);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2.25rem;
  align-items: center;
}

.nav-links a {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--text-secondary);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Mobile Toggle */
.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 30px;
  height: 24px;
  position: relative;
  z-index: 1100;
}

.mobile-menu-btn span {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  position: absolute;
  transition: all 0.3s ease;
}

.mobile-menu-btn span:nth-child(1) { top: 0; }
.mobile-menu-btn span:nth-child(2) { top: 10px; }
.mobile-menu-btn span:nth-child(3) { top: 20px; }

.mobile-menu-btn.active span:nth-child(1) {
  transform: rotate(45deg);
  top: 10px;
}
.mobile-menu-btn.active span:nth-child(2) {
  opacity: 0;
}
.mobile-menu-btn.active span:nth-child(3) {
  transform: rotate(-45deg);
  top: 10px;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 4rem;
  position: relative;
  overflow: hidden;
}

/* Cosmic light sphere behind phone */
.hero::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.15) 0%, transparent 60%);
  top: 15%;
  right: 5%;
  z-index: -1;
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3.5rem;
  align-items: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 100px;
  font-size: 0.85rem;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.1);
}

.hero-tag span {
  width: 8px;
  height: 8px;
  background: var(--accent-green);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--accent-green);
  animation: pulseGreen 2s infinite;
}

@keyframes pulseGreen {
  0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1.1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  margin-bottom: 1.5rem;
}

.hero-subtitle {
  font-size: 1.15rem;
  margin-bottom: 2.5rem;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.hero-badge-container {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.badge-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.badge-item svg {
  width: 24px;
  height: 24px;
  fill: var(--text-muted);
}

.badge-text {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* Smartphone Mockup Frame */
.hero-mockup-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Glowing backplate behind phone */
.mockup-glow {
  position: absolute;
  width: 320px;
  height: 520px;
  border-radius: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  opacity: 0.25;
  filter: blur(60px);
  z-index: -1;
  animation: breatheGlow 8s infinite alternate ease-in-out;
}

@keyframes breatheGlow {
  0% { transform: scale(1) rotate(0deg); opacity: 0.2; }
  100% { transform: scale(1.1) rotate(5deg); opacity: 0.35; }
}

.smartphone-frame {
  width: 290px;
  height: 590px;
  border: 11px solid #1a1625;
  border-radius: 42px;
  background: #0d091a;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8), 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  overflow: hidden;
}

/* Speaker Notch */
.smartphone-frame::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 22px;
  background: #1a1625;
  border-bottom-left-radius: 16px;
  border-bottom-right-radius: 16px;
  z-index: 10;
}

/* Screen Glass Reflection */
.smartphone-frame::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 150%;
  height: 100%;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.01) 40%, transparent 60%);
  pointer-events: none;
  z-index: 9;
}

/* Screen Content */
.screen-content {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #0b0812;
  font-family: var(--font-body);
}

/* App Header Inside Phone */
.app-header {
  padding: 1.75rem 1rem 0.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  background: rgba(15, 10, 26, 0.9);
}

.app-brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.app-dot {
  width: 6px;
  height: 6px;
  background: var(--accent-green);
  border-radius: 50%;
}

.app-stats {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* App Main Display */
.app-screen-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 0.85rem;
  gap: 0.75rem;
  overflow-y: auto;
}

/* Custom Web Placeholder design */
.placeholder-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
  min-height: 160px;
  cursor: pointer;
  transition: var(--transition-normal);
}

.placeholder-card:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--primary);
}

.placeholder-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.placeholder-text {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
}

.placeholder-sub {
  font-size: 0.7rem;
  color: var(--text-secondary);
  max-width: 160px;
}

/* Sleek Simulated Map View */
.phone-map-container {
  height: 180px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: #110d1f;
}

.map-svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

.route-path-animated {
  stroke-dasharray: 8;
  animation: dash 15s linear infinite;
}

@keyframes dash {
  to {
    stroke-dashoffset: -100;
  }
}

.map-card-overlay {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(13, 8, 22, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.overlay-avatar {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  color: white;
}

.overlay-details {
  flex: 1;
}

.overlay-title {
  font-size: 0.7rem;
  font-weight: 600;
}

.overlay-sub {
  font-size: 0.6rem;
  color: var(--accent-green);
  display: flex;
  align-items: center;
  gap: 2px;
}

.live-badge {
  padding: 2px 4px;
  border-radius: 4px;
  background: rgba(16, 185, 129, 0.15);
  font-weight: 800;
  font-size: 0.5rem;
  text-transform: uppercase;
}

/* Phone Screen Info Card */
.phone-info-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  padding: 0.85rem;
}

.phone-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.phone-card-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-card-badge {
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 20px;
  background: rgba(99, 102, 241, 0.15);
  color: #a5b4fc;
}

.phone-weather-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.phone-weather-item {
  flex: 1;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 10px;
  padding: 0.4rem;
  text-align: center;
}

.phone-weather-label {
  font-size: 0.6rem;
  color: var(--text-muted);
}

.phone-weather-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-primary);
}

.phone-weather-icon {
  font-size: 0.95rem;
  margin: 2px 0;
}

/* --- Features Section --- */
.features-section {
  padding: 6rem 0;
  position: relative;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3.5rem;
}

.feature-card {
  padding: 2.5rem 2rem;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(217, 70, 239, 0.05) 100%);
  opacity: 0;
  transition: opacity var(--transition-normal);
  z-index: -1;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 40px -15px rgba(99, 102, 241, 0.12);
}

.feature-icon-wrapper {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.5rem;
  transition: var(--transition-normal);
}

.feature-card:hover .feature-icon-wrapper {
  background: var(--primary);
  color: white;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.35);
  transform: scale(1.05) rotate(5deg);
}

.feature-card h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
}

.feature-card p {
  font-size: 0.95rem;
  color: var(--text-secondary);
}

/* --- Interactive Simulator Section --- */
.simulator-section {
  padding: 6rem 0;
  position: relative;
}

.simulator-container {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 3.5rem;
  align-items: stretch;
}

.simulator-details {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.simulator-details p {
  margin-bottom: 2rem;
}

.simulator-card {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.sim-input-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sim-input-group label {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.sim-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.sim-input-wrapper i {
  position: absolute;
  left: 1rem;
  color: var(--primary);
  font-size: 1rem;
}

.sim-input {
  width: 100%;
  padding: 0.9rem 1rem 0.9rem 2.75rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  font-family: var(--font-body);
  color: white;
  outline: none;
  font-size: 0.95rem;
  transition: var(--transition-normal);
}

.sim-input:focus {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--primary);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.15);
}

.sim-submit {
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
}

/* Simulator Output/Result Box */
.sim-results {
  margin-top: 1rem;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.04);
  border-radius: 16px;
  padding: 1.5rem;
  display: none; /* Controlled via JS */
  flex-direction: column;
  gap: 1rem;
  animation: fadeIn 0.4s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.sim-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  padding-bottom: 0.75rem;
}

.sim-route-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
}

.sim-route-dist {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sim-timeline {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
  padding-left: 1.25rem;
}

.sim-timeline::before {
  content: '';
  position: absolute;
  left: 4px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: linear-gradient(to bottom, var(--accent-green) 0%, var(--accent-amber) 50%, var(--primary) 100%);
}

.timeline-step {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.timeline-step::before {
  content: '';
  position: absolute;
  left: -21px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--bg-dark);
}

.timeline-step.origin::before { background: var(--accent-green); }
.timeline-step.midway::before { background: var(--accent-amber); }
.timeline-step.destination::before { background: var(--primary); }

.step-details {
  display: flex;
  flex-direction: column;
}

.step-loc {
  font-weight: 600;
  font-size: 0.85rem;
}

.step-dist {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.step-weather {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 0.25rem 0.5rem;
  font-size: 0.75rem;
  min-width: 100px;
  justify-content: center;
}

.step-weather-icon {
  font-size: 0.9rem;
}

/* Loading state for simulator */
.sim-loader {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  gap: 1rem;
  text-align: center;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(99, 102, 241, 0.1);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- Showcase / Carousel Section --- */
.showcase-section {
  padding: 6rem 0;
  background: radial-gradient(circle at center, rgba(30, 16, 58, 0.25) 0%, transparent 70%);
  position: relative;
}

.carousel-container {
  max-width: 860px;
  margin: 3.5rem auto 0;
  position: relative;
  padding: 0 3rem;
}

.carousel-viewport {
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--glass-border);
  box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5);
  background: var(--bg-card);
  position: relative;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.carousel-slide {
  min-width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  padding: 3rem 2.5rem;
  gap: 2rem;
  box-sizing: border-box;
}

.slide-image-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Elegant responsive mockup wrapper inside slides */
.slide-phone-mock {
  width: 220px;
  height: 440px;
  border: 8px solid #1a1625;
  border-radius: 32px;
  background: #0d091a;
  box-shadow: 0 15px 35px rgba(0,0,0,0.6);
  position: relative;
  overflow: hidden;
}

.slide-phone-mock::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 15px;
  background: #1a1625;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  z-index: 10;
}

.slide-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.slide-tag {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--secondary);
}

.slide-info h3 {
  font-size: 1.75rem;
  line-height: 1.2;
}

.slide-info p {
  color: var(--text-secondary);
  font-size: 0.95rem;
}

/* Carousel Buttons */
.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition-normal);
}

.carousel-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 15px var(--primary-glow);
}

.carousel-btn.prev { left: 0; }
.carousel-btn.next { right: 0; }

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-normal);
}

.dot.active {
  width: 24px;
  border-radius: 4px;
  background: var(--primary);
}

/* --- Call to Action (CTA) Section --- */
.cta-section {
  padding: 6rem 0;
  position: relative;
}

.cta-banner {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(217, 70, 239, 0.15) 50%, rgba(7, 4, 15, 0.6) 100%);
  border: 1px solid var(--glass-border);
  border-radius: 32px;
  padding: 4.5rem 3rem;
  text-align: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle, rgba(168, 85, 247, 0.12) 0%, transparent 60%);
  z-index: -1;
  animation: spinSlow 30s linear infinite;
  pointer-events: none;
}

@keyframes spinSlow {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.cta-title {
  margin-bottom: 1rem;
}

.cta-desc {
  max-width: 600px;
  margin: 0 auto 2.5rem;
  font-size: 1.1rem;
}

.cta-buttons {
  display: flex;
  gap: 1.25rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* --- Footer --- */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  background: #04020a;
  padding: 4.5rem 0 2rem;
  font-family: var(--font-body);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 4rem;
  margin-bottom: 3.5rem;
}

.footer-brand-section {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.footer-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  max-width: 320px;
}

.footer-socials {
  display: flex;
  gap: 1rem;
}

.social-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  font-size: 0.95rem;
}

.social-icon:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.footer-column h4 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-primary);
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.footer-links a:hover {
  color: var(--text-primary);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.04);
  padding-top: 2rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --- PRIVACY POLICY STYLES --- */
.privacy-hero {
  min-height: 40vh;
  display: flex;
  align-items: center;
  padding: 8rem 0 3rem;
  background: linear-gradient(180deg, rgba(30, 16, 58, 0.2) 0%, transparent 100%);
  text-align: center;
}

.privacy-hero h1 {
  margin-bottom: 1rem;
}

.privacy-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 4rem;
  padding: 3rem 0 6rem;
  align-items: start;
}

.privacy-sidebar {
  position: sticky;
  top: 100px;
}

.privacy-toc {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.5rem;
}

.privacy-toc a {
  display: block;
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  padding: 0.35rem 0;
  border-left: 2px solid transparent;
  padding-left: 1rem;
  transition: var(--transition-fast);
}

.privacy-toc a:hover, .privacy-toc li.active a {
  color: var(--primary);
  border-left-color: var(--primary);
}

.privacy-content {
  font-size: 1rem;
  line-height: 1.7;
}

.privacy-section {
  scroll-margin-top: 100px;
  margin-bottom: 3.5rem;
}

.privacy-section h2 {
  text-align: left;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 0.5rem;
  color: var(--text-primary);
}

.privacy-section p {
  margin-bottom: 1rem;
  color: var(--text-secondary);
}

.privacy-section ul {
  list-style-type: none;
  padding-left: 1rem;
  margin-bottom: 1rem;
}

.privacy-section li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
}

.privacy-section li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .hero-grid {
    gap: 2rem;
  }
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .privacy-layout {
    grid-template-columns: 1fr;
  }
  .privacy-sidebar {
    display: none; /* Hide TOC on smaller screens */
  }
}

@media (max-width: 768px) {
  header {
    padding: 1rem 0;
  }
  
  .mobile-menu-btn {
    display: block;
  }
  
  .nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background: rgba(7, 4, 15, 0.98);
    backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 2.5rem;
    z-index: 1050;
    border-left: 1px solid rgba(255, 255, 255, 0.08);
    transition: right 0.4s cubic-bezier(0.1, 0.9, 0.2, 1);
  }
  
  .nav-links.active {
    right: 0;
  }
  
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: center;
    padding-top: 4rem;
  }
  
  .hero-subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-buttons {
    justify-content: center;
  }
  
  .hero-badge-container {
    justify-content: center;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .simulator-container {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .carousel-slide {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 2.5rem 1.5rem;
  }
  
  .slide-image-container {
    order: -1;
  }
  
  .carousel-btn {
    width: 36px;
    height: 36px;
  }
  .carousel-btn.prev { left: 5px; }
  .carousel-btn.next { right: 5px; }
  
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
}

/* ==========================================================================
   PREMIUM LIGHT MODE OVERRIDES
   ========================================================================== */

/* Glass Panel Enhancements for Light Mode */
.glass-panel {
  background: var(--bg-card) !important;
  border: 1px solid var(--glass-border) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  box-shadow: 0 10px 35px rgba(15, 23, 42, 0.03), 0 1px 3px rgba(15, 23, 42, 0.02) !important;
}

.feature-card:hover {
  border-color: rgba(79, 70, 229, 0.15) !important;
  box-shadow: 0 20px 45px rgba(79, 70, 229, 0.06) !important;
  background: #ffffff !important;
}

/* Scrolled Header */
header.scrolled {
  background: rgba(255, 255, 255, 0.85) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.02) !important;
}

/* Secondary Button Details */
.btn-secondary {
  background: rgba(255, 255, 255, 0.6) !important;
  color: var(--text-primary) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.02) !important;
}

.btn-secondary:hover {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.25) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.05) !important;
}

/* Smartphone Mockup Frame Redesign */
.smartphone-frame {
  border: 11px solid #e2e8f0 !important; /* Platinum bezel */
  background: #ffffff !important;
  box-shadow: 0 30px 70px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}

.smartphone-frame::before {
  background: #e2e8f0 !important; /* Speaker bar matches bezel */
}

.screen-content {
  background-color: #ffffff !important; /* White phone screen */
}

.app-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.05) !important;
  background: rgba(255, 255, 255, 0.9) !important;
}

.app-brand {
  color: var(--text-primary) !important;
}

.app-stats {
  color: var(--text-muted) !important;
}

/* Simulated Map - Premium Light Theme Look */
.phone-map-container {
  background: #f1f5f9 !important; /* Premium light map gray */
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.map-svg path {
  stroke: rgba(15, 23, 42, 0.05) !important; /* Soft gray roads */
}

.map-card-overlay {
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}

.overlay-title {
  color: var(--text-primary) !important;
}

.overlay-sub {
  color: var(--accent-green) !important;
}

.live-badge {
  background: rgba(5, 150, 105, 0.1) !important;
  color: var(--accent-green) !important;
}

.phone-info-card {
  background: rgba(15, 23, 42, 0.015) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.phone-card-title {
  color: var(--text-primary) !important;
}

.phone-card-badge {
  background: rgba(79, 70, 229, 0.08) !important;
  color: var(--primary) !important;
}

.phone-weather-item {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.01) !important;
}

.phone-weather-label {
  color: var(--text-muted) !important;
}

.phone-weather-val {
  color: var(--text-primary) !important;
}

.placeholder-card {
  background: rgba(15, 23, 42, 0.015) !important;
  border: 1px dashed rgba(15, 23, 42, 0.12) !important;
  color: var(--text-secondary) !important;
}

.placeholder-card:hover {
  background: rgba(15, 23, 42, 0.03) !important;
  border-color: var(--primary) !important;
}

.placeholder-icon {
  background: rgba(79, 70, 229, 0.08) !important;
  color: var(--primary) !important;
}

.placeholder-text {
  color: var(--text-primary) !important;
}

/* Simulator Form & Calculator Controls */
.sim-input-wrapper {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.01) !important;
}

.sim-input-wrapper:focus-within {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 12px rgba(79, 70, 229, 0.1) !important;
}

.sim-input-wrapper i {
  color: var(--text-muted) !important;
}

.sim-input {
  color: var(--text-primary) !important;
}

.sim-results {
  background: rgba(15, 23, 42, 0.015) !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
}

.timeline-step {
  border-left: 2px dashed rgba(15, 23, 42, 0.08) !important;
}

.timeline-step::before {
  border: 2px solid #ffffff !important;
}

.timeline-step.origin::before {
  background: var(--accent-green) !important;
  box-shadow: 0 0 0 2px var(--accent-green-glow) !important;
}

.timeline-step.midway::before {
  background: var(--accent-amber) !important;
  box-shadow: 0 0 0 2px rgba(217, 119, 6, 0.2) !important;
}

.timeline-step.destination::before {
  background: var(--secondary) !important;
  box-shadow: 0 0 0 2px var(--secondary-glow) !important;
}

.step-loc {
  color: var(--text-primary) !important;
}

.step-weather {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.02) !important;
}

.sim-loader {
  background: rgba(255, 255, 255, 0.8) !important;
}

.spinner {
  border: 3px solid rgba(15, 23, 42, 0.06) !important;
  border-top: 3px solid var(--primary) !important;
}

/* Showcase Slide mock phone bezel */
.slide-phone-mock {
  border: 9px solid #e2e8f0 !important;
  background: #ffffff !important;
  box-shadow: 0 15px 40px rgba(15, 23, 42, 0.08) !important;
}

.slide-tag {
  background: rgba(79, 70, 229, 0.08) !important;
  color: var(--primary) !important;
}

/* Carousel Control buttons */
.carousel-btn {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: var(--text-primary) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.04) !important;
}

.carousel-btn:hover {
  background: var(--primary) !important;
  color: #ffffff !important;
  border-color: var(--primary) !important;
}

.dot {
  background: rgba(15, 23, 42, 0.1) !important;
}

.dot.active {
  background: var(--primary) !important;
}

/* Headings tags and pills */
.hero-tag {
  background: rgba(15, 23, 42, 0.03) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.8) !important;
  color: var(--text-primary) !important;
}

.hero-tag span {
  box-shadow: 0 0 10px var(--accent-green) !important;
}

.badge-item {
  color: var(--text-secondary) !important;
}

.badge-text {
  color: var(--text-muted) !important;
}

.pillar-card {
  background: rgba(255, 255, 255, 0.5) !important;
  border: 1px solid rgba(15, 23, 42, 0.04) !important;
  box-shadow: 0 4px 15px rgba(15, 23, 42, 0.02) !important;
}

.pillar-card:hover {
  background: #ffffff !important;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.04) !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
}

.pillar-icon {
  color: var(--primary) !important;
}

/* Pre-Launch specific splash elements */
.signup-form {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05) !important;
}

.signup-form:focus-within {
  border-color: var(--primary) !important;
  background: #ffffff !important;
  box-shadow: 0 0 20px rgba(79, 70, 229, 0.15) !important;
}

.signup-input {
  color: var(--text-primary) !important;
}

.success-box {
  background: rgba(5, 150, 105, 0.05) !important;
  border: 1px solid rgba(5, 150, 105, 0.15) !important;
  color: var(--text-secondary) !important;
}

.success-box i {
  color: var(--accent-green) !important;
}

.success-box h4 {
  color: var(--text-primary) !important;
}

.countdown-num {
  background: linear-gradient(135deg, var(--text-primary) 50%, var(--primary) 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 4px 20px rgba(79, 70, 229, 0.05) !important;
}

.countdown-label {
  color: var(--text-muted) !important;
}

/* Scrolled Footer Layout */
footer {
  border-top: 1px solid rgba(15, 23, 42, 0.06) !important;
  background: #f1f5f9 !important; /* Sleek light gray bottom backdrop */
}

.social-icon {
  background: rgba(255, 255, 255, 0.8) !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
  color: var(--text-secondary) !important;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.02) !important;
}

.social-icon:hover {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.15) !important;
}

.footer-bottom {
  border-top: 1px solid rgba(15, 23, 42, 0.05) !important;
}

/* Privacy Policy Layout overrides */
.privacy-hero {
  background: linear-gradient(180deg, rgba(79, 70, 229, 0.05) 0%, transparent 100%) !important;
}

.privacy-section h2 {
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: var(--text-primary) !important;
}

.privacy-section li b {
  color: var(--text-primary) !important;
}
