/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding-top: 16px; transition: padding .3s;
}
.nav-inner {
  width: min(var(--maxw), calc(100% - 32px));
  display: flex; align-items: center; gap: 20px;
  height: 64px; padding: 0 10px 0 20px; border-radius: 999px;
  background: var(--surface-glass); backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: box-shadow .3s, background .3s, border-color .3s;
}
.nav.scrolled .nav-inner { box-shadow: var(--shadow-md); }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -0.03em; }
.brand-logo { height: 38px; width: auto; flex: none; object-fit: contain; display: block; }
.brand b { font-weight: 800; }
.brand .v { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: color .2s, background .2s;
}
.nav-links a:hover { color: var(--ink); background: var(--accent-soft); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--ink-2);
  transition: transform .25s, color .25s, border-color .25s, background .25s;
}
.icon-btn:hover { color: var(--accent); border-color: var(--accent); transform: translateY(-1px); }
.icon-btn svg { width: 19px; height: 19px; }
.theme-toggle .moon { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .moon { display: block; }
.nav-cta { display: inline-flex; }
.burger { display: none; }

/* mobile menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 99; background: var(--bg);
  padding: 96px var(--pad) 40px; display: flex; flex-direction: column; gap: 6px;
  transform: translateY(-12px); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.mobile-menu.open { opacity: 1; transform: none; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.6rem; font-weight: 600; padding: 14px 0; border-bottom: 1px solid var(--border); }
.mobile-menu .btn { margin-top: 24px; }

