/* ── Nav ──────────────────────────────────────────────────── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  background: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}

nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 32px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.brand-icon {
  width: 42px;
  height: 38px;
  object-fit: contain;
}

.brand-wordmark {
  display: block;
  width: 220px;
  height: auto;
}

.brand-icon,
.brand-wordmark,
.mobile-menu-btn img {
  filter: brightness(1.75) saturate(0.75);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  margin-left: auto;
}

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 6px 12px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

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

.nav-cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  padding: 8px 16px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.nav-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59, 130, 246, 0.4);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-left: auto;
  width: 54px;
  height: 54px;
  align-items: center;
  justify-content: center;
  overflow: visible;
}

.mobile-menu-btn img {
  display: block;
  width: 48px;
  height: 44px;
  object-fit: contain;
  transition: transform 0.35s ease;
}

.mobile-menu-btn.open img {
  transform: rotate(180deg);
}


/* ── Mobile Menu Panel ────────────────────────────────────── */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0; bottom: 0;
  z-index: 98;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.25s;
}

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

.mobile-menu-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(7, 17, 30, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.mobile-menu-panel {
  position: relative;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  padding: 8px 24px 24px;
  transform: translateY(-10px);
  transition: transform 0.25s;
}

.mobile-menu.open .mobile-menu-panel {
  transform: translateY(0);
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.mobile-menu-link {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-sub);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.mobile-menu-link:last-child {
  border-bottom: none;
}

.mobile-menu-link:hover {
  color: var(--text);
}

.mobile-menu-link.active {
  color: var(--text);
}

.mobile-menu-link-ext::after {
  content: ' ↗';
  font-size: 12px;
  opacity: 0.8;
}

.mobile-menu-cta-wrap {
  padding-top: 4px;
}

.mobile-menu-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  padding: 12px 20px;
  border-radius: 9px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.04);
  transition: background 0.2s, border-color 0.2s;
}

.mobile-menu-cta:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(59,130,246,0.4);
}
