.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header .container {
  max-width: 1440px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 50%;
  z-index: 50;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  background: #000;
  font-size: 12px;
  transform: translateX(-50%);
}

.skip-link:focus {
  top: 10px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 70px;
}

.nav-brand {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
  min-width: max-content;
}

.nav-logo-mark {
  display: flex;
  flex: 0 0 32px;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(124, 140, 255, 0.7);
  border-radius: 50%;
  color: #060a18;
  background: radial-gradient(circle at 30% 0, rgba(124, 140, 255, 0.96), #060a18);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.9), 0 15px 34px rgba(0, 0, 0, 0.9);
  font-family: var(--font-serif);
  font-size: 18px;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  white-space: nowrap;
}

.nav-brand-title {
  font-family: var(--font-serif);
  font-size: 1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav-brand-subtitle {
  color: var(--color-text-muted);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary-nav {
  display: flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: flex-end;
  gap: clamp(16px, 2vw, 32px);
  min-width: 0;
}

.nav-links {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: clamp(14px, 1.4vw, 24px);
  font-size: 0.85rem;
}

.nav-link {
  position: relative;
  padding-block: 4px;
  color: var(--color-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

.nav-link::after {
  position: absolute;
  right: 0;
  bottom: -6px;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, transparent, rgba(124, 140, 255, 0.8), transparent);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

.nav-link:hover {
  color: var(--color-text-primary);
}

.nav-link:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 12px;
}

.nav-btn-primary,
.nav-btn-secondary {
  padding: 8px 16px;
  font-size: 0.68rem;
}

.nav-toggle {
  display: none;
  flex: 0 0 40px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(169, 182, 208, 0.4);
  border-radius: 999px;
  background: rgba(6, 10, 24, 0.9);
}

.nav-toggle-bar {
  width: 18px;
  height: 1.5px;
  border-radius: 999px;
  background: var(--color-text-primary);
  transition: transform var(--transition-base), opacity var(--transition-base), translate var(--transition-base);
}

.nav-toggle-bar + .nav-toggle-bar {
  margin-top: 5px;
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:first-child {
  transform: rotate(45deg) translateY(3px);
}

.nav-toggle[aria-expanded="true"] .nav-toggle-bar:last-child {
  transform: rotate(-45deg) translateY(-3px);
}

@media (max-width: 1180px) {
  .primary-nav {
    position: fixed;
    inset: 70px 0 auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 16px 0;
    border-bottom: 1px solid rgba(46, 65, 104, 0.9);
    opacity: 0;
    pointer-events: none;
    background:
      radial-gradient(circle at 0 0, rgba(124, 140, 255, 0.16), transparent 55%),
      radial-gradient(circle at 100% 100%, rgba(18, 59, 93, 0.7), transparent 60%),
      linear-gradient(145deg, #060a18, #081126);
    transform: translateY(-100%);
    transition: transform var(--transition-base), opacity var(--transition-base);
  }

  .primary-nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    padding: 0 20px 12px;
    border-bottom: 1px solid rgba(46, 65, 104, 0.9);
  }

  .nav-links li {
    width: 100%;
  }

  .nav-link {
    display: block;
    width: 100%;
    padding-block: 10px;
  }

  .nav-link::after {
    display: none;
  }

  .nav-cta {
    flex-direction: column;
    width: 100%;
    padding: 12px 20px 8px;
  }

  .nav-btn-primary,
  .nav-btn-secondary {
    width: 100%;
    justify-content: center;
  }

  .nav-toggle {
    display: flex;
  }
}

@media (max-width: 640px) {
  .nav-brand-subtitle {
    display: none;
  }
}
