/* ---------------------------------------------------------------------------
   Shared site navigation — one identical nav across every page, regardless of
   which page stylesheet (landing.css or reset/theme/site.css) is loaded.
   Self-contained: its own literal palette with a prefers-color-scheme dark
   block, prefixed pnav-/secnav- class names so it never collides with the
   per-page nav rules. The homepage section sub-bar (secnav) is the page-scoped
   in-page jump strip; every other page renders only the global pnav bar.
--------------------------------------------------------------------------- */

/* global bar */
.pnav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(248, 248, 246, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 18, 25, 0.11);
}
.pnav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.pnav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.pnav-brand img {
  height: 34px;
  width: 34px;
  display: block;
}
.pnav-brand .pnav-name {
  font-family: "Gelasio", Georgia, "Times New Roman", serif;
  font-size: 26px;
  font-weight: 500;
  color: #492881;
  letter-spacing: -0.01em;
}
.pnav-links {
  display: flex;
  gap: 32px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 15px;
  font-weight: 500;
}
.pnav-links a {
  position: relative;
  color: #2b2530;
  text-decoration: none;
  padding: 4px 0;
}
.pnav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1.5px;
  background: #492881;
  transition: width 0.28s ease;
}
.pnav-links a:hover::after {
  width: 100%;
}
.pnav-cta {
  display: flex;
  align-items: center;
  gap: 20px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.pnav-login {
  font-size: 15px;
  font-weight: 600;
  color: #2b2530;
  text-decoration: none;
}
.pnav-login:hover {
  color: #492881;
}
.pnav-demo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 3px;
  border: 1px solid transparent;
  background: #492881;
  color: #fff;
  white-space: nowrap;
  text-decoration: none;
  transition: 0.25s ease;
}
.pnav-demo:hover {
  background: #5b3499;
  transform: translateY(-1px);
}
.pnav-burger {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #181219;
  line-height: 1;
}

/* mobile panel */
.pnav-mobile {
  display: none;
  flex-direction: column;
  background: rgba(248, 248, 246, 0.96);
  border-top: 1px solid rgba(24, 18, 25, 0.11);
  padding: 6px 32px 16px;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.pnav-mobile.is-open {
  display: flex;
}
.pnav-mobile a {
  display: block;
  padding: 13px 0;
  font-size: 16px;
  font-weight: 500;
  color: #2b2530;
  text-decoration: none;
  border-bottom: 1px solid rgba(24, 18, 25, 0.11);
}
.pnav-mobile a:last-child {
  border-bottom: none;
}

/* homepage section sub-bar (scrollspy) */
.secnav {
  position: sticky;
  top: 70px;
  z-index: 90;
  background: rgba(248, 248, 246, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 18, 25, 0.11);
}
.secnav-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 48px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
  overflow-x: auto;
  scrollbar-width: none;
  font-family: "Inter", system-ui, -apple-system, sans-serif;
}
.secnav-inner::-webkit-scrollbar {
  display: none;
}
.secnav-inner a {
  position: relative;
  flex: 0 0 auto;
  font-size: 14px;
  font-weight: 500;
  color: #5d5663;
  text-decoration: none;
  padding: 14px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.secnav-inner a:hover {
  color: #2b2530;
}
.secnav-inner a.is-active {
  color: #492881;
  border-bottom-color: #492881;
}

/* keep anchored sections clear of both sticky bars */
#platform,
#capabilities,
#why,
#testimonials,
#story,
#cta {
  scroll-margin-top: 130px;
}

@media (max-width: 880px) {
  .pnav-links,
  .pnav-login {
    display: none;
  }
  .pnav-burger {
    display: block;
  }
}

@media (max-width: 600px) {
  .pnav-inner {
    height: 60px;
    padding: 0 16px;
  }
  .pnav-brand .pnav-name {
    font-size: 22px;
  }
  .pnav-cta {
    gap: 12px;
  }
  .pnav-demo {
    padding: 10px 16px;
    font-size: 14px;
  }
  .pnav-mobile {
    padding: 6px 16px 16px;
  }
  .secnav {
    top: 60px;
  }
  .secnav-inner {
    height: 44px;
    gap: 20px;
    padding: 0 16px;
  }
}

@media (prefers-color-scheme: dark) {
  .pnav {
    background: rgba(26, 22, 34, 0.85);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .pnav-brand .pnav-name {
    color: #b9a4e6;
  }
  .pnav-links a {
    color: #e8e3f0;
  }
  .pnav-links a::after {
    background: #b9a4e6;
  }
  .pnav-login {
    color: #e8e3f0;
  }
  .pnav-login:hover {
    color: #b9a4e6;
  }
  .pnav-burger {
    color: #f5f2fa;
  }
  .pnav-mobile {
    background: rgba(16, 13, 22, 0.96);
    border-top-color: rgba(255, 255, 255, 0.1);
  }
  .pnav-mobile a {
    color: #e8e3f0;
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .secnav {
    background: rgba(26, 22, 34, 0.92);
    border-bottom-color: rgba(255, 255, 255, 0.1);
  }
  .secnav-inner a {
    color: #a39db0;
  }
  .secnav-inner a:hover {
    color: #e8e3f0;
  }
  .secnav-inner a.is-active {
    color: #b9a4e6;
    border-bottom-color: #b9a4e6;
  }
}
