/* INTELEOX V47, centered brand header + Apple-inspired liquid glass navigation */
:root{
  --v47-header-offset:168px;
  --glass-bg:rgba(255,255,255,.42);
  --glass-bg-strong:rgba(255,255,255,.58);
  --glass-line:rgba(255,255,255,.72);
  --glass-shadow:0 18px 55px rgba(20,38,78,.14), inset 0 1px 0 rgba(255,255,255,.88), inset 0 -1px 0 rgba(130,160,215,.10);
}
html{scroll-padding-top:var(--v47-header-offset)!important}
body{padding-top:var(--v47-header-offset)!important}

/* Entire header stays with the user while scrolling. */
header.topbar{
  position:fixed!important;
  inset:12px 0 auto 0!important;
  width:100%!important;
  z-index:100000!important;
  background:transparent!important;
  border:0!important;
  box-shadow:none!important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  transition:transform .42s cubic-bezier(.2,.8,.2,1),opacity .32s ease!important;
}

/* Main floating glass island. */
header.topbar .nav{
  position:relative!important;
  width:min(calc(100% - 40px),1180px)!important;
  max-width:1180px!important;
  margin:0 auto!important;
  min-height:0!important;
  height:auto!important;
  padding:15px 18px 16px!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  grid-template-areas:
    "logo logo"
    "links right"!important;
  align-items:center!important;
  column-gap:12px!important;
  row-gap:12px!important;
  border-radius:32px!important;
  border:1px solid rgba(255,255,255,.74)!important;
  background:
    radial-gradient(140% 150% at 10% -30%,rgba(255,255,255,.88) 0%,rgba(255,255,255,.30) 46%,rgba(255,255,255,.15) 100%),
    linear-gradient(135deg,rgba(246,250,255,.60),rgba(236,243,255,.24))!important;
  backdrop-filter:blur(30px) saturate(185%) contrast(103%)!important;
  -webkit-backdrop-filter:blur(30px) saturate(185%) contrast(103%)!important;
  box-shadow:var(--glass-shadow)!important;
  overflow:hidden!important;
  transition:padding .42s cubic-bezier(.2,.8,.2,1),border-radius .42s cubic-bezier(.2,.8,.2,1),box-shadow .42s ease,background .42s ease!important;
}
header.topbar .nav::before{
  content:"";
  position:absolute;
  inset:0!important;
  border-radius:inherit;
  pointer-events:none;
  background:
    linear-gradient(115deg,rgba(255,255,255,.68) 0%,rgba(255,255,255,.14) 22%,rgba(255,255,255,0) 47%),
    radial-gradient(70% 130% at 90% 10%,rgba(92,151,255,.13),transparent 68%);
  opacity:.95;
}
header.topbar .nav>*{position:relative;z-index:1}

/* Brand centered on the upper tier. */
header.topbar .logoImageLink{
  grid-area:logo!important;
  justify-self:center!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  width:max-content!important;
  margin:0 auto!important;
  transition:transform .42s cubic-bezier(.2,.8,.2,1)!important;
}
header.topbar .logoImageLink img{
  display:block!important;
  width:clamp(158px,16vw,220px)!important;
  max-height:43px!important;
  height:auto!important;
  object-fit:contain!important;
  filter:drop-shadow(0 5px 12px rgba(15,23,42,.06))!important;
  transition:width .42s cubic-bezier(.2,.8,.2,1),transform .42s cubic-bezier(.2,.8,.2,1)!important;
}

/* All website options live directly underneath the logo. */
header.topbar .navlinks{
  grid-area:links!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:nowrap!important;
  gap:5px!important;
  margin:0!important;
  padding:6px!important;
  border-radius:999px!important;
  border:1px solid rgba(255,255,255,.72)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.46),rgba(255,255,255,.24))!important;
  backdrop-filter:blur(24px) saturate(190%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(190%)!important;
  box-shadow:0 9px 26px rgba(31,102,255,.07),inset 0 1px 0 rgba(255,255,255,.82)!important;
  overflow:hidden!important;
}
header.topbar .navlinks a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  min-height:38px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  color:#27364c!important;
  font-size:13.5px!important;
  font-weight:700!important;
  line-height:1!important;
  white-space:nowrap!important;
  text-decoration:none!important;
  transition:transform .28s cubic-bezier(.2,.8,.2,1),background .28s ease,color .28s ease,box-shadow .28s ease!important;
}
header.topbar .navlinks a:hover{
  color:#155fe9!important;
  background:rgba(255,255,255,.72)!important;
  box-shadow:0 7px 18px rgba(37,99,235,.10),inset 0 1px 0 rgba(255,255,255,.95)!important;
  transform:translateY(-1px) scale(1.015)!important;
}
header.topbar .navlinks a:active{transform:scale(.98)!important}

/* Language and CTA are part of the same lower tier, still under the centered logo. */
header.topbar .navright{
  grid-area:right!important;
  justify-self:end!important;
  align-self:center!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  direction:ltr!important;
}
header.topbar .lang,
header.topbar .navcta,
header.topbar .menuBtn{
  border:1px solid rgba(255,255,255,.74)!important;
  background:linear-gradient(180deg,rgba(255,255,255,.58),rgba(255,255,255,.30))!important;
  backdrop-filter:blur(24px) saturate(185%)!important;
  -webkit-backdrop-filter:blur(24px) saturate(185%)!important;
  box-shadow:0 9px 24px rgba(15,23,42,.08),inset 0 1px 0 rgba(255,255,255,.90)!important;
}
header.topbar .lang{
  width:auto!important;
  min-width:122px!important;
  height:50px!important;
  padding:0 14px!important;
  border-radius:999px!important;
  color:#172033!important;
  font-weight:700!important;
}
header.topbar .navcta{
  height:50px!important;
  padding:0 18px!important;
  border-radius:999px!important;
  color:#fff!important;
  border-color:rgba(82,139,255,.68)!important;
  background:linear-gradient(180deg,rgba(41,105,255,.92),rgba(25,86,238,.90))!important;
  box-shadow:0 10px 26px rgba(31,102,255,.23),inset 0 1px 0 rgba(255,255,255,.28)!important;
}

/* On scroll the glass island gently condenses but never leaves the top. */
header.topbar.scrolled{
  transform:translateY(-7px)!important;
}
header.topbar.scrolled .nav{
  padding:10px 15px 11px!important;
  border-radius:27px!important;
  background:
    radial-gradient(130% 150% at 8% -40%,rgba(255,255,255,.88) 0%,rgba(255,255,255,.33) 48%,rgba(255,255,255,.18) 100%),
    linear-gradient(135deg,rgba(246,250,255,.66),rgba(232,241,255,.28))!important;
  box-shadow:0 15px 44px rgba(15,23,42,.14),inset 0 1px 0 rgba(255,255,255,.88)!important;
}
header.topbar.scrolled .logoImageLink img{width:clamp(145px,14vw,194px)!important}
header.topbar.scrolled .navlinks a{min-height:36px!important}

/* Mobile: keep the logo centered and put controls under it in a liquid-glass row. */
@media(max-width:1050px){
  :root{--v47-header-offset:136px}
  body{padding-top:var(--v47-header-offset)!important}
  header.topbar{top:8px!important}
  header.topbar .nav{
    width:calc(100% - 20px)!important;
    max-width:none!important;
    display:grid!important;
    grid-template-columns:1fr auto!important;
    grid-template-areas:
      "logo logo"
      "right right"!important;
    padding:12px 14px!important;
    gap:9px!important;
    border-radius:26px!important;
  }
  header.topbar .logoImageLink img{width:146px!important;max-height:31px!important}
  header.topbar .navlinks{display:none!important}
  header.topbar .navright{
    width:100%!important;
    justify-self:stretch!important;
    justify-content:center!important;
    gap:9px!important;
  }
  header.topbar .lang{height:43px!important;min-width:124px!important}
  header.topbar .navcta{display:none!important}
  header.topbar .menuBtn{
    display:flex!important;
    width:43px!important;
    height:43px!important;
    border-radius:50%!important;
    align-items:center!important;
    justify-content:center!important;
  }
  .mobileMenu.open{
    display:grid!important;
    width:calc(100% - 28px)!important;
    max-width:560px!important;
    margin:8px auto 0!important;
    padding:10px!important;
    gap:4px!important;
    border-radius:24px!important;
    border:1px solid rgba(255,255,255,.76)!important;
    background:linear-gradient(180deg,rgba(255,255,255,.70),rgba(245,249,255,.43))!important;
    backdrop-filter:blur(30px) saturate(190%)!important;
    -webkit-backdrop-filter:blur(30px) saturate(190%)!important;
    box-shadow:0 18px 44px rgba(15,23,42,.13),inset 0 1px 0 rgba(255,255,255,.9)!important;
  }
  .mobileMenu.open a{
    display:flex!important;
    justify-content:center!important;
    align-items:center!important;
    min-height:44px!important;
    padding:0 15px!important;
    border-radius:16px!important;
    font-weight:700!important;
    color:#26344a!important;
    transition:background .25s ease,transform .25s ease!important;
  }
  .mobileMenu.open a:hover{background:rgba(255,255,255,.68)!important;transform:translateY(-1px)!important}
  header.topbar.scrolled{transform:translateY(-4px)!important}
  header.topbar.scrolled .nav{padding:9px 13px!important}
  header.topbar.scrolled .logoImageLink img{width:136px!important}
}

@media(max-width:640px){
  :root{--v47-header-offset:128px}
  body{padding-top:var(--v47-header-offset)!important}
  header.topbar{top:6px!important}
  header.topbar .nav{width:calc(100% - 14px)!important;border-radius:24px!important}
}

@media(prefers-reduced-motion:reduce){
  header.topbar,header.topbar .nav,header.topbar .logoImageLink img,header.topbar .navlinks a{transition:none!important}
}
