/* Match the hero content edges at every navigation breakpoint. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 24px;
  width: min(1440px, calc(100% - 64px));
  margin: 24px auto 16px;
  font-size: 15px;
}
.header__inner {
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 20px;
  border: 1px solid rgb(136 176 245 / 14%);
  border-radius: 12px;
  background: #0e1829;
  backdrop-filter: blur(16px) saturate(130%);
  box-shadow: 0 14px 44px rgb(0 0 0 / 25%);
}
/* Pull the hero artwork behind the header without moving the hero content. */
.hero { margin-top: -104px; padding-top: 198px; }
@media (min-width: 1600px) {
  .hero { padding-top: 219px; }
}
.header__logo {
  display: inline-flex;
  align-items: center;
  flex: 0 0 150px;
  gap: 9px;
  height: 28px;
  color: #fff;
}
.header__logo img { width: 28px; height: 28px; border-radius: 50%; }
.header__logo span {
  font-family: Montserrat, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  font-style: italic;
  letter-spacing: -.5px;
  text-transform: uppercase;
}
.main-menu { display: flex; align-items: center; flex: 1; min-width: 0; }
.main-menu ul { list-style: none; margin: 0; padding: 0; }
.main-menu > ul { display: flex; align-items: center; }
.main-menu__links { margin-left: 24px !important; }
.main-menu__account { margin-left: auto !important; }
.main-menu > ul > li { position: relative; }
.main-menu a:not(.nav-cta), .nav-link, .nav-disclosure > summary {
  display: flex;
  align-items: center;
  min-height: 64px;
  padding: 5px 12px;
  border: 0;
  color: #fff;
  background: transparent;
  font-family: Roboto, Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.45;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s;
}
.nav-disclosure > summary { list-style: none; }
.nav-disclosure > summary::-webkit-details-marker { display: none; }
.main-menu a:not(.nav-cta):hover, .nav-link:hover,
.nav-disclosure[open] > summary, .nav-disclosure > summary:hover { background: #273545; }
.nav-arrow { width: 12px; height: 12px; margin-left: 8px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.nav-disclosure[open] > summary .nav-arrow { transform: rotate(180deg); }
.main-menu a.nav-discord-link { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 64px; padding: 5px 10px; border: 0; color: #fff; background: transparent; transition: background-color .2s; }
.main-menu a.nav-discord-link:hover { background: #273545; }
.main-menu a.nav-discord-link:focus-visible { outline: 2px solid #a9d0ff; outline-offset: 3px; }
.nav-discord { display: block; width: 24px; height: 24px; flex: none; }
.nav-globe { width: 18px; height: 18px; margin-right: 6px; fill: none; stroke: currentColor; stroke-width: 2; }
.language-menu > summary { padding-left: 8px; padding-right: 8px; }
.language-menu .nav-arrow { margin-left: 6px; }
.main-menu .nav-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  padding: 12px 0;
  background: #273545;
  border-radius: 0 0 16px 16px;
  box-shadow: 0 16px 24px #0003;
}
.main-menu .nav-dropdown a, .main-menu .nav-dropdown button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  min-height: 36px;
  padding: 8px 18px;
  border: 0;
  color: #c2c8d0;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-align: left;
}
.main-menu .nav-dropdown a:hover, .main-menu .nav-dropdown button:hover { color: #fff; background: #324255; }
.language-menu .nav-dropdown { left: auto; right: 0; min-width: 160px; }
.nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 171px;
  min-height: 32px;
  margin-left: 16px;
  padding: 5px 16px;
  border: 1px solid var(--blue);
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-family: Montserrat, Arial, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  white-space: nowrap;
  transition: background-color .2s, border-color .2s;
}
.nav-cta:hover { background: #377bff; border-color: #377bff; }
.mobile-menu-toggle { display: none; }
@media (max-width: 1200px) {
  .site-header { width: min(960px, calc(100% - 64px)); }
}
@media (min-width: 1400px) {
  .main-menu > ul > li { margin-left: 4px; }
  .nav-cta { margin-left: 12px; }
}
@media (min-width: 992px) and (max-width: 1200px) {
  .header__logo { flex-basis: 128px; }
  .header__logo span { font-size: 13px; }
  .main-menu__links { margin-left: 12px !important; }
  .main-menu a:not(.nav-cta), .nav-link, .nav-disclosure > summary { font-size: 12px; padding-left: 9px; padding-right: 9px; }
  .nav-cta { min-width: 138px; font-size: 12px; margin-left: 8px; }
}
@media (max-width: 991px) {
  .site-header { top: 12px; margin: 16px auto; }
  .hero { margin-top: -88px; }
  .header__inner { height: 56px; padding: 0 16px; }
  .header__logo { flex-basis: auto; }
  .mobile-menu-toggle { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 40px; padding: 8px; margin-left: auto; border: 0; background: transparent; border-radius: 6px; }
  .mobile-menu-toggle span { display: block; height: 2px; width: 24px; background: #fff; border-radius: 2px; transition: transform .2s, opacity .2s; }
  .mobile-menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(7px) rotate(45deg); }
  .mobile-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .mobile-menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-7px) rotate(-45deg); }
  .main-menu { display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; max-height: calc(100svh - 104px); overflow-y: auto; padding: 12px; border: 1px solid #344357; border-radius: 12px; background: #1f2834; box-shadow: 0 16px 32px #0005; }
  .main-menu[data-open="true"] { display: block; }
  .main-menu > ul { display: block; margin: 0 !important; }
  .main-menu a:not(.nav-cta), .nav-link, .nav-disclosure > summary { min-height: 44px; width: 100%; padding: 10px 12px; border-radius: 6px; font-size: 15px; }
  .nav-disclosure > summary .nav-arrow { margin-left: auto; }
  .language-menu > summary .nav-arrow { margin-left: 8px; }
  .main-menu .nav-dropdown { position: static; min-width: 0; border-radius: 8px; padding: 6px 0; box-shadow: none; margin-bottom: 6px; }
  .main-menu .nav-dropdown a, .main-menu .nav-dropdown button { min-height: 44px; padding: 10px 16px; font-size: 13px; white-space: normal; }
  .main-menu__account { border-top: 1px solid #364356; padding-top: 8px !important; margin-top: 8px !important; }
  .main-menu a.nav-discord-link { justify-content: flex-start; width: 44px; min-height: 44px; padding: 10px 12px; }
  .nav-cta { min-height: 44px; width: 100%; margin: 10px 0 2px; }
}
@media (max-width: 820px) {
  .hero { padding-top: 154px; }
}
@media (max-width: 560px) {
  .site-header { width: calc(100% - 40px); }
  .hero { padding-top: 134px; }
}
