/* ==========================================================================
   Nexus Investment FX — Unified Public Site Design System
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --nx-navy: #05305c;
  --nx-navy-light: #0a4a8a;
  --nx-navy-dark: #031e3a;
  --nx-orange: #ef9227;
  --nx-gold: #fabc2e;
  --nx-black: #0f1419;
  --nx-text: #1e293b;
  --nx-muted: #64748b;
  --nx-border: #e2e8f0;
  --nx-bg: #f8fafc;
  --nx-white: #ffffff;
  --nx-success: #16c784;
  --nx-danger: #ea3943;
  --nx-radius-sm: 6px;
  --nx-radius: 10px;
  --nx-radius-lg: 16px;
  --nx-shadow-sm: 0 1px 3px rgba(5, 48, 92, 0.06);
  --nx-shadow: 0 4px 24px rgba(5, 48, 92, 0.08);
  --nx-shadow-lg: 0 16px 48px rgba(5, 48, 92, 0.12);
  --nx-header-h: 76px;
  --nx-topbar-h: 42px;
  --nx-ticker-h: 42px;
  --nx-ticker-speed: 45s;
  --nx-ticker-hover: #343b4d;
  --nx-ticker-divider: rgba(255, 255, 255, 0.08);
  --nx-ticker-muted: #848e9c;
  --nx-ticker-down: #f6465d;
  --nx-top-offset: calc(var(--nx-topbar-h) + var(--nx-header-h));
  --nx-container: 1300px;
  --nx-section-y: 64px;
  --nx-section-head-gap: 40px;
  --nx-search-trigger-h: 40px;
  --nx-search-trigger-w: 170px;
  --nx-search-modal-max-w: 640px;
  --nx-search-modal-offset-top: 110px;
  --nx-search-modal-overlay: rgba(12, 17, 29, 0.45);
  --nx-search-modal-shell-gap: 32px;
  --nx-search-modal-head-gap: 10px;
  --nx-search-modal-head-py: 12px;
  --nx-search-modal-head-px: 14px;
  --nx-search-modal-label-px: 20px;
  --nx-search-modal-label-pb: 12px;
  --nx-search-result-gap: 14px;
  --nx-search-result-py: 12px;
  --nx-search-result-px: 20px;
  --nx-font: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--nx-font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--nx-text);
  background: var(--nx-white);
  padding-top: var(--nx-top-offset);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0 45px;
}

/* ---- Top bar (market ticker) ---- */
.site-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nx-topbar-h);
  background: var(--nx-navy-dark);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  z-index: 10001;
  overflow: hidden;
}

.site-ticker {
  height: 100%;
  overflow: hidden;
}

.ticker-track {
  display: inline-flex;
  align-items: stretch;
  height: var(--nx-topbar-h);
  animation: nx-ticker var(--nx-ticker-speed) linear infinite;
  will-change: transform;
}

.site-ticker:hover .ticker-track { animation-play-state: paused; }

@keyframes nx-ticker {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 208px;
  height: 100%;
  padding: 0 18px;
  border-right: 1px solid var(--nx-ticker-divider);
  flex-shrink: 0;
  transition: background-color 0.18s ease;
}

.ticker-item:hover {
  background: var(--nx-ticker-hover);
}

.ticker-item-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  flex-shrink: 0;
  object-fit: cover;
}

.ticker-item-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.ticker-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-white);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ticker-item-symbol {
  font-size: 12px;
  font-weight: 500;
  color: var(--nx-ticker-muted);
  line-height: 1.15;
  letter-spacing: 0.02em;
}

.ticker-item-market {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 1px;
  margin-left: auto;
  flex-shrink: 0;
}

.ticker-item-price {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-white);
  line-height: 1.15;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.ticker-item-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}

.ticker-change-arrow {
  font-size: 9px;
  line-height: 1;
  flex-shrink: 0;
}

.ticker-item-change.price-up { color: var(--nx-success); }
.ticker-item-change.price-down { color: var(--nx-ticker-down); }
.ticker-item-change.price-neutral { color: var(--nx-white); }

.ticker-loading {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--nx-ticker-muted);
  font-size: 13px;
  font-weight: 500;
}

.ticker-error {
  display: flex;
  align-items: center;
  height: 100%;
  padding: 0 24px;
  color: var(--nx-ticker-muted);
  font-size: 13px;
}

/* ---- Header ---- */
.site-header {
  position: fixed;
  top: var(--nx-topbar-h);
  left: 0;
  right: 0;
  height: var(--nx-header-h);
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--nx-border);
  box-shadow: 0 1px 0 rgba(5,48,92,0.04);
  z-index: 9999;
}

.header-inner {
  max-width: var(--nx-container);
  margin: 0 auto;
  padding: 0;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.site-logo img {
  height: 62px;
  width: auto;
}

.site-nav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  justify-content: flex-start;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav-list > li { position: relative; }

.nav-list > li > a,
.nav-dropdown-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--nx-text);
  text-decoration: none;
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
  border-radius: var(--nx-radius-sm);
  transition: color 0.18s, background 0.18s;
  white-space: nowrap;
}

.nav-list > li > a:hover,
.nav-dropdown-btn:hover {
  color: var(--nx-navy);
  background: var(--nx-bg);
}

.nav-dropdown.open > .nav-dropdown-btn,
.nav-list > li.active > a,
.nav-list > li.active > .nav-dropdown-btn {
  color: var(--nx-navy);
  font-weight: 600;
  background: rgba(5,48,92,0.06);
}

.nav-dropdown-btn svg {
  width: 10px;
  height: 10px;
  opacity: 0.55;
  transition: transform 0.2s;
}

.nav-dropdown.open .nav-dropdown-btn svg {
  transform: rotate(180deg);
  opacity: 1;
}

/* Standard dropdown */
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 240px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  z-index: 100;
}

.nav-dropdown.open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--nx-text);
  text-decoration: none;
  border-radius: var(--nx-radius-sm);
  transition: background 0.15s, color 0.15s;
}

.nav-dropdown-menu a:hover {
  background: var(--nx-bg);
  color: var(--nx-orange);
}

/* Mega menu panel */
.nav-mega-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  width: min(560px, calc(100vw - 48px));
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: 0 20px 60px rgba(5,48,92,0.14);
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s, transform 0.22s, visibility 0.22s;
  z-index: 100;
}

.nav-dropdown.nav-mega.open .nav-mega-panel {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.mega-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.mega-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-muted);
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--nx-border);
}

.mega-item {
  display: block;
  padding: 12px 14px;
  border-radius: var(--nx-radius-sm);
  text-decoration: none;
  transition: background 0.15s;
  margin-bottom: 2px;
}

.mega-item:hover {
  background: var(--nx-bg);
}

.mega-item-title {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-navy);
  margin-bottom: 2px;
}

.mega-item-desc {
  display: block;
  font-size: 12px;
  color: var(--nx-muted);
  line-height: 1.45;
}

.mega-item:hover .mega-item-title { color: var(--nx-orange); }

.mega-footer {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--nx-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mega-footer-text {
  font-size: 13px;
  color: var(--nx-muted);
}

.mega-footer a {
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-orange);
  text-decoration: none;
}

.mega-footer a:hover { text-decoration: underline; }

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  flex-shrink: 0;
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.header-search-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--nx-search-trigger-h);
  height: var(--nx-search-trigger-h);
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
  color: var(--nx-muted);
  font-family: inherit;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.header-search-trigger svg {
  width: 18px;
  height: 18px;
  color: var(--nx-muted);
  flex-shrink: 0;
}

.header-search-trigger:hover {
  color: var(--nx-navy);
  opacity: 0.9;
}

.header-search-trigger:hover svg {
  color: var(--nx-navy);
}

.header-search-trigger:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(5, 48, 92, 0.2);
}

.lang-switch { position: relative; }

.lang-toggle {
  min-width: 90px;
  height: var(--nx-search-trigger-h);
  padding: 0 10px;
  border-radius: 0;
  border: none;
  background: transparent;
  color: var(--nx-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: color 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
}

.lang-toggle svg { width: 16px; height: 16px; }
.lang-toggle .lang-label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1;
}
.lang-toggle .lang-caret {
  width: 12px;
  height: 12px;
  opacity: 0.8;
  transition: transform 0.2s ease;
}
.lang-switch.open .lang-caret { transform: rotate(180deg); }

.lang-toggle:hover {
  opacity: 0.9;
}

.lang-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(5, 48, 92, 0.2);
}

.lang-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  max-height: min(70vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius);
  box-shadow: var(--nx-shadow-lg);
  padding: 6px;
  display: none;
  z-index: 140;
}

.lang-switch.open .lang-menu { display: block; }

.lang-menu button {
  width: 100%;
  border: none;
  background: transparent;
  text-align: left;
  font-family: inherit;
  font-size: 13px;
  padding: 9px 10px;
  color: var(--nx-text);
  border-radius: var(--nx-radius-sm);
  cursor: pointer;
}

.lang-menu button:hover,
.lang-menu button.active {
  background: var(--nx-bg);
  color: var(--nx-navy);
}

/* Search modal */
.search-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 12000;
}

.search-modal.open { display: block; }

.search-modal-backdrop {
  position: absolute;
  inset: 0;
  background: var(--nx-search-modal-overlay);
}

.search-modal-dialog {
  position: relative;
  width: min(var(--nx-search-modal-max-w), calc(100vw - var(--nx-search-modal-shell-gap)));
  margin: var(--nx-search-modal-offset-top) auto 0;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-lg);
  overflow: hidden;
}

.search-modal-head {
  display: flex;
  align-items: center;
  gap: var(--nx-search-modal-head-gap);
  padding: var(--nx-search-modal-head-py) var(--nx-search-modal-head-px);
  border-bottom: 1px solid var(--nx-border);
}

.search-modal-head svg { width: 18px; height: 18px; color: var(--nx-muted); }

.search-modal-head input {
  flex: 1;
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 20px;
  font-weight: 600;
  color: var(--nx-text);
}

.search-modal-head input::placeholder { color: var(--nx-muted); }

.search-modal-close {
  border: none;
  background: var(--nx-bg);
  color: var(--nx-muted);
  border-radius: var(--nx-radius);
  font: 700 13px/1 var(--nx-font);
  padding: 10px 12px;
  cursor: pointer;
}

.search-modal-body { padding: 12px 0 0; }
.search-modal-label {
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-muted);
  padding: 0 var(--nx-search-modal-label-px) var(--nx-search-modal-label-pb);
}

.search-results { list-style: none; margin: 0; padding: 0; }
.search-results li + li { border-top: 1px solid var(--nx-border); }

.search-result-btn {
  width: 100%;
  border: none;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--nx-search-result-gap);
  padding: var(--nx-search-result-py) var(--nx-search-result-px);
  text-align: left;
  cursor: pointer;
}

.search-result-btn:hover { background: var(--nx-bg); }

.search-result-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-result-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(239, 146, 39, 0.16);
  color: #b96a00;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.search-result-name {
  display: block;
  font-size: 16px;
  color: var(--nx-text);
  font-weight: 600;
  line-height: 1.2;
}

.search-result-sub {
  display: block;
  font-size: 13px;
  color: var(--nx-muted);
  margin-top: 3px;
}

.search-result-right {
  font-size: 14px;
  color: var(--nx-text);
  white-space: nowrap;
  font-weight: 600;
}

.header-actions .btn-ghost {
  padding: 9px 20px;
  font-size: 15px;
}

.header-actions .btn-primary {
  padding: 9px 22px;
  font-size: 15px;
}

@media (max-width: 1360px) {
  .header-inner { gap: 14px; }
  .nav-list > li > a,
  .nav-dropdown-btn { font-size: 15px; padding: 9px 10px; }
  .header-search-trigger { width: 150px; }
  .header-actions .btn-ghost { padding: 8px 14px; font-size: 14px; }
  .header-actions .btn-primary { padding: 8px 16px; font-size: 14px; }
}

@media (max-width: 1240px) {
  .header-tools { display: none; }
}

/* Header auth buttons: premium styling */
.header-actions .btn,
.mobile-auth .btn {
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-position 0.55s ease, color 0.18s ease, border-color 0.18s ease;
}

.header-actions .btn-ghost,
.mobile-auth .btn-ghost {
  color: var(--nx-navy);
  background: rgba(5, 48, 92, 0.03);
  border: 1px solid #fc8700;
}

.header-actions .btn-primary,
.mobile-auth .btn-primary {
  color: var(--nx-white);
  background: linear-gradient(258deg, #fc8700 0%, #e87800 35%, #001a36 70%, #052c57 100%);
  background-size: 200% 100%;
  background-position: 0% 50%;
  border: 1px solid transparent;
  box-shadow: 0 7px 20px rgba(5, 48, 92, 0.22);
}

.header-actions .btn-ghost:hover,
.mobile-auth .btn-ghost:hover {
  color: var(--nx-navy);
  background: rgba(5, 48, 92, 0.08);
  border-color: #fc8700;
  box-shadow: 0 5px 14px rgba(5, 48, 92, 0.12);
}

.header-actions .btn-primary:hover,
.mobile-auth .btn-primary:hover {
  color: var(--nx-white);
  background-position: 100% 50%;
  border-color: transparent;
  box-shadow: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--nx-radius-sm);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  white-space: nowrap;
}

.btn:active { transform: scale(0.98); }

.btn-ghost {
  color: var(--nx-text);
  background: transparent;
  border: 1px solid var(--nx-border);
}

.btn-ghost:hover {
  border-color: var(--nx-navy);
  color: var(--nx-navy);
}

.btn-primary {
  color: var(--nx-white);
  background: linear-gradient(135deg, #fc8700, #001a36);
  box-shadow: 0 4px 14px rgba(239,146,39,0.35);
}

.btn-primary:hover {
  box-shadow: 0 8px 24px rgba(239,146,39,0.45);
}

.btn-navy {
  color: var(--nx-white);
  background: var(--nx-navy);
}

.btn-navy:hover { background: var(--nx-navy-light); }

.btn-lg { padding: 14px 28px; font-size: 15px; }

.btn-outline-light {
  color: var(--nx-white);
  background: transparent;
  border: 1.5px solid rgba(255,255,255,0.45);
}

.btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
  border-color: var(--nx-white);
}

.mobile-search { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: auto;
}

.menu-toggle span {
  display: block;
  height: 2px;
  background: var(--nx-navy);
  border-radius: 2px;
  transition: transform 0.25s, opacity 0.25s;
}

.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---- Page banner (inner pages) ---- */
.page-banner {
  background: linear-gradient(135deg, var(--nx-navy-dark) 0%, var(--nx-navy) 50%, var(--nx-navy-light) 100%);
  color: var(--nx-white);
  padding: 20px 0 40px;
  position: relative;
  overflow: hidden;
}

.page-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 0%, rgba(239,146,39,0.12) 0%, transparent 55%);
}

.page-banner .container { position: relative; z-index: 1; }

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  margin-bottom: 16px;
}

.breadcrumb a {
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.15s ease;
}

.breadcrumb a:hover { color: var(--nx-gold); }

.breadcrumb span:not(.breadcrumb-sep),
.breadcrumb [aria-current="page"] {
  color: rgba(255, 255, 255, 0.65);
  font-weight: 500;
}

.breadcrumb-sep {
  display: flex;
  align-items: center;
  opacity: 1;
  color: rgba(255, 255, 255, 0.88);
}

.breadcrumb-sep svg {
  display: block;
  width: 12px;
  height: 12px;
}

.page-banner h1 {
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.page-banner-lead {
  font-size: 1.125rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.85);
  max-width: 640px;
}

.page-banner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

@media (max-width: 768px) {
  .page-banner {
    padding: 20px 0 32px;
  }
}

/* ---- Sections ---- */
.section { padding: var(--nx-section-y) 0; }
.section-gray { background: var(--nx-bg); }
.section-navy { background: var(--nx-navy); color: var(--nx-white); }

.section-head {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--nx-section-head-gap);
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--nx-orange);
  margin-bottom: 12px;
}

.section-navy .section-eyebrow { color: var(--nx-gold); }

.section-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.375rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--nx-navy);
  margin-bottom: 16px;
}

.section-navy .section-head h2 { color: var(--nx-white); }

.section-head p {
  font-size: 1.0625rem;
  color: var(--nx-muted);
  line-height: 1.7;
}

.section-navy .section-head p { color: rgba(255,255,255,0.75); }

/* ---- Cards ---- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  padding: 32px;
  transition: box-shadow 0.25s, transform 0.25s;
}

.card:hover {
  box-shadow: var(--nx-shadow-lg);
  transform: translateY(-3px);
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5,48,92,0.06);
  border-radius: var(--nx-radius);
  margin-bottom: 20px;
}

.card-icon img { width: 28px; height: 28px; }

.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 10px;
}

.card p {
  font-size: 0.9375rem;
  color: var(--nx-muted);
  line-height: 1.65;
}

.card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--nx-orange);
  text-decoration: none;
}

.card-link:hover { text-decoration: underline; }

/* ---- Stats ---- */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--nx-border);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  margin: -32px auto 0;
  position: relative;
  z-index: 2;
  box-shadow: var(--nx-shadow);
  max-width: var(--nx-container);
}

.stat-cell {
  background: var(--nx-white);
  padding: 28px 20px;
  text-align: center;
}

.stat-cell strong {
  display: block;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--nx-navy);
  margin-bottom: 4px;
}

.stat-cell span {
  font-size: 13px;
  color: var(--nx-muted);
  font-weight: 500;
}

/* ---- Split layout ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split-content h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  color: var(--nx-navy);
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.split-content p {
  color: var(--nx-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.check-list li {
  position: relative;
  padding: 8px 0 8px 28px;
  font-size: 15px;
  color: var(--nx-text);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  width: 16px;
  height: 16px;
  background: var(--nx-orange);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E") center/contain no-repeat;
}

.split-visual {
  border-radius: var(--nx-radius-lg);
  overflow: hidden;
  background: var(--nx-bg);
  padding: 32px;
  border: 1px solid var(--nx-border);
}

.split-visual img { margin: 0 auto; }

/* ---- Steps ---- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.step-item {
  position: relative;
  padding: 28px 24px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  counter-increment: step;
}

.step-item::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--nx-orange), var(--nx-gold));
  color: var(--nx-white);
  font-weight: 800;
  font-size: 14px;
  border-radius: 50%;
  margin-bottom: 16px;
}

.step-item h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.875rem;
  color: var(--nx-muted);
  line-height: 1.6;
}

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, var(--nx-navy-dark), var(--nx-navy-light));
  color: var(--nx-white);
  padding: 52px 0;
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin-bottom: 12px;
}

.cta-band p {
  color: rgba(255,255,255,0.8);
  max-width: 520px;
  margin: 0 auto 28px;
  font-size: 1.0625rem;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

/* ---- Related products ---- */
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.related-item {
  display: block;
  padding: 22px 24px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s, border-color 0.2s;
}

.related-item:hover {
  border-color: rgba(239,146,39,0.35);
  box-shadow: var(--nx-shadow);
  transform: translateY(-2px);
}

.related-item strong {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--nx-navy);
  margin-bottom: 4px;
}

.related-item span {
  font-size: 13px;
  color: var(--nx-muted);
  line-height: 1.5;
}

/* ---- Footer ---- */
.site-footer {
  background: linear-gradient(180deg, var(--nx-navy-dark) 0%, #021528 100%);
  color: rgba(255, 255, 255, 0.78);
  padding-top: 56px;
}

.footer-top {
  display: grid;
  grid-template-columns: minmax(280px, 1.15fr) minmax(0, 1.85fr);
  gap: 48px 64px;
}

.footer-brand__logo {
  display: inline-block;
  margin-bottom: 18px;
}

.footer-brand__logo img {
  height: 70px;
  width: auto;
}

.footer-brand__text {
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 22px;
  max-width: 360px;
  color: rgba(255, 255, 255, 0.72);
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.footer-contact li {
  font-size: 14px;
  line-height: 1.5;
}

.footer-contact a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-contact a:hover {
  color: var(--nx-gold);
}

.footer-contact span {
  color: rgba(255, 255, 255, 0.58);
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.footer-social__link:hover {
  background: var(--nx-orange);
  border-color: var(--nx-orange);
}

.footer-social__link img {
  display: block;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px 32px;
}

.footer-col h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nx-white);
  margin-bottom: 18px;
}

.footer-col ul li {
  margin-bottom: 11px;
}

.footer-col a {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.68);
  text-decoration: none;
  transition: color 0.15s ease;
}

.footer-col a:hover {
  color: var(--nx-gold);
}

.footer-bottom {
  margin-top: 36px;
  padding: 22px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.14);
}

.footer-bottom__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.footer-bottom__legal {
  font-size: 13px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.52);
  max-width: 720px;
}

.footer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
}

.footer-badge--ssl {
  background: rgba(22, 199, 132, 0.16);
  border-color: rgba(22, 199, 132, 0.55);
  color: #d4fae8;
}

.footer-badge__icon {
  flex-shrink: 0;
  display: block;
  width: 14px;
  height: 14px;
  color: rgba(255, 255, 255, 0.9);
}

.footer-badge--ssl .footer-badge__icon {
  color: var(--nx-success);
}

/* ---- Tables ---- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--nx-border);
  border-radius: var(--nx-radius-lg);
  box-shadow: var(--nx-shadow-sm);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  background: var(--nx-white);
}

.data-table th {
  background: var(--nx-navy);
  color: var(--nx-white);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  padding: 14px 20px;
}

.data-table td {
  padding: 14px 20px;
  font-size: 14px;
  border-bottom: 1px solid var(--nx-border);
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:nth-child(even) td { background: var(--nx-bg); }

.note-box {
  margin-top: 24px;
  padding: 20px 24px;
  background: rgba(239,146,39,0.06);
  border-left: 4px solid var(--nx-orange);
  border-radius: 0 var(--nx-radius) var(--nx-radius) 0;
  font-size: 14px;
  color: var(--nx-muted);
  line-height: 1.65;
}

.note-box a {
  color: var(--nx-orange);
  font-weight: 600;
  text-decoration: none;
}

.note-box a:hover { text-decoration: underline; }

.risk-box a { color: #c2410c; font-weight: 600; }

.risk-box {
  padding: 20px 24px;
  background: #fff8f0;
  border: 1px solid #fed7aa;
  border-radius: var(--nx-radius);
  font-size: 14px;
  color: #9a3412;
  line-height: 1.65;
}

.risk-box strong { display: block; margin-bottom: 6px; }

/* ---- Pills ---- */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.pill {
  padding: 8px 16px;
  background: var(--nx-white);
  border: 1px solid var(--nx-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--nx-navy);
}

/* ---- Legal content ---- */
.legal-body { max-width: 780px; margin: 0 auto; }
.legal-body h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--nx-navy);
  margin: 40px 0 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--nx-orange);
}
.legal-body p, .legal-body li {
  font-size: 15px;
  color: var(--nx-muted);
  line-height: 1.75;
  margin-bottom: 12px;
}
.legal-body ul { padding-left: 24px; list-style: disc; }

.legal-body .title-section h1 { font-size: 2rem; font-weight: 800; color: var(--nx-navy); margin-bottom: 8px; }
.legal-body .last-updated { font-size: 14px; color: var(--nx-muted); margin-bottom: 16px; }
.legal-body .intro-text { font-size: 16px; line-height: 1.7; margin-bottom: 32px; }
.legal-body .toc { background: var(--nx-bg); border-radius: var(--nx-radius); padding: 24px; margin-bottom: 40px; }
.legal-body .toc h3 { font-size: 14px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 12px; color: var(--nx-navy); }
.legal-body .toc a { color: var(--nx-orange); text-decoration: none; font-size: 14px; }
.legal-body .toc li { margin-bottom: 8px; }
.legal-body .legal-section h2 { font-size: 1.25rem; font-weight: 700; color: var(--nx-navy); margin: 32px 0 12px; }
.legal-body .legal-section h3 { font-size: 1rem; font-weight: 600; margin: 20px 0 8px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .menu-toggle { display: flex; }
  .header-actions { display: none; }
  .site-nav { justify-content: flex-end; }
  .site-nav {
    position: fixed;
    top: var(--nx-top-offset);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--nx-white);
    padding: 20px 24px 40px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    flex: unset;
    justify-content: flex-start;
  }

  .site-nav.open { transform: translateX(0); }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: 100%;
  }

  .nav-list > li > a,
  .nav-dropdown-btn {
    width: 100%;
    justify-content: space-between;
    padding: 14px 16px;
    font-size: 15px;
  }

  .nav-dropdown-menu,
  .nav-mega-panel {
    position: static;
    transform: none;
    width: 100%;
    box-shadow: none;
    border: none;
    background: var(--nx-bg);
    border-radius: var(--nx-radius-sm);
    margin: 4px 0 8px;
    padding: 8px;
    max-height: 0;
    overflow: hidden;
    opacity: 1;
    visibility: visible;
    transition: max-height 0.3s ease, padding 0.3s;
  }

  .nav-dropdown.open .nav-dropdown-menu,
  .nav-dropdown.nav-mega.open .nav-mega-panel {
    max-height: 600px;
    padding: 12px;
  }

  .mega-grid { grid-template-columns: 1fr; gap: 16px; }
  .mega-footer { flex-direction: column; align-items: flex-start; }

  .mobile-auth {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 28px;
    padding-top: 28px;
    border-top: 1px solid var(--nx-border);
  }

  .footer-top {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .related-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  :root { --nx-section-y: 44px; --nx-section-head-gap: 32px; --nx-ticker-speed: 38s; --nx-search-modal-offset-top: 84px; --nx-search-modal-shell-gap: 20px; --nx-search-modal-head-px: 12px; --nx-search-modal-label-px: 16px; --nx-search-result-px: 16px; }
  body { padding-top: calc(var(--nx-topbar-h) + 64px); }
  .site-header { height: 64px; --nx-header-h: 64px; }
  .site-logo img { height: 48px; }
  .ticker-item { min-width: 182px; padding: 0 14px; gap: 8px; }
  .ticker-item-icon { width: 22px; height: 22px; }
  .ticker-item-name { font-size: 12px; }
  .ticker-item-symbol { font-size: 12px; }
  .ticker-item-price { font-size: 12px; }
  .ticker-item-change { font-size: 10px; }
  .stats-bar { grid-template-columns: 1fr; margin-top: 0; }
  .steps { grid-template-columns: 1fr; }
  .footer-nav { grid-template-columns: 1fr; }
  .footer-bottom__inner { flex-direction: column; align-items: flex-start; }
  .footer-badges { width: 100%; }
  .related-grid { grid-template-columns: 1fr; }
  .search-modal-dialog { border-radius: var(--nx-radius); }
  .search-modal-head input { font-size: 18px; }
  .search-modal-label { font-size: 13px; }
  .search-result-name { font-size: 15px; }
  .search-result-sub { font-size: 12px; }
  .search-result-right { font-size: 13px; }
}

.mobile-auth { display: none; }

@media (max-width: 1100px) {
  .mobile-auth { display: flex; }
  .header-tools { display: none; }
}
