/* Homepage perf — menu, scroll, paint cost */

html {
  scroll-behavior: auto !important;
}

/* Hero headline: same compact line gap on every viewport */
.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con h1.nvx-hero-headline,
.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-headline {
  line-height: 1.22 !important;
}

.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-line1,
.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-line2 {
  display: block;
  line-height: 1.22;
}

.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-line2 {
  margin-top: 0.04em !important;
}

@media (max-width: 1199px),
       (max-width: 991px),
       (max-width: 767px),
       (max-width: 575px) {
  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con h1.nvx-hero-headline,
  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-headline {
    line-height: 1.22 !important;
  }

  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-line2 {
    margin-top: 0.04em !important;
  }
}

.wow {
  visibility: visible !important;
  animation-duration: 0.01ms !important;
  animation-name: none !important;
}

/* —— Mega / company menu: no live blur over animated earth —— */
/* Beat .navbar-light .navbar-nav .dropdown-menu { background: transparent !important } */
.header-con nav.nvx-nav.navbar-light .navbar-nav .dropdown-menu.nvx-mega-menu,
.header-con nav.nvx-nav.navbar-light .navbar-nav .dropdown-menu.nvx-company-menu,
.header-con nav.nvx-nav.navbar-light .navbar-nav .dropdown-menu.nvx-mega-menu.show,
.header-con nav.nvx-nav.navbar-light .navbar-nav .dropdown-menu.nvx-company-menu.show,
.header-con nav.nvx-nav .dropdown-menu.nvx-mega-menu,
.header-con nav.nvx-nav .dropdown-menu.nvx-company-menu,
.header-con nav.nvx-nav .dropdown-menu.nvx-mega-menu.show,
.header-con nav.nvx-nav .dropdown-menu.nvx-company-menu.show {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: #0a1028 !important;
  background-color: #0a1028 !important;
  animation: none !important;
}

/* Menus open on hover right away, even before neurovexa-nav.js has loaded */
@media (min-width: 992px) {
  .header-con nav.nvx-nav:not(.nvx-nav-ready) .nav-item.dropdown:hover > .dropdown-menu.nvx-mega-menu {
    display: block !important;
  }

  .header-con nav.nvx-nav:not(.nvx-nav-ready) .nav-item.dropdown:hover > .dropdown-menu.nvx-company-menu {
    display: flex !important;
  }
}

.header-con nav.nvx-nav .dropdown-menu.nvx-mega-menu.nvx-nav-closing,
.header-con nav.nvx-nav .dropdown-menu.nvx-company-menu.nvx-nav-closing {
  animation: none !important;
}

/* —— Kill expensive glass blur site-wide on homepage —— */
.banner-outer-wrapper ~ section *,
.banner-outer-wrapper *,
footer *,
.footer-con *,
.footer-section * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body .nvx-mega-menu,
body .nvx-company-menu,
body .nvx-why-section *,
body .nvx-games-section *,
body .nvx-infra-section *,
body .nvx-solutions-section *,
body .nvx-global-section *,
body .nvx-resources-section *,
body .nvx-faq-section *,
body .nvx-testimonials-section *,
body .nvx-cta-section *,
body .nvx-contact-help *,
body .nvx-contact-form-section *,
body .nvx-contact-trust *,
body .nvx-contact-banner *,
body .footer-con * {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* —— Below-the-fold paint skipping —— */
.nvx-why-section,
.nvx-games-section,
.nvx-infra-section,
.nvx-solutions-section,
.nvx-global-section,
.nvx-resources-section,
.nvx-faq-section,
.nvx-testimonials-section,
.nvx-cta-section,
.footer-con,
section.footer-section {
  content-visibility: auto;
  contain-intrinsic-size: 1px 800px;
}

/* —— Earth: keep spinning, but repaint only the image layer ——
   The animated WebP changes every frame. Any filter/blur on an ancestor
   (3× drop-shadow on the figure, blur(38px) glow) was re-rendered with it,
   every frame, blocking menus and clicks. Glow is now static gradients,
   the image gets its own GPU layer. */
.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth {
  contain: layout paint;
  filter: none;
  will-change: transform;
}

.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth::before {
  filter: none;
  width: 118%;
  height: 84%;
  background: radial-gradient(
    closest-side,
    rgba(66, 151, 249, 0.16) 0%,
    rgba(34, 211, 238, 0.08) 45%,
    rgba(66, 151, 249, 0.03) 70%,
    transparent 100%
  );
}

.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth .nvx-earth-network circle {
  filter: none;
}

.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth img.nvx-earth-spin {
  will-change: transform;
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Logo: fixed height + max-width would squash the wide wordmark — keep its aspect ratio */
.header-con .navbar-brand img {
  object-fit: contain;
  object-position: left center;
  height: 56px;
  max-width: 244px;
}

@media screen and (max-width: 991px) {
  .header-con .navbar-brand img {
    height: 50px;
    max-width: 218px;
  }
}

@media screen and (max-width: 575px) {
  .header-con .navbar-brand img {
    height: 42px;
    max-width: 183px;
  }
}

.footer-con.nvx-footer-section .footer-logo img {
  transform: scale(1.15);
}

/* Contact page: no bootloader flash leftovers */
body.nvx-contact-page .loader-mask {
  display: none !important;
}

/* Pause expensive loops while scrolling */
body.nvx-is-scrolling .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient::before,
body.nvx-is-scrolling .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient::after,
body.nvx-is-scrolling .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient span,
body.nvx-is-scrolling .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth,
body.nvx-is-scrolling .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth .nvx-ep,
body.nvx-is-scrolling .nvx-cta-section [class*="nvx-cta-blob"],
body.nvx-is-scrolling .nvx-cta-section .nvx-cta-particles,
body.nvx-is-scrolling .nvx-cta-section .nvx-cta-network,
body.nvx-is-scrolling .nvx-faq-section::before,
body.nvx-is-scrolling .nvx-resources-section::before,
body.nvx-is-scrolling .nvx-infra-visual,
body.nvx-is-scrolling .nvx-global-section [class*="pulse"],
body.nvx-is-scrolling .nvx-marker-pulse,
body.nvx-is-scrolling .nvx-global-section svg * {
  animation-play-state: paused !important;
}

/* Hero offscreen: stop float / particles (image swapped in JS) */
body.nvx-hero-offscreen .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth,
body.nvx-hero-offscreen .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth .nvx-ep,
body.nvx-hero-offscreen .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient::before,
body.nvx-hero-offscreen .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient::after,
body.nvx-hero-offscreen .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient span {
  animation: none !important;
}

body.nvx-hero-offscreen .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth {
  filter: none;
}

@media (prefers-reduced-motion: reduce) {
  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth,
  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient::before,
  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con .nvx-hero-ambient::after,
  .banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure.nvx-hero-earth .nvx-ep {
    animation: none !important;
  }
}

/* Marketing header: cart + login */
.header-con .header-contact ul.nvx-site-header-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-con .header-contact a.nvx-site-cart {
  position: relative;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 45px;
  height: 45px;
  min-width: 45px;
  padding: 0 !important;
  border-radius: 50%;
  line-height: 1;
  text-decoration: none;
}

.header-con .header-contact a.nvx-site-cart i {
  margin-right: 0 !important;
  font-size: 15px;
}

.header-con .header-contact .nvx-site-cart-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(120deg, #4297f9, #3de0f5);
  box-shadow: 0 0 0 2px rgba(6, 7, 34, 0.9);
}

/* Marketing header cart — fused with Login pill */
.header-con .header-contact ul.nvx-site-header-actions {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.55rem !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

.header-con .header-contact ul.nvx-site-header-actions > li {
  margin: 0 !important;
  list-style: none !important;
}

.header-con .header-contact a.nvx-site-cart {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 45px !important;
  height: 45px !important;
  min-width: 45px !important;
  max-width: 45px !important;
  padding: 0 !important;
  border-radius: 50% !important;
  line-height: 1 !important;
  text-decoration: none !important;
  background-color: rgba(6, 7, 34, 0.9) !important;
  color: #fff !important;
  border: 1px solid rgba(168, 85, 247, 0.45) !important;
  box-shadow: 0 0 0 1px rgba(34, 211, 238, 0.1);
  transition: ease-in-out 0.3s;
}

.header-con .header-contact a.nvx-site-cart i {
  margin: 0 !important;
  margin-right: 0 !important;
  font-size: 15px !important;
  color: #fff !important;
  background: transparent !important;
  width: auto !important;
  height: auto !important;
  line-height: 1 !important;
  position: static !important;
}

.header-con .header-contact a.nvx-site-cart:hover {
  background-color: rgba(32, 42, 96, 0.95) !important;
  border-color: rgba(34, 211, 238, 0.5) !important;
  box-shadow:
    0 0 18px rgba(168, 85, 247, 0.22),
    0 0 28px rgba(66, 151, 249, 0.14);
  color: #fff !important;
  text-decoration: none !important;
}

.header-con .header-contact .nvx-site-cart-badge {
  position: absolute !important;
  top: -2px !important;
  right: -2px !important;
  min-width: 1.05rem !important;
  height: 1.05rem !important;
  padding: 0 0.25rem !important;
  border-radius: 999px !important;
  background: linear-gradient(120deg, #4297f9, #3de0f5) !important;
  color: #041018 !important;
  font-size: 0.62rem !important;
  font-weight: 700 !important;
  line-height: 1.05rem !important;
  text-align: center !important;
  box-shadow: 0 0 0 2px rgba(6, 7, 34, 0.9);
}


/* Mobile header — identical on website and panel: row 1 logo + hamburger,
   row 2 cart + login right-aligned (no overlap, nothing off-screen) */
@media (max-width: 991.98px) {
  .header-con nav.nvx-nav .navbar-toggler {
    top: 8px !important;
    transform: none !important;
  }

  .header-con nav.nvx-nav .header-contact {
    position: static !important;
    left: auto !important;
    right: auto !important;
    margin: 10px 0 0 auto !important;
  }

  .header-con nav.nvx-nav .header-contact > ul {
    justify-content: flex-end !important;
  }
}

/* Tablet: cart + login share the first row with the hamburger — keep room for it */
@media (min-width: 576px) and (max-width: 991.98px) {
  .header-con nav.nvx-nav .header-contact {
    margin: 0 48px 0 auto !important;
  }
}

/* —— Homepage: new generated images (nvx-home/), other pages keep theirs —— */
.banner-outer-wrapper.home2-outer-banner-wrapper:not(.nvx-panel-topbar) {
  background-image: url(../images/nvx-home/bg-hero.webp) !important;
}

.banner-outer-wrapper.home2-outer-banner-wrapper .banner2-con figure:first-child::before {
  background-image: url(../images/nvx-home/portrait-frame.webp) !important;
}

section.nvx-games-section.unique-bg-con2 {
  background-image: url(../images/nvx-home/bg-games.webp) !important;
}

section.nvx-solutions-section.unique-bg-con {
  background-image: url(../images/nvx-home/bg-solutions.webp) !important;
}

section.articles-and-tips-con.nvx-resources-section.unique-bg-con {
  background-image: url(../images/nvx-home/bg-resources.webp) !important;
}
