* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #08090b;
  --white: #ffffff;
  --muted: #a8abb2;
  --accent: #3e8bff;
  --surface: #111317;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 75px;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--black);
  color: var(--white);
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 58px;
  padding: 0 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(8, 9, 11, 0.94);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 4px;
  white-space: nowrap;
  width: 118px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  gap: 28px;
}

.nav-links a,
.cart-link {
  font-size: 12px;
  font-weight: 600;
  color: #e6e7eb;
  transition: color 0.2s ease;
}

.nav-links a:hover,
.cart-link:hover {
  color: var(--accent);
}

/* HERO */

.hero {
  min-height: calc(100svh - 58px);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  isolation: isolate;
  text-align: center;
  padding: 90px 24px 110px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    url("images/05_TeslaRoadster_SpaceXPackageConcept_White_DYNAMIC_3-4Rear (1).avif")
    center 55% / cover no-repeat,
    #16191f;
  transform: scale(1.02);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(
      180deg,
      rgba(0,0,0,0.18) 0%,
      rgba(0,0,0,0.28) 40%,
      rgba(0,0,0,0.9) 100%
    );
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  display: inline-block;
  color: #aab5c8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 3px;
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(48px, 10vw, 104px);
  font-weight: 700;
  letter-spacing: 0.13em;
  line-height: 1.05;
}

.hero h2 {
  font-size: clamp(24px, 4vw, 40px);
  font-weight: 400;
  margin-top: 12px;
}

.hero-content > p {
  max-width: 520px;
  margin: 20px auto 0;
  color: #e2e4e9;
  font-size: 15px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 30px;
}

.btn {
  min-height: 44px;
  padding: 12px 25px;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.2s, background 0.2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-light {
  color: #111;
  background: #fff;
}

.btn-light:hover {
  background: #e8e8e8;
}

.btn-outline {
  color: #fff;
  border: 1px solid rgba(255,255,255,0.75);
  background: rgba(0,0,0,0.25);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.12);
}

.hero-content .hero-note {
  max-width: 580px;
  color: #c4c6cc;
  font-size: 11px;
  margin-top: 24px;
}

.scroll-indicator {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 10px;
  letter-spacing: 2px;
  color: #e2e2e2;
}

/* GENERAL SECTIONS */

.section {
  padding: 100px 7%;
}

.section-heading {
  max-width: 720px;
  text-align: center;
  margin: 0 auto 48px;
}

.section-heading h2,
.technology-content h2,
.final-cta h2 {
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.15;
  letter-spacing: -1.5px;
}

.section-heading > p,
.technology-content > p {
  color: var(--muted);
  font-size: 14px;
  margin-top: 18px;
}

/* PERFORMANCE */

.performance {
  background: #f4f5f7;
  color: #111318;
}

.performance .eyebrow {
  color: #5d6675;
}

.performance .section-heading > p {
  color: #555c66;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: 1100px;
  margin: auto;
}

.stat-card {
  padding: 30px 24px;
  background: #fff;
  border: 1px solid #e4e6eb;
  border-radius: 8px;
}

.stat-number {
  display: block;
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 18px;
}

.stat-card h3 {
  font-size: 16px;
  margin-bottom: 8px;
}

.stat-card p {
  font-size: 13px;
  color: #656b75;
}

.disclaimer {
  max-width: 1000px;
  margin: 24px auto 0;
  color: #858b95;
  font-size: 11px;
}

/* TECHNOLOGY */

.technology {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 7%;
}

.technology-image {
  min-height: 430px;
  border-radius: 8px;
  background:
    url("images/01_TeslaRoadster_SpaceXPackageConcept_White_DYNAMIC_3-4Front.avif")
    center / cover no-repeat,
    #171a20;
}

.technology-content h2 {
  max-width: 520px;
}

.technology-content > p {
  margin-bottom: 16px;
}

.text-link {
  display: inline-block;
  margin-top: 18px;
  font-size: 13px;
  font-weight: 700;
}

.text-link span {
  color: var(--accent);
  margin-left: 8px;
}

/* GALLERY */

.gallery {
  background: #101216;
}

.gallery-grid {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
}

.gallery-grid figure {
  min-width: 0;
  overflow: hidden;
  border-radius: 7px;
  background: #1a1d23;
}

.gallery-grid .gallery-large {
  grid-row: span 2;
}

.gallery-grid img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 220px;
  max-height: 420px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-grid figure:hover img {
  transform: scale(1.035);
}

.gallery-grid figcaption {
  padding: 14px 16px;
  color: #d8dbe1;
  font-size: 12px;
}

/* FINAL CTA */

.final-cta {
  padding: 100px 24px;
  text-align: center;
  background:
    radial-gradient(ellipse at top, #222b3b 0%, #0a0b0e 62%);
}

.final-cta p {
  max-width: 520px;
  margin: 20px auto 28px;
  color: var(--muted);
  font-size: 14px;
}

.back-link {
  display: block;
  width: fit-content;
  margin: 22px auto 0;
  font-size: 12px;
  color: #c4c8d0;
}

.back-link:hover {
  color: #fff;
}

/* FOOTER */

.footer {
  padding: 28px 5%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer p,
.footer > a:last-child {
  font-size: 11px;
  color: var(--muted);
}

/* RESPONSIVE */

@media (max-width: 760px) {
  .navbar {
    padding: 0 20px;
  }

  .nav-links {
    gap: 12px;
  }

  .nav-links a {
    font-size: 10px;
  }

  .logo {
    font-size: 13px;
    letter-spacing: 2px;
  }

  .section {
    padding: 70px 22px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 24px;
  }

  .technology {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .technology-image {
    min-height: 300px;
    grid-row: 2;
  }

  .technology-content {
    grid-row: 1;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }

  .gallery-grid .gallery-large {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .gallery-grid img {
    min-height: 160px;
  }

  .gallery-grid .gallery-large img {
    min-height: 260px;
  }

  .footer {
    justify-content: center;
    text-align: center;
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .navbar {
    height: auto;
    min-height: 58px;
    flex-wrap: wrap;
    gap: 12px;
    padding: 14px 16px;
  }

  .nav-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .nav-links a {
    white-space: nowrap;
  }

  .hero {
    min-height: 650px;
    padding: 80px 20px 100px;
  }

  .hero h1 {
    font-size: 43px;
    letter-spacing: 0.08em;
  }

  .hero h2 {
    font-size: 25px;
  }

  .hero-content > p {
    font-size: 13px;
  }

  .hero-actions {
    flex-direction: column;
    max-width: 300px;
    margin: 26px auto 0;
  }

  .btn {
    width: 100%;
  }

  .section-heading h2,
  .technology-content h2,
  .final-cta h2 {
    font-size: 32px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid .gallery-large {
    grid-column: auto;
  }

  .gallery-grid img,
  .gallery-grid .gallery-large img {
    min-height: 220px;
  }

  .final-cta {
    padding: 75px 20px;
  }
}


.roadster-price {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 28px;
}

.roadster-price > span {
  font-size: 10px;
  letter-spacing: 3px;
  color: #c4cbd7;
  font-weight: 700;
}

.roadster-price strong {
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -1px;
  line-height: 1.25;
}

.roadster-price small {
  color: #c4c6cc;
  font-size: 11px;
}

#addFlyingRoadsterToCart {
  border: 0;
  cursor: pointer;
  font-family: inherit;
}

#addFlyingRoadsterToCart:disabled {
  opacity: 0.65;
  cursor: wait;
}

@media (max-width: 480px) {
  .roadster-price {
    margin-top: 24px;
    margin-bottom: 4px;
  }

  .roadster-price strong {
    font-size: 30px;
  }
}


/* Roadster flying / floating animation */
.hero-bg {
  animation: roadsterFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes roadsterFloat {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(0, -12px, 0) scale(1.025);
  }

  100% {
    transform: translate3d(0, 8px, 0) scale(1.01);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-bg {
    animation: none;
  }
}

