:root {
  --black: #171a20;
  --white: #f4f4f4;
  --muted-dark: #5c5e62;
  --muted-light: rgba(255, 255, 255, 0.78);
  --button-dark: rgba(23, 26, 32, 0.88);
  --button-light: rgba(244, 244, 244, 0.82);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--black);
  background: #fff;
  overflow-x: hidden;
}

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

button {
  font: inherit;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 40px;
  color: var(--black);
  mix-blend-mode: normal;
}

.wordmark {
  justify-self: start;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.32em;
}

.desktop-nav,
.right-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
}

.desktop-nav a,
.right-nav a,
.menu-button {
  padding: 7px 14px;
  border-radius: 12px;
  transition: background 0.2s ease;
}

.desktop-nav a:hover,
.right-nav a:hover,
.menu-button:hover {
  background: rgba(0, 0, 0, 0.06);
}

.right-nav {
  justify-self: end;
}

.menu-button,
.close-menu {
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 80;
  width: min(320px, 88vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 76px 28px 28px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.16);
  transform: translateX(100%);
  transition: transform 0.32s var(--ease);
}

.mobile-menu.open {
  transform: translateX(0);
}

.mobile-menu a {
  padding: 14px 8px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  font-weight: 650;
}

.close-menu {
  position: absolute;
  top: 18px;
  right: 22px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 28px;
}

.snap-container {
  height: 100vh;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
}

.tesla-section {
  position: relative;
  min-height: 100vh;
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 13vh 24px 7vh;
  overflow: hidden;
  isolation: isolate;
}

.hero,
.photo-section {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.12) 42%, rgba(0, 0, 0, 0.34) 100%),
    var(--bg-image) center / cover no-repeat,
    #d8e2eb;
}

.photo-section {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.08) 44%, rgba(0, 0, 0, 0.62) 100%),
    var(--bg-image) center / cover no-repeat;
}

.white-section {
  background: linear-gradient(180deg, #f8f8f8 0%, #fff 100%);
}

.dark-section {
  color: var(--white);
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.78) 100%),
    var(--bg-image) center 52% / min(900px, 92vw) auto no-repeat,
    linear-gradient(140deg, #050607 0%, #171a20 48%, #050607 100%);
}

.design-section {
  justify-content: center;
  gap: 5vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(255, 255, 255, 0.72)),
    url("assets/images/hero.jpg") center / cover no-repeat;
}

.order-section {
  justify-content: center;
  gap: 34px;
  background: linear-gradient(180deg, #ffffff 0%, #f1f1f1 100%);
  text-align: center;
}

.section-copy {
  width: min(760px, 100%);
  text-align: center;
  animation: rise 0.8s var(--ease) both;
}

.top-copy {
  margin-top: 2vh;
}

.bottom-copy {
  margin-bottom: 2vh;
}

.center-copy {
  margin: 0;
}

.light-copy p,
.light-copy .kicker {
  color: var(--muted-light);
}

.dark-copy p,
.dark-copy .kicker {
  color: var(--muted-dark);
}

.kicker {
  margin: 0 0 10px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 10px;
  font-size: clamp(42px, 6vw, 72px);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 760;
}

p {
  margin-bottom: 0;
  font-size: clamp(16px, 1.55vw, 20px);
  line-height: 1.7;
}

.section-actions {
  width: min(560px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  animation: rise 0.8s 0.14s var(--ease) both;
}

.hero-product {
  position: absolute;
  z-index: -1;
  top: 31vh;
  width: min(720px, 88vw);
  filter: drop-shadow(0 34px 54px rgba(0, 0, 0, 0.28));
  animation: floatProduct 5.5s ease-in-out infinite;
}

.button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  padding: 11px 24px;
  font-size: 14px;
  font-weight: 750;
  transition: transform 0.2s ease, background 0.2s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button.dark {
  color: #fff;
  background: var(--button-dark);
}

.button.light {
  color: var(--black);
  background: var(--button-light);
}

.button.outline {
  color: var(--black);
  border: 2px solid var(--black);
}

.product-stage {
  position: absolute;
  inset: 25vh 0 auto;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.product-stage img {
  width: min(680px, 86vw);
  filter: drop-shadow(0 28px 46px rgba(0, 0, 0, 0.18));
}

.spec-row,
.feature-band {
  width: min(900px, 100%);
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  color: #fff;
  text-align: center;
  animation: rise 0.8s 0.14s var(--ease) both;
}

.spec-row div,
.feature-band article {
  padding: 0 20px;
  border-inline-start: 1px solid rgba(255, 255, 255, 0.34);
}

.spec-row div:first-child,
.feature-band article:first-child {
  border-inline-start: 0;
}

.spec-row strong {
  display: block;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1;
}

.spec-row span,
.feature-band p {
  display: block;
  margin-top: 8px;
  color: var(--muted-light);
  font-size: 14px;
}

.feature-band h3 {
  margin-bottom: 0;
  font-size: 24px;
}

.design-grid {
  width: min(1060px, calc(100% - 24px));
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  grid-template-rows: repeat(2, minmax(180px, 27vh));
  gap: 14px;
}

.design-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 4px;
}

.design-grid img:first-child {
  grid-row: span 2;
}

.footer {
  position: absolute;
  bottom: 24px;
  color: var(--muted-dark);
  font-size: 13px;
}

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

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

@media (max-width: 900px) {
  .site-header {
    grid-template-columns: 1fr auto;
    padding: 0 22px;
  }

  .desktop-nav {
    display: none;
  }

  .right-nav a {
    display: none;
  }

  .tesla-section {
    padding-top: 12vh;
  }

  .section-actions,
  .spec-row,
  .feature-band {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .spec-row div,
  .feature-band article {
    border: 0;
  }

  .product-stage {
    inset: 33vh 0 auto;
  }

  .hero-product {
    top: 36vh;
    width: min(620px, 104vw);
  }

  .design-grid {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3, minmax(150px, 22vh));
  }

  .design-grid img:first-child {
    grid-row: auto;
  }
}

@media (max-width: 560px) {
  .wordmark {
    font-size: 15px;
    letter-spacing: 0.22em;
  }

  .tesla-section {
    padding-inline: 18px;
    padding-bottom: 6vh;
  }

  .hero,
  .photo-section {
    background-size: min(620px, 112vw) auto, cover;
  }

  .section-actions {
    width: 100%;
  }

  .button {
    width: 100%;
  }
}
