/* ============================================================
   BMW M5 TOURING — Premium Landing Page CSS
   Design: Dark Theme + Emerald Green Accents
   ============================================================ */

:root {
  --green: #00d97e;
  --green-dim: #00a85e;
  --green-dark: #006644;
  --green-glow: rgba(0, 217, 126, 0.15);
  --green-glow-strong: rgba(0, 217, 126, 0.3);
  --bg-0: #030508;
  --bg-1: #080d10;
  --bg-2: #0c1419;
  --bg-3: #111c22;
  --surface: rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border: rgba(255, 255, 255, 0.08);
  --border-green: rgba(0, 217, 126, 0.25);
  --text-primary: #f0f4f8;
  --text-secondary: #8a9baa;
  --text-muted: #4a5a68;
  --font-main: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --font-display: 'Barlow', 'Inter', sans-serif;
  --ease-out-quart: cubic-bezier(0.25, 1, 0.5, 1);
  --ease-in-out-quart: cubic-bezier(0.76, 0, 0.24, 1);
  --transition: 0.4s var(--ease-out-quart);
  --nav-h: 80px;
  --section-pad: clamp(80px, 10vw, 140px);
}

/* ─── Reset ─────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: var(--font-main);
  background: var(--bg-0);
  color: var(--text-primary);
  overflow-x: hidden;
  cursor: auto;
}

img {
  display: block;
  max-width: 100%;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
}



/* ─── Loader ─────────────────────────────────────────────── */
.loader {
  position: fixed;
  inset: 0;
  background: var(--bg-0);
  z-index: 9990;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: opacity 0.8s var(--ease-out-quart), visibility 0.8s;
}

.loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.loader-logo svg {
  width: 80px;
  height: 80px;
  animation: loaderSpin 3s linear infinite;
}

@keyframes loaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.loader-line {
  width: 200px;
  height: 1px;
  background: var(--border);
  position: relative;
  overflow: hidden;
}

.loader-line::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  animation: loaderLine 1.5s ease-in-out infinite;
}

@keyframes loaderLine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

.loader-text {
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 6px;
  font-weight: 700;
  color: var(--text-primary);
}

.loader-sub {
  font-size: 11px;
  letter-spacing: 3px;
  color: var(--text-muted);
}

/* ─── Navbar ─────────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.5s var(--ease-out-quart),
    backdrop-filter 0.5s,
    border-color 0.5s,
    box-shadow 0.5s;
  border-bottom: 1px solid transparent;
}

.navbar.scrolled {
  background: rgba(3, 5, 8, 0.75);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.nav-container {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 0 clamp(20px, 4vw, 60px);
  gap: 20px;
}

.nav-logo {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.nav-logo:hover {
  transform: scale(1.08);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(24px, 3vw, 48px);
  margin: 0 auto;
}

.nav-link {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.75);
  position: relative;
  transition: color 0.3s;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 100%;
  height: 1.5px;
  background: var(--green);
  transition: right 0.35s var(--ease-out-quart);
}

.nav-link:hover {
  color: #fff;
}

.nav-link:hover::after {
  right: 0;
}

.nav-cta {
  flex-shrink: 0;
  padding: 10px 22px;
  border: 1.5px solid var(--green);
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  border-radius: 4px;
  transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}

.nav-cta:hover {
  background: var(--green);
  color: #000;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px var(--green-glow-strong);
}

.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
  flex-shrink: 0;
}

.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.nav-hamburger.active span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* Mobile Menu */
.mobile-menu {
  position: absolute;
  top: var(--nav-h);
  left: 0;
  right: 0;
  background: rgba(3, 5, 8, 0.96);
  backdrop-filter: blur(28px);
  border-bottom: 1px solid var(--border);
  padding: 24px clamp(20px, 4vw, 60px);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease-out-quart), opacity 0.4s;
}

.mobile-menu.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: all;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-link {
  font-size: 15px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-link:hover {
  color: var(--green);
}

.mobile-cta {
  color: var(--green) !important;
  border-color: var(--green-dark) !important;
  font-weight: 700;
}

/* ─── Shared Section Styles ──────────────────────────────── */
.section-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 20px;
}

.section-label.centered {
  justify-content: center;
}

.label-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px var(--green);
  flex-shrink: 0;
  animation: dotPulse 2s ease-in-out infinite;
}

@keyframes dotPulse {

  0%,
  100% {
    box-shadow: 0 0 6px var(--green);
  }

  50% {
    box-shadow: 0 0 14px var(--green), 0 0 28px var(--green-glow);
  }
}

.section-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 24px;
}

.section-headline.centered {
  text-align: center;
}

.text-accent {
  color: var(--green);
}

/* ─── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.04em;
  border-radius: 6px;
  transition: all 0.35s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
  white-space: nowrap;
}

.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn:hover::before {
  opacity: 1;
}

.btn-primary {
  background: var(--green);
  color: #000;
  border: 2px solid var(--green);
  box-shadow: 0 4px 20px var(--green-glow);
}

.btn-primary:hover {
  background: #00f090;
  border-color: #00f090;
  transform: translateY(-3px);
  box-shadow: 0 12px 40px var(--green-glow-strong);
}

.btn-secondary {
  background: transparent;
  color: rgba(255, 255, 255, 0.9);
  border: 2px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.5);
  color: #fff;
  transform: translateY(-3px);
}

.btn-ghost {
  background: transparent;
  color: rgba(255, 255, 255, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
}

.btn-large {
  padding: 20px 44px;
  font-size: 15px;
}

.play-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ─── Glassmorphism ──────────────────────────────────────── */
.glass {
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

/* ─── Reveal Animations ──────────────────────────────────── */
[data-reveal] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s var(--ease-out-quart),
    transform 0.8s var(--ease-out-quart);
}

[data-reveal].revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ─── SEQUENCE SECTION (Apple Style 3D Scroll) ────────────────────────── */
.sequence-section {
  position: relative;
  height: 330vh;
  min-height: 2600px;
  background: linear-gradient(180deg, #000 0%, #000 82%, var(--bg-1) 100%);
  margin-bottom: -1px;
}

.sequence-section::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: clamp(120px, 18vh, 240px);
  z-index: 3;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0), var(--bg-1) 88%);
}

.seq-sticky {
  position: relative;
  top: 0;
  height: 100vh;
  width: 100vw;
  overflow: hidden;
}

#hero-sequence {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: block;
  background: #000;
}

.seq-content {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.seq-text {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 100%;
  max-width: 900px;
  padding: 0 clamp(20px, 4vw, 60px);
  opacity: 0;
}

.seq-text-1 {
  opacity: 1;
}

.seq-text-4 {
  pointer-events: auto;
}

.seq-heading {
  font-family: var(--font-display);
  font-size: clamp(48px, 6vw, 90px);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.9);
}

.seq-sub {
  font-size: clamp(16px, 1.5vw, 22px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.6;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9);
}

.seq-indicator {
  z-index: 10;
}

.hero-label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--green);
  opacity: 1;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(36px, 4.5vw, 68px);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.04em;
}

.headline-line {
  display: block;
  overflow: hidden;
}

.headline-line span {
  display: block;
}

.headline-accent {
  color: var(--green);
}

.hero-subheadline {
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.75;
  color: var(--text-secondary);
  font-weight: 300;
  opacity: 0;
  transform: translateY(20px);
}




/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
  z-index: 2;
  animation: scrollFade 3s ease-in-out infinite;
}

@keyframes scrollFade {

  0%,
  100% {
    opacity: 0.4;
    transform: translateX(-50%) translateY(0);
  }

  50% {
    opacity: 0.8;
    transform: translateX(-50%) translateY(-4px);
  }
}

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}

.scroll-wheel {
  width: 3px;
  height: 6px;
  background: var(--green);
  border-radius: 3px;
  animation: wheelScroll 2s ease-in-out infinite;
}

@keyframes wheelScroll {
  0% {
    transform: translateY(0);
    opacity: 1;
  }

  100% {
    transform: translateY(10px);
    opacity: 0;
  }
}

/* ─── ABOUT ────────────────────────────────────────────────── */
.about {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg-1);
  overflow: hidden;
}

.about-bg-lines {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 150, 90, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 90, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}

.about-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}

.about-image-wrap {
  position: relative;
}

.about-image-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.about-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}

.about-image-frame:hover .about-img {
  transform: scale(1.04);
}

.about-img-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 80, 50, 0.2) 0%, transparent 60%);
}

.about-img-accent-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0.5;
}

.about-img-accent-line.top {
  top: 0;
}

.about-img-accent-line.bottom {
  bottom: 0;
}

.about-floating-badge {
  position: absolute;
  bottom: -20px;
  right: -20px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-color: var(--border-green);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 24px var(--green-glow);
}

.badge-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 900;
  color: var(--green);
  line-height: 1;
}

.badge-text {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-align: center;
  color: var(--text-secondary);
  text-transform: uppercase;
}

.about-content {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.about-description {
  font-size: clamp(15px, 1.2vw, 18px);
  line-height: 1.8;
  color: var(--text-secondary);
  font-weight: 300;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.feature-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(0, 150, 90, 0.1);
  border: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.feature-desc {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ─── PERFORMANCE ─────────────────────────────────────────── */
.performance-section {
  position: relative;
  padding: var(--section-pad) 0;
  background: var(--bg-0);
  overflow: hidden;
}

.perf-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.perf-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 150, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 90, 0.04) 1px, transparent 1px);
  background-size: 80px 80px;
}

.perf-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 150, 90, 0.08) 0%, transparent 65%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  animation: glowPulse 5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    opacity: 0.6;
    transform: translate(-50%, -50%) scale(0.95);
  }

  50% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.05);
  }
}

.perf-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 1;
}

.perf-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.perf-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease-out-quart), border-color 0.4s, box-shadow 0.4s;
}

.perf-card:hover {
  transform: translateY(-12px) scale(1.02);
  border-color: rgba(0, 217, 126, 0.4);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5), 0 0 40px var(--green-glow);
}

.perf-card-inner {
  padding: 40px 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  position: relative;
  z-index: 1;
}

.perf-card-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 150, 90, 0.15) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.perf-card:hover .perf-card-glow {
  opacity: 1;
}

.perf-card-icon {
  margin-bottom: 16px;
}

.perf-number {
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: white;
  line-height: 1;
}

.perf-decimal-wrap {
  display: flex;
  align-items: baseline;
  gap: 0;
}

.perf-decimal {
  font-family: var(--font-display);
  font-size: clamp(30px, 3vw, 44px);
  font-weight: 700;
  color: white;
  line-height: 1;
  letter-spacing: -0.03em;
}

.perf-text-stat {
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.perf-unit {
  font-size: 14px;
  font-weight: 600;
  color: var(--green);
  letter-spacing: 0.1em;
  min-height: 20px;
}

.perf-desc {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 4px;
  font-weight: 400;
}

.perf-tag {
  display: inline-block;
  padding: 4px 12px;
  border: 1px solid var(--border-green);
  border-radius: 20px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-top: 8px;
  background: rgba(0, 150, 90, 0.06);
}

/* Speed Trails */
.speed-trails {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.3;
}

.trail {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  left: 0;
  right: 0;
  animation: trailMove 3s ease-in-out infinite;
}

.t1 {
  top: 20%;
  animation-delay: 0s;
  animation-duration: 4s;
  width: 30%;
  left: -30%;
}

.t2 {
  top: 40%;
  animation-delay: 0.8s;
  animation-duration: 3.5s;
  width: 50%;
  left: -50%;
}

.t3 {
  top: 55%;
  animation-delay: 0.3s;
  animation-duration: 5s;
  width: 25%;
  left: -25%;
}

.t4 {
  top: 70%;
  animation-delay: 1.2s;
  animation-duration: 3s;
  width: 40%;
  left: -40%;
}

.t5 {
  top: 85%;
  animation-delay: 0.6s;
  animation-duration: 4.5s;
  width: 35%;
  left: -35%;
}

@keyframes trailMove {
  0% {
    transform: translateX(-10%);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  80% {
    opacity: 1;
  }

  100% {
    transform: translateX(150vw);
    opacity: 0;
  }
}

/* ─── DESIGN SECTION ─────────────────────────────────────── */
.design-section {
  padding: var(--section-pad) 0;
  background: var(--bg-1);
  position: relative;
  overflow: hidden;
}

.design-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
}

.design-intro {
  font-size: clamp(15px, 1.2vw, 18px);
  color: var(--text-secondary);
  line-height: 1.7;
  text-align: center;
  max-width: 600px;
  margin: 0 auto 80px;
  font-weight: 300;
}

.design-blocks {
  display: flex;
  flex-direction: column;
  gap: 80px;
}

.design-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 5vw, 80px);
  align-items: center;
}

.design-block.reverse {
  direction: rtl;
}

.design-block.reverse>* {
  direction: ltr;
}

.design-block-img-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  aspect-ratio: 4/3;
}

.design-block-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease-out-quart);
}

.design-block-img-wrap:hover .design-block-img {
  transform: scale(1.06);
}

.design-block-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0, 40, 25, 0.3) 0%, transparent 55%);
}

.design-block-number {
  position: absolute;
  top: 24px;
  left: 24px;
  font-family: var(--font-display);
  font-size: 64px;
  font-weight: 900;
  color: rgba(0, 217, 126, 0.08);
  line-height: 1;
  letter-spacing: -0.04em;
  pointer-events: none;
}

.design-block-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.design-block-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(0, 150, 90, 0.1);
  border: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-block-title {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.5vw, 34px);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.design-block-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.8;
  font-weight: 300;
}

.design-tag {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(0, 150, 90, 0.08);
  border: 1px solid var(--border-green);
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--green);
}

/* ─── TECHNOLOGY ─────────────────────────────────────────── */
.tech-section {
  padding: var(--section-pad) 0;
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.tech-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.tech-circuit {
  position: absolute;
  inset: 0;
  opacity: 0.06;
  background-image:
    radial-gradient(circle at 20% 50%, rgba(0, 150, 90, 0.3) 0%, transparent 30%),
    radial-gradient(circle at 80% 50%, rgba(0, 150, 90, 0.2) 0%, transparent 30%);
}

.tech-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 1;
}

.tech-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 60px;
}

.tech-card {
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-2);
  position: relative;
  transition: transform 0.4s var(--ease-out-quart), border-color 0.4s;
}

.tech-card:hover {
  transform: translateY(-10px) rotateX(3deg) rotateY(-3deg);
  border-color: rgba(0, 217, 126, 0.35);
}

.tech-card:hover .tech-card-bg-glow {
  opacity: 1;
}

.tech-card-inner {
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  z-index: 1;
  height: 100%;
}

.tech-card-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(0, 150, 90, 0.12) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}

.tech-card-icon-wrap {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: rgba(0, 150, 90, 0.08);
  border: 1px solid var(--border-green);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 6px;
  transition: background 0.3s, transform 0.3s;
}

.tech-card:hover .tech-card-icon-wrap {
  background: rgba(0, 150, 90, 0.16);
  transform: scale(1.1);
}

.tech-card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  line-height: 1.2;
}

.tech-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
  flex: 1;
}

.tech-card-footer {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.tech-tag {
  padding: 4px 10px;
  border: 1px solid var(--border-green);
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--green);
  background: rgba(0, 150, 90, 0.06);
}

/* ─── GALLERY ─────────────────────────────────────────────── */
.gallery-section {
  padding: var(--section-pad) 0;
  background: var(--bg-1);
  overflow: hidden;
}

.gallery-headline {
  margin-bottom: 60px;
}

.gallery-track-wrap {
  overflow: hidden;
  cursor: pointer;
}

.gallery-track-wrap:active {
  cursor: pointer;
}

.gallery-track {
  display: flex;
  gap: 20px;
  padding: 0 clamp(20px, 4vw, 60px) 20px;
  transition: transform 0.5s var(--ease-out-quart);
}

.gallery-item {
  flex-shrink: 0;
  width: clamp(280px, 35vw, 520px);
  aspect-ratio: 16/10;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  border: 1px solid var(--border);
  transition: border-color 0.3s, box-shadow 0.3s;
}

.gallery-item:hover {
  border-color: rgba(0, 217, 126, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5), 0 0 20px var(--green-glow);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-quart);
}

.gallery-item:hover img {
  transform: scale(1.06);
}

.gallery-item-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s;
}

.gallery-item:hover .gallery-item-overlay {
  opacity: 1;
}

.gallery-item-overlay span {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.9);
}

.gallery-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  margin-top: 40px;
  padding: 0 clamp(20px, 4vw, 60px);
}

.gallery-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s;
}

.gallery-btn:hover {
  border-color: var(--green);
  color: var(--green);
  background: rgba(0, 150, 90, 0.1);
  transform: scale(1.1);
}

.gallery-dots {
  display: flex;
  gap: 8px;
}

.gallery-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--border);
  transition: all 0.3s;
}

.gallery-dot.active {
  width: 24px;
  border-radius: 3px;
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}

/* ─── CTA ─────────────────────────────────────────────────── */
.cta-section {
  position: relative;
  padding: var(--section-pad) 0;
  overflow: hidden;
  background: var(--bg-0);
  min-height: 70vh;
  display: flex;
  align-items: center;
}

.cta-bg {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 50%, #0a2218 0%, var(--bg-0) 70%);
}

.cta-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  pointer-events: none;
}

.cta-blob-1 {
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0, 100, 60, 0.18) 0%, transparent 60%);
  top: -200px;
  right: -200px;
}

.cta-blob-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(0, 100, 60, 0.12) 0%, transparent 60%);
  bottom: -100px;
  left: -100px;
}

.cta-mesh {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(0, 150, 90, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 150, 90, 0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}

.cta-car-silhouette {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  overflow: hidden;
  opacity: 0.08;
  pointer-events: none;
}

.cta-car-img {
  width: 80%;
  object-fit: contain;
  filter: blur(1px) grayscale(0.3);
}

.cta-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  position: relative;
  z-index: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
}

.cta-headline {
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 88px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.02;
}

.cta-desc {
  font-size: clamp(15px, 1.3vw, 18px);
  color: var(--text-secondary);
  line-height: 1.75;
  font-weight: 300;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.cta-disclaimer {
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.cta-label-white .label-dot {
  background: var(--green);
}

/* ─── FOOTER ─────────────────────────────────────────────── */
.footer {
  background: var(--bg-1);
  border-top: 1px solid var(--border);
  padding: 60px 0 0;
}

.footer-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 60px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 60px;
  align-items: start;
}

.footer-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.footer-logo span {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-secondary);
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  justify-self: end;
}

.footer-col h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-col a {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-col a:hover {
  color: var(--green);
}

.footer-bottom {
  max-width: 1400px;
  margin: 0 auto;
  padding: 24px clamp(20px, 4vw, 60px);
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 48px;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 12px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  font-size: 12px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--text-secondary);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-content {
    grid-template-columns: 1fr 1fr;
  }

  .hero-stats {
    display: none;
  }

  .hero-car-wrap {
    grid-column: 2;
  }

  .perf-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .tech-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-cta {
    display: none;
  }

  .nav-hamburger {
    display: flex;
  }

  .hero-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-left {
    align-items: center;
  }

  .hero-label {
    justify-content: center;
  }

  .hero-car-wrap {
    order: -1;
  }

  .hero-car {
    width: 100%;
  }

  .about-container {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .about-floating-badge {
    display: none;
  }

  .design-block,
  .design-block.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }

  .design-block.reverse>* {
    direction: ltr;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-cols {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .perf-cards-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tech-cards-grid {
    grid-template-columns: 1fr;
  }

  .about-features {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-actions {
    justify-content: center;
  }

  .perf-number {
    font-size: 48px;
  }
}

@media (max-width: 420px) {
  .perf-cards-grid {
    grid-template-columns: 1fr;
  }

  .footer-cols {
    grid-template-columns: 1fr;
  }
}

/* ─── Accessibility ──────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  .hero-car {
    animation: none;
  }
}

/* ─── Selection ──────────────────────────────────────────── */
::selection {
  background: rgba(0, 217, 126, 0.25);
  color: white;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-0);
}

::-webkit-scrollbar-thumb {
  background: var(--green-dark);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--green);
}
