.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(248, 250, 252, 0.96), rgba(248, 250, 252, 0.9));
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: var(--space-4);
}

.site-header__brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.site-header__logo-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: inherit;
}

.site-header__logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.35rem;
  border-radius: 999px;
  background: radial-gradient(circle at 0 0, rgba(37, 99, 235, 0.22), transparent 55%), radial-gradient(circle at 100% 100%, rgba(250, 204, 21, 0.3), transparent 55%), #0f172a;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.35);
}

.site-header__logo-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
}

.site-header__logo-dot--blue {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}

.site-header__logo-dot--yellow {
  background: linear-gradient(135deg, #facc15, #eab308);
}

.site-header__logo-dot--green {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.site-header__logo-text {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-header__logo-title {
  font-family: var(--font-display);
  font-weight: 650;
  letter-spacing: -0.02em;
  font-size: var(--font-size-base);
  white-space: nowrap;
}

.site-header__logo-subtitle {
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
  max-width: 22rem;
}

.site-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-5);
}

.site-header__nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.site-header__nav-list--secondary {
  display: none;
}

.site-header__nav-item {
  display: flex;
}

.site-header__nav-link {
  font-size: var(--font-size-sm);
  font-weight: 500;
  color: var(--color-text-soft);
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.site-header__nav-link:hover {
  color: var(--color-text);
}

.site-header__nav-link.is-active {
  color: var(--color-primary-strong);
  border-bottom-color: rgba(37, 99, 235, 0.85);
}

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

.site-header__nav-cta-link.is-active {
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.4), 0 14px 30px rgba(37, 99, 235, 0.35);
}

.site-header__toggle {
  display: none;
  position: relative;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(255, 255, 255, 0.9);
  align-items: center;
  justify-content: center;
  padding: 0.4rem;
  transition: background-color var(--transition-base), border-color var(--transition-base), box-shadow var(--transition-base), transform var(--transition-fast);
}

.site-header__toggle:hover {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: var(--shadow-subtle);
}

.site-header__toggle:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
}

.site-header__toggle-bar {
  display: block;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background-color: #0f172a;
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

.site-header__toggle-bar + .site-header__toggle-bar {
  margin-top: 0.22rem;
}

.site-header--menu-open .site-header__toggle-bar:nth-child(1) {
  transform: translateY(0.24rem) rotate(45deg);
}

.site-header--menu-open .site-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.site-header--menu-open .site-header__toggle-bar:nth-child(3) {
  transform: translateY(-0.24rem) rotate(-45deg);
}

@media (max-width: 1023.98px) {
  .site-header__inner {
    height: auto;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .site-header__toggle {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
  }
  .site-header__nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    margin-top: 0.25rem;
    padding: 0.5rem var(--space-4) 0.9rem;
    background: radial-gradient(circle at top left, rgba(37, 99, 235, 0.08), transparent 55%), radial-gradient(circle at top right, rgba(250, 204, 21, 0.12), transparent 55%), rgba(248, 250, 252, 0.98);
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
    box-shadow: var(--shadow-subtle);
    display: none;
  }
  .site-header--menu-open .site-header__nav {
    display: block;
  }
  .site-header__nav-list {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
  .site-header__nav-list--secondary {
    display: flex;
    margin-top: 0.75rem;
    padding-top: 0.5rem;
    border-top: 1px dashed rgba(148, 163, 184, 0.5);
  }
  .site-header__nav-cta {
    margin-top: 0.75rem;
  }
  .site-header__nav-cta-link {
    width: 100%;
    justify-content: center;
  }
  .site-header__logo-subtitle {
    max-width: 12rem;
  }
}

@media (max-width: 639.98px) {
  .site-header__inner {
    gap: var(--space-3);
  }
  .site-header__logo-text {
    max-width: 11.5rem;
  }
  .site-header__logo-title {
    font-size: 0.95rem;
  }
  .site-header__logo-subtitle {
    display: none;
  }
}

@media (min-width: 1024px) {
  .site-header__nav-list--secondary {
    display: none;
  }
}
