/* ==========================================================================
   Site-wide navigation Web Component (<site-nav>)
   One component, one stylesheet, used by every public page.
   ========================================================================== */

:root {
  --sn-accent-1: #8a1f66;
  --sn-accent-2: #3a8dff;
  --sn-bg-glass: rgba(10, 10, 14, .55);
  --sn-bg-solid: rgba(10, 10, 14, .92);
  --sn-height: 68px;
}

site-nav {
  display: block;
  height: var(--sn-height);
}

.sn {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: var(--sn-height);
  /* Must outrank .sn__panel (same-level sibling, not a descendant) so the
     toggle button stays clickable - and the header stays visible - while
     the mobile panel is open. */
  z-index: 2200;
  background: var(--sn-bg-glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid rgba(255, 255, 255, .08);
  transition: background .35s ease, border-color .35s ease, box-shadow .35s ease;
}

.sn.is-scrolled {
  background: var(--sn-bg-solid);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}

.sn__bar {
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.sn__brand {
  flex-shrink: 0;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #fff;
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: clamp(1rem, 2.4vw, 1.25rem);
  letter-spacing: .01em;
}

.sn__brand span {
  background: linear-gradient(120deg, var(--sn-accent-1), var(--sn-accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Desktop inline nav ---------- */
.sn__desktop {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  font-family: 'Outfit', sans-serif;
}

.sn__desktop a {
  position: relative;
  color: rgba(255, 255, 255, .82);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  border-radius: 8px;
  white-space: nowrap;
  transition: color .2s ease, background .2s ease;
}

.sn__desktop a:hover {
  color: #fff;
  background: rgba(255, 255, 255, .08);
}

.sn__desktop a.is-active {
  color: #fff;
  font-weight: 700;
}

.sn__desktop a.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--sn-accent-1), var(--sn-accent-2));
}

.sn__desktop a.sn__cta {
  margin-left: 6px;
  color: #0a0a0a;
  background: linear-gradient(120deg, var(--sn-accent-1), var(--sn-accent-2));
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(138, 31, 102, .35);
}

.sn__desktop a.sn__cta:hover {
  filter: brightness(1.08);
  color: #0a0a0a;
  transform: translateY(-1px);
}

.sn__desktop a.sn__signin {
  border: 1px solid rgba(255, 255, 255, .25);
}

/* ---------- "Menu" / "Close" text toggle (no bar icon) ---------- */
.sn__toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .16);
  cursor: pointer;
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: .02em;
  padding: 10px 18px;
  border-radius: 30px;
  line-height: 1;
  z-index: 2100;
  transition: background .2s ease, border-color .2s ease, transform .15s ease;
}

.sn__toggle:hover {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(255, 255, 255, .28);
}

.sn__toggle:active {
  transform: scale(.96);
}

.sn__toggle-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--sn-accent-1), var(--sn-accent-2));
  transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}

.sn__toggle[aria-expanded="true"] {
  background: linear-gradient(120deg, var(--sn-accent-1), var(--sn-accent-2));
  border-color: transparent;
  color: #fff;
}

.sn__toggle[aria-expanded="true"] .sn__toggle-dot {
  background: #fff;
  transform: scale(1.3);
}

/* ---------- Full-screen mobile panel ---------- */
.sn__backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .5);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease;
  z-index: 1900;
}

.sn__backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sn__panel {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  height: 100dvh;
  width: min(88vw, 380px);
  background: linear-gradient(165deg, #0d0d10, #171018 60%, #150d16);
  border-left: 1px solid rgba(255, 255, 255, .08);
  box-shadow: -20px 0 60px rgba(0, 0, 0, .5);
  transform: translateX(100%);
  transition: transform .4s cubic-bezier(.16, 1, .3, 1);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  padding: calc(var(--sn-height) + 20px) 0 30px;
}

.sn__panel.is-open {
  transform: translateX(0);
}

.sn__panel-links {
  display: flex;
  flex-direction: column;
  padding: 6px 14px;
}

.sn__panel-links a {
  color: rgba(255, 255, 255, .88);
  text-decoration: none;
  font-family: 'Outfit', sans-serif;
  font-size: 17px;
  font-weight: 600;
  padding: 14px 12px;
  border-radius: 12px;
  opacity: 0;
  transform: translateX(16px);
  transition: background .2s ease, color .2s ease;
}

.sn__panel.is-open .sn__panel-links a {
  animation: snLinkIn .45s cubic-bezier(.16, 1, .3, 1) forwards;
}

.sn__panel-links a:active,
.sn__panel-links a:hover {
  background: rgba(255, 255, 255, .06);
  color: #fff;
}

.sn__panel-links a.is-active {
  color: #fff;
  background: rgba(255, 255, 255, .05);
}

.sn__panel-links a.is-active::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: linear-gradient(120deg, var(--sn-accent-1), var(--sn-accent-2));
  vertical-align: middle;
}

.sn__panel-links a.sn__cta {
  margin-top: 10px;
  color: #0a0a0a;
  background: linear-gradient(120deg, var(--sn-accent-1), var(--sn-accent-2));
  text-align: center;
  box-shadow: 0 8px 22px rgba(138, 31, 102, .35);
}

.sn__panel-links a.sn__signin {
  border: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
}

.sn__panel-divider {
  height: 1px;
  margin: 10px 24px;
  background: rgba(255, 255, 255, .08);
}

@keyframes snLinkIn {
  to { opacity: 1; transform: translateX(0); }
}

/* stagger the entrance */
.sn__panel-links a:nth-child(1) { animation-delay: .04s; }
.sn__panel-links a:nth-child(2) { animation-delay: .08s; }
.sn__panel-links a:nth-child(3) { animation-delay: .12s; }
.sn__panel-links a:nth-child(4) { animation-delay: .16s; }
.sn__panel-links a:nth-child(5) { animation-delay: .2s; }
.sn__panel-links a:nth-child(6) { animation-delay: .24s; }
.sn__panel-links a:nth-child(7) { animation-delay: .28s; }
.sn__panel-links a:nth-child(8) { animation-delay: .32s; }
.sn__panel-links a:nth-child(9) { animation-delay: .36s; }
.sn__panel-links a:nth-child(10) { animation-delay: .4s; }

@media (prefers-reduced-motion: reduce) {
  .sn, .sn__panel, .sn__backdrop, .sn__toggle-icon span, .sn__panel-links a {
    transition: none !important;
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-width: 880px) {
  .sn__desktop { display: none; }
  .sn__toggle { display: inline-flex; }
}

/* The header is a transparent/glass overlay by design (it only solidifies
   on scroll via .is-scrolled), so it floats over each page's hero section
   instead of reserving space above it - no body padding-top here. */
