/* ===== CSS Variables & Themes ===== */
:root {
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 16px;
  --radius-sm: 10px;
  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Dark theme (default) */
[data-theme="dark"] {
  --bg-primary: #0a0a0f;
  --bg-secondary: #12121a;
  --bg-card: #1a1a26;
  --bg-card-hover: #22223a;
  --text-primary: #f0f0f5;
  --text-secondary: #9999aa;
  --text-muted: #666678;
  --accent: #ff6b00;
  --accent-glow: rgba(255, 107, 0, 0.3);
  --accent-soft: rgba(255, 107, 0, 0.1);
  --border: rgba(255, 255, 255, 0.06);
  --border-hover: rgba(255, 255, 255, 0.12);
  --hero-gradient: linear-gradient(135deg, #0a0a0f 0%, #1a0a2e 50%, #0a0a0f 100%);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.4);
  --nav-bg: rgba(10, 10, 15, 0.85);
  --eco-card-bg: linear-gradient(135deg, #0d2818 0%, #1a1a26 100%);
  --timeline-line: #333;
  --bar-bg: rgba(255,255,255,0.06);
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #f5f5f8;
  --bg-secondary: #ffffff;
  --bg-card: #ffffff;
  --bg-card-hover: #f0f0f5;
  --text-primary: #1a1a2e;
  --text-secondary: #555566;
  --text-muted: #888899;
  --accent: #e65100;
  --accent-glow: rgba(230, 81, 0, 0.25);
  --accent-soft: rgba(230, 81, 0, 0.08);
  --border: rgba(0, 0, 0, 0.08);
  --border-hover: rgba(0, 0, 0, 0.15);
  --hero-gradient: linear-gradient(135deg, #f5f5f8 0%, #fff3e0 50%, #f5f5f8 100%);
  --card-shadow: 0 8px 32px rgba(0,0,0,0.08);
  --nav-bg: rgba(245, 245, 248, 0.85);
  --eco-card-bg: linear-gradient(135deg, #e8f5e9 0%, #ffffff 100%);
  --timeline-line: #ccc;
  --bar-bg: rgba(0,0,0,0.06);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

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

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

/* ===== Navbar ===== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: all var(--transition);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-size: 1.2rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition);
}

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

.nav-links a:hover::after {
  width: 100%;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  border: 2px solid var(--border);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  transform: rotate(15deg);
  box-shadow: 0 0 20px var(--accent-glow);
}

.mobile-menu {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.5rem;
  cursor: pointer;
}

/* ===== Hero ===== */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 100px 24px 60px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: var(--hero-gradient);
  z-index: 0;
}

.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: heroPulse 4s ease-in-out infinite;
}

@keyframes heroPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.6; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}

.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.8s ease;
}

.hero-title {
  font-size: clamp(3.5rem, 10vw, 8rem);
  font-weight: 900;
  line-height: 1;
  margin-bottom: 24px;
}

.title-line {
  display: block;
  animation: fadeInUp 0.8s ease 0.1s both;
}

.title-line.accent {
  background: linear-gradient(135deg, var(--accent), #ff9a56);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: fadeInUp 0.8s ease 0.2s both;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 48px;
  animation: fadeInUp 0.8s ease 0.3s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 48px;
  margin-bottom: 48px;
  animation: fadeInUp 0.8s ease 0.4s both;
}

.stat {
  text-align: center;
}

.stat-value {
  display: block;
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--accent);
}

.stat-unit {
  font-size: 1rem;
  color: var(--accent);
  font-weight: 600;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 600;
  transition: all var(--transition);
  animation: fadeInUp 0.8s ease 0.5s both;
}

.cta-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--accent-glow);
}

.cta-arrow {
  animation: bounce 2s ease infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(5px); }
}

.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  animation: fadeInUp 0.8s ease 0.6s both;
}

.scroll-mouse {
  width: 26px;
  height: 40px;
  border: 2px solid var(--text-muted);
  border-radius: 13px;
  display: flex;
  justify-content: center;
  padding-top: 8px;
}

.scroll-wheel {
  width: 4px;
  height: 10px;
  background: var(--accent);
  border-radius: 2px;
  animation: scrollAnim 2s ease infinite;
}

@keyframes scrollAnim {
  0% { opacity: 1; transform: translateY(0); }
  100% { opacity: 0; transform: translateY(12px); }
}

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

/* ===== Sections Common ===== */
.section {
  padding: 120px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-tag {
  display: inline-block;
  padding: 6px 16px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  margin-bottom: 16px;
}

.section-desc {
  color: var(--text-secondary);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== Specs ===== */
.specs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.spec-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.spec-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  opacity: 0;
  transition: opacity var(--transition);
}

.spec-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

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

.spec-icon {
  font-size: 2.5rem;
  margin-bottom: 16px;
}

.spec-card h3 {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 8px;
  font-weight: 500;
}

.spec-value {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 8px;
}

.spec-value small {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
}

.spec-card p {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.main-spec {
  background: linear-gradient(135deg, var(--accent-soft), var(--bg-card));
  border-color: var(--accent);
}

/* Specs Table */
.specs-table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-title {
  padding: 24px 32px;
  font-size: 1.2rem;
  border-bottom: 1px solid var(--border);
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table th,
.specs-table td {
  padding: 14px 32px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.specs-table th {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.specs-table tr:last-child td {
  border-bottom: none;
}

.specs-table tr:hover td {
  background: var(--bg-card-hover);
}

/* ===== Eco ===== */
.eco-section {
  background: var(--bg-secondary);
}

.eco-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 64px;
}

.eco-card {
  background: var(--eco-card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all var(--transition);
}

.eco-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.eco-number {
  font-size: 4rem;
  font-weight: 900;
  background: linear-gradient(135deg, #00c853, #69f0ae);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}

.eco-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.eco-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
}

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

.eco-comparison {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
}

.eco-comparison h3 {
  text-align: center;
  margin-bottom: 32px;
  font-size: 1.3rem;
}

.comparison-bars {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 700px;
  margin: 0 auto;
}

.bar-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bar-label {
  font-size: 0.9rem;
  font-weight: 600;
}

.bar-track {
  height: 40px;
  background: var(--bar-bg);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
  min-width: fit-content;
  padding: 0 16px;
}

.bar-fill.petrol {
  background: linear-gradient(90deg, #d32f2f, #f44336);
}

.bar-fill.hybrid {
  background: linear-gradient(90deg, #f57c00, #ffb74d);
}

.bar-fill.electric {
  background: linear-gradient(90deg, #2e7d32, #66bb6a);
}

.comparison-note {
  text-align: center;
  margin-top: 20px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== History / Timeline ===== */
.timeline {
  position: relative;
  max-width: 800px;
  margin: 0 auto;
  padding-left: 40px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--timeline-line);
}

.timeline-item {
  position: relative;
  margin-bottom: 48px;
  opacity: 1;
  transform: translateX(0);
}

.anim-ready .timeline-item {
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.6s ease;
}

.anim-ready .timeline-item.visible {
  opacity: 1;
  transform: translateX(0);
}

.timeline-dot {
  position: absolute;
  left: -33px;
  top: 4px;
  width: 16px;
  height: 16px;
  background: var(--accent);
  border-radius: 50%;
  border: 3px solid var(--bg-primary);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.timeline-date {
  display: inline-block;
  padding: 4px 12px;
  background: var(--accent-soft);
  border-radius: 50px;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.timeline-content h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.timeline-content p {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ===== Competitors ===== */
.competitors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.competitor-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}

.competitor-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--card-shadow);
}

.competitor-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 8px;
}

.competitor-header h3 {
  font-size: 1.2rem;
}

.competitor-badge {
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
}

.competitor-badge.rival {
  background: rgba(33, 150, 243, 0.15);
  color: #42a5f5;
}

.competitor-badge.benchmark {
  background: rgba(255, 107, 0, 0.15);
  color: var(--accent);
}

.competitor-badge.local {
  background: rgba(156, 39, 176, 0.15);
  color: #ba68c8;
}

.competitor-badge.price {
  background: rgba(76, 175, 80, 0.15);
  color: #81c784;
}

.compare-row {
  margin-bottom: 14px;
}

.compare-label {
  display: block;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 6px;
  font-weight: 500;
}

.compare-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.compare-fill {
  height: 24px;
  border-radius: 6px;
  background: var(--bar-bg);
  display: flex;
  align-items: center;
  padding: 0 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: width 1.2s ease;
}

.compare-fill.su7 {
  background: linear-gradient(90deg, var(--accent-soft), rgba(255, 107, 0, 0.2));
  color: var(--accent);
  border: 1px solid rgba(255, 107, 0, 0.2);
}

.competitor-verdict {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  color: var(--text-secondary);
  font-size: 0.9rem;
  font-style: italic;
}

/* ===== Footer ===== */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
}

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

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  font-weight: 600;
}

.footer-note {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu { display: block; }

  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--nav-bg);
    backdrop-filter: blur(20px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid var(--border);
  }

  .hero-stats {
    flex-direction: column;
    gap: 24px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
  }

  .competitors-grid {
    grid-template-columns: 1fr;
  }

  .specs-table {
    font-size: 0.85rem;
  }

  .specs-table th,
  .specs-table td {
    padding: 10px 16px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .hero-title {
    font-size: 3rem;
  }

  .section {
    padding: 80px 0;
  }

  .section-title {
    font-size: 1.8rem;
  }
}

/* ===== Scroll Animations ===== */
.fade-in {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}
