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

/* CSS Variables */
:root {
  /* Default Light Theme */
  --bg-page: #f8fafc;
  --bg-gradient: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-rgb: 79, 70, 229;
  --accent: #0f766e;
  --accent-light: #0d9488;
  --text-main: #0f172a;
  --text-muted: #475569;
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-bg-solid: #ffffff;
  --glass-border: rgba(15, 23, 42, 0.08);
  --shadow: 0 10px 30px rgba(79, 70, 229, 0.06);
  --nav-bg: rgba(248, 250, 252, 0.8);
  --timeline-num-bg: linear-gradient(135deg, #4f46e5, #6366f1);
  --logo-text-gradient: linear-gradient(to right, #4f46e5, #818cf8);
  --input-bg: #ffffff;
  --input-border: #cbd5e1;
  --input-focus: #4f46e5;
  --pulse-opacity: 0.15;
  --hero-gradient-overlay: linear-gradient(to bottom, var(--bg-page) 0%, rgba(248, 250, 252, 0.25) 30%, rgba(248, 250, 252, 0.25) 70%, var(--bg-page) 100%);
}

body.dark-theme {
  /* Dark Theme Override */
  --bg-page: #0a0f18;
  --bg-gradient: linear-gradient(135deg, #0a0f18 0%, #111827 100%);
  --primary: #8b5cf6;
  --primary-hover: #7c3aed;
  --primary-rgb: 139, 92, 246;
  --accent: #10b981;
  --accent-light: #34d399;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --card-bg: rgba(17, 24, 39, 0.7);
  --card-bg-solid: #111827;
  --glass-border: rgba(255, 255, 255, 0.08);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --nav-bg: rgba(10, 15, 24, 0.8);
  --timeline-num-bg: linear-gradient(135deg, #8b5cf6, #a78bfa);
  --logo-text-gradient: linear-gradient(to right, #a78bfa, #c4b5fd);
  --input-bg: #1f2937;
  --input-border: #374151;
  --input-focus: #8b5cf6;
  --pulse-opacity: 0.3;
  --hero-gradient-overlay: linear-gradient(to bottom, var(--bg-page) 0%, rgba(10, 15, 24, 0.25) 30%, rgba(10, 15, 24, 0.25) 70%, var(--bg-page) 100%);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg-gradient);
  background-attachment: fixed;
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

/* Glassmorphism Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Navigation */
nav {
  padding: 2rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.logo-container img {
  width: 50px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.logo-text {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  background: var(--logo-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

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

/* Theme Toggle Button */
.theme-toggle-btn {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  color: var(--text-main);
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.theme-toggle-btn:hover {
  transform: scale(1.08) rotate(15deg);
  border-color: var(--primary);
  color: var(--primary);
}

/* Hero Section */
.hero {
  min-height: 75vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  padding: 4rem 0;
  overflow: hidden; /* Prevent background layers from bleeding */
}

.hero::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: var(--primary);
  filter: blur(150px);
  opacity: var(--pulse-opacity);
  z-index: 1; /* Stay behind content but blend with bg */
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: pulse 8s ease-in-out infinite alternate;
  pointer-events: none;
}

@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(1); }
  100% { transform: translate(-50%, -50%) scale(1.2); }
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2; /* Sits behind text but above glow */
  overflow: hidden;
  pointer-events: none;
}

.hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--hero-gradient-overlay);
  z-index: 4;
}

.hero-bg .road-layer {
  height: 35px;
  bottom: 0;
  opacity: 0.85;
  border-top: 2px solid var(--glass-border);
  z-index: 5; /* Place above the overlay mask */
}

.hero-bg .clouds-layer {
  opacity: 0.45;
  height: 50%;
}

.hero-bg .mountains-layer {
  opacity: 0.2;
  height: 70%;
}

.hero-bg .scenery-layer {
  opacity: 0.22;
  height: 75%;
}

.hero-car {
  position: absolute;
  bottom: 25px; /* sit perfectly on top of the road */
  left: 15%;
  z-index: 6; /* Place above the road and overlay mask */
}

/* Side Car Animations & Design */
.side-car {
  position: relative;
  width: 80px;
  height: 40px;
}

.light-beam {
  position: absolute;
  top: 14px;
  left: 76px;
  width: 90px;
  height: 18px;
  background: linear-gradient(to right, rgba(253, 224, 71, 0.4) 0%, rgba(253, 224, 71, 0) 100%);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 70%);
  z-index: -1;
  pointer-events: none;
}

.car-chassis {
  position: absolute;
  top: 0;
  left: 0;
  animation: chassisVibrate 0.12s linear infinite alternate;
}

@keyframes chassisVibrate {
  0% { transform: translateY(0); }
  100% { transform: translateY(-1.5px); }
}

.car-wheel {
  position: absolute;
  bottom: 0px;
  width: 16px;
  height: 16px;
  animation: wheelSpin 0.4s linear infinite;
}

.wheel-front {
  right: 12px;
}

.wheel-back {
  left: 14px;
}

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

.exhaust-smoke {
  position: absolute;
  left: -12px;
  bottom: 4px;
  display: flex;
  gap: 3px;
}

.smoke-bubble {
  width: 6px;
  height: 6px;
  background: rgba(148, 163, 184, 0.6);
  border-radius: 50%;
  animation: puff 0.6s infinite ease-out;
}

.smoke-bubble.s1 { animation-delay: 0s; }
.smoke-bubble.s2 { animation-delay: 0.2s; }
.smoke-bubble.s3 { animation-delay: 0.4s; }

@keyframes puff {
  0% { transform: translate(0, 0) scale(0.6); opacity: 0.8; }
  50% { opacity: 0.4; }
  100% { transform: translate(-15px, -6px) scale(1.6); opacity: 0; }
}

.hero-content {
  position: relative;
  z-index: 10; /* Always sits on top of bg animations */
}

.hero h1 {
  font-size: 4.2rem;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  background: var(--logo-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 650px;
  margin: 0 auto 3rem auto;
}

/* Buttons */
.store-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 2rem;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1px solid var(--glass-border);
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.25);
  border-color: transparent;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--text-main);
}

.btn-secondary:hover {
  background: var(--card-bg-solid);
  transform: translateY(-3px);
  border-color: var(--primary);
}

/* Document Pages (Privacy, Terms) */
.doc-header {
  padding: 5rem 0 2rem 0;
  text-align: center;
  border-bottom: 1px solid var(--glass-border);
  margin-bottom: 3rem;
}

.doc-header h1 {
  font-size: 3rem;
  color: var(--text-main);
  margin-bottom: 1rem;
}

.doc-header p {
  color: var(--text-muted);
}

.doc-content {
  max-width: 800px;
  margin: 0 auto;
  padding-bottom: 6rem;
}

.doc-content h2 {
  font-size: 1.8rem;
  margin: 2.5rem 0 1rem 0;
  color: var(--primary);
}

.doc-content p {
  margin-bottom: 1.5rem;
  color: var(--text-muted);
}

.doc-content ul {
  margin: 0 0 1.5rem 2rem;
  color: var(--text-muted);
}

.doc-content li {
  margin-bottom: 0.5rem;
}

/* Stats Section */
.stats-section {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
  margin: 4rem 0;
}

.stat-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 20px;
  padding: 2.5rem 2rem;
  text-align: center;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow);
}

.stat-card:hover {
  transform: translateY(-5px);
  border-color: rgba(var(--primary-rgb), 0.3);
  box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15);
}

.stat-value {
  font-family: 'Outfit', sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(to right, var(--accent), var(--accent-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.5rem;
}

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

/* Section Common Styling */
.features-section, .how-it-works-section {
  padding: 6rem 0;
}

.features-section h2, .how-it-works-section h2 {
  font-size: 2.8rem;
  text-align: center;
  margin-bottom: 1rem;
  background: var(--logo-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  color: var(--text-muted);
  text-align: center;
  font-size: 1.15rem;
  margin-bottom: 4rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
}

.feature-card {
  background: var(--card-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  padding: 3rem 2rem;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(var(--primary-rgb), 0.4);
  box-shadow: 0 15px 40px rgba(var(--primary-rgb), 0.2);
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent-light));
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.feature-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: rgba(var(--primary-rgb), 0.1);
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  color: var(--primary);
  font-size: 1.8rem;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.05);
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary);
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 20px rgba(var(--primary-rgb), 0.3);
}

.feature-card h3 {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* How It Works (Tabs & Timeline) */
.tab-toggle {
  display: flex;
  justify-content: center;
  gap: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  padding: 0.5rem;
  border-radius: 100px;
  max-width: 320px;
  margin: 0 auto 4rem auto;
}

.toggle-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 0.8rem 2rem;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all 0.3s ease;
  flex: 1;
}

.toggle-btn.active {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.tab-content {
  animation: fadeIn 0.5s ease-in-out forwards;
}

.tab-content.hidden {
  display: none;
}

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

.timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 3rem;
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
}

.timeline-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

.timeline-number {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--timeline-num-bg);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.3rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.timeline-text h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.timeline-text p {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------
   NEW SIMULATOR SECTION (CAR NAV & PARALLAX SCENES)
   ------------------------------------------------------------- */
.simulator-section {
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 4rem;
  align-items: center;
  border-top: 1px solid var(--glass-border);
}

.sim-intro {
  text-align: left;
}

.sim-intro h2 {
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  background: var(--logo-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.sim-intro p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.sim-controls {
  display: flex;
  gap: 1rem;
}

.sim-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  border: 1px solid var(--glass-border);
  background: var(--card-bg);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.sim-btn.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.3);
}

.sim-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  transition: all 0.4s ease;
}

.sim-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(var(--primary-rgb), 0.1);
}

/* Travel Window - Parallax background */
.travel-window {
  position: relative;
  height: 180px;
  border-radius: 18px;
  overflow: hidden;
  background: linear-gradient(to bottom, #bae6fd, #e0f2fe);
  border: 1px solid var(--glass-border);
  transition: background 0.5s ease;
}

body.dark-theme .travel-window {
  background: linear-gradient(to bottom, #0c111d, #1e1b4b);
}

.parallax-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 100%;
  background-repeat: repeat-x;
  background-position: bottom;
  will-change: transform;
}

.clouds-layer {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="100" viewBox="0 0 400 100"><path d="M50 80 A20 20 0 0 1 80 60 A25 25 0 0 1 120 60 A20 20 0 0 1 150 80 Z" fill="%23ffffff" opacity="0.75"/><path d="M250 70 A15 15 0 0 1 270 55 A20 20 0 0 1 300 55 A15 15 0 0 1 320 70 Z" fill="%23ffffff" opacity="0.65"/></svg>');
  background-size: 400px 100px;
  height: 60%;
  opacity: 0.8;
  animation: scrollLeft 35s linear infinite;
}

.mountains-layer {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="120" viewBox="0 0 600 120"><path d="M 0 120 L 80 40 L 160 100 L 220 20 L 320 110 L 420 30 L 520 90 L 600 120 Z" fill="%2394a3b8" opacity="0.25"/><path d="M 0 120 L 120 70 L 240 110 L 380 60 L 480 100 L 600 50 L 600 120 Z" fill="%23cbd5e1" opacity="0.4"/></svg>');
  background-size: 600px 120px;
  height: 80%;
  animation: scrollLeft 20s linear infinite;
}

body.dark-theme .mountains-layer {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="120" viewBox="0 0 600 120"><path d="M 0 120 L 80 40 L 160 100 L 220 20 L 320 110 L 420 30 L 520 90 L 600 120 Z" fill="%231e293b" opacity="0.3"/><path d="M 0 120 L 120 70 L 240 110 L 380 60 L 480 100 L 600 50 L 600 120 Z" fill="%23334155" opacity="0.5"/></svg>');
}

.scenery-layer {
  height: 85%;
  animation: scrollLeft 10s linear infinite;
  transition: background-image 0.5s ease;
}

.city-scenery {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="120" viewBox="0 0 600 120"><rect x="10" y="30" width="35" height="90" fill="%23475569" opacity="0.45"/><rect x="55" y="60" width="45" height="60" fill="%2364748b" opacity="0.4"/><rect x="110" y="20" width="30" height="100" fill="%23475569" opacity="0.5"/><rect x="155" y="50" width="40" height="70" fill="%23334155" opacity="0.6"/><rect x="210" y="40" width="50" height="80" fill="%2364748b" opacity="0.4"/><rect x="270" y="10" width="35" height="110" fill="%23475569" opacity="0.5"/><rect x="320" y="70" width="55" height="50" fill="%23334155" opacity="0.6"/><rect x="390" y="30" width="45" height="90" fill="%2364748b" opacity="0.4"/><rect x="450" y="55" width="35" height="65" fill="%23475569" opacity="0.5"/><rect x="500" y="15" width="50" height="105" fill="%23334155" opacity="0.6"/></svg>');
  background-size: 600px 120px;
}

body.dark-theme .city-scenery {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="120" viewBox="0 0 600 120"><rect x="10" y="30" width="35" height="90" fill="%231e293b" opacity="0.7"/><rect x="55" y="60" width="45" height="60" fill="%230f172a" opacity="0.8"/><rect x="110" y="20" width="30" height="100" fill="%231e293b" opacity="0.7"/><rect x="155" y="50" width="40" height="70" fill="%23334155" opacity="0.6"/><rect x="210" y="40" width="50" height="80" fill="%230f172a" opacity="0.8"/><rect x="270" y="10" width="35" height="110" fill="%231e293b" opacity="0.7"/><rect x="320" y="70" width="55" height="50" fill="%23334155" opacity="0.6"/></svg>');
}

.tour-scenery {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="120" viewBox="0 0 600 120"><polygon points="30,120 50,70 70,120" fill="%230f766e" opacity="0.5"/><polygon points="60,120 85,60 110,120" fill="%23115e59" opacity="0.6"/><polygon points="100,120 120,80 140,120" fill="%230f766e" opacity="0.5"/><polygon points="150,120 180,50 210,120" fill="%23134e4a" opacity="0.7"/><polygon points="200,120 230,70 260,120" fill="%23115e59" opacity="0.6"/><polygon points="250,120 270,90 290,120" fill="%230f766e" opacity="0.5"/><polygon points="310,120 340,60 370,120" fill="%23134e4a" opacity="0.7"/><polygon points="360,120 390,75 420,120" fill="%23115e59" opacity="0.6"/><polygon points="430,120 460,50 490,120" fill="%23134e4a" opacity="0.7"/><polygon points="500,120 525,80 550,120" fill="%230f766e" opacity="0.5"/></svg>');
  background-size: 600px 120px;
}

body.dark-theme .tour-scenery {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="600" height="120" viewBox="0 0 600 120"><polygon points="30,120 50,70 70,120" fill="%23064e3b" opacity="0.6"/><polygon points="60,120 85,60 110,120" fill="%23022c22" opacity="0.7"/><polygon points="100,120 120,80 140,120" fill="%23064e3b" opacity="0.6"/><polygon points="150,120 180,50 210,120" fill="%23022c22" opacity="0.8"/><polygon points="200,120 230,70 260,120" fill="%23064e3b" opacity="0.6"/><polygon points="310,120 340,60 370,120" fill="%23022c22" opacity="0.8"/></svg>');
}

.road-layer {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 25px;
  background: #334155;
  border-top: 3px solid #e2e8f0;
  background-image: linear-gradient(to right, #ffffff 50%, transparent 50%);
  background-size: 60px 4px;
  background-repeat: repeat-x;
  background-position: center;
  animation: roadScroll 0.5s linear infinite;
}

body.dark-theme .road-layer {
  background: #1e293b;
  border-top: 3px solid #475569;
}

/* Map Screen - Navigation Simulator */
.nav-map {
  background: var(--card-bg);
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  height: 220px;
  position: relative;
  overflow: hidden;
}

.map-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 30px 30px;
  background-image: 
    linear-gradient(to right, var(--glass-border) 1px, transparent 1px),
    linear-gradient(to bottom, var(--glass-border) 1px, transparent 1px);
  opacity: 0.6;
}

.route-path {
  fill: none;
  stroke: var(--primary);
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 8 6;
  animation: pathPulse 2s linear infinite;
}

.nav-car {
  width: 24px;
  height: 24px;
  offset-path: path('M 30,160 Q 150,40 250,170 T 450,80');
  offset-rotate: auto; /* automatically rotate car along direction of curve */
  offset-anchor: center; /* keep car centered on path */
  transform: translate(-50%, -50%); /* fallback centering */
  animation: driveAlong 8s linear infinite;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 5;
  filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.25));
}

.gps-pointer {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
  box-shadow: 0 0 10px #10b981;
  transform: translate(-50%, -50%);
  z-index: 4;
}

.gps-pointer.start {
  left: 30px;
  top: 160px;
}

.gps-pointer.end {
  left: 450px;
  top: 80px;
}

.map-overlay-panel {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-size: 0.8rem;
  z-index: 6;
  box-shadow: var(--shadow);
  max-width: 180px;
  text-align: left;
}

.map-overlay-panel h4 {
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.map-matching-ticker {
  position: absolute;
  bottom: 10px;
  right: 10px;
  left: 10px;
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
  box-shadow: var(--shadow);
}

.ticker-match-name {
  font-weight: 700;
  color: var(--text-main);
}

.nav-pulse-dot {
  width: 8px;
  height: 8px;
  background-color: var(--accent-light);
  border-radius: 50%;
  position: relative;
}

.nav-pulse-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: var(--accent-light);
  border-radius: 50%;
  animation: mapPulse 1.5s ease-out infinite;
  top: 0;
  left: 0;
}

/* Animations */
@keyframes scrollLeft {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes roadScroll {
  0% { background-position-x: 0; }
  100% { background-position-x: -60px; }
}

@keyframes pathPulse {
  to { stroke-dashoffset: -14; }
}

@keyframes driveAlong {
  0% { offset-distance: 0%; }
  100% { offset-distance: 100%; }
}

@keyframes mapPulse {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(3.5); opacity: 0; }
}


/* -------------------------------------------------------------
   NEW CONSOLE / SIMULATOR APP MODAL
   ------------------------------------------------------------- */
.console-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.console-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.console-container {
  width: 90%;
  max-width: 650px;
  background: #0b0f19;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 480px;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  transform: scale(0.9);
}

.console-modal.active .console-container {
  transform: scale(1);
}

.console-header {
  background: #1e293b;
  padding: 0.75rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.console-dots {
  display: flex;
  gap: 0.5rem;
}

.console-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.dot-red { background: #ef4444; }
.dot-yellow { background: #eab308; }
.dot-green { background: #22c55e; }

.console-title {
  color: #94a3b8;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
}

.console-close {
  background: transparent;
  border: none;
  color: #64748b;
  cursor: pointer;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.console-close:hover {
  color: #f1f5f9;
}

.console-body {
  padding: 1.5rem;
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  color: #38bdf8;
  flex: 1;
  overflow-y: auto;
  line-height: 1.5;
  text-align: left;
}

.console-line {
  margin-bottom: 0.5rem;
  white-space: pre-wrap;
}

.console-input {
  color: #f1f5f9;
}

.console-success {
  color: #4ade80;
}

.console-warning {
  color: #fbbf24;
}

.console-progress {
  color: #a78bfa;
}

/* App Simulator revealed after CLI script finishes */
.app-simulator-wrapper {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: #0f172a;
}

.phone-casing {
  width: 270px;
  height: 400px;
  background: #000000;
  border: 12px solid #334155;
  border-radius: 38px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  font-family: 'Inter', sans-serif;
  color: #0f172a;
  text-align: left;
}

.phone-header {
  background: #4f46e5;
  color: white;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.phone-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.5rem;
  background: #f1f5f9;
  overflow-y: auto;
}

.phone-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 0.75rem;
  font-size: 0.75rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}

.phone-card h5 {
  font-weight: 700;
  margin-bottom: 0.25rem;
  color: #4f46e5;
}

.phone-btn {
  background: #4f46e5;
  color: white;
  border: none;
  padding: 0.6rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: background 0.2s;
  font-family: 'Outfit', sans-serif;
}

.phone-btn:hover {
  background: #4338ca;
}


/* -------------------------------------------------------------
   NEW SUPPORT & FAQ SECTION
   ------------------------------------------------------------- */
.support-section {
  padding: 6rem 0;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 4rem;
  border-top: 1px solid var(--glass-border);
}

.support-info {
  text-align: left;
}

.support-info h2 {
  font-size: 2.8rem;
  margin-bottom: 1rem;
  background: var(--logo-text-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.support-info p {
  color: var(--text-muted);
  font-size: 1.15rem;
  margin-bottom: 3rem;
}

.support-form-card {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow);
  border-radius: 24px;
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}

.form-group {
  margin-bottom: 1.5rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--text-main);
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 0.85rem 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text-main);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15);
}

.form-submit-btn {
  width: 100%;
  padding: 1rem;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 12px;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(var(--primary-rgb), 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.form-submit-btn:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(var(--primary-rgb), 0.35);
}

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  border-top-color: white;
  animation: spin 1s ease-in-out infinite;
  display: none;
}

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

/* Form success overlay */
.form-status-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--card-bg-solid);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 10;
}

.form-status-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.success-icon {
  width: 70px;
  height: 70px;
  background: #d1fae5;
  color: #059669;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin-bottom: 1.5rem;
  animation: bounceIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

body.dark-theme .success-icon {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
}

.success-title {
  font-size: 1.5rem;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.success-text {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.success-ticket {
  font-family: monospace;
  background: var(--bg-page);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  border: 1px solid var(--glass-border);
  font-size: 0.85rem;
  color: var(--text-main);
}

/* FAQ Accordion styling */
.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.faq-item {
  background: var(--card-bg-solid);
  border: 1px solid var(--glass-border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: rgba(var(--primary-rgb), 0.2);
}

.faq-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  user-select: none;
}

.faq-header h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
}

.faq-icon {
  color: var(--primary);
  font-size: 1.25rem;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  align-items: center;
}

.faq-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(var(--primary-rgb), 0.015);
}

.faq-content {
  padding: 0 1.5rem 1.25rem 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: left;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-item.active {
  border-color: rgba(var(--primary-rgb), 0.3);
}

@keyframes bounceIn {
  0% { transform: scale(0.3); opacity: 0; }
  50% { transform: scale(1.1); opacity: 0.8; }
  70% { transform: scale(0.9); opacity: 0.9; }
  100% { transform: scale(1); opacity: 1; }
}


/* Footer */
footer {
  border-top: 1px solid var(--glass-border);
  padding: 3rem 0;
  margin-top: 5rem;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 2rem;
}

.footer-links {
  display: flex;
  gap: 1.5rem;
}

.footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.3s ease;
}

.footer-links a:hover {
  color: var(--text-main);
}

@media (max-width: 992px) {
  .simulator-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  .support-section {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

@media (max-width: 768px) {
  .hero h1 {
    font-size: 3rem;
  }
  .nav-links {
    display: none;
  }
  .stats-section {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .timeline {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .timeline-item {
    flex-direction: row;
    text-align: left;
    gap: 1.5rem;
    align-items: flex-start;
  }
  .timeline-number {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}
