/**
 * Shared marketing-site primary nav styling.
 *
 * Used by every marketing page so the top bar (brand → links →
 * right-side CTAs) looks identical regardless of per-page design
 * tokens. Hardcoded hex values on purpose — the three topbar-era
 * pages (contact, team, for-brands) use different CSS variables, so
 * depending on --brand / --ink etc. would break them.
 *
 * Pair with marketing/nav-mobile.js — that script injects the burger
 * + dropdown menu at ≤ 920px and expects these class names.
 */

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 18px 32px;
  max-width: 1360px;
  margin: 0 auto;
  font-family: "Geist", "Inter", "Helvetica Neue", Arial, sans-serif;
}
.nav a { color: inherit; text-decoration: none; }
.nav__brand { display: inline-flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 500; letter-spacing: -0.015em; color: #0a0a0a; }
.nav__brand svg { width: 22px; height: 22px; color: #6D28D9; }
.nav__links { display: inline-flex; align-items: center; gap: 4px; margin-left: 12px; }
.nav__link { padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: #1f2937; border-radius: 8px; transition: background-color 160ms ease, color 160ms ease; }
.nav__link:hover { background: rgba(10, 10, 10, 0.04); color: #0a0a0a; }
.nav__link--active { color: #6D28D9; background: #ede9fe; }
.nav__right { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.nav__login { padding: 8px 14px; font-size: 14.5px; font-weight: 500; color: #1f2937; }
.nav__login:hover { color: #0a0a0a; }
.nav__demo, .nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 18px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.005em;
  cursor: pointer;
  text-decoration: none;
  transition: transform 120ms ease, box-shadow 200ms ease, background 200ms ease;
}
.nav__demo { background: #0a0a0a; color: #ffffff; box-shadow: inset 0 -3px 0 rgba(255,255,255,0.08), inset 0 1px 0 rgba(255,255,255,0.10), 0 1px 2px rgba(10,10,10,0.18), 0 10px 20px -8px rgba(10,10,10,0.35); }
.nav__demo:hover { background: #1f2937; color: #ffffff; }
.nav__cta { background: #7C3AED; color: #ffffff; box-shadow: inset 0 -3px 0 rgba(0,0,0,0.18), inset 0 1px 0 rgba(255,255,255,0.35), 0 1px 2px rgba(10,10,10,0.12), 0 10px 20px -8px rgba(109,40,217,0.35); }
.nav__cta:hover { background: #6D28D9; color: #ffffff; }
@media (max-width: 920px) {
  .nav { gap: 16px; padding: 14px 20px; flex-wrap: wrap; }
  .nav__links, .nav__login, .nav__demo { display: none; }
}

/* Nav dropdown (Resources menu) — CSS-only, opens on hover + keyboard focus. */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14.5px;
  font-weight: 500;
  color: #1f2937;
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 160ms ease, color 160ms ease;
}
.nav__dropdown-toggle:hover,
.nav__dropdown:focus-within .nav__dropdown-toggle { background: rgba(10,10,10,0.04); color: #0a0a0a; }
.nav__dropdown-toggle svg { width: 12px; height: 12px; transition: transform 160ms ease; }
.nav__dropdown:hover .nav__dropdown-toggle svg,
.nav__dropdown:focus-within .nav__dropdown-toggle svg { transform: rotate(180deg); }
.nav__dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 220px;
  padding: 6px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(10,10,10,0.04), 0 10px 28px -8px rgba(10,10,10,0.18);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition: opacity 160ms ease, transform 160ms ease;
  z-index: 50;
}
.nav__dropdown:hover .nav__dropdown-menu,
.nav__dropdown:focus-within .nav__dropdown-menu { opacity: 1; pointer-events: auto; transform: translateY(0); }
.nav__dropdown-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; font-weight: 500; color: #0a0a0a; border-radius: 7px; text-decoration: none; }
.nav__dropdown-item:hover { background: rgba(10,10,10,0.04); }
.nav__dropdown-item-icon { width: 32px; height: 32px; border-radius: 7px; background: #ede9fe; color: #7C3AED; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.nav__dropdown-item-icon svg { width: 16px; height: 16px; }
.nav__dropdown-item-label { display: flex; flex-direction: column; gap: 2px; }
.nav__dropdown-item-label strong { font-weight: 600; font-size: 14px; color: #0a0a0a; line-height: 1.2; }
.nav__dropdown-item-label span { font-size: 12.5px; color: #9ca3af; line-height: 1.3; }
