:root {
  --bg: #0c0d0f;
  --bg-alt: #17191c;
  --bg-alt-2: #1e2124;
  --ink: #f4f2ec;
  --ink-soft: #a7a39a;
  --line: #2b2d31;
  --accent: #e0862f;
  --accent-2: #5b9bd9;
  --radius: 10px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
}

body.no-hero {
  padding-top: 64px;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Reveal-on-scroll */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s ease, border-color 0.35s ease;
}

.site-header.scrolled {
  background: rgba(12, 13, 15, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  font-size: 15px;
  text-transform: uppercase;
  color: var(--ink);
}

.logo-img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.cart-link {
  position: relative;
  text-decoration: none;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border: 1px solid rgba(244, 242, 236, 0.4);
  border-radius: 999px;
  font-size: 13px;
  color: var(--ink);
}

.cart-badge {
  background: var(--accent);
  color: #16110a;
  border-radius: 999px;
  min-width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* Intro hero */
.intro-hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: hero-zoom 16s ease-out forwards;
  filter: contrast(1.1) saturate(1.15) brightness(1.03);
}

@keyframes hero-zoom {
  from {
    transform: scale(1.08);
  }
  to {
    transform: scale(1);
  }
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(8, 9, 10, 0.55) 0%,
    rgba(8, 9, 10, 0.35) 40%,
    rgba(8, 9, 10, 0.85) 100%
  );
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
  opacity: 0;
  transform: translateY(16px);
  animation: hero-in 1.4s ease 0.3s forwards;
}

@keyframes hero-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-badge {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 22px;
  box-shadow: 0 0 0 1px rgba(244, 242, 236, 0.25);
}

.hero-word {
  margin: 0 0 14px;
  font-size: clamp(34px, 6vw, 64px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 800;
}

.hero-sub {
  margin: 0;
  font-size: clamp(14px, 2vw, 18px);
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.scroll-cue {
  position: absolute;
  bottom: 34px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-soft);
  opacity: 0;
  animation: hero-in 1s ease 1.2s forwards;
}

.scroll-cue span {
  width: 1px;
  height: 28px;
  background: linear-gradient(var(--ink-soft), transparent);
  animation: cue-move 1.8s ease-in-out infinite;
}

@keyframes cue-move {
  0% {
    transform: scaleY(0.4);
    opacity: 0.3;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
  100% {
    transform: scaleY(0.4);
    opacity: 0.3;
  }
}

/* Story section */
.story {
  padding: 120px 0;
}

.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 12px;
  color: var(--accent);
  font-weight: 700;
  margin: 0 0 14px;
}

.story-text h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  line-height: 1.2;
  margin: 0 0 20px;
}

.story-text p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0 0 16px;
}

.story-photo {
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
}

.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Lineup intro */
.lineup-intro {
  text-align: center;
  padding: 60px 0 20px;
}

.lineup-intro h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  margin: 0;
}

/* Side menu */
.side-menu {
  position: fixed;
  top: 50%;
  right: 24px;
  transform: translateY(-50%);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.side-menu.visible {
  opacity: 1;
  pointer-events: auto;
}

.side-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border-left: 1px solid var(--line);
  padding-left: 16px;
}

.side-menu button {
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 13px;
  letter-spacing: 0.04em;
  cursor: pointer;
  padding: 4px 0;
  text-align: left;
  position: relative;
}

.side-menu button::before {
  content: "";
  position: absolute;
  left: -17px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 1px;
  background: var(--line);
  transition: width 0.25s ease, background 0.25s ease;
}

.side-menu button.active {
  color: var(--ink);
  font-weight: 700;
}

.side-menu button.active::before {
  width: 14px;
  background: var(--accent);
}

@media (max-width: 900px) {
  .side-menu {
    display: none;
  }
}

/* Car section */
.car-section {
  padding: 90px 0 60px;
  border-top: 1px solid var(--line);
}

.car-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}

.car-info .eyebrow {
  margin-bottom: 8px;
}

.car-info h2 {
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.1;
  margin: 0 0 14px;
}

.car-tagline {
  color: var(--ink-soft);
  font-size: 16px;
  margin: 0 0 24px;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.price {
  font-size: 34px;
  font-weight: 800;
  color: var(--ink);
}

.price-note {
  color: var(--ink-soft);
  font-size: 13px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: var(--radius);
  padding: 15px 26px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #1a1206;
}

.btn-primary:hover {
  background: #ec9847;
}

.btn-secondary {
  background: transparent;
  border: 1px solid rgba(244, 242, 236, 0.35);
  color: var(--ink);
}

.btn-block {
  width: 100%;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.price-buy {
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  border-bottom: 2px dashed var(--accent);
}

.price-buy:hover {
  color: var(--accent);
}

/* Gallery / carousel */
.gallery {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-alt);
}

.gallery-track {
  display: flex;
  transition: transform 0.35s ease;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: none;
  background: rgba(8, 9, 10, 0.6);
  color: #fff;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-nav:hover {
  background: rgba(8, 9, 10, 0.85);
}

.gallery-prev {
  left: 10px;
}

.gallery-next {
  right: 10px;
}

.gallery-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  padding: 0;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.gallery-dot.active {
  background: #fff;
}

/* Specs */
.car-specs {
  margin-top: 60px;
}

.car-specs h3.specs-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.spec-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
}

.spec-card h3 {
  margin: 0 0 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.spec-card ul {
  margin: 0;
  padding-left: 18px;
  color: var(--ink-soft);
  font-size: 14px;
}

.spec-card li {
  margin-bottom: 6px;
}

/* Mobile sticky buy bar */
.buy-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 12px 16px;
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 55;
}

.buy-bar .price {
  font-size: 20px;
}

@media (max-width: 760px) {
  .car-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .story-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .spec-grid {
    grid-template-columns: 1fr;
  }
  .buy-bar {
    display: flex;
  }
  .car-info .btn-primary {
    display: none;
  }
  body {
    padding-bottom: 76px;
  }
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-grid p {
  margin: 0 0 4px;
}

.footer-contact a {
  color: var(--ink-soft);
  text-decoration: underline;
}

/* Cart page */
.cart-page {
  padding: 60px 0 80px;
}

.cart-page h1 {
  font-size: 26px;
  margin-bottom: 24px;
}

.cart-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 760px) {
  .cart-layout {
    grid-template-columns: 1fr;
  }
}

.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  margin-bottom: 14px;
}

.cart-item img {
  border-radius: 6px;
  width: 90px;
  height: 68px;
  object-fit: cover;
}

.cart-item-name {
  font-weight: 700;
  margin: 0 0 4px;
}

.cart-item-price {
  color: var(--ink-soft);
  font-size: 14px;
}

.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid var(--line);
  background: var(--bg-alt-2);
  color: var(--ink);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.cart-item-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.remove-link {
  color: var(--ink-soft);
  font-size: 13px;
  cursor: pointer;
  background: none;
  border: none;
  text-decoration: underline;
  padding: 0;
}

.summary-card {
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 15px;
}

.summary-row.total {
  font-weight: 800;
  font-size: 18px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 12px;
}

.empty-cart {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
}

/* Checkout form */
.checkout-form {
  margin-top: 24px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.checkout-form h2 {
  font-size: 16px;
  margin: 0 0 16px;
}

.form-field {
  margin-bottom: 14px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg-alt-2);
  color: var(--ink);
}

.form-field textarea {
  resize: vertical;
  min-height: 70px;
}

.order-success {
  text-align: center;
  padding: 40px 20px;
}

.order-success h2 {
  margin-bottom: 10px;
}
