.nav {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 8px 8px 18px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(8, 10, 16, 0.7);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  box-shadow:
    0 12px 44px rgba(0,0,0,0.5),
    0 0 0 1px rgba(255,255,255,0.02),
    inset 0 1px 0 rgba(255,255,255,0.07);
  transition: top 0.4s var(--ease), padding 0.3s var(--ease), background 0.3s ease;
  width: max-content;
  max-width: calc(100vw - 24px);
}

.nav.scrolled {
  background: rgba(8, 10, 16, 0.85);
  box-shadow: 0 16px 50px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-size: 15px;
  color: #fff;
  text-decoration: none;
  padding-right: 6px;
  flex-shrink: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  position: relative;
}

.brand-mark svg {
  width: 100%;
  height: 100%;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(139,92,246,0.4));
}

.brand-name {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  background: linear-gradient(180deg, #fff 0%, #c5c8d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin-left: 4px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.08);
  border: 1px solid rgba(52, 211, 153, 0.18);
  font-size: 12px;
  color: #a7f3d0;
  font-weight: 500;
  white-space: nowrap;
}

.nav-status .live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2);
  animation: livePulse 2s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes livePulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(52, 211, 153, 0.2); }
  50% { box-shadow: 0 0 0 6px rgba(52, 211, 153, 0); }
}

.nav-status .count {
  font-variant-numeric: tabular-nums;
  color: #fff;
  font-weight: 600;
}

.nav-divider {
  width: 1px;
  height: 22px;
  background: rgba(255,255,255,0.08);
  margin: 0 6px;
  flex-shrink: 0;
}

.nav-links {
  display: flex;
  gap: 2px;
  align-items: center;
}

.nav-links a {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 14px;
  padding: 8px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  white-space: nowrap;
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255,255,255,0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
}

.nav-signin {
  color: var(--ink-1);
  text-decoration: none;
  font-size: 14px;
  padding: 9px 14px;
  border-radius: 999px;
  transition: color 0.2s ease, background 0.2s ease;
  font-weight: 500;
  background: none;
  border: none;
}

.nav-signin:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  color: #06070b;
  background: linear-gradient(180deg, #fff 0%, #d8d8e6 100%);
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.5);
  box-shadow: 0 4px 14px rgba(255,255,255,0.18), inset 0 -1px 0 rgba(0,0,0,0.18);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
  font-family: inherit;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255,255,255,0.25);
}

.nav-cta:active { transform: translateY(0); }

.nav-cta svg {
  transition: transform 0.2s var(--ease);
}

.nav-cta:hover svg {
  transform: translateX(2px);
}

.nav-burger {
  display: none;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  align-items: center;
  justify-content: center;
  color: #fff;
  margin-left: 4px;
}

.nav-burger svg { width: 18px; height: 18px; }

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(5, 6, 10, 0.92);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 80px 24px 40px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.mobile-menu.open {
  opacity: 1;
  pointer-events: auto;
}

.mobile-menu a {
  font-family: 'Instrument Serif', serif;
  font-size: 36px;
  color: #fff;
  text-decoration: none;
  padding: 12px 24px;
  letter-spacing: -0.01em;
  transition: color 0.2s ease;
}

.mobile-menu a:hover { color: #c4b5fd; }

.mobile-menu .mobile-status {
  margin-top: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.1);
  border: 1px solid rgba(52, 211, 153, 0.2);
  color: #a7f3d0;
  font-size: 14px;
}
