/* Shared navigation component for public, server-rendered marketing pages. */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
}
.nav .container {
  max-width: none;
  padding-inline: 0;
}
.nav-inner {
  display: flex;
  width: calc(100% - clamp(40px, 6vw, 96px));
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-inline: auto;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--fg); font-size: 17px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; overflow: hidden; border-radius: 8px; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.nav-links { display: none; gap: 28px; color: var(--fg-soft); font-size: 14px; }
.nav-links a { color: inherit; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--fg); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.header-download svg { display: none; width: 20px; height: 20px; }
.theme-toggle { display: grid; width: 44px; height: 44px; place-items: center; border: 1px solid var(--border-strong); border-radius: 12px; background: var(--button-bg); color: var(--fg); cursor: pointer; transition: background-color 160ms cubic-bezier(0.22, 1, 0.36, 1), border-color 160ms cubic-bezier(0.22, 1, 0.36, 1); }
.theme-toggle:hover { background: var(--button-bg-hover); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: block; }
}
@media (min-width: 860px) { .nav-links { display: flex; } }
@media (max-width: 520px) {
  .nav-inner { padding: 12px 0; }
  .nav .header-download { display: grid; width: 44px; min-width: 44px; height: 44px; min-height: 44px; padding: 0; place-items: center; }
  .header-download svg { display: block; }
  .header-download-label { display: none; }
}
@media (max-width: 380px) {
  .nav-inner { gap: 8px; }
  .nav-actions { gap: 8px; }
  .brand { gap: 8px; font-size: 15px; }
  .brand-mark { width: 32px; height: 32px; border-radius: 8px; }
}
