.nav {
  position: fixed;
  inset: 12px 0 auto;
  z-index: 50;
  pointer-events: none;
}
.nav-shell {
  width: min(calc(100% - 32px), 1360px);
  max-height: 78px;
  margin: 0 auto;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px;
  background: rgba(34,34,38,.52);
  overflow: hidden;
  box-shadow: 0 18px 70px rgba(0,0,0,.3);
  backdrop-filter: blur(30px) saturate(1.35);
  -webkit-backdrop-filter: blur(30px) saturate(1.35);
  pointer-events: auto;
  transition:
    max-height .54s cubic-bezier(.25, .1, .25, 1),
    border-radius .5s cubic-bezier(.25, .1, .25, 1),
    background-color .24s ease,
    border-color .24s ease,
    box-shadow .24s ease;
}
.nav-inner {
  width: 100%;
  height: 78px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 32px;
  position: relative;
  z-index: 2;
}
.brand { display: flex; align-items: center; justify-self: start; text-decoration: none; min-width: 0; }
.brand img { width: 184px; height: auto; display: block; }
.nav-links { display: flex; align-items: center; gap: 38px; }
.nav-links button:not(.btn) {
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.72);
  font-size: 17px;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  transition: color .38s cubic-bezier(.22, 1, .36, 1), text-shadow .38s cubic-bezier(.22, 1, .36, 1);
}
.nav-links button:hover { color: white; }
.nav-action { display: flex; justify-content: flex-end; justify-self: end; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 0 !important;
  background: linear-gradient(90deg, #1fbfea 0%, #7159e1 100%) !important;
  color: #fff !important;
  padding: 10px 30px !important;
  font-size: 17px !important;
  font-weight: 500 !important;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition:
    filter .32s cubic-bezier(.22, 1, .36, 1),
    box-shadow .34s cubic-bezier(.22, 1, .36, 1);
}
.nav-cta span,
.mobile-cta span {
  display: inline-flex;
  transition: transform .32s cubic-bezier(.22, 1, .36, 1);
}
.nav-cta:hover,
.nav-cta:active {
  background: linear-gradient(90deg, #1fbfea 0%, #7159e1 100%) !important;
  color: #fff !important;
  filter: brightness(1.08);
}
.nav-cta:hover .cta-arrow,
.nav-cta:active .cta-arrow { transform: translateX(7px); }
.menu-button { display: none; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.18); border-radius: 50%; background: rgba(255,255,255,.04); }
.menu-button span { display: block; width: 18px; height: 2px; margin: 5px auto; background: #d4d4d8; }
.mobile-menu {
  display: none;
  justify-items: center;
  width: 100%;
  padding: 2px 16px 30px;
  opacity: 0;
  transform: translateY(-12px);
  pointer-events: none;
  transition:
    opacity .28s ease .08s,
    transform .46s cubic-bezier(.25, .1, .25, 1);
}
.nav.is-open .mobile-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.mobile-menu-grid { display: grid; grid-template-columns: 1fr; width: 100%; padding: 0; }
.mobile-menu-grid button {
  width: 100%;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.12) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: rgba(255,255,255,.84) !important;
  box-shadow: none !important;
  text-align: center;
  padding: 17px 18px !important;
  font-size: 17px !important;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .34s cubic-bezier(.22, 1, .36, 1);
}
.mobile-menu-grid button:hover { color: #fff !important; }
.mobile-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  gap: 9px;
  margin: 16px auto 0;
  width: min(100%, 260px);
  border: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, #1fbfea 0%, #7159e1 100%) !important;
  color: #fff !important;
  padding: 13px 22px !important;
  font-size: 17px !important;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  transition:
    filter .32s cubic-bezier(.22, 1, .36, 1);
}
.mobile-cta:hover,
.mobile-cta:active {
  filter: brightness(1.08);
}
.mobile-cta:hover .cta-arrow,
.mobile-cta:active .cta-arrow { transform: translateX(7px); }

@media (max-width: 980px) {
  .nav.is-open .nav-shell {
    max-height: 348px;
    border-radius: 39px;
    box-shadow: 0 24px 90px rgba(0,0,0,.42);
  }
  .nav-inner { display: flex; justify-content: space-between; }
  .nav-links { display: none; }
  .nav-action { display: none; }
  .menu-button { display: block; }
  .mobile-menu { display: grid; }
}
@media (max-width: 640px) {
  .brand img { width: 152px; }
}
