/* vx-nav.css — unified PUBLIC-SITE header (marketing + auth).
   Namespaced under .vx-nav so it NEVER touches style.css globals
   (.header / .nav / .logo / .header-actions / .btn-primary) that the
   auth forms / footers / support page still reuse — no broad breakage.
   Self-contained colours (no dependency on page-specific CSS variables).
   MUST be loaded AFTER style.css. */

.vx-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 14, 23, 0.82);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
}
.vx-nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(20px, 4vw, 48px);
  height: 72px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(20px, 5vw, 60px);
}
.vx-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}
.vx-nav__mark { width: 28px; height: 28px; flex-shrink: 0; }
.vx-nav__mark svg { width: 100%; height: 100%; display: block; }
.vx-nav__word {
  font-weight: 200;
  font-size: 18px;
  letter-spacing: 0.38em;
  color: #e2e8f0;
  padding-left: 4px;
}

/* Desktop menu */
.vx-nav__menu {
  display: flex;
  gap: clamp(22px, 3vw, 40px);
  margin: 0 auto;
  padding: 0;
  list-style: none;
}
.vx-nav__menu a {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #c8ccd4;
  text-transform: uppercase;
  text-decoration: none;
  padding: 8px 2px;
  transition: color 0.2s;
}
.vx-nav__menu a:hover,
.vx-nav__menu a.is-current { color: #5cb8e6; }

/* Right-side actions */
.vx-nav__actions { display: inline-flex; align-items: center; gap: 14px; flex-shrink: 0; }
.vx-nav__signin {
  font-weight: 400;
  font-size: 12px;
  letter-spacing: 0.22em;
  color: #c8ccd4;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s;
}
.vx-nav__signin:hover { color: #5cb8e6; }
.vx-nav__cta {
  display: inline-flex;
  align-items: center;
  padding: 9px 18px;
  background: #5cb8e6;
  color: #0a0e17;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  transition: background 0.2s, transform 0.2s;
}
.vx-nav__cta:hover { background: #74c5eb; transform: translateY(-1px); }

/* Hamburger — hidden on desktop */
.vx-nav__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 8px;
  background: none;
  border: 0;
  cursor: pointer;
  flex-shrink: 0;
}
.vx-nav__toggle span {
  display: block;
  height: 2px; width: 22px;
  background: #e2e8f0;
  transition: transform 0.25s, opacity 0.2s;
}
.vx-nav__toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.vx-nav__toggle.is-open span:nth-child(2) { opacity: 0; }
.vx-nav__toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile drawer — hidden by default */
.vx-nav__drawer {
  display: none;
  flex-direction: column;
  padding: 8px clamp(20px, 5vw, 60px) 28px;
  background: rgba(10, 14, 23, 0.98);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.08);
}
.vx-nav__drawer a {
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  color: #c8ccd4;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 2px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.06);
}
.vx-nav__drawer a.is-current { color: #5cb8e6; }
.vx-nav__drawer .vx-nav__cta {
  justify-content: center;
  margin-top: 14px;
  padding: 13px 18px;
  border-bottom: 0;
}
.vx-nav.is-open .vx-nav__drawer { display: flex; }

/* Body scroll-lock while the mobile drawer is open (class-based so closing the
   drawer never clobbers an overflow:hidden set by some other component). */
body.vx-nav-locked { overflow: hidden; }

/* Responsive: <=1024px → collapse to hamburger */
@media (max-width: 1024px) {
  .vx-nav__menu,
  .vx-nav__actions { display: none; }
  .vx-nav__toggle { display: flex; }
  /* Minimal auth header keeps its single action visible; no hamburger/drawer */
  .vx-nav--minimal .vx-nav__actions { display: inline-flex; }
  .vx-nav--minimal .vx-nav__toggle { display: none; }
}

/* Home anchor sections — offset so the sticky header doesn't cover headings */
#platform, #fees { scroll-margin-top: 88px; }

/* Variant-B marketing pages (about/card/corporate/security/bank-account) used a
   position:fixed style.css header offset by .page-hero's 160px top padding. The
   sticky .vx-nav now occupies that space in normal flow, so trim the hero's top
   offset to avoid a double gap. Scoped to vx-nav.css → only affects pages that
   load it; support.html / app pages keep their original spacing. Scoped to the
   .page-hero that directly follows .vx-nav so no other .page-hero is touched. */
.vx-nav + .page-hero { padding-top: 88px; }
