.vs-header {
  position: sticky;
  top: 0;
  z-index: 40;
}

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

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

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

.vs-header__logo-mark {
  width: 40px;
  height: 40px;
  border-radius: 1.4rem;
  background: radial-gradient(circle at 20% 0, #fff7d6, transparent 55%), linear-gradient(135deg, #38c6cf, #6bb8ff, #ff9ac9);
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.vs-header__logo-chip {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8);
}

.vs-header__logo-text {
  display: flex;
  flex-direction: column;
}

.vs-header__logo-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.03em;
}

.vs-header__logo-subtitle {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

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

.vs-header__nav-list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.vs-header__nav-item--highlight {
  margin-left: var(--space-3);
}

.vs-header__cta {
  padding-inline: 1.2rem;
}

.vs-header__menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-xs);
  cursor: pointer;
}

.vs-header__menu-icon {
  width: 18px;
  height: 14px;
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: space-between;
}

.vs-header__menu-icon span {
  display: block;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), width var(--transition-base);
}

.vs-header__menu-toggle:focus-visible {
  outline: 2px solid var(--color-accent-lilac);
  outline-offset: 2px;
}

@media (max-width: 768px) {
  .vs-header__nav {
    position: fixed;
    width: 100%;
    left: 0;
    top: 0;
    inset-block-start: 64px;
    background: radial-gradient(circle at top, rgba(255, 255, 255, 0.98), rgba(232, 241, 255, 0.98));
    backdrop-filter: blur(22px) saturate(1.25);
    transform: translateY(-4%);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base), transform var(--transition-base);
  }

  .vs-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--space-6) var(--space-4) var(--space-8);
    gap: var(--space-2);
  }

  .vs-header__nav-item--highlight {
    margin-left: 0;
    margin-top: var(--space-4);
    width: 100%;
  }

  .vs-header__nav-item--highlight .vs-header__cta {
    width: 100%;
    justify-content: center;
  }

  .vs-header__menu-toggle {
    margin-left: auto;
  }

  .vs-header__nav--open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .vs-header__menu-toggle[aria-expanded="true"] .vs-header__menu-icon span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .vs-header__menu-toggle[aria-expanded="true"] .vs-header__menu-icon span:nth-child(2) {
    opacity: 0;
    width: 0;
  }

  .vs-header__menu-toggle[aria-expanded="true"] .vs-header__menu-icon span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }
}

@media (min-width: 769px) {
  .vs-header__menu-toggle {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vs-header__nav,
  .vs-header__menu-icon span {
    transition: none;
  }
}