/* Header styles for Luminosync NL */

.ls-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(18px);
  background: linear-gradient(to bottom, rgba(5, 7, 17, 0.96), rgba(5, 7, 17, 0.9));
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.ls-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-12);
  padding-bottom: var(--space-12);
  gap: var(--space-16);
}

/* Brand */

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

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

.ls-header__logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0%, rgba(53, 227, 178, 0.75), transparent 58%),
              radial-gradient(circle at 80% 100%, rgba(104, 176, 255, 0.75), transparent 60%),
              #050711;
  box-shadow: 0 0 0 1px rgba(53, 227, 178, 0.6), 0 0 24px rgba(53, 227, 178, 0.55);
}

.ls-header__logo-text {
  font-family: "Space Grotesk", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: var(--fs-sm);
}

.ls-header__logo-accent {
  color: var(--color-primary);
}

/* Navigation */

.ls-header__nav {
  display: flex;
}

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

.ls-header__nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.25rem;
  font-size: var(--fs-sm);
  color: var(--color-text-muted);
}

.ls-header__nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.05rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-strong));
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--transition-base);
}

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

.ls-header__nav-link:hover::after,
.ls-header__nav-link:focus-visible::after {
  transform: scaleX(1);
}

.ls-header__nav-item--cta .ls-header__nav-link {
  padding-inline: 0.9rem;
}

.ls-header__nav-link--cta {
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--fs-xs);
}

/* Mobile toggle */

.ls-header__toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  background: rgba(7, 10, 18, 0.9);
  color: var(--color-text);
}

.ls-header__toggle-bar {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background-color: var(--color-text);
  transition: transform var(--transition-base), opacity var(--transition-base);
}

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

/* Toggle animation */

.ls-header__toggle[aria-expanded="true"] .ls-header__toggle-bar:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.ls-header__toggle[aria-expanded="true"] .ls-header__toggle-bar:nth-child(2) {
  opacity: 0;
}

.ls-header__toggle[aria-expanded="true"] .ls-header__toggle-bar:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* Responsive behavior */

@media (max-width: 768px) {
  .ls-header__toggle {
    display: inline-flex;
  }

  .ls-header__nav {
    position: fixed;
    inset-inline: 0;
    top: 60px;
    max-height: 0;
    overflow: hidden;
    background: radial-gradient(circle at top, rgba(53, 227, 178, 0.12), transparent 55%),
                rgba(5, 7, 17, 0.98);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    transition: max-height var(--transition-base);
  }

  .ls-header__nav-list {
    flex-direction: column;
    align-items: stretch;
    padding: var(--space-16);
  }

  .ls-header__nav-item--cta {
    margin-top: var(--space-8);
  }

  .ls-header__nav-link {
    padding-block: 0.7rem;
  }

  .ls-header__nav--open {
    max-height: 320px;
  }
}

@media (min-width: 769px) {
  .ls-header__nav {
    position: static;
  }
}
