/* ============================================================
   marketing-nav.css — unified pd.cash public marketing header
   Self-contained, fully namespaced (.mkt-*), zero dependency on
   page bundles or landing-core.js. Replaces 4 legacy nav systems:
   .nav / .nav--pd-cash / .wp2-nav / .pd-mktnav
   Values ported 1:1 from the canonical index nav computed styles.
   ============================================================ */
.mkt-nav-wrap *,
.mkt-nav-wrap *::before,
.mkt-nav-wrap *::after { box-sizing: border-box; }

.mkt-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: 73px;
  min-height: 72px;
  padding: 0 24px;
  background: rgba(7, 9, 11, 0.9);
  -webkit-backdrop-filter: blur(18px) saturate(1.3);
  backdrop-filter: blur(18px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.11);
  font-family: Inter, -apple-system, "system-ui", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
/* subtle elevation once the page scrolls (landing-motion toggles .is-scrolled) */
.mkt-nav.is-scrolled {
  background: rgba(7, 9, 11, 0.94);
  box-shadow: 0 10px 34px -16px rgba(0, 0, 0, 0.7);
}
/* spacer keeps subpage content clear of the fixed bar */
.mkt-nav-spacer { height: 73px; }

.mkt-container {
  max-width: 1200px;
  height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* --- logo --- */
.mkt-logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex: 0 0 auto;
}
.mkt-logo-icon {
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 7px;
  background: #5CE66F;
  color: #041006;
  font-size: 20px;
  box-shadow: rgba(0, 214, 50, 0.65) 0 8px 22px -10px,
              rgba(255, 255, 255, 0.25) 0 1px 0 0 inset;
}
.mkt-brand {
  font-size: 17.28px;
  font-weight: 800;
  color: #F6F8F7;
  letter-spacing: normal;
  line-height: 1;
}

/* --- desktop links --- */
.mkt-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  justify-content: center;
}
.mkt-link {
  min-height: 44px;
  padding: 0 11px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  color: #AAB4BC;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: color .18s ease, background-color .18s ease;
}
.mkt-link:hover,
.mkt-link.is-active {
  color: #F6F8F7;
  background: rgba(255, 255, 255, 0.07);
}

/* --- CTA buttons --- */
.mkt-cta {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14.4px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  border: 0;
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
}
.mkt-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.mkt-btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.22);
}
.mkt-btn-primary {
  color: #04130A;
  letter-spacing: -0.144px;
  background: linear-gradient(135deg, #33E65C, #00D632 55%, #00A828);
  box-shadow: rgba(0, 214, 50, 0.55) 0 14px 40px -16px,
              rgba(255, 255, 255, 0.35) 0 1px 0 0 inset;
}
.mkt-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: rgba(0, 214, 50, 0.6) 0 18px 46px -14px,
              rgba(255, 255, 255, 0.4) 0 1px 0 0 inset;
}

/* --- hamburger --- */
.mkt-toggle {
  display: none;
  width: 44px; height: 44px;
  align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #F6F8F7;
  font-size: 18px;
  cursor: pointer;
}
.mkt-toggle:hover { background: rgba(255, 255, 255, 0.08); }

/* --- mobile slide menu --- */
.mkt-mobile {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(88vw, 360px);
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  background: rgba(9, 11, 13, 0.98);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  border-left: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 1002;
  display: flex;
  flex-direction: column;
  padding: 20px;
  font-family: Inter, -apple-system, "system-ui", sans-serif;
}
.mkt-mobile.is-open { transform: translateX(0); }
.mkt-mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
  z-index: 1001;
}
.mkt-mobile-overlay.is-open { opacity: 1; visibility: visible; }
.mkt-mobile-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 20px;
}
.mkt-mobile-close {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: #F6F8F7; font-size: 18px; cursor: pointer;
}
.mkt-mobile-links { display: flex; flex-direction: column; gap: 4px; }
.mkt-mobile-link {
  min-height: 48px;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #C7D0D8;
  font-size: 15px; font-weight: 500;
  text-decoration: none;
}
.mkt-mobile-link i { width: 20px; text-align: center; color: #6c7a85; }
.mkt-mobile-link:hover { background: rgba(255, 255, 255, 0.05); color: #fff; }
.mkt-mobile-cta {
  margin-top: auto;
  display: flex; flex-direction: column; gap: 10px;
  padding-top: 18px;
}
.mkt-mobile-cta .mkt-btn { width: 100%; padding: 14px 24px; font-size: 15px; }

/* --- responsive --- */
@media (max-width: 900px) {
  .mkt-links { display: none; }
  .mkt-cta { display: none; }
  .mkt-toggle { display: inline-flex; }
}

.mkt-logo:focus-visible,
.mkt-link:focus-visible,
.mkt-btn:focus-visible,
.mkt-toggle:focus-visible,
.mkt-mobile-close:focus-visible,
.mkt-mobile-link:focus-visible {
  outline: 2px solid #5CE66F;
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  .mkt-link,
  .mkt-btn,
  .mkt-mobile,
  .mkt-mobile-overlay { transition: none; }
}