/* =====================================================
   NEOMETRIX — HERO + CAROUSEL SECTION
   hero-section.css
   ===================================================== */

/* ===================================================
   NAV (preview)
   =================================================== */
body { margin: 0; padding: 0; }

.nmxp-preview-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: #050915; border-bottom: 1px solid rgba(8,85,166,.2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px; height: 68px;
}
.nmxp-preview-nav img { height: 34px; }
.nmxp-preview-nav__links {
  display: flex; gap: 28px; list-style: none; margin: 0; padding: 0;
}
.nmxp-preview-nav__links a {
  font-family: 'Montserrat', sans-serif; font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: rgba(240,245,255,.65); text-decoration: none; transition: color .2s;
}
.nmxp-preview-nav__links a:hover { color: #fff; }
.nmxp-preview-nav__cta {
  font-family: 'Montserrat', sans-serif; font-size: 11px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #fff; background: #0855A6; border: none;
  padding: 9px 20px; border-radius: 3px; cursor: pointer; text-decoration: none;
}

/* ===================================================
   HERO SECTION
   =================================================== */
.nmxp-hero {
  position: relative;
  background: linear-gradient(160deg, #0A1A3A 0%, #071228 30%, #05090F 65%, #05090F 100%);
  padding: 110px 0 0;
  overflow: hidden;
}

.nmxp-hero__bg-img { display: none; }

.nmxp-hero__glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 90% 55% at 50% 100%, rgba(8,85,166,0.38) 0%, transparent 65%),
    radial-gradient(ellipse 50% 50% at 0%   0%,  rgba(8,85,166,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 40% at 100% 0%,  rgba(8,85,166,0.10) 0%, transparent 60%);
}

.nmxp-hero__text {
  position: relative; z-index: 2;
  text-align: center;
  padding: 0 24px 0;
  max-width: 900px;
  margin: 0 auto;
}

.nmxp-badge {
  display: inline-flex;
  align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #2275D9;
  margin-bottom: 24px;
  padding: 6px 16px;
  border: 1px solid rgba(34,117,217,0.3);
  border-radius: 100px;
  background: rgba(8,85,166,0.12);
}
.nmxp-badge__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #2275D9;
  animation: nmxpPulse 2s ease-in-out infinite;
}
@keyframes nmxpPulse {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.4; transform:scale(.7); }
}

.nmxp-hero__title {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(32px, 4.5vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: #F0F5FF;
  margin: 0 0 20px;
}
.nmxp-hero__title span { color: #2275D9; }

.nmxp-hero__sub {
  font-family: 'Lato', sans-serif;
  font-size: clamp(13px, 1.5vw, 17px);
  font-weight: 300;
  color: #8BA4CC;
  margin: 0 0 48px;
  letter-spacing: 0.07em;
}

.nmxp-hero__stats {
  display: flex;
  justify-content: center;
  background: rgba(5,9,15,0.75);
  backdrop-filter: blur(12px);
  border-top: 1px solid rgba(8,85,166,0.22);
  border-bottom: 1px solid rgba(8,85,166,0.22);
  margin: 0;
}
.nmxp-hero__stat {
  text-align: center;
  padding: 18px 48px;
  border-right: 1px solid rgba(8,85,166,0.2);
  flex-shrink: 0;
}
.nmxp-hero__stat:last-child { border-right: none; }
.nmxp-hero__stat-val {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(22px, 2.5vw, 32px);
  font-weight: 800;
  color: #F0F5FF;
  letter-spacing: -0.025em;
  line-height: 1;
}
.nmxp-hero__stat-val span { color: #2275D9; }
.nmxp-hero__stat-lbl {
  display: block;
  font-family: 'Lato', sans-serif;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #4A5E7A;
  margin-top: 4px;
}

/* ===================================================
   PRODUCT CAROUSEL
   =================================================== */
.nmxp-carousel {
  position: relative;
  background: linear-gradient(180deg, #071228 0%, #05090F 40%);
  overflow: hidden;
  padding-bottom: 44px;
}

.nmxp-carousel__progress-bar {
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: rgba(8,85,166,0.12);
  z-index: 20;
}
.nmxp-carousel__progress-fill {
  height: 100%;
  background: linear-gradient(to right, #0855A6, #2275D9);
  width: 0;
}

.nmxp-carousel__header {
  position: relative; z-index: 5;
  text-align: center;
  padding: 44px 0 32px;
}
.nmxp-carousel__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: #4A5E7A;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 14px;
}
.nmxp-carousel__eyebrow::before,
.nmxp-carousel__eyebrow::after {
  content: ''; width: 32px; height: 1px; background: #4A5E7A;
}
.nmxp-carousel__heading {
  font-family: 'Montserrat', sans-serif;
  font-size: 32px; font-weight: 800;
  letter-spacing: -0.025em; line-height: 1.1;
  color: #F0F5FF; margin: 0;
}
.nmxp-carousel__heading span { color: #2275D9; }

.nmxp-carousel__stage {
  position: relative;
  height: 420px;
  margin-bottom: 28px;
}

.nmxp-carousel__slide {
  position: absolute;
  overflow: hidden;
  cursor: pointer;
  transition:
    left 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
    top 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
    width 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
    height 0.65s cubic-bezier(0.25,0.46,0.45,0.94),
    filter 0.65s ease,
    opacity 0.65s ease;
}

.nmxp-carousel__slide.is-active {
  width: 560px !important; height: 400px !important;
  top: 10px !important;
  left: calc(50% - 280px) !important;
  filter: none !important;
  z-index: 3 !important;
  cursor: default !important;
}
.nmxp-carousel__slide.is-prev {
  width: 305px !important; height: 295px !important;
  top: 63px !important;
  left: calc(50% - 613px) !important;
  filter: brightness(0.65) saturate(0.8) !important;
  z-index: 2 !important;
}
.nmxp-carousel__slide.is-next {
  width: 305px !important; height: 295px !important;
  top: 63px !important;
  left: calc(50% + 308px) !important;
  filter: brightness(0.65) saturate(0.8) !important;
  z-index: 2 !important;
}

.nmxp-carousel__slide img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform 0.7s cubic-bezier(0.25,0.46,0.45,0.94);
}
.nmxp-carousel__slide.is-active:hover img { transform: scale(1.04); }

.nmxp-carousel__slide-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(5,9,15,0.97) 0%, rgba(5,9,15,0.3) 55%, transparent 100%);
  z-index: 1;
  transition: background 0.4s ease;
  cursor: pointer;
}
.nmxp-carousel__slide.is-prev .nmxp-carousel__slide-overlay,
.nmxp-carousel__slide.is-next .nmxp-carousel__slide-overlay {
  background: rgba(5,9,15,0.55);
}

.nmxp-carousel__slide-num {
  position: absolute;
  bottom: 28px; left: -8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 148px; font-weight: 900;
  line-height: 0.85; letter-spacing: -0.06em;
  color: rgba(255,255,255,0.045);
  user-select: none; pointer-events: none;
  z-index: 1;
}

.nmxp-carousel__slide-body {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 24px 28px 32px;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}
.nmxp-carousel__slide.is-active .nmxp-carousel__slide-body {
  opacity: 1; transform: translateY(0);
  pointer-events: auto;
  transition-delay: 0.2s;
}

.nmxp-carousel__slide-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: 'Montserrat', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: #2275D9;
  border: 1px solid rgba(34,117,217,0.4);
  background: rgba(8,85,166,0.18);
  padding: 4px 12px; border-radius: 2px;
  margin-bottom: 10px;
}
.nmxp-carousel__slide-tag::before {
  content: ''; width: 4px; height: 4px;
  border-radius: 50%; background: #2275D9; flex-shrink: 0;
}

.nmxp-carousel__slide-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 20px; font-weight: 800;
  line-height: 1.25; letter-spacing: -0.02em;
  color: #fff; margin: 0 0 18px;
}

.nmxp-carousel__slide-cta {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Montserrat', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #fff !important; text-decoration: none !important;
  padding: 10px 24px;
  border: 1px solid rgba(255,255,255,0.2);
  transition: background 0.3s, border-color 0.3s, gap 0.3s;
}
.nmxp-carousel__slide-cta:hover {
  background: rgba(8,85,166,0.5);
  border-color: rgba(34,117,217,0.6);
  gap: 12px;
}
.nmxp-carousel__slide-cta::after { content: '→'; }

.nmxp-carousel__slide-bar {
  position: absolute;
  bottom: 0; left: 0;
  height: 3px;
  background: linear-gradient(to right, #0855A6, #2275D9);
  width: 0; z-index: 3;
  transition: width 0.4s ease;
}
.nmxp-carousel__slide.is-active .nmxp-carousel__slide-bar {
  width: 100%;
  transition: width 0.4s ease 0.25s;
}

.nmxp-carousel__arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  z-index: 30;
  width: 44px; height: 44px;
  border: 1px solid rgba(34,117,217,0.3);
  background: rgba(5,9,15,0.8);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 24px; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s;
  padding: 0; border-radius: 0;
}
.nmxp-carousel__arrow:hover {
  background: rgba(8,85,166,0.55);
  border-color: rgba(34,117,217,0.7);
}
.nmxp-carousel__arrow--prev { left: 20px; }
.nmxp-carousel__arrow--next { right: 20px; }

.nmxp-carousel__dots {
  display: flex; justify-content: center; gap: 8px;
  position: relative; z-index: 5;
}
.nmxp-carousel__dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  border: none; padding: 0; cursor: pointer;
  transition: background 0.3s, width 0.3s, border-radius 0.3s;
}
.nmxp-carousel__dot.active {
  background: #2275D9;
  width: 24px; border-radius: 3px;
}

/* ===================================================
   RESPONSIVE
   =================================================== */
@media (max-width: 900px) {
  .nmxp-carousel__stage { height: calc((100vw - 40px) / 1.4 + 40px) !important; }
  .nmxp-carousel__slide.is-active {
    width: calc(100% - 40px) !important;
    left: 20px !important;
    height: calc((100vw - 40px) / 1.4) !important;
    top: 20px !important;
  }
  .nmxp-carousel__slide.is-prev {
    left: calc(-100%) !important;
    opacity: 0 !important;
  }
  .nmxp-carousel__slide.is-next {
    left: 100% !important;
    opacity: 0 !important;
  }
  .nmxp-carousel__arrow {
    display: none !important;
  }
  .nmxp-carousel__heading { font-size: 24px; }
  .nmxp-hero__stats { flex-wrap: wrap; }
  .nmxp-hero__stat { flex: 1 1 50%; border-bottom: 1px solid rgba(8,85,166,.2); }
  .nmxp-hero__stat:nth-child(even) { border-right: none; }
  .nmxp-preview-nav__links { display: none; }
}

@media (max-width: 520px) {
  .nmxp-hero { padding-top: 80px; }
  .nmxp-hero__stat { flex: 1 1 50%; }
}

@media (min-width: 1500px) {
  .nmxp-carousel__stage {
    height: 480px;
  }
  .nmxp-carousel__slide.is-active {
    width: 616px !important;
    height: 440px !important;
    top: 11px !important;
    left: calc(50% - 308px) !important;
  }
  .nmxp-carousel__slide.is-prev {
    width: 336px !important;
    height: 325px !important;
    top: 69px !important;
    left: calc(50% - 674px) !important;
  }
  .nmxp-carousel__slide.is-next {
    width: 336px !important;
    height: 325px !important;
    top: 69px !important;
    left: calc(50% + 338px) !important;
  }
}

@media (min-width: 1750px) {
  .nmxp-carousel__stage {
    height: 560px;
  }
  .nmxp-carousel__slide.is-active {
    width: 728px !important;
    height: 520px !important;
    top: 14px !important;
    left: calc(50% - 364px) !important;
  }
  .nmxp-carousel__slide.is-prev {
    width: 397px !important;
    height: 384px !important;
    top: 82px !important;
    left: calc(50% - 798px) !important;
  }
  .nmxp-carousel__slide.is-next {
    width: 397px !important;
    height: 384px !important;
    top: 82px !important;
    left: calc(50% + 401px) !important;
  }
}
