/* Header and personalized context strip only; no page, hero, demo or form rules. */
@import url('/site-hardening.css');
body[data-ion-section="main"] .nav {
  height:calc(45px + env(safe-area-inset-top,0px));
  padding:env(safe-area-inset-top,0px) clamp(20px,2.5vw,48px) 0;
  display:grid;grid-template-columns:1fr auto 1fr;gap:24px;background:rgba(0,0,0,.38);border-bottom:1px solid transparent;
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease;
}
body[data-ion-section="main"] .nav.scrolled {background:rgba(6,8,14,.76);border-bottom-color:rgba(255,255,255,.1);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px)}
body[data-ion-section="vision"] header.nav {border-bottom-width:1px;background:rgba(255,255,255,.82);transition:background .35s ease,border-color .35s ease,backdrop-filter .35s ease}
body[data-ion-section="vision"] header.nav.on-dark {background:rgba(0,0,0,.66)}
body[data-ion-section="vision"] header.nav .nav-in {max-width:none;width:100%;height:44px;padding:0 clamp(20px,2.5vw,48px);display:grid;grid-template-columns:1fr auto 1fr;gap:24px}
body[data-ion-section="main"] .nav .brand,
body[data-ion-section="vision"] header.nav .nav-logo {display:flex;grid-column:1;justify-self:start;align-items:center;justify-content:flex-start;width:auto;min-height:44px;margin:0;padding:0;gap:8px}
/* Keep the main-site brand neutral, including the legacy global link hover. */
body[data-ion-section="main"] .nav .brand,
body[data-ion-section="main"] .nav .brand:is(:hover,:focus,:active,:visited) {color:#fff}
body[data-ion-section="main"] .nav .brand .mark,
body[data-ion-section="vision"] header.nav .ion-brand-mark {display:block;width:28px;height:28px;flex:0 0 28px;filter:none}
body[data-ion-section] .nav .ion-header-name {font:600 20px/1 'Inter Tight','Inter',sans-serif;letter-spacing:-.035em;white-space:nowrap;color:inherit}
body[data-ion-section] .nav :is(.mark,.ion-brand-mark) [filter] {filter:none}
body[data-ion-section] .nav :is(.mark,.ion-brand-mark) circle:not([cx]) {display:inline}
body[data-ion-section="main"] .nav .mark stop {stop-color:currentColor}
body[data-ion-section="main"] .nav .mark circle:not([cx]) {fill:currentColor}
body[data-ion-section] .nav {--ion-orbit-a:currentColor;--ion-orbit-b:currentColor;--ion-orbit-c:currentColor;--ion-core-a:currentColor;--ion-core-b:currentColor}
body[data-ion-section="main"] .nav .socials {display:none}
body[data-ion-section="main"] .nav>.nav-links,
body[data-ion-section="vision"] header.nav .nav-in>.nav-links {display:flex;grid-column:2;position:static;transform:none;justify-content:center;align-items:center;margin:0;gap:26px}
body[data-ion-section="main"] .nav-links a,
body[data-ion-section="vision"] header.nav .nav-links a {font:500 13px/18px 'Inter',sans-serif;letter-spacing:0;white-space:nowrap;padding:13px 0;border:0;border-radius:0;background:transparent;box-shadow:none;transition:color .2s}
body[data-ion-section="main"] .nav-links a {color:#e5e7ed}
body[data-ion-section="vision"] header.nav .nav-links a {color:#454952}
body[data-ion-section="vision"] header.nav.on-dark .nav-links a {color:#e5e7ed}
body[data-ion-section="main"] .nav-links a:hover {color:#fff}
body[data-ion-section="vision"] header.nav .nav-links a:hover,
body[data-ion-section="vision"] header.nav .nav-links a.on {background:transparent}
body[data-ion-section="vision"] header.nav .nav-logo {order:0}
body[data-ion-section="vision"] header.nav .nav-links {order:1}
body[data-ion-section="vision"] header.nav .nav-burger {grid-column:2;justify-self:end;order:2;margin-left:0}
body[data-ion-section="vision"] header.nav .nav-links .ion-mobile-build {display:none}
body[data-ion-section] .ion-header-actions {grid-column:3;justify-self:end;order:3;display:flex;align-items:center;gap:18px;flex-shrink:0}
body[data-ion-section="main"] .nav>div:last-child {grid-column:3;justify-self:end}
body[data-ion-section] .ion-header-actions .ion-build-cta {display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:6px 14px;border:0;border-radius:8px;background:#2F6BFF;color:#fff;font:500 13px/20px 'Inter',sans-serif;white-space:nowrap;text-decoration:none;box-shadow:none;transition:background .2s}
body[data-ion-section] .ion-header-actions .ion-build-cta:hover {background:#1A57F0;color:#fff}
body[data-ion-section] .ion-account-icon {display:inline-flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:44px;margin:0;padding:5px;border:0;border-radius:0;background:transparent;color:inherit;box-shadow:none;cursor:pointer;opacity:1}
body[data-ion-section] .ion-account-icon:hover {opacity:1}
body[data-ion-section] .ion-header-actions svg {display:block;width:22px;height:22px;flex-shrink:0;stroke-width:1.5}
body[data-ion-section] .ion-header-actions :is(a,button):focus-visible,
body[data-ion-section="vision"] header.nav .nav-logo:focus-visible {outline:2px solid #2F6BFF;outline-offset:3px}
body[data-ion-section] .ion-account-menu {inset:53px clamp(20px,2.5vw,48px) auto auto;margin:0;width:252px;max-width:calc(100vw - 32px);padding:14px;border:1px solid #e3e5ec;border-radius:16px;background:#fff;color:#171a23;box-shadow:0 16px 48px #0003;font:14px/1.5 'Inter',sans-serif}
body[data-ion-section] .ion-account-menu:popover-open {display:grid;gap:3px}
body[data-ion-section] .ion-account-menu strong {padding:5px 10px 9px;font-size:13px}
body[data-ion-section] .ion-account-menu a {display:block;padding:10px;border:0;border-radius:9px;background:transparent;color:#262b38;font:500 14px/1.4 'Inter',sans-serif;text-decoration:none}
body[data-ion-section] .ion-account-menu a:hover {background:#f2f4f9;color:#174bce}
body[data-ion-section] .ion-account-menu small {padding:3px 10px 10px;color:#6d7382;font-size:12px;line-height:1.5}
body[data-ion-section] .ion-account-menu .ion-portal-link {border-top:1px solid #eceef3;border-radius:0;margin-top:4px;padding-top:13px}
/* Override the legacy menu breakpoint so both headers collapse together. */
body[data-ion-section="main"] .nav .nav-burger,
body[data-ion-section="vision"] header.nav .nav-burger {display:none;width:32px;height:44px;padding:8px;border:0;border-radius:0;background:transparent}
body[data-ion-section="main"] .mobile-menu {top:calc(45px + env(safe-area-inset-top,0px))}
body[data-ion-section="vision"] .ribbon {top:calc(45px + env(safe-area-inset-top,0px));height:28px;min-height:28px;padding:0 20px;gap:12px;flex-wrap:nowrap;font-size:11px;line-height:1.3;background:rgba(0,0,0,.66);backdrop-filter:blur(16px);-webkit-backdrop-filter:blur(16px);transition:background .35s ease,backdrop-filter .35s ease}
body[data-ion-section="vision"] .ribbon>span {min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
body[data-ion-section="vision"] .ribbon button {flex:0 0 auto;min-height:28px;height:28px;margin-left:auto;padding:0;font-size:11px;line-height:1.3;white-space:nowrap}
@media(max-width:1100px) {
  body[data-ion-section="main"] .nav {padding-left:20px;padding-right:20px;gap:12px;grid-template-columns:minmax(0,1fr) auto}
  body[data-ion-section="main"] .nav>.nav-links,
  body[data-ion-section="vision"] header.nav .nav-in>.nav-links {display:none}
  body[data-ion-section="main"] .nav>div:last-child {grid-column:2;margin-left:auto}
  body[data-ion-section="main"] .nav>div:last-child .nav-burger {display:block;order:0}
  body[data-ion-section="vision"] header.nav .nav-in {padding:0 20px;gap:12px;grid-template-columns:minmax(0,1fr) auto auto}
  body[data-ion-section="vision"] header.nav .nav-burger {display:grid;margin-left:auto}
  body[data-ion-section] .ion-header-actions {gap:14px}
  body[data-ion-section="vision"] header.nav .nav-links.open {display:flex;position:absolute;top:44px;left:0;right:0;flex-direction:column;align-items:stretch;gap:0;padding:8px 20px 18px;background:rgba(255,255,255,.98);border-bottom:1px solid var(--line)}
  body[data-ion-section="vision"] header.nav.on-dark .nav-links.open {background:rgba(0,0,0,.97);border-bottom-color:var(--line-d)}
  body[data-ion-section="vision"] header.nav .nav-links.open a {padding:14px 8px;min-height:46px;font-size:15px}
  body[data-ion-section="vision"] header.nav .nav-links.open .ion-mobile-build {display:flex;justify-content:center;margin-top:8px;border-radius:8px;background:#2F6BFF;color:#fff}
}
@media(max-width:360px) {
  body[data-ion-section="main"] .nav {padding-left:14px;padding-right:14px}
  body[data-ion-section="vision"] header.nav .nav-in {padding-left:14px;padding-right:14px;gap:10px}
  body[data-ion-section] .ion-header-actions {gap:10px}
  body[data-ion-section] .nav .ion-header-name {font-size:18px}
  body[data-ion-section] .ion-header-actions .ion-build-cta {font-size:11px;padding:6px 9px}
}
@media(prefers-reduced-motion:reduce) {
  body[data-ion-section] .nav :is(.mark,.ion-brand-mark) circle:not([cx]) {display:none}
  body[data-ion-section] .nav,body[data-ion-section="vision"] .ribbon {transition:none}
}
