@font-face {
  font-family: "Prociono";
  src: url("fonts/prociono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 1000;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --nf-shell-height: 64px;
  --nf-canvas: #ffffff;
  --nf-canvas-warm: #eeecf9;
  --nf-ink: #0d1629;
  --nf-ink-secondary: rgba(13, 22, 41, 0.66);
  --nf-ink-muted: rgba(13, 22, 41, 0.45);
  --nf-rule: rgba(13, 22, 41, 0.1);
  --nf-accent: #3c36f5;
  --nf-accent-deep: #252287;
  --nf-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

.nf-site-shell,
.nf-site-shell * {
  box-sizing: border-box;
}

.nf-site-shell {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  height: var(--nf-shell-height);
  padding: 0 28px;
  color: var(--nf-ink);
  background: rgba(238, 236, 249, 0.96);
  border-bottom: 1px solid var(--nf-rule);
  backdrop-filter: blur(16px) saturate(150%);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  font-family: "DM Sans", ui-sans-serif, system-ui, sans-serif;
}

.nf-shell-start {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
  justify-self: start;
}

.nf-shell-home {
  display: inline-flex;
  align-items: center;
  flex: none;
  color: inherit;
  text-decoration: none;
}

.nf-shell-home img {
  display: block;
  width: auto;
  height: 22px;
  flex: none;
}

.nf-shell-context {
  min-width: 0;
  padding-left: 18px;
  border-left: 1px solid var(--nf-rule);
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nf-ink-muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nf-demo-nav {
  display: flex;
  align-self: stretch;
  align-items: center;
  gap: 28px;
}

.nf-demo-link {
  position: relative;
  display: inline-flex;
  height: 100%;
  align-items: center;
  color: var(--nf-ink-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.nf-demo-link::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: var(--nf-accent);
  transform: scaleX(0);
  transform-origin: 100% 50%;
  transition: transform 0.4s var(--nf-ease);
}

.nf-demo-link:hover,
.nf-demo-link:focus-visible,
.nf-demo-link[aria-current="page"] {
  color: var(--nf-ink);
}

.nf-demo-link:hover::after,
.nf-demo-link:focus-visible::after,
.nf-demo-link[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: 0 50%;
}

.nf-demo-cta {
  display: inline-flex;
  height: 36px;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--nf-accent-deep);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease;
}

.nf-demo-cta:hover,
.nf-demo-cta:focus-visible {
  background: #1c1968;
}

.nf-shell-back {
  justify-self: end;
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 15px;
  border: 1px solid rgba(13, 22, 41, 0.16);
  border-radius: 8px;
  color: var(--nf-ink);
  background: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.25s ease, border-color 0.25s ease;
}

.nf-shell-back:hover,
.nf-shell-back:focus-visible {
  border-color: rgba(13, 22, 41, 0.28);
  background: #ffffff;
}

.nf-shell-back svg {
  width: 14px;
  height: 14px;
  transition: transform 0.35s var(--nf-ease);
}

.nf-shell-back:hover svg,
.nf-shell-back:focus-visible svg {
  transform: translateX(-2px);
}

.nf-site-shell :focus-visible {
  outline: 2px solid var(--nf-accent);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  .nf-site-shell {
    grid-template-columns: 1fr auto 1fr;
    padding-inline: 20px;
  }

  .nf-shell-context {
    display: none;
  }
}

@media (max-width: 680px) {
  :root {
    --nf-shell-height: 106px;
  }

  .nf-site-shell {
    grid-template-columns: 1fr auto;
    grid-template-rows: 60px 46px;
    padding: 0 16px;
  }

  .nf-shell-start {
    grid-column: 1;
    grid-row: 1;
  }

  .nf-shell-home img {
    height: 20px;
  }

  .nf-shell-back {
    grid-column: 2;
    grid-row: 1;
    height: 34px;
    padding-inline: 12px;
  }

  .nf-shell-back-label {
    display: none;
  }

  .nf-demo-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    gap: 24px;
    border-top: 1px solid var(--nf-rule);
  }

  .nf-demo-link {
    font-size: 12px;
  }

  .nf-demo-cta {
    height: 32px;
    padding-inline: 12px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nf-demo-link::after,
  .nf-shell-back svg {
    transition: none;
  }
}
