/* ==========================================================================
   HERO & FEATURES SHOWCASE COMPONENT
   File: car-details.css (Production Clean Edition - BYD Spec)
   ========================================================================== */

/* ==========================================================================
   1. HERO SHOWCASE WRAPPER & BACKGROUND
   ========================================================================== */

.nx-hero-showcase {
  position: relative;
  overflow: hidden;
  height: auto;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(60px, 8vw, 80px);
  background-color: var(--nx-bg-base, #f2f3f5);
  box-sizing: border-box;
}

/* Layer Background Gambar Mobil */
.nx-hero-bg-layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.nx-hero-bg-layer picture {
  display: block;
  width: 100%;
  height: 100%;
}

.nx-hero-bg-layer img,
.nx-hero-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

/* Gradient Shield Terukur (Melindungi Keterbacaan Teks Tanpa Mengaburkan Mobil) */
.nx-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(242, 243, 245, 0.85) 0%,
    rgba(242, 243, 245, 0.2) 40%,
    rgba(242, 243, 245, 0.1) 60%,
    rgba(242, 243, 245, 0.95) 100%
  );
}

/* ==========================================================================
   2. CONTAINERS & HEADER TYPOGRAPHY
   ========================================================================== */

.nx-hero-container,
.nx-container-lg {
  position: relative;
  z-index: 3;
  width: 100% !important;
  max-width: 1200px !important;
  margin-inline: auto !important;
  padding-inline: clamp(16px, 4vw, 24px) !important;
  box-sizing: border-box !important;
}

.nx-hero-content-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--nx-space-xs, 8px);
  max-width: 820px;
  margin-inline: auto;
}

/* Eyebrow Pill (High-Contrast Accent) */
.nx-eyebrow-hero,
.nx-eyebrow {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding: 6px 16px !important;
  border-radius: var(--nx-radius-pill, 9999px) !important;
  background-color: var(--nx-c-accent-subtle, #ecf5ff) !important;
  border: 1px solid rgba(0, 122, 255, 0.25) !important;
  box-shadow: 0 2px 10px rgba(0, 122, 255, 0.1) !important;
  color: var(--nx-c-accent, #007aff) !important;
  font-family: var(--font-mono, 'Geist Mono', monospace) !important;
  font-size: var(--nx-fs-eyebrow, 0.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: 0.1em !important;
  text-transform: uppercase !important;
  line-height: 1 !important;
  margin-bottom: var(--nx-space-xs, 8px) !important;
}

.nx-eyebrow-dot {
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background-color: var(--nx-c-accent, #007aff) !important;
  box-shadow: 0 0 8px var(--nx-c-accent, #007aff) !important;
  display: inline-block !important;
  flex-shrink: 0 !important;
}

.nx-scramble-text,
.nx-scramble {
  display: inline-block;
  font-family: inherit !important;
  letter-spacing: inherit !important;
  color: inherit !important;
}

/* Headings & Paragraph */
.nx-hero-showcase .nx-h1,
.nx-hero-showcase .nx-hero-headline {
  font-family: var(--font-heading, 'Geist', sans-serif);
  font-size: var(--nx-fs-h1, clamp(2.25rem, 5vw, 3.75rem));
  font-weight: var(--nx-fw-bold, 700);
  line-height: var(--nx-lh-tight, 1.15);
  color: var(--nx-c-heading, #1e2229);
  letter-spacing: -0.03em;
  text-transform: uppercase;
  margin: 6px 0;
  /* Shadow halus untuk light background */
  text-shadow: 0 2px 12px rgba(255, 255, 255, 0.8);
}

.nx-hero-showcase .nx-hero-subtext,
.nx-hero-showcase .nx-hero-subtext.nx-lead,
.nx-hero-showcase p.nx-lead {
  font-family: var(--font-body, 'Geist', sans-serif);
  font-size: var(--nx-fs-lead, 1.125rem);
  line-height: var(--nx-lh-relaxed, 1.6);
  font-weight: var(--nx-fw-regular, 400);
  color: var(--nx-c-lead, #303133);
  max-width: 640px;
  margin: 0 auto;
  text-shadow: 0 1px 8px rgba(255, 255, 255, 0.8);
}

/* Spacer Stage Panggung Bodi Mobil */
.nx-car-stage-spacer {
  height: clamp(100px, 16vw, 200px) !important;
  width: 100% !important;
  pointer-events: none !important;
}

.nx-hero-content-bottom {
  width: 100%;
}

.nx-hero-actions {
  display: flex;
  gap: var(--nx-space-sm, 16px);
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 18px !important;
}

/* ==========================================================================
   3. ODOMETER BAR & MECHANICAL DIGIT LOCK
   ========================================================================== */

.nx-odometer-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  width: 100%;
  max-width: 1000px;
  margin: 16px auto 20px auto !important;
  padding-top: 20px;
  border-top: 1px solid var(--nx-c-border, #dcdfe6);
  box-sizing: border-box;
}

.nx-odo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.nx-odo-value-wrap {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
}

/* Kunci Kotak Odometer Presisi 1em (Anti-Bocor Angka Bawah) */
.nx-odometer {
  display: inline-flex !important;
  align-items: baseline !important;
  font-family: var(--font-heading, 'Geist', sans-serif) !important;
  font-size: clamp(1.85rem, 3vw, 2.75rem) !important;
  font-weight: var(--nx-fw-bold, 700) !important;
  color: var(--nx-c-heading, #1e2229) !important;
  font-variant-numeric: tabular-nums !important;
  line-height: 1 !important;
  height: 1em !important;
  overflow: hidden !important;
  vertical-align: baseline;
}

.nx-odo-col {
  display: inline-block !important;
  height: 1em !important;
  line-height: 1em !important;
  overflow: hidden !important;
}

.nx-odo-list {
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
  will-change: transform !important;
}

.nx-odo-list span {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 1em !important;
  line-height: 1em !important;
  box-sizing: border-box;
}

.nx-odo-dot {
  font-family: var(--font-heading, 'Geist', sans-serif) !important;
  font-size: 1em !important;
  line-height: 1em !important;
  color: var(--nx-c-heading, #1e2229) !important;
  padding: 0 1px !important;
  display: inline-block;
  vertical-align: baseline;
}

.nx-odo-unit {
  font-family: var(--font-mono, 'Geist Mono', monospace) !important;
  font-size: 0.85rem !important;
  font-weight: 700 !important;
  color: var(--nx-c-accent, #007aff) !important;
}

.nx-hero-showcase .nx-odo-label,
.nx-odo-label {
  display: block;
  font-family: var(--font-mono, 'Geist Mono', monospace);
  font-size: 0.72rem;
  font-weight: var(--nx-fw-semibold, 600);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--nx-c-muted, #909399);
  white-space: normal;
  line-height: 1.4;
}

@media screen and (max-width: 767px) {
  .nx-odometer-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px 14px;
  }
}

/* ==========================================================================
   4. FEATURES SHOWCASE STAGE
   ========================================================================== */

.nx-features-stage,
#features {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  background-color: var(--nx-bg-subtle, #e4e7ed);
}

.nx-features-bg-wrap,
#features .nx-features-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.nx-features-bg-wrap picture,
#features .nx-features-media picture {
  display: block;
  width: 100%;
  height: 100%;
}

.nx-features-bg-img,
#features .nx-features-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  display: block;
}

.nx-features-overlay,
#features .nx-features-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(228, 231, 237, 0.88) 0%,
    rgba(228, 231, 237, 0.25) 45%,
    rgba(228, 231, 237, 0.92) 100%
  );
}

.nx-features-container,
#features .nx-container-lg {
  position: relative;
  z-index: 3;
  width: 100%;
  margin-top: 0;
  padding-top: clamp(80px, 12vh, 140px) !important;
  padding-bottom: clamp(40px, 6vh, 60px) !important;
}

.nx-features-header,
#features .nx-hero-content-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--nx-space-xs, 8px);
  max-width: 780px;
  margin-inline: auto;
}

.nx-features-title {
  font-family: var(--font-heading, 'Geist', sans-serif);
  font-size: var(--nx-fs-h2, clamp(1.85rem, 3.8vw, 2.75rem));
  font-weight: var(--nx-fw-bold, 700);
  line-height: var(--nx-lh-snug, 1.25);
  text-transform: uppercase;
  color: var(--nx-c-heading, #1e2229);
  margin-top: 4px;
}

.nx-features-lead {
  font-family: var(--font-body, 'Geist', sans-serif);
  font-size: var(--nx-fs-lead, 1.125rem);
  line-height: var(--nx-lh-relaxed, 1.6);
  max-width: 580px;
  margin: 0 auto;
  color: var(--nx-c-lead, #303133);
}

.nx-features-spacer,
#features .nx-features-spacer {
  height: clamp(120px, 18vh, 220px);
  width: 100%;
  pointer-events: none;
}