/* ============================================================
   NAV — Floating navigation bar (slightly below top edge)
   ============================================================ */

nav {
  position: fixed;
  top: 12px;
  left: 14px;
  right: 14px;
  z-index: 200;
  padding: 0 clamp(1rem, 3vw, 2.5rem);
  height: 58px;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250,250,250,0.9);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 2px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
}

.nav-logo {
  display: flex; align-items: center; gap: .6rem;
  color: var(--ink); text-decoration: none;
}
.nav-logo-mark { flex-shrink: 0; display: block; }
.nav-logo-text {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 1.2rem; font-weight: 800;
  letter-spacing: -0.04em;
  display: flex; flex-direction: column; gap: 0; line-height: 1.15;
}
.nav-logo .dot { color: var(--blue); }
.nav-logo .nav-byline {
  font-size: .58rem; font-weight: 600; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink-mute);
  font-family: 'Instrument Sans', sans-serif;
}

.nav-links { display: flex; gap: 0; list-style: none; }
.nav-links a {
  color: var(--ink-soft); text-decoration: none;
  font-size: .86rem; font-weight: 500;
  padding: .38rem .8rem; border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav-links a:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

.nav-actions { display: flex; align-items: center; gap: .55rem; }

.nav-ghost {
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  background: none; border: none; cursor: pointer;
  padding: .42rem .9rem; border-radius: 8px;
  font-family: 'Instrument Sans', sans-serif;
  transition: color .15s, background .15s;
}
.nav-ghost:hover { color: var(--ink); background: rgba(0,0,0,0.04); }

.nav-cta {
  font-size: .86rem; font-weight: 700; color: var(--white);
  background: var(--ink);
  border: none; cursor: pointer;
  padding: .44rem 1.1rem; border-radius: 10px;
  font-family: 'Instrument Sans', sans-serif;
  transition: background .15s, transform .1s;
  box-shadow: var(--shadow-xs);
}
.nav-cta:hover { background: var(--ink-mid); transform: translateY(-1px); }

/* Hero needs a bit more top padding to clear the floating nav */
.hero { padding-top: 110px; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  nav { left: 10px; right: 10px; }
}

@media (max-width: 600px) {
  nav {
    top: 8px; left: 8px; right: 8px;
    height: 50px;
    padding: 0 .85rem;
  }
  /* Hide "by Prosk AI" on mobile — logo stays clean */
  .nav-byline { display: none; }
  /* Keep only one CTA — hide the ghost "Try Free" link */
  .nav-ghost  { display: none; }
  .nav-logo-text { font-size: 1rem; }
  .nav-cta { font-size: .78rem; padding: .38rem .85rem; }
  /* Reduce hero top-padding to match smaller nav */
  .hero { padding-top: 82px !important; }
}
