.bdh-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: radial-gradient(circle at top left, rgba(34, 26, 70, 0.85), rgba(7, 8, 21, 0.96));
  border-bottom: 1px solid var(--color-border-subtle);
}

.bdh-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
}

.bdh-header__brand {
  display: flex;
  align-items: center;
}

.bdh-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
}

.bdh-header__logo-mark {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 20%, #f2c974, #b88b48 55%, #070815 100%);
  box-shadow: var(--shadow-soft);
}

.bdh-header__logo-ring {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 1px solid rgba(7, 8, 21, 0.85);
}

.bdh-header__logo-chip {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: rgba(7, 8, 21, 0.95);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.bdh-header__brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.bdh-header__brand-name {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bdh-header__brand-tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.bdh-header__nav {
  display: flex;
  align-items: center;
}

.bdh-header__nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.bdh-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  padding-bottom: 4px;
}

.bdh-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
  transform-origin: center;
  transform: scaleX(0);
  transition: transform var(--transition-base);
}

.bdh-header__nav-link:hover::after,
.bdh-header__nav-link:focus-visible::after,
.bdh-header__nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.bdh-header__nav-link--primary {
  padding: 0.55rem 1.3rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, #f2c974, #d9b26c);
  color: #1a1410;
  box-shadow: var(--shadow-soft);
}

.bdh-header__nav-link--primary::after {
  display: none;
}

.bdh-header__nav-link--primary:hover {
  box-shadow: var(--shadow-elevated);
}

.bdh-header__nav-item--cta {
  margin-left: var(--space-2);
}

.bdh-header__nav-toggle {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: rgba(7, 8, 21, 0.7);
  color: var(--color-text);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.bdh-header__nav-toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

.bdh-header__nav-toggle[aria-expanded="true"] .bdh-header__nav-toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

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

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

@media (max-width: 768px) {
  .bdh-header__nav-toggle {
    display: inline-flex;
  }

  .bdh-header__nav {
    position: fixed;
    inset: 64px 0 auto 0;
    max-height: 0;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(17, 19, 33, 0.98), rgba(7, 8, 21, 0.98));
    border-bottom: 1px solid var(--color-border-subtle);
    transition: max-height var(--transition-slow);
  }

  .bdh-header__nav--open {
    max-height: 320px;
  }

  .bdh-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-4);
    gap: var(--space-3);
  }

  .bdh-header__nav-item--cta {
    width: 100%;
  }

  .bdh-header__nav-item--cta .bdh-header__nav-link--primary {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 520px) {
  .bdh-header__brand-name {
    font-size: var(--font-size-base);
  }

  .bdh-header__brand-tagline {
    display: none;
  }
}
