/* ============================================================
   06 · COMPONENTS · Header
   Floating pill-shaped site header with blur backdrop.
   ============================================================ */

.c-header {
  position: fixed;
  top: 12px;
  left: 12px;
  right: 12px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in oklab, var(--bg) 70%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  max-width: calc(var(--maxw) - 24px);
  margin-inline: auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.6) inset,
    0 6px 22px rgba(10, 10, 15, 0.06);
}

.c-header__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  white-space: nowrap;
}

/* Brand wordmark image (replaces the old text mark). */
.c-header__logo-img {
  display: block;
  height: 34px;
  width: auto;
}

@media (max-width: 600px) {
  .c-header__logo-img { height: 28px; }
}

.c-header__mark {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--on-accent);
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 800;
  box-shadow: var(--glow);
}

.c-header__nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.c-header__nav-link {
  font-size: 14px;
  color: var(--text-2);
  font-weight: 500;
  transition: color 160ms;
  white-space: nowrap;
}

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

.c-header__cta {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 960px) {
  .c-header__nav { display: none; }
}

@media (max-width: 600px) {
  .c-header {
    top: 10px;
    left: 10px;
    right: 10px;
    padding: 8px 18px;
  }

  .c-header .c-btn--outline { display: none; }

  /* Slimmer CTA so it doesn't crowd the pill on phones. */
  .c-header__cta .c-btn--primary {
    height: 42px;
    padding: 0 18px;
    font-size: 14px;
  }
}
