/* ==========================================================================
   MODULE: HERO SECTION & ROLLING ODOMETER
   Theme: Obsidian Navy (#02091c) + Royal Blue (#1b43fe)
   ========================================================================== */

/* --- HERO BASE --- */
.nx-hero {
  background-color: var(--nx-bg-dark-base, #02091c);
  padding: clamp(4rem, 8vw, 6.5rem) 0 clamp(3rem, 5vw, 4rem) 0;
  color: #ffffff;
  position: relative;
}

.nx-hero__grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}

.nx-hero__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.25rem;
}

.nx-hero__title {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin: 0;
}

.nx-hero__lead {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.6;
  color: #94a3b8;
  margin: 0 0 0.75rem 0;
  max-width: 580px;
}

/* --- TOMBOL AKSI HERO --- */
.nx-hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.nx-btn-primary {
  background-color: var(--nx-c-primary, #1b43fe) !important;
  color: #ffffff !important;
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 0.85rem 1.65rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  border: 1px solid var(--nx-c-primary, #1b43fe) !important;
  box-shadow: 0 4px 16px rgba(27, 67, 254, 0.4) !important;
  transition: transform 200ms ease, background-color 200ms ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nx-btn-primary:hover {
  background-color: #1435cc !important;
  transform: translateY(-2px);
}

.nx-btn-secondary {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif) !important;
  font-size: 1rem !important;
  font-weight: 700 !important;
  padding: 0.85rem 1.65rem !important;
  border-radius: 9999px !important;
  text-decoration: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  backdrop-filter: blur(8px) !important;
  -webkit-backdrop-filter: blur(8px) !important;
  transition: all 200ms ease !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nx-btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
  transform: translateY(-2px);
}

/* ==========================================================================
   HERO VIDEO BACKGROUND & TYPOGRAPHY CENTERED
   ========================================================================== */
.nx-hero.is-video-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 7.5rem) 0 clamp(3.5rem, 6vw, 5rem);
  background-color: var(--nx-bg-dark-base, #02091c);
}

.nx-hero__video-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.nx-hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.nx-hero__video-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(2, 9, 28, 0.82) 0%,
    rgba(2, 9, 28, 0.94) 100%
  );
  z-index: 1;
}

.nx-hero.is-video-hero .container-large {
  position: relative;
  z-index: 2;
}

.nx-hero__centered-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
  max-width: 680px;
}

.nx-hero.is-video-hero .nx-hero__title {
  font-size: clamp(2.4rem, 4.8vw, 4rem) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em !important;
}

/* ==========================================================================
   METRICS SECTION & MECHANICAL ROLLING DIGIT ODOMETER
   ========================================================================== */
.nx-hero__metrics {
  display: grid;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 1.75rem 2rem;
  margin-top: clamp(2.5rem, 4vw, 3.5rem);
  gap: 1.5rem;
}

.nx-hero__metrics.is-three-col {
  grid-template-columns: repeat(3, 1fr);
}

.nx-metric-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
}

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

.nx-reel-group {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
}

/* Jendela Reel */
.nx-reel-window {
  height: clamp(2rem, 3vw, 2.75rem);
  line-height: clamp(2rem, 3vw, 2.75rem);
  overflow: hidden;
  display: inline-block;
}

/* Strip Kolom Reel */
.nx-reel-strip {
  display: flex;
  flex-direction: column;
  transform: translate3d(0, 0, 0);
  transition: transform 2600ms cubic-bezier(0.12, 0.95, 0.15, 1);
  will-change: transform;
}

.nx-reel-strip span {
  height: clamp(2rem, 3vw, 2.75rem);
  line-height: clamp(2rem, 3vw, 2.75rem);
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  font-weight: 800;
  color: #ffffff;
  text-align: center;
  font-variant-numeric: tabular-nums;
  display: block;
}

.nx-metric-unit {
  font-family: var(--font-heading, "Helvetica Now Display", sans-serif);
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
  font-weight: 700;
  color: var(--nx-c-primary, #1b43fe);
  line-height: 1;
}

.nx-metric-label {
  font-family: var(--font-body, "Aspekta", sans-serif);
  font-size: 0.8125rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.nx-metric-divider {
  width: 1px;
  height: 40px;
  background: rgba(255, 255, 255, 0.1);
}

/* Fallback Elementor Editor */
.elementor-editor-active .nx-reel-strip {
  transform: translateY(calc(-100% + clamp(2rem, 3vw, 2.75rem))) !important;
  transition: none !important;
}

/* --- RESPONSIVE BREAKPOINT --- */
@media screen and (max-width: 991px) {
  .nx-hero__grid {
    grid-template-columns: 1fr;
  }
}

@media screen and (max-width: 820px) {
  .nx-hero__metrics.is-three-col {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .nx-hero__metrics.is-three-col .nx-metric-divider {
    width: 100%;
    height: 1px;
  }
}