/* Shared fixed marketing / demo header: collapsible nav on small viewports */

.site-header--fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: nowrap;
  gap: 12px 16px;
  padding: 12px 24px;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
}

.site-header--fixed .logo {
  flex-shrink: 0;
}

.site-nav-toggle {
  margin-left: auto;
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 10px;
  background: #0a0a0a;
  color: #ffffff;
  cursor: pointer;
  transition: border-color 0.25s ease, background 0.25s ease;
  flex-shrink: 0;
}

.site-nav-toggle:hover {
  border-color: #ffffff;
  background: #111111;
}

.site-nav-toggle:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.site-nav-toggle__icon {
  width: 22px;
  height: 22px;
  stroke: #ffffff;
}

.site-nav-panel {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  min-width: 0;
}

@media (max-width: 1023px) {
  .site-nav-toggle {
    display: flex;
  }

  .site-nav-panel {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex: none;
    display: block;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    background: #000000;
    border-bottom: 1px solid var(--border);
    transition: max-height 0.45s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
  }

  .site-header--fixed.site-nav-open .site-nav-panel {
    max-height: min(90vh, 640px);
    opacity: 1;
    pointer-events: auto;
    padding: 8px 0 24px;
  }

  .site-nav-panel .nav-links {
    margin-left: 0;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    width: 100%;
    padding: 0 24px 0;
    box-sizing: border-box;
  }

  .site-nav-panel .nav-links a {
    display: block;
    padding: 14px 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 11px;
    letter-spacing: 0.14em;
  }

  .site-nav-panel .nav-links a:last-child {
    border-bottom: none;
  }
}

@media (min-width: 1024px) {
  .site-header--fixed {
    padding: 12px 80px;
  }
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: white;
}

.logo img {
  height: 36px;
  width: auto;
}

.nav-links {
  margin-left: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 14px 22px;
  min-width: 0;
}

.nav-link-key {
  border: 1px solid #ffffff;
  padding: 8px 14px;
  border-radius: 4px;
  color: #ffffff !important;
}

.nav-link-key:hover {
  background: #ffffff;
  color: #000000 !important;
}

.nav-links a {
  text-decoration: none;
  color: #ffffff;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  transition: var(--transition, opacity 0.25s ease);
}

.nav-links a:hover {
  color: #ffffff;
  opacity: 0.88;
}
