/* Shared header and navigation ownership. */
.site-header {
  position: sticky;
  z-index: 1000;
  top: 0;
  background: rgba(6, 16, 29, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px) saturate(140%);
}

.site-header .container {
  width: 100%;
  max-width: none;
  padding-right: clamp(20px, 2.2vw, 42px);
  padding-left: clamp(20px, 2.2vw, 42px);
}

.nav-wrap {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
}

.brand {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  font-weight: 850;
  letter-spacing: 0.045em;
}

.brand-logo {
  display: block;
  width: 220px;
  height: auto;
  object-fit: contain;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(18px, 1.55vw, 30px);
  margin-left: auto;
  visibility: hidden;
}

html.navigation-ready .nav-links {
  visibility: visible;
}

@media (min-width: 901px) {
  .nav-links {
    margin-right: clamp(8px, 1.2vw, 18px);
  }
}

.nav-links a {
  color: #bfd0e2;
  font-size: 0.94rem;
  white-space: nowrap;
  transition: 0.2s ease;
}

.nav-links a:hover,
.nav-links a.active {
  color: #fff;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  position: relative;
}

.nav-dropdown-trigger::after {
  position: absolute;
  top: 50%;
  left: 100%;
  margin-left: 5px;
  color: #7fdcff;
  font-size: 0.72em;
  content: "▾";
  transform: translateY(-50%);
  transition: transform 180ms ease;
}

.nav-dropdown:hover .nav-dropdown-trigger::after,
.nav-dropdown:focus-within .nav-dropdown-trigger::after,
.nav-dropdown.is-touch-open .nav-dropdown-trigger::after {
  transform: translateY(-50%) rotate(180deg);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  z-index: 1001;
  display: grid;
  min-width: 270px;
  gap: 3px;
  padding: 10px;
  background: rgba(6, 16, 29, 0.97);
  border: 1px solid rgba(127, 211, 255, 0.2);
  border-radius: 14px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.3), inset 0 0 22px rgba(80, 186, 255, 0.05);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -8px);
  visibility: hidden;
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  backdrop-filter: blur(18px) saturate(140%);
}

.nav-dropdown::after {
  position: absolute;
  top: 100%;
  right: -24px;
  left: -24px;
  height: 12px;
  content: "";
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-touch-open .nav-dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
  visibility: visible;
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  color: #bfd0e2;
  border-radius: 9px;
  font-size: 0.88rem;
  white-space: nowrap;
}

.nav-dropdown-menu a:hover,
.nav-dropdown-menu a:focus-visible {
  color: #fff;
  background: rgba(127, 211, 255, 0.09);
}

.nav-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
  margin-left: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.menu-toggle span,
.menu-toggle::before,
.menu-toggle::after {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  content: "";
  background: currentColor;
  border-radius: 2px;
}
