/* ============================================================
   MESA EV — MAIN STYLESHEET
   Dominant palette: white + red
   ============================================================ */

/* ---------- RESET & ROOT ---------- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --red: #e11b1b;
  --red-dark: #b00f0f;
  --red-glow: rgba(225, 27, 27, 0.6);
  --white: #ffffff;
  --white-soft: #f8f9fc;
  --gray-light: #eef0f5;
  --gray-mid: #a0a8b8;
  --black-rich: #0b0e14;
  --card-bg: rgba(255, 255, 255, 0.85);
  --shadow-3d: 0 25px 40px -12px rgba(0, 0, 0, 0.25),
               0 10px 20px -8px rgba(225, 27, 27, 0.15);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--white);
  color: var(--black-rich);
  line-height: 1.5;
  overflow-x: hidden;
  perspective: 1200px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3 {
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

h1 {
  font-size: clamp(2.8rem, 8vw, 5rem);
  text-transform: uppercase;
  background: linear-gradient(135deg, #1a1a1a 0%, #3a0000 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 10px rgba(225, 27, 27, 0.2);
}

h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  color: var(--black-rich);
  margin-bottom: 1rem;
}

.accent { color: var(--red); text-shadow: 0 0 15px var(--red-glow); }
.accent-red { color: var(--red); }

/* ---------- LAYOUT ---------- */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
  position: relative;
}

.section-header {
  text-align: center;
  margin-bottom: 48px;
}

.section-header p {
  color: var(--gray-mid);
  font-size: 1.2rem;
  max-width: 600px;
  margin: 1rem auto 0;
}

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 36px;
  border-radius: 60px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  border: none;
  text-decoration: none;
  background: var(--white);
  color: var(--black-rich);
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.02);
}

.btn-red {
  background: var(--red);
  color: var(--white);
  box-shadow: 0 15px 30px -8px var(--red-glow);
}

.btn-red:hover {
  background: var(--red-dark);
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 22px 35px -8px var(--red-glow);
}

.btn-outline-red {
  background: transparent;
  border: 2px solid var(--red);
  color: var(--red);
  box-shadow: none;
}

.btn-outline-red:hover {
  background: var(--red);
  color: var(--white);
  transform: translateY(-3px);
  box-shadow: 0 15px 30px -8px var(--red-glow);
}

.btn-lg {
  font-size: 1.2rem;
  padding: 20px 60px;
}

.muted-btn {
  border-color: #999;
  color: #777;
}

/* ---------- CARD 3D ---------- */
.card-3d {
  background: var(--card-bg);
  backdrop-filter: blur(8px);
  border-radius: 32px;
  padding: 32px;
  box-shadow: var(--shadow-3d);
  border: 1px solid rgba(255, 255, 255, 0.7);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  transform-style: preserve-3d;
  transform: rotateX(1deg) rotateY(1deg);
}

.card-3d:hover {
  transform: rotateX(0deg) rotateY(0deg) translateY(-8px);
  box-shadow: 0 35px 50px -15px rgba(225, 27, 27, 0.25),
              0 20px 30px -12px rgba(0, 0, 0, 0.2);
}

/* ---------- NAVBAR ---------- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: background 0.3s, backdrop-filter 0.3s, padding 0.3s;
}

.navbar.scrolled {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.05);
  padding: 12px 0;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-weight: 800;
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--black-rich);
  text-decoration: none;
}

.logo span {
  color: var(--red);
  text-shadow: 0 0 10px var(--red-glow);
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--black-rich);
  font-weight: 600;
  font-size: 0.95rem;
  transition: color 0.2s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0%;
  height: 2px;
  background: var(--red);
  transition: width 0.25s ease;
  border-radius: 2px;
}

.nav-links a:hover { color: var(--red); }
.nav-links a:hover::after { width: 100%; }

.nav-cta {
  background: var(--red);
  color: white !important;
  padding: 10px 24px !important;
  border-radius: 40px;
  box-shadow: 0 8px 20px -6px var(--red-glow);
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: scale(1.02);
}

.nav-cta::after { display: none; }

.hamburger {
  display: none;
  font-size: 2rem;
  color: var(--red);
  cursor: pointer;
}

/* ---------- HERO ---------- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: 100px;
  background: radial-gradient(circle at 70% 30%, rgba(225, 27, 27, 0.05) 0%, transparent 50%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.hero-content h1 { margin-bottom: 24px; }

.hero-content p {
  font-size: 1.25rem;
  color: #2a2a2a;
  max-width: 500px;
  margin-bottom: 40px;
  font-weight: 500;
}

.hero-actions {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  transform-style: preserve-3d;
  perspective: 800px;
}

.floating-car {
  width: 100%;
  max-width: 500px;
  filter: drop-shadow(0 30px 30px rgba(225, 27, 27, 0.25));
  animation: float 6s ease-in-out infinite;
  transform: rotateY(-5deg) rotateX(2deg);
  transition: transform 0.2s ease;
}

@keyframes float {
  0%   { transform: translateY(0px) rotateY(-5deg) rotateX(2deg); }
  50%  { transform: translateY(-20px) rotateY(-2deg) rotateX(0deg); }
  100% { transform: translateY(0px) rotateY(-5deg) rotateX(2deg); }
}

.car-glow {
  position: absolute;
  width: 80%;
  height: 40%;
  background: radial-gradient(circle, rgba(225, 27, 27, 0.3) 0%, transparent 70%);
  filter: blur(40px);
  bottom: 0;
  left: 10%;
  border-radius: 50%;
  z-index: -1;
}

/* ---------- SLIDER ---------- */
.slider-section {
  background: var(--white-soft);
  border-radius: 60px 60px 0 0;
  padding-bottom: 100px;
  position: relative;
  z-index: 2;
  box-shadow: 0 -20px 40px -20px rgba(0, 0, 0, 0.1);
}

.slider-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 40px;
  margin-top: 20px;
}

.slider-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.4, 1);
  cursor: grab;
  user-select: none;
}

.slider-track:active { cursor: grabbing; }

.car-slide {
  flex: 0 0 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.car-card {
  background: var(--white);
  border-radius: 48px;
  padding: 40px 30px;
  width: 100%;
  max-width: 900px;
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.2),
              0 0 0 1px rgba(225, 27, 27, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transform-style: preserve-3d;
  transition: transform 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
}

.car-card:hover { transform: translateY(-6px); }

.car-image-container {
  width: 100%;
  max-width: 500px;
  margin-bottom: 20px;
  filter: drop-shadow(0 20px 25px rgba(225, 27, 27, 0.2));
  transition: transform 0.3s ease;
}

.car-card:hover .car-image-container {
  transform: scale(1.02) rotateY(2deg);
}

.car-image-container svg {
  width: 100%;
  height: auto;
  display: block;
}

.car-name {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--black-rich);
}

.car-price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--red);
  margin-bottom: 16px;
  text-shadow: 0 0 15px rgba(225, 27, 27, 0.2);
}

.price-note {
  font-size: 1rem;
  color: #777;
  font-weight: 500;
}

.car-desc {
  color: #444;
  max-width: 550px;
  margin-bottom: 24px;
  font-size: 1.05rem;
}

.car-badge {
  background: var(--red);
  color: white;
  padding: 6px 18px;
  border-radius: 40px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  display: inline-block;
  margin-bottom: 16px;
  box-shadow: 0 8px 18px -6px var(--red-glow);
}

.badge-muted {
  background: #777;
  box-shadow: none;
}

.car-card.discontinued {
  opacity: 0.92;
  filter: grayscale(0.35);
}

.muted { color: #555 !important; }

/* ---------- SLIDER CONTROLS ---------- */
.slider-controls {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 24px;
  margin-top: 40px;
}

.slider-arrow {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 12px 25px -8px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.4rem;
  color: var(--red);
  transition: all 0.2s;
}

.slider-arrow:hover {
  background: var(--red);
  color: white;
  transform: scale(1.08);
  box-shadow: 0 18px 30px -8px var(--red-glow);
}

.slider-dots {
  display: flex;
  gap: 12px;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ccc;
  transition: all 0.3s;
  cursor: pointer;
}

.dot.active {
  background: var(--red);
  width: 36px;
  border-radius: 20px;
  box-shadow: 0 0 12px var(--red-glow);
}

.swipe-hint {
  text-align: center;
  color: var(--gray-mid);
  font-size: 0.9rem;
  margin-top: 16px;
  opacity: 0.7;
}

/* ---------- FEATURES ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}

.feature-card {
  text-align: center;
  padding: 48px 24px;
}

.feature-icon {
  font-size: 2.8rem;
  color: var(--red);
  margin-bottom: 24px;
  text-shadow: 0 0 20px var(--red-glow);
}

.feature-card h3 {
  font-size: 1.8rem;
  margin-bottom: 12px;
}

.feature-card p {
  color: #555;
  font-size: 1rem;
}

/* ---------- ABOUT MINI ---------- */
.about-mini {
  background: var(--black-rich);
  color: white;
  border-radius: 60px;
  padding: 60px;
  display: flex;
  align-items: center;
  gap: 60px;
  box-shadow: 0 40px 60px -20px rgba(0, 0, 0, 0.5),
              0 0 0 2px rgba(225, 27, 27, 0.3);
  margin: 40px 0;
}

.about-mini h2 {
  color: white;
  font-size: 2.8rem;
}

.about-mini p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.15rem;
  margin-bottom: 24px;
}

.about-mini .btn { background: var(--red); color: white; }

.about-mini-text { flex: 1; }

.about-mini-icon {
  flex: 1;
  display: flex;
  justify-content: center;
}

.about-mini-icon i {
  font-size: 8rem;
  color: var(--red);
  opacity: 0.6;
  text-shadow: 0 0 40px var(--red-glow);
}

/* ---------- INVEST CTA ---------- */
.invest-cta {
  background: linear-gradient(145deg, #ffffff, #fff0f0);
  border-radius: 60px;
  margin: 40px 24px;
}

.cta-center {
  text-align: center;
}

.cta-center h2 {
  font-size: clamp(2.5rem, 6vw, 4rem);
}

.cta-center p {
  font-size: 1.3rem;
  max-width: 600px;
  margin: 24px auto 40px;
  color: #333;
}

/* ---------- FOOTER ---------- */
footer {
  background: var(--black-rich);
  color: rgba(255, 255, 255, 0.7);
  padding: 60px 0 30px;
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-grid h4 {
  color: white;
  font-weight: 700;
  margin-bottom: 20px;
  font-size: 1.1rem;
}

.footer-grid a {
  display: block;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  margin-bottom: 12px;
  transition: color 0.2s;
  font-size: 0.95rem;
}

.footer-grid a:hover { color: var(--red); }

.footer-logo {
  color: white;
  margin-bottom: 20px;
}

.footer-tag { max-width: 300px; }

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.5);
}