.header-shell {
  position: sticky;
  top: 0.75rem;
  z-index: 40;
  pointer-events: none;
}

.site-header {
  position: relative;
  max-width: min(1120px, 100% - 2.5rem);
  margin: 0 auto;
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
}

.site-header-inner {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: 0.35rem 0.45rem;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02));
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 1000;
}

.site-header-inner::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.5), transparent 55%);
  opacity: 0.18;
  pointer-events: none;
}

.header-brand {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
}

.header-brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.9rem 0.3rem 0.35rem;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.3), rgba(10, 10, 18, 0.9));
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 0 0 1px rgba(255, 47, 146, 0.4), 0 0 22px rgba(255, 47, 146, 0.5);
}

.header-logo-mark {
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #ffffff, #ffe3f4 30%, #ff2f92 60%, #7a3bb8 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-bg);
  font-family: var(--font-accent);
  font-size: 1.1rem;
  font-weight: 700;
}

.header-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-logo-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-logo-subtitle {
  font-size: 0.7rem;
  color: var(--color-text-muted);
}

.header-nav {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
}

.header-nav-list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-nav-item {
  flex: 0 0 auto;
}

.header-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  white-space: nowrap;
  transition: color var(--transition-base), background-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.header-nav-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 1px solid transparent;
  transition: border-color var(--transition-base), box-shadow var(--transition-base), opacity var(--transition-base);
  opacity: 0;
}

.header-nav-link:hover {
  color: #ffffff !important;
  background-color: rgba(255, 255, 255, 0.06);
}

.header-nav-link:hover::after {
  border-color: rgba(255, 47, 146, 0.7);
  box-shadow: 0 0 18px rgba(255, 47, 146, 0.7);
  opacity: 1;
}

.header-nav-link.is-active {
  color: #ffffff;
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.75), rgba(122, 59, 184, 0.8));
  box-shadow: 0 0 0 1px rgba(255, 47, 146, 0.6), 0 0 24px rgba(255, 47, 146, 0.7);
}

.header-cta {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
}

.header-nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 0.18rem;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.5), rgba(10, 10, 18, 0.9));
  box-shadow: 0 0 0 1px rgba(255, 47, 146, 0.5), 0 0 20px rgba(255, 47, 146, 0.6);
  padding: 0;
  color: #ffffff;
}

.header-nav-toggle-bar {
  width: 1.15rem;
  height: 2px;
  border-radius: 999px;
  background: #ffffff;
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}

.header-nav-toggle.is-open .header-nav-toggle-bar:nth-child(1) {
  transform: translateY(4px) rotate(42deg);
  width: 1.05rem;
}

.header-nav-toggle.is-open .header-nav-toggle-bar:nth-child(2) {
  opacity: 0;
}

.header-nav-toggle.is-open .header-nav-toggle-bar:nth-child(3) {
  transform: translateY(-4px) rotate(-42deg);
  width: 1.05rem;
}

.header-mobile-nav {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.28), transparent 60%), rgba(5, 5, 9, 0.96);
  backdrop-filter: blur(var(--blur-soft));
  -webkit-backdrop-filter: blur(var(--blur-soft));
  display: none;
  z-index: 35;
}

.header-mobile-nav.is-open {
  display: block;
}

.header-mobile-nav-panel {
  position: absolute;
  inset-inline: clamp(1.25rem, 6vw, 2.5rem);
  top: 5.25rem;
  bottom: 1.5rem;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, rgba(20, 20, 32, 0.98), rgba(10, 10, 18, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow-glass), var(--shadow-glow-pink);
  padding: 1.1rem 1.1rem 1.2rem;
  display: flex;
  flex-direction: column;
}

.header-mobile-nav-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  overflow-y: auto;
  padding-right: 0.15rem;
}

.header-mobile-nav-item-secondary {
  margin-top: 0.25rem;
}

.header-mobile-nav-link,
.header-mobile-nav-link-secondary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0.9rem;
  border-radius: var(--radius-lg);
  color: var(--color-text-soft);
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid transparent;
  transition: background-color var(--transition-base), border-color var(--transition-base), color var(--transition-base), transform var(--transition-fast);
}

.header-mobile-nav-link:hover,
.header-mobile-nav-link-secondary:hover {
  background-color: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 47, 146, 0.6);
  color: #ffffff !important;
  transform: translateY(-1px);
}

.header-mobile-nav-link.is-active {
  background: radial-gradient(circle at top left, rgba(255, 47, 146, 0.8), rgba(122, 59, 184, 0.85));
  color: var(--color-text-invert);
  border-color: transparent;
}

.header-mobile-nav-footer {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.header-mobile-nav-footer .btn {
  width: 100%;
}

@media (max-width: 1023.98px) {
  .site-header {
    max-width: 100%;
    padding-inline: 1.1rem;
  }
  .header-nav {
    display: none;
  }
  .header-cta {
    display: none;
  }
  .header-nav-toggle {
    display: inline-flex;
  }
  .header-brand-pill {
    padding-right: 0.65rem;
  }
  .header-logo-title {
    font-size: 0.85rem;
  }
  .header-logo-subtitle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .header-mobile-nav {
    display: none !important;
  }
}

@media (max-width: 479.98px) {
  .site-header-inner {
    padding-inline: 0.4rem;
  }
  .header-logo-title {
    font-size: 0.8rem;
  }
}
