/* ═══════════════════════════════════════════════════════════════
   CME EV Bike — Premium Design System
   A dark-themed, glassmorphic design system for an electric
   motorcycle brand. Built for performance, beauty, and impact.
   ═══════════════════════════════════════════════════════════════ */

/* ─────────────────────────────────────────────
   1. CSS Custom Properties
   ───────────────────────────────────────────── */
:root {
  --bg-primary: #0a0a0f;
  --bg-secondary: #111118;
  --bg-tertiary: #1a1a25;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.08);
  --accent: #00e676;
  --accent-dark: #00c853;
  --accent-glow: rgba(0, 230, 118, 0.15);
  --accent-glow-strong: rgba(0, 230, 118, 0.3);
  --text-primary: #ffffff;
  --text-secondary: #b0b0c0;
  --text-muted: #707080;
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-border: rgba(255, 255, 255, 0.1);
  --glass-blur: 20px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-glow: 0 0 30px rgba(0, 230, 118, 0.15);
  --font-body: 'Inter', sans-serif;
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;

  color-scheme: dark;
}

/* ─────────────────────────────────────────────
   2. Modern CSS Reset
   ───────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--bg-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* ─────────────────────────────────────────────
   3. Scrollbar Styling
   ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: var(--accent-glow-strong);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--accent-glow-strong) var(--bg-secondary);
}

/* ─────────────────────────────────────────────
   4. Typography
   ───────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  text-wrap: balance;
  color: var(--text-primary);
}

h1 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}

h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  font-weight: 600;
}

p {
  text-wrap: pretty;
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-accent {
  color: var(--accent);
}

/* ─────────────────────────────────────────────
   5. Utility Classes
   ───────────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.section-padding {
  padding: 6rem 0;
}

.section-heading {
  font-size: clamp(2rem, 4vw, 3rem);
  text-align: center;
  margin-bottom: 1rem;
}

.section-subtitle {
  text-align: center;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto 3.5rem;
  font-size: 1.05rem;
}

/* Section divider gradient line */
.section + .section::before {
  content: '';
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-glow-strong), transparent);
  margin-bottom: 0;
}

/* content-visibility for performance on below-fold sections */
.section.section-padding {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* ─────────────────────────────────────────────
   6. Scroll Reveal Animation
   ───────────────────────────────────────────── */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* Scroll-driven animation enhancement for modern browsers */
@supports (animation-timeline: view()) {
  .reveal-on-scroll {
    animation: scrollReveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 30%;
  }

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

/* ─────────────────────────────────────────────
   7. Buttons
   ───────────────────────────────────────────── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: var(--accent);
  color: #000;
  font-weight: 600;
  font-size: 1rem;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.btn-primary:hover {
  background: var(--accent-dark);
  box-shadow: var(--shadow-glow), 0 8px 25px rgba(0, 230, 118, 0.2);
  transform: translateY(-2px);
}

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

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 2rem;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid var(--accent);
  border-radius: var(--radius-xl);
  cursor: pointer;
  transition: all var(--transition-normal);
  text-decoration: none;
  white-space: nowrap;
}

.btn-secondary:hover {
  background: var(--accent-glow);
  box-shadow: 0 0 20px rgba(0, 230, 118, 0.1);
  transform: translateY(-2px);
}

.btn-secondary:active {
  transform: translateY(0);
}

.btn-text {
  background: none;
  border: none;
  color: var(--accent);
  cursor: pointer;
  font-weight: 500;
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
}

.btn-text:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.85rem;
}

/* ─────────────────────────────────────────────
   8. Navigation
   ───────────────────────────────────────────── */
#main-nav {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 10, 15, 0.8);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-bottom: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

#main-nav.scrolled {
  background: rgba(10, 10, 15, 0.95);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.3);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
  gap: 2rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  transition: opacity var(--transition-fast);
  flex-shrink: 0;
}

.logo:hover {
  opacity: 0.85;
}

.logo-img {
  height: 48px;
  width: auto;
  display: block;
}

.logo-img-footer {
  height: 40px;
  width: auto;
  display: block;
}

.nav-links {
  display: none;
  gap: 0.25rem;
}

.nav-links li a {
  padding: 0.5rem 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 0.9rem;
  transition: all var(--transition-fast);
  border-radius: var(--radius-sm);
  position: relative;
}

.nav-links li a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width var(--transition-normal);
  border-radius: 1px;
}

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

.nav-links li a:hover::after,
.nav-links li a.active::after {
  width: 60%;
}

.nav-cta {
  display: none;
  padding: 0.625rem 1.5rem;
  font-size: 0.875rem;
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all var(--transition-normal);
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile nav open state */
.nav-links.active {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  width: 100%;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  padding: 1rem 0;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: slideDown 0.3s ease;
}

.nav-links.active li a {
  padding: 0.875rem 1.5rem;
  display: block;
  font-size: 1rem;
}

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

/* ─────────────────────────────────────────────
   9. Hero Section
   ───────────────────────────────────────────── */
#hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: radial-gradient(ellipse 50% 50% at 60% 50%, var(--accent-glow) 0%, transparent 70%),
              var(--bg-primary);
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 3rem;
  padding-top: 6rem;
  padding-bottom: 4rem;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  margin-bottom: 1.25rem;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: var(--text-secondary);
  max-width: 520px;
  margin: 0 auto 2rem;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero-image {
  position: relative;
  max-width: 700px;
  width: 100%;
  animation: float 6s ease-in-out infinite;
}

.hero-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 120%;
  background: radial-gradient(circle, var(--accent-glow-strong) 0%, rgba(0, 230, 118, 0.08) 40%, transparent 70%);
  z-index: 0;
  pointer-events: none;
  filter: blur(40px);
}

.hero-image img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 60px rgba(0, 230, 118, 0.15));
}

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

/* ─────────────────────────────────────────────
   10. About / Why Choose CME
   ───────────────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.about-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  text-align: center;
  transition: all var(--transition-normal);
}

.about-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
  border-color: rgba(0, 230, 118, 0.2);
}

.about-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
  color: var(--accent);
  transition: all var(--transition-normal);
}

.about-card:hover .about-icon {
  background: var(--accent-glow-strong);
  box-shadow: 0 0 20px var(--accent-glow);
}

.about-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.about-card p {
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   11. Design Gallery
   ───────────────────────────────────────────── */
.gallery-wrapper {
  position: relative;
}

.gallery-container {
  display: flex;
  gap: 1.5rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-container::-webkit-scrollbar {
  display: none;
}

.gallery-item {
  min-width: 85%;
  scroll-snap-align: center;
  border-radius: var(--radius-lg);
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  transition: all var(--transition-normal);
}

.gallery-item:hover {
  border-color: var(--accent-glow-strong);
  box-shadow: 0 0 40px rgba(0, 230, 118, 0.08);
}

.gallery-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  transition: transform var(--transition-slow);
}

.gallery-item:hover img {
  transform: scale(1.03);
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid var(--glass-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-normal);
  z-index: 10;
}

.gallery-nav:hover {
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-glow);
}

.gallery-prev {
  left: 1rem;
}

.gallery-next {
  right: 1rem;
}

.gallery-nav svg {
  display: block;
}

/* ─────────────────────────────────────────────
   12. Features
   ───────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.feature-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}

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

.feature-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 230, 118, 0.3);
  box-shadow: var(--shadow-glow);
  background: var(--bg-card-hover);
}

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

.feature-icon {
  color: var(--accent);
  margin-bottom: 1.25rem;
  transition: transform var(--transition-normal);
}

.feature-card:hover .feature-icon {
  transform: scale(1.1);
}

.feature-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.feature-card p {
  font-size: 0.92rem;
  line-height: 1.7;
}

/* ─────────────────────────────────────────────
   13. Specifications
   ───────────────────────────────────────────── */
.specs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.spec-item {
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-subtle);
  border-left: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  transition: all var(--transition-fast);
}

.spec-item:nth-child(odd) {
  background: rgba(255, 255, 255, 0.02);
}

.spec-item:nth-child(even) {
  background: var(--bg-secondary);
}

.spec-item:last-child {
  border-bottom: none;
}

.spec-item:hover {
  background: var(--accent-glow);
  border-left-color: var(--accent);
}

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

.spec-value {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-primary);
}

/* ─────────────────────────────────────────────
   14. Performance / Stats
   ───────────────────────────────────────────── */
.stats-grid {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
  padding: 2rem 1.5rem;
  min-width: 140px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.stat-item:hover {
  border-color: var(--accent-glow-strong);
  box-shadow: var(--shadow-glow);
  transform: translateY(-4px);
}

.stat-number {
  display: block;
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 0.25rem;
}

.stat-unit {
  display: block;
  font-size: 1rem;
  color: var(--text-secondary);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-muted);
  font-weight: 600;
}

/* ─────────────────────────────────────────────
   15. Pricing
   ───────────────────────────────────────────── */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  align-items: center;
}

.pricing-card {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  padding: 2.5rem 2rem;
  text-align: center;
  position: relative;
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2);
}

.pricing-card.featured {
  border-color: var(--accent);
  background: rgba(0, 230, 118, 0.03);
  box-shadow: var(--shadow-glow);
  order: -1;
}

.pricing-card.featured:hover {
  box-shadow: 0 0 50px rgba(0, 230, 118, 0.2);
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #000;
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-name {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.pricing-price {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 2rem;
  line-height: 1;
}

.pricing-features {
  margin-bottom: 2rem;
  text-align: left;
}

.pricing-features li {
  padding: 0.625rem 0;
  color: var(--text-secondary);
  font-size: 0.95rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.pricing-features li:last-child {
  border-bottom: none;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.pricing-card .btn-primary,
.pricing-card .btn-secondary {
  width: 100%;
}

/* ─────────────────────────────────────────────
   16. Testimonials
   ───────────────────────────────────────────── */
.testimonials-container {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1rem 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.testimonials-container::-webkit-scrollbar {
  display: none;
}

.testimonial-card {
  min-width: 300px;
  max-width: 400px;
  flex-shrink: 0;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: 2rem;
  scroll-snap-align: start;
  transition: all var(--transition-normal);
}

.testimonial-card:hover {
  border-color: rgba(0, 230, 118, 0.2);
  box-shadow: var(--shadow-glow);
  transform: translateY(-3px);
}

.testimonial-quote {
  font-style: italic;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-secondary);
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 1.5rem;
}

.testimonial-quote::before {
  content: '"';
  position: absolute;
  left: 0;
  top: -0.25rem;
  font-size: 3rem;
  color: var(--accent);
  font-family: Georgia, serif;
  line-height: 1;
  opacity: 0.5;
}

.testimonial-author {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 1rem;
}

.testimonial-role {
  color: var(--text-muted);
  font-size: 0.85rem;
  margin-bottom: 0.75rem;
}

.testimonial-rating {
  color: #ffd700;
  font-size: 1rem;
  letter-spacing: 3px;
}

/* ─────────────────────────────────────────────
   17. Warranty
   ───────────────────────────────────────────── */
.warranty-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.warranty-card {
  text-align: center;
  padding: 2.5rem 2rem;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition-normal);
}

.warranty-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 230, 118, 0.2);
  box-shadow: var(--shadow-glow);
}

.warranty-icon {
  color: var(--accent);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.warranty-icon svg {
  transition: transform var(--transition-normal);
}

.warranty-card:hover .warranty-icon svg {
  transform: scale(1.15);
}

.warranty-card h3 {
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.warranty-card p {
  font-size: 0.95rem;
  max-width: 300px;
  margin: 0 auto;
}

/* ─────────────────────────────────────────────
   18. FAQ
   ───────────────────────────────────────────── */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  border-bottom: 1px solid var(--border-subtle);
}

.faq-question {
  width: 100%;
  padding: 1.5rem 0;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-primary);
  background: none;
  border: none;
  text-align: left;
  transition: color var(--transition-fast);
  gap: 1rem;
  min-height: 44px;
}

.faq-question:hover {
  color: var(--accent);
}

.faq-question::after {
  content: '+';
  font-size: 1.5rem;
  color: var(--accent);
  transition: transform var(--transition-normal);
  flex-shrink: 0;
  width: 24px;
  text-align: center;
}

.faq-item.active .faq-question::after {
  content: '−';
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
  padding: 0;
}

.faq-item.active .faq-answer {
  max-height: 300px;
  padding-bottom: 1.5rem;
}

.faq-answer p {
  color: var(--text-secondary);
  line-height: 1.8;
  font-size: 0.95rem;
}

/* ─────────────────────────────────────────────
   19. Contact Form
   ───────────────────────────────────────────── */
.contact-form {
  max-width: 600px;
  margin: 0 auto;
  transition: all var(--transition-normal);
}

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

.form-group label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.875rem 1rem;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 1rem;
  transition: all var(--transition-normal);
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group input:user-invalid,
.form-group select:user-invalid,
.form-group textarea:user-invalid {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #ff4444;
  box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.15);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-muted);
}

.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23707080' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group textarea {
  min-height: 120px;
  resize: vertical;
}

.contact-form .btn-primary {
  width: 100%;
  padding: 1rem;
  font-size: 1.05rem;
}

.contact-form.shake {
  animation: shake 0.5s ease;
}

/* Form success message */
.form-success {
  display: none;
  text-align: center;
  padding: 3rem 2rem;
  animation: fadeInUp 0.5s ease;
}

.form-success.visible {
  display: block;
}

.form-success svg {
  margin: 0 auto 1.5rem;
}

.form-success h3 {
  font-size: 1.75rem;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.form-success p {
  color: var(--text-secondary);
  font-size: 1.05rem;
}

/* ─────────────────────────────────────────────
   20. Footer
   ───────────────────────────────────────────── */
#main-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding: 4rem 0 2rem;
}

.footer-logo {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.footer-tagline {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-heading {
  font-weight: 600;
  margin-bottom: 1rem;
  color: var(--text-primary);
  font-size: 0.95rem;
}

.footer-links li {
  margin-bottom: 0.625rem;
}

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

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

.footer-links li:not(:has(a)) {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.social-icons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  padding: 2rem 0;
  border-top: 1px solid var(--border-subtle);
}

.social-icons a {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  transition: all var(--transition-normal);
  border: 1px solid var(--border-subtle);
}

.social-icons a:hover {
  background: var(--accent);
  color: #000;
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 230, 118, 0.2);
}

.social-icons a svg {
  display: block;
}

.copyright {
  text-align: center;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* ─────────────────────────────────────────────
   21. Cookie Banner
   ───────────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: rgba(17, 17, 24, 0.95);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border-top: 1px solid var(--glass-border);
  padding: 1.25rem 1.5rem;
  animation: cookieSlideUp 0.5s ease;
  transition: transform 0.4s ease;
}

.cookie-banner.cookie-hidden {
  transform: translateY(100%);
}

.cookie-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.cookie-content p {
  color: var(--text-secondary);
  font-size: 0.875rem;
  margin: 0;
  flex: 1;
  min-width: 200px;
}

.cookie-buttons {
  display: flex;
  gap: 0.75rem;
  flex-shrink: 0;
  flex-wrap: wrap;
}

@keyframes cookieSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ─────────────────────────────────────────────
   22. Keyframe Animations
   ───────────────────────────────────────────── */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

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

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

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

/* ─────────────────────────────────────────────
   23. Responsive — Tablet (768px+)
   ───────────────────────────────────────────── */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
    flex-direction: row;
    position: static;
    width: auto;
    background: none;
    border: none;
    padding: 0;
    box-shadow: none;
  }

  .nav-links li a {
    padding: 0.5rem 0.75rem;
  }

  .nav-cta {
    display: inline-flex;
  }

  .hamburger {
    display: none;
  }

  .about-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .specs-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .spec-item:nth-last-child(2),
  .spec-item:last-child {
    border-bottom: none;
  }

  .pricing-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-card.featured {
    order: 0;
    grid-column: 1 / -1;
    max-width: 420px;
    margin: 0 auto;
  }

  .warranty-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-item {
    min-width: 70%;
  }

  .testimonial-card {
    min-width: 340px;
  }

  .stats-grid {
    gap: 2.5rem;
  }
}

/* ─────────────────────────────────────────────
   24. Responsive — Desktop (1200px+)
   ───────────────────────────────────────────── */
@media (min-width: 1200px) {
  .hero-container {
    flex-direction: row;
    text-align: left;
    gap: 4rem;
    padding-top: 0;
    padding-bottom: 0;
    min-height: calc(100dvh - 80px);
  }

  .hero-content {
    flex: 1;
  }

  .hero-subtitle {
    margin-left: 0;
    margin-right: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-image {
    flex: 1;
    max-width: 600px;
  }

  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .pricing-card.featured {
    transform: scale(1.05);
    grid-column: auto;
    max-width: none;
  }

  .pricing-card.featured:hover {
    transform: scale(1.07);
  }

  .footer-grid {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }

  .gallery-item {
    min-width: 60%;
  }

  .stats-grid {
    gap: 3rem;
  }

  .stat-item {
    padding: 2.5rem 2rem;
    min-width: 180px;
  }
}

/* ─────────────────────────────────────────────
   25. Touch & Accessibility
   ───────────────────────────────────────────── */
@media (max-width: 767px) {
  .btn-primary,
  .btn-secondary,
  .faq-question,
  .gallery-nav,
  .hamburger,
  .social-icons a {
    min-height: 44px;
    min-width: 44px;
  }

  .section-padding {
    padding: 4rem 0;
  }

  .stats-grid {
    gap: 1rem;
  }

  .stat-item {
    flex: 1 1 calc(50% - 0.5rem);
    padding: 1.5rem 1rem;
  }

  .stat-number {
    font-size: 2.5rem;
  }

  .testimonial-card {
    min-width: 280px;
  }

  .cookie-content {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }

  .cookie-buttons {
    justify-content: center;
    width: 100%;
  }
}

/* Focus visible for keyboard navigation */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Reduced motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal-on-scroll {
    opacity: 1;
    transform: none;
  }

  .hero-image {
    animation: none;
  }
}

/* ─────────────────────────────────────────────
   26. Subtle Extra Polish
   ───────────────────────────────────────────── */

/* Selection color */
::selection {
  background: var(--accent);
  color: #000;
}

/* Accent glow effect on section headings */
.section-heading .text-accent {
  text-shadow: 0 0 30px var(--accent-glow-strong);
}

/* Smooth image loading */
img {
  opacity: 1;
  transition: opacity var(--transition-normal);
}

img[loading="lazy"] {
  opacity: 0;
}

img[loading="lazy"].loaded,
img[loading="lazy"]:not([src=""]) {
  opacity: 1;
}

/* Link-less footer items */
.footer-links li {
  color: var(--text-muted);
  font-size: 0.9rem;
}
