.floating-nav {
  position: fixed;
  z-index: 100;
  top: 18px;
  left: 50%;
  width: min(1480px, calc(100vw - 36px));
  height: 64px;
  padding: 7px 8px 7px 18px;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 180px;
  align-items: center;
  gap: 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(244,251,248,.15);
  border-radius: 17px;
  background: rgba(2,8,7,.82);
  color: #F4FBF8;
  box-shadow: 0 18px 55px rgba(0,0,0,.28);
  backdrop-filter: blur(20px);
}
.brand img { display: block; width: 142px; height: auto; }
.desktop-nav { min-width: 0; justify-self: stretch; display: flex; justify-content: center; font-family: var(--display); }
.primary-tabs { display: flex; align-items: center; justify-content: center; gap: 4px; }
.primary-tabs a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--muted-light);
  font: 600 12px var(--display);
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}
.primary-tabs a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 5px;
  height: 2px;
  border-radius: 2px;
  background: var(--green);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.primary-tabs a:hover,
.primary-tabs a[aria-current=page] { color: #F4FBF8; background: rgba(19,245,191,.08); }
.primary-tabs a[aria-current=page]::after { transform: scaleX(1); }
.nav-cta {
  justify-self: end;
  padding: 14px 18px;
  border-radius: 11px;
  background: var(--green);
  color: var(--ink);
  font: 700 13px var(--display);
  white-space: nowrap;
}
.mobile-toggle,.mobile-nav { display: none; }
.anchor-target { position: relative; display: block; top: -96px; visibility: hidden; }

@media(max-width:1120px) {
  .floating-nav { grid-template-columns: 1fr auto; height: 60px; }
  .desktop-nav,.nav-cta { display: none; }
  .mobile-toggle {
    display: block;
    min-width: 44px;
    min-height: 44px;
    border: 0;
    padding: 10px 12px;
    background: transparent;
    color: #F4FBF8;
    font-family: var(--display);
    cursor: pointer;
  }
  .mobile-nav {
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    max-height: calc(100vh - 96px);
    overflow-y: auto;
    padding: 10px;
    border: 1px solid rgba(244,251,248,.14);
    border-radius: 16px;
    background: rgba(2,8,7,.98);
    box-shadow: 0 24px 70px rgba(0,0,0,.46);
  }
  .mobile-nav:not([hidden]) { display: grid; }
  .mobile-nav > a {
    display: flex;
    align-items: center;
    min-height: 44px;
    width: 100%;
    border-radius: 10px;
    padding: 11px 13px;
    color: #F4FBF8;
    text-align: left;
    font-family: var(--display);
  }
  .mobile-nav > a:hover,
  .mobile-nav > a[aria-current=page] { color: var(--green); background: rgba(244,251,248,.07); }
}
