.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  padding: 1.25rem 1.25rem 0;
}

.nav__inner {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 0.6rem 0;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  transition: background-color var(--dur-base) var(--ease-out),
    border-color var(--dur-base) var(--ease-out),
    box-shadow var(--dur-base) var(--ease-out),
    padding var(--dur-base) var(--ease-out);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.02em;
}

.nav__logo-img {
  width: 2.5rem;
  height: 2.5rem;
}

@media (max-width: 859px) {
  .nav__logo-img {
    width: 2.125rem;
    height: 2.125rem;
  }
}

.nav__links {
  display: none;
  align-items: center;
  gap: 2rem;
  font-size: 0.875rem;
}

.nav__links a {
  text-decoration: none;
  color: inherit;
  color: var(--slate-600);
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__links a:hover {
  color: var(--blue-700);
}

.nav__actions {
  display: none;
  align-items: center;
  gap: 1.25rem;
}

.nav__signin {
  text-decoration: none;
  color: var(--slate-600);
  font-size: 0.875rem;
  font-weight: 500;
  transition: color var(--dur-fast) var(--ease-out);
}

.nav__signin:hover {
  color: var(--blue-700);
}

/* The waitlist CTA. It replaces .nav__signin as the only action in the nav,
   so it carries the weight of a button rather than a text link: the site has
   no working sign-in to subordinate it to any more. */
.nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  background: var(--blue-700);
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-fast) var(--ease-out);
}

.nav__cta:hover {
  background: var(--blue-600);
}

.nav__cta:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--blue-100);
}

/* coming-soon.html has no drawer (there is nothing to navigate to on it), so
   it would otherwise show a logo and nothing else below the desktop
   breakpoint: .nav__actions is hidden until 860px to leave room for the
   hamburger. */
.nav--simple .nav__actions {
  display: flex;
}

.nav__toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0;
  background: none;
  border: none;
  color: var(--ink);
}

.nav__toggle span {
  display: block;
  width: 100%;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
}

/* ---------- Floating (scrolled) state ---------- */

.nav.is-floating .nav__inner {
  background: var(--white);
  color: var(--ink);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-md);
  padding: 0.5rem 1rem;
}

/* The two @media blocks in this file set the SAME threshold and must stay
   equal: one shows .nav__links, the other hides .mobile-menu. A mismatch would
   show both at once, or neither -- the horizontal row and the drawer are two
   presentations of one menu. */
@media (min-width: 860px) {
  .nav__links,
  .nav__actions {
    display: flex;
  }

  .nav__toggle {
    display: none;
  }

  .nav__inner {
    padding: 0.75rem 0;
  }

  .nav.is-floating .nav__inner {
    padding: 0.6rem 1.5rem;
  }
}

/* ---------- Mobile full-screen overlay ---------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: var(--blue-900);
  color: var(--white);
  display: flex;
  flex-direction: column;
  padding: 1.25rem;
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
}

/* White chip so the logo glyph's dark frame reads on the navy overlay */
.mobile-menu .nav__logo-img {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.25rem;
}

.mobile-menu__close {
  background: none;
  border: none;
  color: inherit;
  width: 2.25rem;
  height: 2.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mobile-menu__links {
  display: flex;
  flex-direction: column;
  margin-top: 2rem;
}

.mobile-menu__links a {
  text-decoration: none;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.75rem;
  padding: 1rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.mobile-menu__links a:hover {
  color: var(--gold-500);
}

@media (min-width: 860px) {
  .mobile-menu {
    display: none;
  }
}
