/* ==========================================================================
   The site navigation (scripts/lib/site-nav.mjs), on every page.
   Transparent over the top of the page, then a dark translucent bar once the
   visitor scrolls. Scoped under .jn; Framer's own bar is hidden by
   site-nav.js only once this one is in place.
   ========================================================================== */

.jn {
  --jn-ink: #0d0a1a;
  --jn-txt: #fff;
  --jn-muted: #ffffffb8;
  --jn-line: #ffffff1f;
  --jn-sans: "Figtree", "Figtree Placeholder", sans-serif;

  position: fixed;
  inset: 0 0 auto;
  z-index: 1000;
  font-family: var(--jn-sans);
  color: var(--jn-txt);
  transition: background-color 0.25s ease, border-color 0.25s ease;
  border-bottom: 1px solid transparent;
}

.jn *,
.jn *::before,
.jn *::after {
  box-sizing: border-box;
}

/* A plain ink background: a backdrop blur over the playing video cost a
   frame on every scroll. */
.jn.is-scrolled,
.jn.is-open {
  background: #0d0a1af7;
  border-bottom-color: var(--jn-line);
}

.jn__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.jn__brand {
  display: flex;
  flex: none;
}

.jn__brand img {
  display: block;
  width: auto;
  height: 26px;
}

.jn__menu {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 auto;
}

.jn__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: none;
  font: 500 15px var(--jn-sans);
  color: var(--jn-muted);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.jn__link:hover,
.jn__link[aria-expanded="true"] {
  color: var(--jn-txt);
}

.jn__chev {
  width: 7px;
  height: 7px;
  margin-top: -3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
}

.jn__toggle[aria-expanded="true"] .jn__chev {
  margin-top: 3px;
  transform: rotate(225deg);
}

.jn__drop {
  position: relative;
}

.jn__panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 4px;
  width: 560px;
  padding: 10px;
  border: 1px solid var(--jn-line);
  border-radius: 16px;
  background: #0d0a1af5;
  box-shadow: 0 20px 50px #00000059;
  transform: translateX(-50%);
}

/* Bridges the gap under the button, so moving the mouse down keeps it open. */
.jn__panel::before {
  content: "";
  position: absolute;
  top: -12px;
  right: 0;
  left: 0;
  height: 12px;
}

.jn__panel[hidden] {
  display: none;
}

.jn__feat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.jn__feat:hover,
.jn__feat:focus-visible {
  background: #ffffff0f;
}

.jn__feat-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--jn-txt);
}

.jn__feat-text {
  font-size: 13px;
  line-height: 1.4;
  color: var(--jn-muted);
}

.jn__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

.jn__login {
  padding: 0 12px;
  font-size: 15px;
  font-weight: 500;
  color: var(--jn-txt);
  text-decoration: none;
}

.jn__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--jn-line);
  border-radius: 999px;
  background: var(--jn-ink);
  font-size: 15px;
  font-weight: 600;
  color: var(--jn-txt);
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.jn__cta:hover {
  background: #1b1730;
}

.jn a:focus-visible,
.jn button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.jn__burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: none;
  cursor: pointer;
}

.jn__burger span,
.jn__burger span::before,
.jn__burger span::after {
  display: block;
  width: 20px;
  height: 1.5px;
  margin: 0 auto;
  background: #fff;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.jn__burger span {
  position: relative;
}

.jn__burger span::before,
.jn__burger span::after {
  content: "";
  position: absolute;
  left: 0;
}

.jn__burger span::before {
  top: -6px;
}

.jn__burger span::after {
  top: 6px;
}

.jn__burger[aria-expanded="true"] span {
  background: transparent;
}

.jn__burger[aria-expanded="true"] span::before {
  transform: translateY(6px) rotate(45deg);
}

.jn__burger[aria-expanded="true"] span::after {
  transform: translateY(-6px) rotate(-45deg);
}

.jn__mobile {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 72px);
  overflow-y: auto;
  padding: 8px 20px 24px;
}

.jn__mobile[hidden] {
  display: none;
}

.jn__mobile-label {
  margin: 16px 0 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #ffffff80;
}

.jn__mobile-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  font-size: 17px;
  font-weight: 500;
  color: var(--jn-txt);
  text-decoration: none;
}

.jn__cta--block {
  min-height: 48px;
  margin-top: 16px;
  font-size: 16px;
}

@media (max-width: 960px) {
  .jn__menu,
  .jn__login {
    display: none;
  }

  .jn__bar {
    justify-content: space-between;
    height: 64px;
    padding: 0 12px 0 16px;
  }

  .jn__burger {
    display: block;
  }

  .jn__actions .jn__cta {
    min-height: 36px;
    padding: 0 14px;
    font-size: 14px;
  }

  .jn__mobile {
    max-height: calc(100vh - 64px);
  }
}
