/* Canonical static public header. No article/content typography rules. */
:where(.nav, .nrv-top-notice) {
  --accent: oklch(67.3% .182 276.935);
  --bg: oklch(14.5% .008 276.935);
  --hairline: oklch(100% 0 0 / .09);
  --text: oklch(100% 0 0 / .92);
  --text-2: oklch(100% 0 0 / .62);
  --text-3: oklch(100% 0 0 / .42);
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, monospace;
}
.nav, .nav *, .nrv-top-notice, .nrv-top-notice * { box-sizing: border-box; margin: 0; padding: 0; }
.nav { font: 400 15px/1.6 var(--sans); letter-spacing: 0; }
.nav .container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.nav .btn { display: inline-flex; align-items: center; justify-content: center; height: 32px; padding: 0 14px; border: 1px solid transparent; border-radius: 6px; appearance: none; background: transparent; font: 500 13px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.nav :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.nrv-blog-article { transition: padding-right .3s ease-out; }
.nrv-top-notice-spacer {
  height: 44px;
}

.nrv-top-notice {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--hairline);
  background:
    linear-gradient(90deg, oklch(14.5% .008 276.935 / .96), oklch(18% .018 276.935 / .96)),
    var(--bg);
  color: var(--text);
  padding: 9px 24px;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, right .3s ease-out;
}

.nrv-top-notice:hover {
  border-bottom-color: oklch(67.3% .182 276.935 / .34);
  background:
    linear-gradient(90deg, oklch(15.5% .012 276.935 / .98), oklch(20% .028 276.935 / .98)),
    var(--bg);
}

.nrv-top-notice-eyebrow,
.nrv-top-notice-copy,
.nrv-top-notice-action {
  flex: 0 0 auto;
  font-family: var(--mono) !important;
  font-size: 10.5px !important;
  font-weight: 500 !important;
  letter-spacing: .12em !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
}

.nrv-top-notice-eyebrow { color: oklch(66% .14 250) !important; }
.nrv-top-notice-action { color: oklch(86% .055 276.935) !important; }
.nrv-top-notice-copy {
  min-width: 0;
  color: var(--text) !important;
}

/* ----- Nav ----- */
.nav {
  position: fixed; inset: 44px 0 auto; z-index: 10;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease, right .3s ease-out;
}
.nav.scrolled {
  background: oklch(14.5% .008 276.935 / .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--hairline);
}
.nav-progress {
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px; background: var(--accent);
  transform: scaleX(0); transform-origin: 0 50%;
}
.nav-inner { display: flex; align-items: center; height: 60px; gap: 40px; }

.nav-logo { display: inline-flex; }
.nav-logo img {
  width: 34px; height: 34px; display: block;
  transition: transform .25s ease;
}
.nav-logo:hover img { transform: scale(1.1) rotate(-8deg); }
.nav :where(.wordmark) {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 16px; font-weight: 600; letter-spacing: -.02em;
  color: var(--text); text-decoration: none;
}
.nav :where(.mark) { width: 22px; height: 22px; display: block; }
.nav-wordmark {
  flex-shrink: 0;
  gap: 10px;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.nav-wordmark .mark { width: 34px; height: 34px; }

.nav-links { display: flex; align-items: center; gap: 28px; flex: 1; }
.nav-links > a,
.nav-company > summary {
  position: relative;
  font-size: 13.5px; color: var(--text-2); text-decoration: none;
  transition: color .15s ease;
}
.nav-links > a::after,
.nav-company > summary::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -4px;
  height: 1px; background: var(--accent);
  transform: scaleX(0); transform-origin: left;
  transition: transform .25s ease;
}
.nav-links > a:hover,
.nav-company > summary:hover,
.nav-company[open] > summary { color: var(--text); }
.nav-links > a:hover::after,
.nav-company > summary:hover::after,
.nav-company[open] > summary::after { transform: scaleX(1); }
.nav-company { position: relative; }
.nav-company > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  list-style: none;
  cursor: pointer;
}
.nav-company > summary::-webkit-details-marker { display: none; }
.nav-company > summary span {
  font-size: 12px;
  transform: translateY(-1px);
  transition: transform .15s ease;
}
.nav-company[open] > summary span { transform: translateY(1px) rotate(180deg); }
.nav-company-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: -18px;
  width: 208px;
  padding: 7px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgb(0 0 0 / .32);
}
.nav-company-menu a {
  display: block;
  padding: 10px 11px;
  border-radius: 5px;
  color: var(--text-2);
  font-size: 13px;
  text-decoration: none;
}
.nav-company-menu a:hover {
  background: rgb(255 255 255 / .055);
  color: var(--text);
}
.nav-company-menu a.nav-labs-feature, .nav-mobile-menu a.nav-labs-feature { display: flex; align-items: flex-start; gap: 10px; margin-top: 7px; padding: 13px 11px; border-top: 1px solid #818cf833; background: #818cf80d; color: #a5b4fc; }
.nav-company-menu a.nav-labs-feature:hover, .nav-mobile-menu a.nav-labs-feature:hover { background: #818cf81a; color: #c7d2fe; }
.nav-labs-icon { flex: 0 0 20px; margin-top: 1px; }
.nav-labs-feature strong { display: block; font-size: 13px; font-weight: 500; }
.nav-labs-feature strong > span { margin-left: 4px; }
.nav-labs-feature small { display: block; margin-top: 5px; color: var(--text-2); font-size: 11px; line-height: 1.6; }
.nav-actions { display: flex; align-items: center; gap: 20px; }
.nav-signin { font-size: 13.5px; color: var(--text-2); text-decoration: none; }
.nav-signin:hover { color: var(--text); }
.nav-menu-toggle {
  display: none;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: color .15s ease;
}
.nav-menu-toggle svg { display: block; }
.nav-menu-toggle:hover {
  color: #fff;
}
.nav-mobile-menu {
  display: block;
  position: absolute;
  right: 12px;
  top: calc(100% + 10px);
  width: min(82vw, 260px);
  overflow: hidden;
  border: 1px solid var(--hairline);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 24px 60px rgb(0 0 0 / .32);
}
.nav-mobile-menu[hidden] { display: none; }
.nav-mobile-menu a,
.nav-mobile-menu button {
  display: block;
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  padding: 12px 16px;
  text-align: left;
  text-decoration: none;
  font: 400 13px/1.35 var(--sans);
  cursor: pointer;
}
.nav-mobile-menu a:hover,
.nav-mobile-menu button:hover { background: rgb(255 255 255 / .055); }
.nav-mobile-heading {
  display: block;
  padding: 13px 16px 5px;
  border-top: 1px solid var(--hairline);
  color: var(--text-3);
  font: 500 10px/1.35 var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}
.nav .nav-ask {
  border-color: oklch(67.3% .182 276.935 / .38);
  background: oklch(67.3% .182 276.935 / .10);
  color: oklch(86% .055 276.935);
}
.nav .nav-ask:hover {
  border-color: oklch(67.3% .182 276.935 / .62);
  background: oklch(67.3% .182 276.935 / .16);
  color: #fff;
}

@media (min-width: 980px) {
  body.nerova-chat-open { padding-right: 30rem; }
  body.nerova-chat-open .nav { right: 30rem; }
  body.nerova-chat-open .nrv-top-notice { right: 30rem; }
}


@media (max-width: 960px) { .nav-links { display: none; } .nav-menu-toggle { display: inline-flex; } }
@media (max-width: 760px) {
  .nrv-top-notice-spacer { height: 58px; }
  .nrv-top-notice {
    min-height: 58px;
    gap: 6px;
    padding: 8px 12px;
  }
  .nrv-top-notice-eyebrow { display: none; }
  .nrv-top-notice-copy {
    flex: 1 1 auto;
    max-width: calc(100vw - 76px);
    font-size: 10.5px !important;
    letter-spacing: .055em !important;
    line-height: 1.2 !important;
    overflow-wrap: anywhere;
    white-space: normal;
  }
  .nrv-top-notice-action {
    flex: 0 0 auto;
    font-size: 10.5px !important;
    letter-spacing: .12em !important;
  }
  .nav { top: 58px; }
  .nav .nav-inner {
    gap: 12px;
    padding-left: 14px;
    padding-right: 8px;
  }
  .nav-actions {
    position: relative;
    margin-left: auto;
    gap: 6px;
  }
  .nav-signin:not(.nav-account) { display: none; }
  .nav-menu-toggle { display: inline-flex; }
  .nav.scrolled { backdrop-filter: none; -webkit-backdrop-filter: none; }
}
@media (max-width: 389px) { .nav-wordmark > span { display: none; } }
