.unified-site-header {
  --ush-text: #f5f5f4;
  --ush-muted: #bcb8b0;
}

.unified-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1200;
  background: linear-gradient(180deg, rgba(7, 10, 15, 0.66), rgba(7, 10, 15, 0.2));
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.unified-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -18px;
  width: 100%;
  height: 18px;
  background: linear-gradient(180deg, rgba(11, 14, 22, 0.64), rgba(11, 14, 22, 0));
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.unified-header.scrolled {
  background: linear-gradient(180deg, rgba(8, 11, 16, 0.94), rgba(8, 11, 16, 0.82));
  border-bottom-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.42);
}

.unified-header.scrolled::after {
  opacity: 1;
}

.unified-header-shell {
  width: min(1220px, calc(100vw - 2.2rem));
  margin-inline: auto;
  min-height: 4.4rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.unified-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--ush-text);
  text-decoration: none;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  font-size: clamp(0.92rem, 1vw, 1rem);
  letter-spacing: 0.06em;
  font-weight: 700;
}

.unified-brand-logo {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  object-fit: contain;
  flex-shrink: 0;
}

.unified-nav {
  display: flex;
  gap: 0.45rem;
}

.unified-nav a {
  color: var(--ush-muted);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: clamp(0.74rem, 0.9vw, 0.84rem);
  border-radius: 999px;
  padding: 0.58rem 0.82rem;
  border: 1px solid transparent;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.unified-nav a:hover,
.unified-nav a:focus-visible,
.unified-nav a[aria-current="page"] {
  color: var(--ush-text);
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.unified-menu-toggle {
  display: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: var(--ush-text);
  border-radius: 999px;
  padding: 0.5rem 0.85rem;
  font-family: "Space Grotesk", "Manrope", sans-serif;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 0.74rem;
}

@media (max-width: 860px) {
  .unified-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .unified-nav {
    position: absolute;
    top: calc(100% + 0.55rem);
    right: max(1rem, calc((100vw - 1220px) / 2 + 1.1rem));
    flex-direction: column;
    min-width: 210px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(6, 10, 18, 0.96);
    backdrop-filter: blur(8px);
    padding: 0.55rem;
    display: none;
  }

  .unified-nav a {
    border-radius: 10px;
  }

  .unified-nav.open {
    display: flex;
  }

  .unified-nav[data-open="true"] {
    display: flex;
  }
}
