/* Header layout and branding */
.pss-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #050b13;
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(12px);
}

.pss-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.pss-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.pss-header__logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  gap: 0.75rem;
}

.pss-header__logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: radial-gradient(circle at 30% 30%, #2fa3ff 0, #0b5ed7 40%, #020712 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 10px 20px rgba(0, 0, 0, 0.35);
}

.pss-header__logo-shield {
  width: 20px;
  height: 24px;
  border-radius: 10px 10px 12px 12px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pss-header__logo-lock {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  position: relative;
}

.pss-header__logo-lock::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 8px;
  height: 6px;
  border-radius: 6px 6px 0 0;
  border: 1.5px solid rgba(255, 255, 255, 0.9);
  border-bottom: none;
}

.pss-header__site-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  white-space: nowrap;
}

.pss-header__site-name {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.pss-header__site-tagline {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

/* Navigation */
.pss-header__nav {
  display: flex;
}

.pss-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
}

.pss-header__nav-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  text-decoration: none;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.82);
  transition: background-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.pss-header__nav-link:hover,
.pss-header__nav-link:focus-visible {
  background-color: rgba(47, 163, 255, 0.16);
  color: #ffffff;
  box-shadow: 0 0 0 1px rgba(47, 163, 255, 0.6);
  outline: none;
}

.pss-header__nav-link:active {
  transform: translateY(1px);
  box-shadow: 0 0 0 1px rgba(47, 163, 255, 0.9);
}

.pss-header__nav-item--icon .pss-header__nav-link {
  padding-inline: 0.7rem;
}

.pss-header__nav-item--icon i {
  font-size: 0.9rem;
}

.pss-header__nav-text {
  display: inline-block;
}

/* Mobile toggle */
.pss-header__toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(5, 11, 19, 0.9);
  cursor: pointer;
  padding: 0;
  align-items: center;
  justify-content: center;
}

.pss-header__toggle:focus-visible {
  outline: 2px solid #2fa3ff;
  outline-offset: 2px;
}

.pss-header__toggle-bar {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: #ffffff;
  transition: transform 0.2s ease, opacity 0.2s ease, top 0.2s ease, bottom 0.2s ease;
}

.pss-header__toggle-bar:nth-child(1) {
  top: 11px;
}

.pss-header__toggle-bar:nth-child(2) {
  top: 17px;
}

.pss-header__toggle-bar:nth-child(3) {
  bottom: 11px;
}

.pss-header__toggle[aria-expanded="true"] .pss-header__toggle-bar:nth-child(1) {
  top: 17px;
  transform: rotate(45deg);
}

.pss-header__toggle[aria-expanded="true"] .pss-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.pss-header__toggle[aria-expanded="true"] .pss-header__toggle-bar:nth-child(3) {
  bottom: 17px;
  transform: rotate(-45deg);
}

/* Responsive behavior */
@media (max-width: 768px) {
  .pss-header__inner {
    padding-inline: 1rem;
  }

  .pss-header__site-tagline {
    display: none;
  }

  .pss-header__toggle {
    display: inline-flex;
  }

  .pss-header__nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    background: rgba(5, 11, 19, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transform-origin: top;
    transform: scaleY(1);
  }

  .pss-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem 1rem 0.85rem;
  }

  .pss-header__nav-link {
    width: 100%;
    justify-content: space-between;
    padding: 0.65rem 0.7rem;
    border-radius: 0.55rem;
  }

  .pss-header__nav[hidden] {
    display: block;
    transform: scaleY(0);
    height: 0;
    overflow: hidden;
  }

  .pss-header__nav--open {
    transform: scaleY(1);
    height: auto;
  }

  .pss-header__nav-item--icon .pss-header__nav-text {
    display: inline-block;
  }
}

@media (max-width: 480px) {
  .pss-header__site-name {
    font-size: 0.9rem;
  }

  .pss-header__logo-mark {
    width: 32px;
    height: 32px;
  }
}

/* High contrast focus outline for keyboard users */
.pss-header__nav-link:focus-visible {
  outline: 2px solid #2fa3ff;
  outline-offset: 2px;
}

/* Utility class for visually hidden text if needed in header */
.pss-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}