header.nav > .mobile-marketing-menu { display: none; }

@media (max-width: 960px) {
  header.nav.mobile-nav-ready {
    position: relative;
    justify-content: flex-end;
    min-height: 72px;
    height: auto;
    gap: 12px;
  }

  header.nav.mobile-nav-ready > .brand {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
  }

  header.nav.mobile-nav-ready > .nav-links {
    display: none !important;
  }

  header.nav > .mobile-marketing-menu {
    display: block;
    position: absolute;
    z-index: 1002;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .mobile-marketing-menu > summary {
    display: flex;
    width: 42px;
    height: 42px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    cursor: pointer;
    list-style: none;
    color: inherit;
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
  }

  .mobile-marketing-menu > summary::-webkit-details-marker { display: none; }
  .mobile-marketing-menu > summary span {
    display: block;
    width: 21px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .mobile-marketing-menu[open] > summary span:first-child { transform: translateY(7px) rotate(45deg); }
  .mobile-marketing-menu[open] > summary span:nth-child(2) { opacity: 0; }
  .mobile-marketing-menu[open] > summary span:last-child { transform: translateY(-7px) rotate(-45deg); }

  .mobile-marketing-menu > .mobile-marketing-links {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    display: grid !important;
    width: min(330px, calc(100vw - 28px));
    gap: 5px;
    padding: 14px;
    border: 1px solid rgba(126, 142, 182, .24);
    border-radius: 17px;
    background: linear-gradient(155deg, rgba(17, 22, 43, .99), rgba(8, 12, 27, .99));
    box-shadow: 0 22px 54px rgba(0, 0, 0, .48);
    backdrop-filter: blur(18px);
    color: #e6e8f5;
  }

  .mobile-marketing-links > a {
    display: flex !important;
    min-height: 48px;
    align-items: center;
    gap: 12px;
    padding: 0 15px;
    border-radius: 11px;
    color: inherit;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
  }

  .mobile-marketing-links .mobile-menu-icon {
    flex: 0 0 19px;
    width: 19px;
    height: 19px;
    color: #a99aff;
    stroke: currentColor;
  }

  .mobile-marketing-links > a:hover,
  .mobile-marketing-links > a:focus-visible,
  .mobile-marketing-links > a.active {
    background: linear-gradient(110deg, rgba(20, 211, 202, .12), rgba(139, 92, 246, .13));
    color: #a9fff5;
    transform: none;
    box-shadow: none;
  }

  .mobile-marketing-links > a.active .mobile-menu-icon,
  .mobile-marketing-links > a:hover .mobile-menu-icon,
  .mobile-marketing-links > a:focus-visible .mobile-menu-icon { color: #6ff2e8; }

  header.nav.mobile-nav-ready > .button {
    position: relative;
    z-index: 2;
    min-height: 40px;
    padding: 9px 14px;
    font-size: 13px;
    white-space: nowrap;
  }
}

@media (max-width: 720px) {
  .mobile-marketing-links > a.button {
    min-height: 44px;
    justify-content: center;
    margin-top: 4px;
    border-radius: 999px;
    color: #fff;
  }
}

@media (max-width: 380px) {
  header.nav.mobile-nav-ready > .brand { gap: 7px; font-size: 14px; }
  header.nav.mobile-nav-ready > .brand img { width: 30px; height: 30px; }
  header.nav.mobile-nav-ready > .brand span { display: inline !important; }
  header.nav.mobile-nav-ready > .button { display: none; }
}

@media (max-width: 620px) {
  header.nav.mobile-nav-ready > .brand span { display: inline !important; }
}
