:root {
  --sn-bg: rgba(10, 15, 25, 0.93);
  --sn-border: rgba(255, 255, 255, 0.1);
  --sn-text: #ffffff;
  --sn-muted: rgba(255, 255, 255, 0.55);
  --sn-hover: rgba(255, 255, 255, 0.08);
  --sn-active: linear-gradient(135deg, rgba(240,147,251,.2), rgba(245,87,108,.2));
  --sn-active-border: rgba(240,147,251,.3);
}

.stitch-nav {
  position: sticky;
  top: 0;
  z-index: 999;
  width: 100%;
  height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 22px;
  background: var(--sn-bg);
  border-bottom: 1px solid var(--sn-border);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.stitch-nav__brand {
  color: var(--sn-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .4px;
  text-decoration: none;
  white-space: nowrap;
}

.stitch-nav__links {
  display: flex;
  gap: 4px;
  align-items: center;
}

.stitch-nav__link {
  color: var(--sn-muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 10px;
  border: 1px solid transparent;
  white-space: nowrap;
  transition: color .2s, background .2s, border-color .2s;
}

.stitch-nav__link:hover {
  color: var(--sn-text);
  background: var(--sn-hover);
}

.stitch-nav__link.is-active {
  color: var(--sn-text);
  background: var(--sn-active);
  border-color: var(--sn-active-border);
}

.stitch-nav__toggle {
  display: none;
  border: none;
  background: none;
  color: var(--sn-text);
  font-size: 21px;
  padding: 6px 10px;
  border-radius: 10px;
  cursor: pointer;
}

.stitch-nav__toggle:hover {
  background: var(--sn-hover);
}

@media (max-width: 760px) {
  .stitch-nav {
    padding: 0 14px;
  }

  .stitch-nav__toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .stitch-nav__links {
    display: none;
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 10px 14px 14px;
    background: rgba(10, 15, 25, 0.98);
    border-bottom: 1px solid var(--sn-border);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .35);
  }

  .stitch-nav__links.is-open {
    display: flex;
  }

  .stitch-nav__link {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 14px;
  }
}
