:root {
  --site-header-height: 4.5rem;
  --hero-bg: 220 45% 12%;
  --hero-foreground: 0 0% 100%;
  --accent: 188 90% 45%;
  --popover: 0 0% 100%;
  --popover-foreground: 220 40% 13%;
  --border: 220 20% 88%;
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--site-header-height);
  background: hsl(var(--hero-bg) / 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid hsl(var(--hero-foreground) / 0.1);
  color: hsl(var(--hero-foreground));
}

.site-header__inner {
  max-width: 1400px;
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
}

.site-header__brand-icon {
  width: 2rem;
  height: 2rem;
  color: hsl(var(--accent));
  flex-shrink: 0;
}

.site-header__nav {
  display: none;
  align-items: center;
  gap: 2rem;
}

.site-header__nav--desktop {
  margin-left: auto;
}

@media (min-width: 768px) {
  .site-header__nav--desktop {
    display: flex;
  }

  .site-header__menu-btn {
    display: none;
  }
}

.site-header__link {
  color: hsl(var(--hero-foreground) / 0.8);
  text-decoration: none;
  font-size: 0.9375rem;
  transition: color 0.15s ease;
}

.site-header__link:hover,
.site-header__link:focus-visible {
  color: hsl(var(--accent));
  outline: none;
}

.site-header__link--active {
  color: hsl(var(--accent));
  font-weight: 500;
}

.site-header__labs {
  position: relative;
}

.site-header__labs-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9375rem;
  padding: 0;
  color: hsl(var(--hero-foreground) / 0.8);
}

.site-header__labs-trigger:hover,
.site-header__labs-trigger:focus-visible,
.site-header__labs-trigger[aria-expanded="true"] {
  color: hsl(var(--accent));
  outline: none;
}

.site-header__labs-trigger--active {
  color: hsl(var(--accent));
  font-weight: 500;
}

.site-header__labs-chevron {
  width: 1rem;
  height: 1rem;
  opacity: 0.8;
}

.site-header__labs-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 10rem;
  padding: 0.25rem;
  border-radius: 0.375rem;
  border: 1px solid hsl(var(--border));
  background: hsl(var(--popover));
  color: hsl(var(--popover-foreground));
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  list-style: none;
  margin: 0;
}

.site-header__labs-menu[hidden] {
  display: none;
}

.site-header__labs-item a {
  display: block;
  padding: 0.5rem 0.75rem;
  border-radius: 0.25rem;
  color: inherit;
  text-decoration: none;
  font-size: 0.875rem;
}

.site-header__labs-item a:hover,
.site-header__labs-item a:focus-visible {
  background: hsl(var(--accent) / 0.12);
  outline: none;
}

.site-header__menu-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0;
  border: none;
  border-radius: 0.375rem;
  background: transparent;
  color: hsl(var(--hero-foreground));
  cursor: pointer;
}

.site-header__menu-btn:hover {
  background: hsl(var(--hero-foreground) / 0.08);
}

.site-header__nav--mobile {
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  padding: 0 1.5rem 1rem;
  border-top: 1px solid hsl(var(--hero-foreground) / 0.1);
}

.site-header__nav--mobile.is-open {
  display: flex;
}

.site-header__nav--mobile .site-header__labs-menu {
  position: static;
  box-shadow: none;
  border: none;
  padding: 0;
  margin-top: 0.5rem;
  margin-left: 0.5rem;
}
