@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('./fonts/manrope-variable.ttf') format('truetype');
}

:root {
  --nav-blue: #246bfe;
  --nav-ink: #0d1732;
}

.site-nav {
  position: fixed;
  z-index: 100;
  top: 14px;
  left: 50%;
  display: flex;
  align-items: center;
  gap: 22px;
  width: min(1180px, calc(100% - 48px));
  min-height: 66px;
  padding: 8px 10px 8px 20px;
  border: 1px solid rgba(255,255,255,.92);
  border-radius: 20px;
  background: rgba(255,255,255,.78);
  box-shadow: 0 12px 45px rgba(27, 65, 139, .1);
  backdrop-filter: blur(18px) saturate(145%);
  -webkit-backdrop-filter: blur(18px) saturate(145%);
  transform: translateX(-50%);
  transition: background .25s, box-shadow .25s, border-color .25s;
}

.site-nav.scrolled {
  border-color: rgba(207, 220, 241, .94);
  background: rgba(255,255,255,.94);
  box-shadow: 0 15px 48px rgba(23, 58, 126, .14);
}

.site-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 44px;
}

.site-brand svg {
  width: 31px;
  height: 31px;
  filter: none;
}

.site-wordmark {
  display: flex;
  flex-direction: column;
  gap: 2px;
  color: var(--nav-ink);
  white-space: nowrap;
}

.site-wordmark small {
  color: #8895ab;
  font: 700 7px/1 Manrope, sans-serif;
  letter-spacing: .13em;
}

.site-wordmark b {
  font: 800 16px/1.1 Manrope, sans-serif;
  letter-spacing: -.04em;
}

.site-links {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: center;
  gap: 2px;
}

.site-links a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 13px;
  border-radius: 12px;
  color: #48566f;
  font: 700 12px/1.3 Manrope, 'Microsoft YaHei', sans-serif;
  white-space: nowrap;
  transition: color .2s, background .2s;
}

.site-links a:hover,
.site-links a[aria-current] {
  background: #eef4ff;
  color: var(--nav-blue);
}

.glow-btn {
  display: inline-grid;
  place-items: center;
  position: relative;
  min-height: 46px;
  padding: 0 20px;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: var(--nav-blue);
  box-shadow: 0 9px 22px rgba(36,107,254,.22);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  transition: background .25s, transform .25s;
}

.glow-btn:hover {
  background: #0d4ee8;
  transform: translateY(-1px);
}

.nav-launch {
  flex: 0 0 auto;
  width: 132px;
  padding: 0;
  border-radius: 12px;
}

.site-menu {
  display: none;
}

.site-nav a:active,
.site-nav button:active { transform: scale(.98); }

body:not(.nova-home) {
  font-family: Manrope, 'Microsoft YaHei', sans-serif;
}

@media (max-width: 900px) {
  .site-nav {
    width: calc(100% - 24px);
    min-height: 60px;
    top: 12px;
    gap: 8px;
    padding: 7px 8px 7px 16px;
    border-radius: 17px;
  }

  .site-brand { margin-right: auto; }
  .nav-launch { width: 118px; min-height: 44px; font-size: 11px; }

  .site-menu {
    display: grid;
    place-items: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #dce5f3;
    border-radius: 12px;
    background: #fff;
    color: var(--nav-ink);
    font-size: 20px;
  }

  .site-links {
    display: none;
    position: absolute;
    left: -1px;
    top: 68px;
    width: calc(100% + 2px);
    max-height: calc(100dvh - 100px);
    padding: 12px;
    overflow-y: auto;
    border: 1px solid #dce5f3;
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 20px 60px rgba(21,56,125,.16);
  }

  .site-nav.open .site-links {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 3px;
  }

  .site-links a {
    justify-content: flex-start;
    padding: 15px 18px;
    border-radius: 10px;
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .site-nav { gap: 4px; padding-left: 10px; }
  .site-brand { gap: 5px; }
  .site-brand svg { width: 27px; }
  .site-wordmark b { font-size: 14px; }
  .nav-launch { width: 96px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .glow-btn,
  .site-links a { transition: none; }
}
