.header-shell--light {
  background-color: rgba(255, 255, 255, 0.96);
}
.header-shell {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}
.header-shell__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  height: var(--header-height);
  min-width: 0;
  max-width: 100%;
}

.header-shell__brand {
  min-width: 0;
  flex-shrink: 1;
}

.header-shell__brand-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.header-shell__nav {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
  flex-shrink: 0;
}
.header-shell__nav-main {
  display: flex;
  align-items: center;
}
.header-shell__nav-cta {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.header-nav__item {
  flex: 0 0 auto;
}
.header-nav__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--transition-base), background-color var(--transition-base), transform var(--transition-fast);
}
.header-nav__link::after {
  content: "";
  position: absolute;
  inset: auto 0 -0.3rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #22d3ee, #ec4899);
  transform-origin: center;
  transform: scaleX(0);
  opacity: 0;
  transition: transform var(--transition-base), opacity var(--transition-base);
}
.header-nav__link:hover {
  color: var(--color-text);
  transform: translateY(-1px);
}
.header-nav__link:hover::after {
  transform: scaleX(1);
  opacity: 1;
}
.header-nav__link--active {
  color: var(--color-text);
  background-color: rgba(15, 23, 42, 0.04);
}
.header-nav__link--active::after {
  transform: scaleX(1);
  opacity: 1;
}
.header-shell__toggle {
  position: relative;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background-color: rgba(15, 23, 42, 0.02);
  display: none;
}
.header-toggle__bar {
  position: absolute;
  left: 0.55rem;
  right: 0.55rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #ec4899);
  transition: transform var(--transition-base), opacity var(--transition-base), top var(--transition-base), bottom var(--transition-base);
}
.header-toggle__bar:first-child {
  top: 0.85rem;
}
.header-toggle__bar:last-child {
  bottom: 0.85rem;
}
.header-shell__toggle[aria-expanded="true"] .header-toggle__bar:first-child {
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}
.header-shell__toggle[aria-expanded="true"] .header-toggle__bar:last-child {
  bottom: 50%;
  transform: translateY(50%) rotate(-45deg);
}
.header-mobile {
  position: relative;
  max-height: 0;
  overflow: hidden;
  background-color: rgba(5, 8, 22, 0.98);
  border-bottom: 1px solid rgba(37, 99, 235, 0.5);
  transition: max-height var(--transition-slow), opacity var(--transition-slow);
  opacity: 0;
}
.header-mobile--open {
  max-height: 80vh;
  opacity: 1;
}
.header-mobile__list {
  list-style: none;
  margin: 0;
  padding: var(--space-3) 0 var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.header-mobile__item {
  width: 100%;
}
.header-mobile__item--accent .header-mobile__link {
  background: linear-gradient(135deg, #ec4899, #f97316);
  color: var(--color-text-inverse);
}
.header-mobile__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0.7rem 0.25rem;
  border-radius: 0.75rem;
  font-size: var(--font-size-sm);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.92);
  text-decoration: none;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.4), transparent 60%), radial-gradient(circle at 100% 0%, rgba(236, 72, 153, 0.4), transparent 60%), rgba(15, 23, 42, 0.96);
}
.header-mobile__link:hover {
  border-color: rgba(56, 189, 248, 0.9);
}
.header-mobile__link--active {
  border-color: rgba(56, 189, 248, 0.9);
  color: #f9fafb;
}

@media (max-width: 1279.98px) {
  .header-shell__inner {
    height: auto;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }
  .header-shell__nav-main {
    display: none;
  }
  .header-shell__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
}
@media (max-width: 767.98px) {
  .header-shell__nav {
    gap: var(--space-2);
  }
  .btn.btn--secondary.btn--sm {
    padding-inline: 0.9rem;
  }
}
@media (min-width: 1280px) {
  .header-mobile {
    display: none;
  }
}
