/* ==========================================================================
   KX CLEAN — removes decorative background layers & effects.
   Top nav = plain solid bar with link names only.
   Loaded LAST so it overrides every earlier stylesheet.
   ========================================================================== */

/* ---------- 1. TOP NAV: fully transparent, only the names show ---------- */
html:root body:not(#kxz) #mainHeader,
html:root body:not(#kxz) #mainHeader.header,
html:root body:not(#kxz) #mainHeader.header.scrolled,
html:root body:not(#kxz) #mainHeader.header.gluon-nav,
html:root body:not(#kxz) #mainHeader.header.gluon-nav:hover,
html:root body:not(#kxz) #mainHeader.header.kx-scrolled,
html:root body:not(#kxz) header.header,
html:root body:not(#kxz) header.gluon-nav{
  background:transparent !important;
  background-color:transparent !important;
  background-image:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
  box-shadow:none !important;
  filter:none !important;
  border:0 !important;
  border-color:transparent !important;
  outline:0 !important;
}
html:root body:not(#kxz) #mainHeader .nav,
html:root body:not(#kxz) #mainHeader .navlinks,
html:root body:not(#kxz) #mainHeader .navitem,
html:root body:not(#kxz) #mainHeader .nav-actions{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
/* every pseudo layer / glint / shimmer / underline on the nav */
html body .header::before, html body .header::after,
html body header::before,  html body header::after,
html body .nav::before,    html body .nav::after,
html body #mainHeader::before, html body #mainHeader::after,
html body #mainHeader .nav::before, html body #mainHeader .nav::after,
html body #mainHeader .navlinks::before, html body #mainHeader .navlinks::after,
html body #mainHeader .navitem::before, html body #mainHeader .navitem::after,
html body #mainHeader .navlink::before, html body #mainHeader .navlink::after,
html body #mainHeader .kx-glint, html body #mainHeader .kx-sheen{
  content:none !important;
  display:none !important;
  background:none !important;
  animation:none !important;
}
/* link names only: no box, no gradient, no shadow */
html:root body:not(#kxz) #mainHeader .navlink:not(.cta),
html:root body:not(#kxz) #mainHeader .navlink:not(.cta):hover,
html:root body:not(#kxz) #mainHeader .navlink:not(.cta).active,
html:root body:not(#kxz) #mainHeader .navlink:not(.cta).kx-run{
  background:transparent !important;
  background-image:none !important;
  box-shadow:none !important;
  border:0 !important;
  text-shadow:none !important;
  animation:none !important;
}
html:root body:not(#kxz) #mainHeader .navlink:not(.cta):hover{color:#a97f00 !important}
/* dropdown (only appears on hover): clean white card for readability */
html:root body:not(#kxz) #mainHeader .dropdown,
html:root body:not(#kxz) #mainHeader .dropdown.wide{
  background:#ffffff !important;
  background-image:none !important;
  backdrop-filter:none !important;
  box-shadow:0 12px 32px rgba(29,24,16,.12) !important;
}

/* ---------- 2. SITE-WIDE decorative layers removed ---------- */
#kx-mesh, #kx-mesh span,
#kx-veil,
#kx-grain,
#kx-cursor,
#kx-dots,
#kb-particles,
#particles,
#kelbrixFinalShade,
#kelbrixBgShade,
#kv2-shade,
#kh-video-shade,
#kh-node-field,
.kx-orbit, .kx-orbit i,
.kx-glint, .kx-sheen,
.soft-house-overlay,
.v-layer, .v-layer2,
.nav-ball-loader,
.route-progress{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  animation:none !important;
  pointer-events:none !important;
}
/* decorative pseudo overlays on page, hero & cards */
html body::before, html body::after,
html body .hero::before, html body .hero::after,
html body .page-hero::before, html body .page-hero::after,
html body .card::before, html body .card::after,
html body .partner-card::before, html body .partner-card::after,
html body .sol-card::before, html body .sol-card::after,
html body .node-project-card::before, html body .node-project-card::after,
html body .tech-node::before, html body .tech-node::after,
html body .erp-panel::before, html body .erp-panel::after,
html body .kx-spotlight::before{
  content:none !important;
  display:none !important;
  background:none !important;
  animation:none !important;
}
/* stop floating/drifting card animation & glow */
html body .kx-box{translate:none !important;will-change:auto !important;animation:none !important}
html body :is(.card,.partner-card,.sol-card,.node-project-card,.tech-node,.erp-panel,.mod-thumb,.hero-card):hover{
  box-shadow:0 6px 18px rgba(29,24,16,.08) !important;
}

/* ---------- 3. NAV FIT: centered in the space right of the slim rail ---------- */
@media (min-width:1101px){
  html:root body:not(#kxz) #mainHeader.header.gluon-nav{
    left:calc(52px + (100vw - 52px) / 2) !important;
    width:max-content !important;
    max-width:calc(100vw - 52px - 20px) !important;
    padding:2px 6px !important;
  }
  html:root body:not(#kxz) #mainHeader .nav{gap:2px !important;padding:2px 4px !important}
  html:root body:not(#kxz) #mainHeader .navlinks{gap:0 !important}
  html:root body:not(#kxz) #mainHeader .navlink{padding-left:9px !important;padding-right:9px !important;font-size:13.5px !important;white-space:nowrap !important}
  html:root body:not(#kxz) #mainHeader .nav-actions{gap:6px !important;margin-left:6px !important;padding-left:0 !important;border:0 !important}
}

/* ---------- 4. MOBILE / TABLET: logo + hamburger only (links were overflowing) ---------- */
@media (max-width:1100px){
  html:root body:not(#kxz) #mainHeader.header.gluon-nav{
    left:64px !important;right:10px !important;width:auto !important;max-width:none !important;
    transform:none !important;padding:4px 8px !important;
  }
  html:root body:not(#kxz) #mainHeader .nav{
    display:flex !important;align-items:center !important;justify-content:space-between !important;width:100% !important;
  }
  html:root body:not(#kxz) #mainHeader .navlinks,
  html:root body:not(#kxz) #mainHeader .nav-actions{display:none !important}
  html:root body:not(#kxz) #mainHeader .brand-logo{display:block !important}
  html:root body:not(#kxz) #mainHeader .hamb{
    display:block !important;background:transparent !important;border:0 !important;box-shadow:none !important;
    font-size:26px !important;color:#15120d !important;padding:4px 8px !important;
  }
}

/* ---------- 5. NO PAGE JUMP: no slide/scale/blast animation on the main container ---------- */
html:root body:not(#kxz) main#app,
html:root body:not(#kxz) #app,
html:root body:not(#kxz) main#app.route-out,
html:root body:not(#kxz) main#app.route-blast-in,
html:root body:not(#kxz) #app.page-anim-a,
html:root body:not(#kxz) #app.page-anim-b,
html:root body:not(#kxz) #app.page-anim-c{
  animation:none !important;
  transform:none !important;
  translate:none !important;
  scale:none !important;
  transition:none !important;
}

/* v5.10 baked hero: only on the home route */
html.kx-nothome #app>.gluon-hero[data-baked]{display:none!important}
