
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #171a20;
}

.navbar {
  width: 100%;
  height: 44px;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 4px;
  width: 118px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 25px;
}

.nav-links a {
  color: #171a20;
  text-decoration: none;
  font-size: 11px;
  white-space: nowrap;
}

.nav-links a:hover {
  background: #f0f0f0;
  padding: 7px;
  border-radius: 4px;
}

.nav-icons {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-icons button {
  border: none;
  background: transparent;
  color: #171a20;
  font-size: 19px;
  cursor: pointer;
}

.menu-toggle {
  display: none;
}

/* HERO */

.hero {
  height: calc(100svh - 34px);
  min-height: 450px;
  max-height: 800px;
  position: relative;
  overflow: hidden;
  background: #a9bdcf;
}

.hero-image,
.overlay {
  position: absolute;
  inset: 0;
}

.hero-image {
  background-image: url("images/hero-1.jpg");
  background-size: cover;
  background-position: center;
  transition: background-image 0.3s ease;
}

.overlay {
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.08),
    transparent 40%,
    rgba(0, 0, 0, 0.06)
  );
  pointer-events: none;
}

.hero-content {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 15px;
  right: 15px;
  text-align: center;
  color: #fff;
}

.hero-content h1 {
  font-size: clamp(27px, 3.6vw, 40px);
  font-weight: 600;
  letter-spacing: -1px;
  margin-bottom: 5px;
}

.hero-content p {
  font-size: clamp(13px, 1.5vw, 15px);
  font-weight: 500;
}

.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin-top: 22px;
}

.btn {
  width: 160px;
  max-width: 45%;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 11px;
  border-radius: 3px;
  transition: background 0.2s ease;
}

.btn-primary {
  background: #5269e8;
  color: #fff;
  font-weight: 600;
}

.btn-primary:hover {
  background: #4055ce;
}

.btn-light {
  background: #fff;
  color: #171a20;
}

.btn-light:hover {
  background: #eee;
}

/* SLIDER ARROWS */

.arrow {
  position: absolute;
  top: 54%;
  transform: translateY(-50%);
  z-index: 3;
  width: 32px;
  height: 34px;
  border: none;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.9);
  color: #171a20;
  font-size: 26px;
  cursor: pointer;
}

.arrow-left {
  left: 28px;
}

.arrow-right {
  right: 28px;
}

/* SLIDER DOTS */

.dots {
  position: absolute;
  bottom: 11px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 3;
}

.dot {
  width: 9px;
  height: 9px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
}

.dot.active {
  background: #fff;
}

/* MOBILE NAVIGATION */

@media (max-width: 760px) {
  .navbar {
    position: absolute;
    top: 0;
    left: 0;
    height: 44px;
    padding: 0 16px;
    background: transparent;
  }

  .logo {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    width: 118px;
    height: auto;
    object-fit: contain;
  }

  .nav-icons {
    display: none;
  }

  .menu-toggle {
    display: block;
    padding: 7px 12px;
    border: none;
    border-radius: 3px;
    background: rgba(230, 235, 245, 0.48);
    color: #fff;
    font-family: inherit;
    font-size: 10px;
    font-weight: 600;
    cursor: pointer;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: 44px;
    left: 0;
    right: 0;
    padding: 12px 20px;
    background: rgba(255, 255, 255, 0.98);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links a {
    padding: 13px 8px;
    font-size: 13px;
    border-radius: 3px;
  }

  .hero {
    height: 65svh;
    min-height: 480px;
    max-height: none;
  }

  .hero-image {
    background-position: center;
  }

  .hero-content {
    top: 65px;
  }

  .hero-content h1 {
    font-size: clamp(25px, 6vw, 34px);
    letter-spacing: -0.6px;
  }

  .hero-content p {
    font-size: 13px;
  }

  .hero-buttons {
    margin-top: 18px;
    gap: 8px;
  }

  .btn {
    width: 155px;
    height: 36px;
    font-size: 11px;
  }

  .arrow {
    width: 29px;
    height: 32px;
    font-size: 23px;
  }

  .arrow-left {
    left: 12px;
  }

  .arrow-right {
    right: 12px;
  }
}

@media (max-width: 380px) {
  .navbar {
    padding: 0 12px;
  }

  .logo {
    font-size: 11px;
    letter-spacing: 1.5px;
  }

  .menu-toggle {
    padding: 7px 10px;
  }

  .hero-content h1 {
    font-size: 25px;
  }

  .btn {
    height: 34px;
    font-size: 10px;
  }
}

/* FULL SELF-DRIVING SECTION */

.fsd-section {
  width: calc(100% - 72px);
  max-width: 1500px;
  min-height: 335px;
  margin: 36px auto;
  display: grid;
  grid-template-columns: 40.5% 59.5%;
  overflow: hidden;
  border-radius: 7px;
  background: #f4f4f4;
}

/* LEFT CONTENT */

.fsd-content {
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fsd-content h2 {
  max-width: 350px;
  font-size: clamp(25px, 2.9vw, 32px);
  line-height: 1.18;
  font-weight: 600;
  letter-spacing: -0.8px;
  color: #171a20;
}

.fsd-content h2 span {
  display: block;
  background: linear-gradient(90deg, #263b73, #5275df);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.fsd-description {
  margin-top: 4px;
  color: #444950;
  font-size: 12px;
  line-height: 1.5;
}

.fsd-description sup {
  font-size: 8px;
}

.fsd-stats {
  display: flex;
  align-items: flex-start;
  gap: 22px;
  margin-top: 28px;
}

.fsd-stat h3 {
  font-size: clamp(19px, 2.3vw, 26px);
  line-height: 1.2;
  font-weight: 500;
  letter-spacing: -0.6px;
  white-space: nowrap;
  color: #171a20;
}

.fsd-stat p {
  margin-top: 4px;
  font-size: 12px;
  color: #444950;
  white-space: nowrap;
}

/* BUTTONS */

.fsd-buttons {
  display: flex;
  gap: 6px;
  margin-top: 40px;
}

.fsd-btn {
  min-width: 0;
  flex: 1;
  height: 33px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.fsd-btn-dark {
  background: #171a20;
  color: white;
  font-weight: 600;
}

.fsd-btn-dark:hover {
  background: #393c42;
}

.fsd-btn-light {
  background: white;
  color: #171a20;
}

.fsd-btn-light:hover {
  background: #e7e7e7;
}

/* RIGHT IMAGE */

.fsd-media {
  position: relative;
  min-width: 0;
  min-height: 335px;
  overflow: hidden;
  background: #222;
}

.fsd-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.fsd-caption {
  position: absolute;
  left: 15px;
  right: 15px;
  bottom: 15px;
  z-index: 1;
  color: #fff;
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.fsd-indicators {
  position: absolute;
  bottom: 17px;
  right: 18px;
  display: flex;
  gap: 5px;
  z-index: 2;
}

.fsd-indicators span {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
}

.fsd-indicators span.active {
  background: white;
}

/* TABLET */

@media (max-width: 800px) {
  .fsd-section {
    width: calc(100% - 32px);
    grid-template-columns: 42% 58%;
    min-height: 300px;
  }

  .fsd-content {
    padding: 22px 18px;
  }

  .fsd-content h2 {
    font-size: clamp(22px, 3.4vw, 28px);
  }

  .fsd-stats {
    gap: 14px;
    margin-top: 22px;
  }

  .fsd-stat h3 {
    font-size: clamp(17px, 2.5vw, 22px);
  }

  .fsd-stat p {
    font-size: 10px;
  }

  .fsd-buttons {
    margin-top: 30px;
  }

  .fsd-media {
    min-height: 300px;
  }
}

/* MOBILE FSD SECTION */
@media (max-width: 600px) {
  .fsd-section {
    width: calc(100% - 28px);
    margin: 24px auto;
    display: flex;
    flex-direction: column;
    border-radius: 7px;
    overflow: hidden;
  }

  /* Text appears at the top */
  .fsd-content {
    order: 1;
    width: 100%;
    padding: 24px 20px;
  }

  .fsd-content h2 {
    font-size: 28px;
    line-height: 1.18;
  }

  .fsd-description {
    font-size: 12px;
  }

  .fsd-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    margin-top: 22px;
  }

  .fsd-stat h3 {
    font-size: 20px;
  }

  .fsd-stat p {
    font-size: 11px;
  }

  .fsd-buttons {
    display: flex;
    gap: 8px;
    margin-top: 26px;
  }

  .fsd-btn {
    flex: 1;
    height: 38px;
    font-size: 11px;
  }

  /* Image appears below the text */
  .fsd-media {
    order: 2;
    position: relative;
    width: 100%;
    height: auto;
    min-height: 0;
    aspect-ratio: 16 / 9;
    overflow: hidden;
  }

  .fsd-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .fsd-caption {
    bottom: 12px;
    font-size: 10px;
  }

  .fsd-indicators {
    bottom: 8px;
    right: 10px;
  }
}

/* ==============================
   VEHICLE CAROUSEL
============================== */

.vehicle-carousel {
  width: 100%;
  padding: 0 0 14px;
  overflow: hidden;
  background: #fff;
}

.vehicle-track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 0 36px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  box-sizing: border-box;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 36px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.vehicle-track::-webkit-scrollbar {
  display: none;
}

.vehicle-card {
  position: relative;
  flex: 0 0 75%;
  height: 500px;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
  background: #292c32;
  color: #fff;
  scroll-snap-align: start;
  isolation: isolate;
}

.vehicle-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
}

.vehicle-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.05) 15%,
    transparent 38%,
    rgba(0, 0, 0, 0.78) 100%
  );
  pointer-events: none;
}

.vehicle-tag {
  position: absolute;
  top: 26px;
  left: 26px;
  right: 20px;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 600;
}

.vehicle-info {
  position: absolute;
  left: 26px;
  right: 26px;
  bottom: 26px;
}

.vehicle-info h2 {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 600;
}

.vehicle-info p {
  margin-top: 5px;
  font-size: 16px;
  line-height: 1.4;
}

.vehicle-info sup {
  font-size: 10px;
}

.mobile-break {
  display: none;
}

.vehicle-buttons {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.vehicle-btn {
  flex: 1 1 0;
  min-width: 0;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}

.vehicle-btn.blue {
  background: #5269e8;
  color: #fff;
}

.vehicle-btn.white {
  background: #fff;
  color: #171a20;
}

.vehicle-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 16px;
}

.vehicle-dot {
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #909090;
  cursor: pointer;
}

.vehicle-dot.active {
  background: #171a20;
}

/* TABLET */

@media (min-width: 601px) and (max-width: 800px) {
  .vehicle-track {
    gap: 14px;
    padding-left: 24px;
    padding-right: 24px;
    scroll-padding-left: 24px;
  }

  .vehicle-card {
    flex-basis: 78%;
    height: 440px;
  }

  .vehicle-info {
    left: 20px;
    right: 20px;
    bottom: 20px;
  }

  .vehicle-info h2 {
    font-size: 34px;
  }

  .vehicle-buttons {
    gap: 8px;
    margin-top: 20px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .vehicle-carousel {
    width: 100%;
    padding-bottom: 12px;
    overflow: hidden;
  }

  .vehicle-track {
    display: flex;
    gap: 16px;

    /* Visible gap before the first card */
    padding-left: 15px;
    padding-right: 15px;

    width: 100%;
    box-sizing: border-box;
    scroll-padding-left: 15px;
  }

  .vehicle-card {
    flex: 0 0 84%;
    width: 84%;
    height: 580px;
    min-height: 0;
    max-height: none;
    border-radius: 10px;
  }

  .vehicle-tag {
    top: 24px;
    left: 20px;
    right: 16px;
    font-size: 16px;
  }

  .vehicle-info {
    left: 20px;
    right: 20px;
    bottom: 22px;
  }

  .vehicle-info h2 {
    font-size: clamp(34px, 8vw, 44px);
    line-height: 1.15;
    letter-spacing: -0.8px;
  }

  .mobile-break {
    display: initial;
  }

  .vehicle-info p {
    font-size: 16px;
  }

  .vehicle-buttons {
    display: flex;
    gap: 8px;
    margin-top: 24px;
  }

  .vehicle-btn {
    height: 44px;
    font-size: 13px;
  }

  .vehicle-dots {
    gap: 9px;
    margin-top: 16px;
  }

  .vehicle-dot {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .vehicle-track {
    gap: 12px;
    padding-left: 14px;
    padding-right: 14px;
    scroll-padding-left: 14px;
  }

  .vehicle-card {
    flex-basis: 86%;
    width: 86%;
    height: 520px;
  }

  .vehicle-tag {
    top: 20px;
    left: 16px;
    font-size: 14px;
  }

  .vehicle-info {
    left: 16px;
    right: 16px;
    bottom: 17px;
  }

  .vehicle-info h2 {
    font-size: 32px;
  }

  .vehicle-info p {
    font-size: 14px;
  }

  .vehicle-buttons {
    gap: 7px;
    margin-top: 20px;
  }

  .vehicle-btn {
    height: 40px;
    font-size: 12px;
  }
}

/* OFFERS AND INVENTORY */

.offers-inventory {
  width: calc(100% - 72px);
  max-width: 1500px;
  margin: 24px auto 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}

.promo-card {
  min-width: 0;
  overflow: hidden;
  border-radius: 10px;
  background: #f3f3f3;
}

.promo-image {
  display: none;
}

.promo-content {
  padding: 34px 30px 30px;
}

.promo-content h2 {
  font-size: clamp(27px, 3vw, 34px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.8px;
  color: #171a20;
}

.promo-content p {
  margin-top: 5px;
  color: #55585d;
  font-size: clamp(15px, 1.7vw, 20px);
  line-height: 1.35;
}

.promo-content u {
  text-underline-offset: 2px;
}

.promo-btn {
  min-height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  color: #171a20;
  border-radius: 5px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  transition: background 0.2s ease;
}

.promo-btn:hover {
  background: #e8e8e8;
}

.offers-card .promo-btn {
  width: 225px;
  max-width: 100%;
  margin-top: 18px;
}

.inventory-buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

/* TABLET */

@media (max-width: 800px) {
  .offers-inventory {
    width: calc(100% - 32px);
    gap: 16px;
  }

  .promo-content {
    padding: 25px 20px;
  }

  .promo-content h2 {
    font-size: 27px;
  }

  .promo-content p {
    font-size: 15px;
  }

  .promo-btn {
    min-height: 44px;
    font-size: 14px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .offers-inventory {
    width: calc(100% - 32px);
    margin: 20px auto 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .promo-card {
    width: 100%;
    border-radius: 12px;
  }

  .promo-image {
    display: block;
    width: 100%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
  }

  .offers-image {
    aspect-ratio: 1.3 / 1;
    background-image: url("images/offers-cars.jpg");
  }

  .inventory-image {
    aspect-ratio: 1.8 / 1;
    background-image: url("images/inventory-cars.jpg");
  }

  .promo-content {
    padding: 25px 24px 27px;
  }

  .promo-content h2 {
    font-size: clamp(29px, 7vw, 38px);
    line-height: 1.2;
    letter-spacing: -0.7px;
    font-weight: 600;
  }

  .promo-content p {
    margin-top: 5px;
    font-size: clamp(17px, 4.3vw, 23px);
    line-height: 1.35;
  }

  .offers-card .promo-btn {
    width: 100%;
    max-width: 275px;
    min-height: 61px;
    margin-top: 23px;
    font-size: 20px;
  }

  .inventory-buttons {
    gap: 12px;
    margin-top: 23px;
  }

  .inventory-buttons .promo-btn {
    min-height: 61px;
    font-size: 20px;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .offers-inventory {
    width: calc(100% - 24px);
    gap: 16px;
  }

  .promo-content {
    padding: 21px 18px 23px;
  }

  .promo-content h2 {
    font-size: 28px;
  }

  .promo-content p {
    font-size: 16px;
  }

  .offers-card .promo-btn,
  .inventory-buttons .promo-btn {
    min-height: 48px;
    font-size: 16px;
  }
}

/* ENERGY PRODUCTS CAROUSEL */

.energy-carousel {
  width: 100%;
  padding-bottom: 14px;
  overflow: hidden;
  background: #fff;
}

.energy-track {
  display: flex;
  gap: 20px;
  padding: 0 36px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-left: 36px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.energy-track::-webkit-scrollbar {
  display: none;
}

.energy-card {
  position: relative;
  flex: 0 0 75%;
  height: 550px;
  min-width: 0;
  overflow: hidden;
  border-radius: 9px;
  background: #252830;
  color: #fff;
  scroll-snap-align: start;
  isolation: isolate;
}

.energy-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.energy-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 15%,
    transparent 38%,
    rgba(0, 0, 0, 0.72) 100%
  );
  pointer-events: none;
}

/* Replace these image paths with your own images */
.solar-panels {
  background-image: url("images/solar-panels.jpg");
}

.powerwall {
  background-image: url("images/powerwall.jpg");
}

.solar-roof {
  background-image: url("images/solar-roof.jpg");
}

.wall-connector {
  background-image: url("images/wall-connector.jpg");
}

.supercharger {
  background-image: url("images/supercharger.jpg");
}

/* TEXT AND BUTTONS */

.energy-info {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
}

.energy-info h2 {
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.12;
  letter-spacing: -1px;
  font-weight: 600;
}

.energy-info p {
  margin-top: 5px;
  font-size: 18px;
  line-height: 1.4;
}

.energy-buttons {
  display: flex;
  gap: 10px;
  margin-top: 28px;
}

.energy-btn {
  flex: 1;
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.energy-btn.blue {
  background: #5269e8;
  color: #fff;
}

.energy-btn.white {
  background: #fff;
  color: #171a20;
}

/* DOTS */

.energy-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.energy-dot {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: #909090;
  cursor: pointer;
}

.energy-dot.active {
  background: #171a20;
}

/* TABLET */

@media (min-width: 601px) and (max-width: 800px) {
  .energy-track {
    gap: 14px;
    padding: 0 24px;
    scroll-padding-left: 24px;
  }

  .energy-card {
    flex-basis: 78%;
    height: 500px;
  }

  .energy-info {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }

  .energy-info h2 {
    font-size: 36px;
  }

  .energy-info p {
    font-size: 15px;
  }

  .energy-buttons {
    gap: 8px;
    margin-top: 22px;
  }

  .energy-btn {
    height: 44px;
    font-size: 13px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .energy-carousel {
    padding-bottom: 12px;
  }

  .energy-track {
    gap: 24px;
    padding: 0 15px;
    scroll-padding-left: 15px;
  }

  .energy-card {
    flex: 0 0 86%;
    height: 650px;
    min-height: 0;
    max-height: calc(100svh - 75px);
    border-radius: 11px;
  }

  .energy-image {
    background-position: center;
  }

  .energy-card::after {
    background: linear-gradient(
      to bottom,
      rgba(0, 0, 0, 0.02) 15%,
      transparent 38%,
      rgba(0, 0, 0, 0.78) 100%
    );
  }

  .energy-info {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .energy-info h2 {
    font-size: clamp(38px, 9vw, 52px);
    line-height: 1.15;
    letter-spacing: -1px;
  }

  .energy-info p {
    margin-top: 7px;
    font-size: 20px;
    line-height: 1.35;
  }

  .energy-buttons {
    gap: 12px;
    margin-top: 36px;
  }

  .energy-btn {
    height: 62px;
    font-size: 19px;
  }

  .energy-dots {
    gap: 11px;
    margin-top: 24px;
  }

  .energy-dot {
    width: 19px;
    height: 19px;
    flex-basis: 19px;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .energy-track {
    gap: 16px;
    padding: 0 12px;
    scroll-padding-left: 12px;
  }

  .energy-card {
    flex-basis: 88%;
    height: 560px;
  }

  .energy-info {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .energy-info h2 {
    font-size: 32px;
  }

  .energy-info p {
    font-size: 15px;
  }

  .energy-buttons {
    gap: 8px;
    margin-top: 24px;
  }

  .energy-btn {
    height: 44px;
    font-size: 12px;
  }

  .energy-dot {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }
}

/* FOOTER */

.site-footer {
  padding: 30px 4% 90px;
  background: #fff;
  color: #393c41;
}

.footer-notes {
  font-size: 14px;
  line-height: 1.7;
}

.footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 90px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

.footer-links::-webkit-scrollbar {
  display: none;
}

.footer-links a {
  flex: 0 0 auto;
  color: inherit;
  text-decoration: none;
  font-size: 14px;
}

/* STICKY BOTTOM BAR */

.sticky-bottom-bar {
  position: fixed;
  z-index: 1000;
  bottom: 0;
  left: 0;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 -3px 14px rgba(0, 0, 0, 0.08);
}

.sticky-bottom-bar a {
  min-width: 0;
  width: 307px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  border: 1px solid #d0d1d2;
  border-radius: 5px;
  background: #f5f5f5;
  color: #393c41;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

/* MOBILE FOOTER */

@media (max-width: 600px) {
  .site-footer {
    padding: 24px 16px 100px;
  }

  .footer-notes {
    font-size: 14px;
    line-height: 1.7;
  }

  .footer-links {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  justify-content: center;
  align-items: center;
  gap: 20px;
  margin-top: 90px;
  overflow-x: auto;
  white-space: nowrap;
  scrollbar-width: none;
}

  .footer-links a {
    font-size: 13px;
  }

  .sticky-bottom-bar {
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    gap: 0;
  }

  .sticky-bottom-bar a {
    display: none;
    width: 100%;
    height: 54px;
    font-size: 16px;
  }

  .sticky-bottom-bar a:last-child {
    display: flex;
  }
}

/* TESLA OPTIMUS STANDALONE CARD */

.optimus-section {
  width: calc(100% - 72px);
  max-width: 1500px;
  margin: 24px auto 36px;
}

.optimus-card {
  position: relative;
  width: 100%;
  height: 500px;
  overflow: hidden;
  border-radius: 10px;
  background: #252830;
  color: #fff;
  isolation: isolate;
}
.optimus-image3 {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/01_TeslaRoadster_SpaceXPackageConcept_White_DYNAMIC_3-4Front.avif");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.optimus-image {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/optimus.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.optimus-image2 {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: url("images/robovan.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.optimus-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.02) 20%,
    transparent 45%,
    rgba(0, 0, 0, 0.65) 100%
  );
  pointer-events: none;
}

.optimus-content {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 30px;
}

.optimus-content h2 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.12;
  font-weight: 600;
  letter-spacing: -1px;
}

.optimus-content p {
  margin-top: 6px;
  font-size: 18px;
  line-height: 1.4;
}

.optimus-buttons {
  display: flex;
  gap: 10px;
  margin-top: 26px;
}

.optimus-btn {
  flex: 1;
  min-width: 0;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
}

.optimus-btn.blue {
  background: #5269e8;
  color: #fff;
}

.optimus-btn.white {
  background: #fff;
  color: #171a20;
}

/* TABLET */

@media (max-width: 800px) {
  .optimus-section {
    width: calc(100% - 32px);
  }

  .optimus-card {
    height: 440px;
  }

  .optimus-content {
    left: 22px;
    right: 22px;
    bottom: 22px;
  }
}

/* MOBILE */

@media (max-width: 600px) {
  .optimus-section {
    width: calc(100% - 32px);
    margin: 20px auto 30px;
  }

  .optimus-card {
    height: 580px;
    border-radius: 11px;
  }

  .optimus-image {
    background-position: center;
  }

  .optimus-content {
    left: 24px;
    right: 24px;
    bottom: 24px;
  }

  .optimus-content h2 {
    font-size: clamp(38px, 9vw, 52px);
  }

  .optimus-content p {
    font-size: 18px;
  }

  .optimus-buttons {
    gap: 10px;
    margin-top: 26px;
  }

  .optimus-btn {
    height: 52px;
    font-size: 15px;
  }
}

/* SMALL PHONES */

@media (max-width: 380px) {
  .optimus-section {
    width: calc(100% - 24px);
  }

  .optimus-card {
    height: 520px;
  }

  .optimus-content {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }

  .optimus-content h2 {
    font-size: 34px;
  }

  .optimus-content p {
    font-size: 15px;
  }

  .optimus-btn {
    height: 44px;
    font-size: 12px;
  }
}

