.vcr-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(16px);
  background: linear-gradient(to bottom, rgba(5, 7, 10, 0.96), rgba(5, 7, 10, 0.9) 70%, rgba(5, 7, 10, 0));
  border-bottom: 1px solid var(--color-border-subtle);
}

.vcr-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-3);
  padding-bottom: var(--space-3);
  gap: var(--space-4);
}

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

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

.vcr-header__logo-mark {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-xl);
  border: 1px solid rgba(212, 175, 55, 0.7);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 15% 0, rgba(241, 201, 75, 0.9), rgba(15, 39, 71, 0.7) 40%, rgba(5, 7, 10, 1) 100%);
  box-shadow: var(--shadow-subtle);
}

.vcr-header__logo-symbol {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 35% 65% 40% 60%;
  border: 2px solid rgba(5, 7, 10, 0.9);
  box-shadow: inset 0 0 0 1px rgba(247, 243, 232, 0.4);
}

.vcr-header__brand-text {
  display: flex;
  flex-direction: column;
}

.vcr-header__brand-title {
  font-family: var(--font-display);
  font-size: var(--font-size-lg);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.vcr-header__brand-tagline {
  font-size: var(--font-size-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--color-text-muted);
}

.vcr-header__nav {
  display: flex;
}

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

.vcr-header__nav-link {
  position: relative;
  font-size: var(--font-size-sm);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--color-text-muted);
  padding: 0.35rem 0;
}

.vcr-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-accent-burgundy));
  transition: width var(--transition-base);
}

.vcr-header__nav-link:hover::after,
.vcr-header__nav-link:focus-visible::after {
  width: 100%;
}

.vcr-header__nav-link:hover,
.vcr-header__nav-link:focus-visible {
  color: var(--color-text);
}

.vcr-header__nav-item--cta .vcr-header__nav-link--cta {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid rgba(212, 175, 55, 0.85);
  background: radial-gradient(circle at 0 0, rgba(212, 175, 55, 0.25), rgba(5, 7, 10, 0.95));
  box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.15);
}

.vcr-header__nav-item--cta .vcr-header__nav-link--cta::after {
  display: none;
}

.vcr-header__nav-item--cta .vcr-header__nav-link--cta:hover,
.vcr-header__nav-item--cta .vcr-header__nav-link--cta:focus-visible {
  background: linear-gradient(135deg, var(--color-primary) 0, var(--color-primary-strong) 40%, #ffffff 100%);
  color: #1b1304;
  box-shadow: var(--shadow-soft);
}

.vcr-header__toggle {
  display: none;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  cursor: pointer;
}

.vcr-header__toggle-box {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(5, 7, 10, 0.9);
}

.vcr-header__toggle-line {
  position: relative;
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base), background-color var(--transition-base);
}

.vcr-header__toggle-line--top {
  transform: translateY(-4px);
}

.vcr-header__toggle-line--bottom {
  transform: translateY(4px);
}

.vcr-header__toggle-text {
  font-size: var(--font-size-xs);
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-text-muted);
}

/* Mobile state */

@media (max-width: 900px) {
  .vcr-header__inner {
    padding-top: var(--space-2);
    padding-bottom: var(--space-2);
  }

  .vcr-header__nav {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;

  background-color: #05070a;
  background-image:
    radial-gradient(circle at top,
      rgba(212, 175, 55, 0.08),
      transparent 50%);

  backdrop-filter: blur(20px);

  z-index: 999;

  transform: translateY(-20px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;

  transition: all 0.3s ease;
}

 .vcr-header__nav-list {
  background: #05070a;
  width: 100%;

  flex-direction: column;
  align-items: flex-start;

  padding: 24px;
  gap: 16px;
}

  .vcr-header__nav-link {
    font-size: var(--font-size-base);
  }

  .vcr-header__nav-item--cta .vcr-header__nav-link--cta {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .vcr-header__toggle {
    display: inline-flex;
  }

  .vcr-header--menu-open .vcr-header__nav {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
  .vcr-header--menu-open .vcr-header__toggle-line--top {
    transform: translateY(0) rotate(40deg);
  }

  .vcr-header--menu-open .vcr-header__toggle-line--middle {
    opacity: 0;
  }

  .vcr-header--menu-open .vcr-header__toggle-line--bottom {
    transform: translateY(0) rotate(-40deg);
  }
}

/* Reduced motion */

@media (prefers-reduced-motion: reduce) {
  .vcr-header__nav,
  .vcr-header__toggle-line {
    transition: none;
  }
}
