/* Header styles scoped to .site-header */
:root {
  --w2025-bg: #0b0b0f;
  --w2025-surface: #11131a;
  --w2025-text: #e6e7ee;
  --w2025-muted: #a6a8b3;
  --w2025-cyan: #64ffda;
  --w2025-purple: #7a3cff;
  --w2025-blue: #00d1ff;
  --w2025-magenta: #ff2fa1;
  --w2025-focus: #64ffda;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 0;
  background: var(--w2025-cyan);
  color: #0b0b0f;
  padding: 10px 14px;
  z-index: 10000;
  border-radius: 0 0 6px 0;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--w2025-purple);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 9000;
  background: linear-gradient(180deg, rgba(10,10,15,0.96), rgba(10,10,15,0.9));
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid rgba(100,255,218,0.15);
}
.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-family: 'Orbitron', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  color: var(--w2025-text);
  background: linear-gradient(90deg, var(--w2025-purple), var(--w2025-blue), var(--w2025-magenta));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.brand:focus-visible {
  outline: 2px solid var(--w2025-focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.menu-toggle {
  display: none;
  appearance: none;
  background: transparent;
  border: 1px solid rgba(100,255,218,0.35);
  color: var(--w2025-text);
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.menu-toggle .bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--w2025-text);
  margin: 2px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.menu-toggle:focus-visible {
  outline: 2px solid var(--w2025-focus);
  outline-offset: 3px;
}
.menu-toggle[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  margin-left: auto;
}
.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-item a {
  text-decoration: none;
  color: var(--w2025-text);
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-weight: 600;
  padding: 10px 12px;
  border-radius: 10px;
}
.nav-item a:hover,
.nav-item a:focus-visible {
  color: #0b0b0f;
  background: linear-gradient(90deg, rgba(122,60,255,0.95), rgba(0,209,255,0.95));
  outline: none;
}
.nav-cta a {
  background: linear-gradient(90deg, var(--w2025-purple), var(--w2025-blue));
  color: #0b0b0f;
  box-shadow: 0 0 0 2px rgba(100,255,218,0) inset, 0 8px 20px rgba(0,209,255,0.25);
}
.nav-cta a:hover,
.nav-cta a:focus-visible {
  background: linear-gradient(90deg, var(--w2025-magenta), var(--w2025-cyan));
  box-shadow: 0 0 0 2px rgba(100,255,218,0.65) inset, 0 8px 24px rgba(255,47,161,0.35);
}

/* Mobile behavior: hide nav only if JS is enabled */
@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; flex-direction: column; }
  .site-nav {
    position: static; /* base */
  }
  html.js-enabled .site-nav[data-collapsible] {
    position: fixed;
    inset: 0 0 0 30%;
    background: linear-gradient(180deg, #0b0b10 0%, #0b0b0f 100%);
    padding: 80px 20px 24px 20px;
    transform: translateX(110%);
    transition: transform 0.3s ease;
    box-shadow: -12px 0 30px rgba(0,0,0,0.45);
  }
  html.js-enabled .site-nav[data-collapsible].is-open { transform: translateX(0); }
  .nav-list { flex-direction: column; align-items: flex-start; gap: 8px; }
  .nav-item a { width: 100%; display: block; }
  .nav-backdrop { display: none; }
  html.js-enabled .nav-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(2px);
    z-index: 8000;
    display: none;
  }
  html.js-enabled .nav-backdrop.is-active { display: block; }
  body.nav-open { overflow: hidden; }
}
