/* =================================================================
   AP Markets · Design System
   Aligned with Brand Manual v1 — Montserrat / Navy / Vibrant Blue
   ================================================================= */

/* --- TOKENS --- */
:root {
  /* Brand colors (manual) */
  --apm-blue: #2E6BFF;
  --apm-blue-2: #1A55E0;
  --apm-blue-soft: rgba(46, 107, 255, 0.08);
  --apm-blue-glow: rgba(46, 107, 255, 0.35);
  --apm-navy: #0A1626;
  --apm-navy-2: #13213A;
  --apm-navy-3: #1E2E4D;
  --apm-white: #FFFFFF;

  /* Neutrals derived */
  --apm-slate-900: #0F172A;
  --apm-slate-700: #334155;
  --apm-slate-500: #64748B;
  --apm-slate-400: #94A3B8;
  --apm-slate-300: #CBD5E1;
  --apm-slate-200: #E2E8F0;
  --apm-slate-100: #F1F5F9;
  --apm-slate-50: #F8FAFC;

  /* Semantic */
  --apm-success: #1FA968;
  --apm-error: #DC3545;
  --apm-warning: #F38A22;

  /* Type scale */
  --fs-xs: 11px;
  --fs-sm: 13px;
  --fs-base: 15px;
  --fs-md: 17px;
  --fs-lg: 20px;
  --fs-xl: 26px;
  --fs-2xl: 34px;
  --fs-3xl: 44px;
  --fs-4xl: 58px;
  --fs-5xl: 72px;

  /* Spacing */
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px;
  --sp-9: 96px; --sp-10: 128px;

  /* Radius */
  --r-sm: 6px; --r-md: 10px; --r-lg: 14px; --r-xl: 20px; --r-2xl: 28px; --r-full: 999px;

  /* Container */
  --container: 1280px;
  --container-narrow: 1080px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(10, 22, 38, .08);
  --shadow-md: 0 4px 16px rgba(10, 22, 38, .08);
  --shadow-lg: 0 20px 50px -15px rgba(10, 22, 38, .25);
  --shadow-glow: 0 8px 40px -10px rgba(46, 107, 255, .45);
}

/* --- RESET --- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Montserrat', -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: var(--fs-base);
  line-height: 1.6;
  color: var(--apm-slate-900);
  background: var(--apm-white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
.mono { font-feature-settings: "tnum" 1, "lnum" 1; }

/* --- LAYOUT --- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
@media (max-width: 768px) { section { padding: 64px 0; } }

/* --- TYPOGRAPHY --- */
h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  color: var(--apm-navy);
}
h1 { font-size: clamp(32px, 4.2vw, 60px); }
h2 { font-size: clamp(26px, 3.4vw, 40px); }
h3 { font-size: clamp(20px, 2.5vw, var(--fs-xl)); }
h4 { font-size: var(--fs-lg); }
.eyebrow {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--apm-blue);
  margin-bottom: 14px;
}
.lead { font-size: var(--fs-md); color: var(--apm-slate-500); line-height: 1.65; }

/* --- BUTTONS --- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 26px;
  border-radius: var(--r-full);
  font-weight: 700; font-size: 14px; letter-spacing: 0.01em;
  transition: all .18s ease;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary {
  background: var(--apm-blue); color: white;
  box-shadow: 0 4px 16px rgba(46, 107, 255, .35);
}
.btn-primary:hover { background: var(--apm-blue-2); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(46, 107, 255, .45); }
.btn-ghost {
  background: transparent; color: var(--apm-navy);
  border: 1.5px solid var(--apm-slate-300);
}
.btn-ghost:hover { border-color: var(--apm-navy); }
.btn-ghost-light {
  background: transparent; color: white;
  border: 1.5px solid rgba(255,255,255,.25);
}
.btn-ghost-light:hover { border-color: white; background: rgba(255,255,255,.08); }
.btn-link { color: var(--apm-blue); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.btn-link:hover { gap: 10px; }

/* --- TOP UTILITY BAR --- */
.utility {
  background: var(--apm-navy);
  color: var(--apm-slate-300);
  font-size: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255,255,255,.06);
  position: sticky;
  top: 0;
  z-index: 51;
}
.utility .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.utility-left { display: flex; align-items: center; gap: 18px; }
.utility-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: var(--r-full); background: rgba(255,255,255,.06); font-size: 11px; font-weight: 600; }
.utility-pill .dot { width: 6px; height: 6px; border-radius: 50%; background: #4ade80; }
.utility-right { display: flex; align-items: center; gap: 14px; }
.lang-switch { display: inline-flex; gap: 2px; background: rgba(255,255,255,.06); border-radius: var(--r-full); padding: 3px; }
.lang-switch a, .lang-switch button { padding: 3px 10px; border-radius: var(--r-full); font-size: 11px; font-weight: 700; color: var(--apm-slate-300); text-decoration: none; cursor: pointer; transition: all .15s; line-height: 1.4; }
.lang-switch a:hover, .lang-switch button:hover { color: white; }
.lang-switch a.active, .lang-switch button.active { background: var(--apm-blue); color: white; }
.utility a { color: var(--apm-slate-300); font-weight: 600; font-size: 12px; }
.utility a:hover { color: white; }

/* --- MAIN NAV --- */
.nav {
  background: white;
  position: sticky;
  top: 35px; /* stack below the sticky utility bar (which is ~35px tall) */
  z-index: 50;
  border-bottom: 1px solid var(--apm-slate-200);
  transition: box-shadow .2s;
}
/* On very narrow screens the utility gets shorter; adjust nav offset */
@media (max-width: 540px) { .nav { top: 33px; } }
.nav.scrolled { box-shadow: var(--shadow-md); }
.nav .container { display: flex; align-items: center; justify-content: space-between; padding-top: 16px; padding-bottom: 16px; gap: 24px; }
.nav-logo img { height: 30px; width: auto; display: block; }
.footer-brand img { height: 32px; width: auto; }
.nav-menu { display: flex; gap: 28px; align-items: center; }
.nav-menu .nav-link,
.nav-menu a.nav-link,
.nav-menu > a {
  font-size: 14px; font-weight: 600; color: var(--apm-slate-700);
  transition: color .15s;
  position: relative;
  background: transparent; border: 0; padding: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px; font-family: inherit;
}
.nav-menu .nav-link:hover, .nav-menu > a:hover { color: var(--apm-blue); }
.nav-menu .nav-link.active, .nav-menu > a.active { color: var(--apm-blue); }
.nav-caret { transition: transform .25s ease; opacity: .65; }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.nav-mobile-toggle { display: none; padding: 8px; }

/* ============================================================
   Mega-menu dropdown (Trading / Company)
   ============================================================ */
.nav-item-mega {
  position: relative;
  display: inline-flex; align-items: center;
}
/* Invisible bridge BELOW the button — keeps hover state alive when crossing
   the visual gap between button bottom and menu top */
.nav-item-mega::after {
  content: '';
  position: absolute;
  top: 100%; left: 50%; transform: translateX(-50%);
  width: 240px; height: 18px;
  z-index: 59;
  pointer-events: none;
}
.nav-item-mega:hover::after,
.nav-item-mega:focus-within::after { pointer-events: auto; }

.mega-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  width: 480px;
  background: white;
  border-radius: 22px;
  box-shadow: 0 30px 60px -20px rgba(10,22,38,.25), 0 8px 22px -10px rgba(10,22,38,.12);
  padding: 18px;
  display: grid; gap: 4px;
  opacity: 0;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .22s ease, transform .22s ease, visibility 0s linear .35s;
  z-index: 60;
}
/* Extended bridge inside the menu — covers the full gap */
.mega-menu::before {
  content: '';
  position: absolute; top: -22px; left: 0; right: 0; height: 22px;
  background: transparent;
}
.nav-item-mega:hover .mega-menu,
.nav-item-mega:focus-within .mega-menu,
.nav-item-mega:has(.mega-menu:hover) .mega-menu {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
  visibility: visible;
  transition: opacity .22s ease, transform .22s ease, visibility 0s;
}
.nav-item-mega:hover .nav-caret,
.nav-item-mega:focus-within .nav-caret { transform: rotate(180deg); color: var(--apm-blue); }

.mega-link {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: var(--apm-navy);
  transition: background .2s ease, transform .2s ease;
}
.mega-link:hover { background: var(--apm-slate-50); transform: translateX(2px); }
.mega-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--apm-slate-100);
  display: flex; align-items: center; justify-content: center;
  color: var(--apm-navy);
  flex-shrink: 0;
  transition: background .2s ease, color .2s ease;
}
.mega-link:hover .mega-icon { background: var(--apm-blue); color: white; }
.mega-icon .icon { width: 22px; height: 22px; }
.mega-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mega-text strong { font-size: 15px; font-weight: 700; color: var(--apm-navy); }
.mega-text span { font-size: 12.5px; color: var(--apm-slate-500); font-weight: 500; }

@media (max-width: 1023px) {
  .nav-menu, .nav-actions { display: none; }
  .nav-mobile-toggle { display: flex; }

  /* =========================================================
     Mobile menu — full-screen overlay drawer (WhatsApp/Revolut style)
     Slides in from the right. Has 3 zones: header / body / footer.
     ========================================================= */
  .nav.menu-open .nav-menu {
    display: block !important;
    position: fixed;
    inset: 0;
    height: 100dvh;
    max-height: 100dvh;
    background: white;
    z-index: 100;
    animation: mobileMenuIn .28s cubic-bezier(.2,.8,.2,1);
  }
  @keyframes mobileMenuIn {
    from { opacity: 0; transform: translateX(20px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Row 1: brand header with close button (rendered by JS, shown only when open) */
  .mobile-menu-header { display: none; }
  .nav.menu-open ~ .mobile-menu-header,
  body:has(.nav.menu-open) .mobile-menu-header {
    display: flex;
  }
  .mobile-menu-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    height: 68px;
    z-index: 200;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    background: white;
    border-bottom: 1px solid var(--apm-slate-200);
  }
  /* Hide legacy utility bar + nav brand row while overlay is open */
  body:has(.nav.menu-open) .utility,
  body:has(.nav.menu-open) .nav > .container > .nav-logo {
    visibility: hidden;
  }
  .mobile-menu-header-logo img {
    height: 32px;
    width: auto;
    display: block;
  }
  .mobile-menu-close {
    width: 42px; height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--apm-slate-50);
    border: 1px solid var(--apm-slate-200);
    border-radius: 12px;
    cursor: pointer;
    color: var(--apm-navy);
    transition: background .18s ease, border-color .18s ease, transform .12s ease;
  }
  .mobile-menu-close:hover { background: var(--apm-slate-100); }
  .mobile-menu-close:active { transform: scale(.94); }
  .mobile-menu-close .icon { width: 22px; height: 22px; }

  /* Row 2: scrollable body with grouped items */
  .nav.menu-open .nav-menu {
    padding: 68px 0 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  /* Group headers (Trading / Company) */
  .nav.menu-open .nav-item-mega { display: block; padding: 0; }
  .nav.menu-open .nav-item-mega > .nav-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 18px 20px 8px;
    font-size: 11.5px;
    font-weight: 800;
    color: var(--apm-slate-500);
    text-transform: uppercase;
    letter-spacing: .12em;
    background: transparent;
    cursor: default;
    pointer-events: none;
  }
  .nav.menu-open .nav-item-mega > .nav-link .nav-caret { display: none; }
  .nav.menu-open .nav-item-mega::before {
    content: '';
    display: block;
    height: 1px;
    background: var(--apm-slate-200);
    margin: 8px 20px 0;
  }
  .nav.menu-open .nav-item-mega:first-child::before { display: none; }

  /* Mega-menu items → rows with icon + title + subtitle */
  .nav.menu-open .mega-menu {
    position: static !important;
    transform: none !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    width: 100%;
    box-shadow: none;
    padding: 4px 12px;
    background: transparent;
    border-radius: 0;
    display: block;
  }
  .nav.menu-open .mega-menu::before,
  .nav.menu-open .mega-menu::after { display: none; }
  .nav.menu-open .mega-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--apm-navy);
    transition: background .15s ease;
  }
  .nav.menu-open .mega-link:hover,
  .nav.menu-open .mega-link:active { background: var(--apm-slate-50); transform: none; }
  .nav.menu-open .mega-icon {
    width: 42px; height: 42px;
    border-radius: 12px;
    background: var(--apm-blue-soft, #EEF5FF);
    color: var(--apm-blue);
    flex-shrink: 0;
  }
  .nav.menu-open .mega-icon .icon { width: 20px; height: 20px; }
  .nav.menu-open .mega-text strong { font-size: 15.5px; font-weight: 700; }
  .nav.menu-open .mega-text span { font-size: 12.5px; color: var(--apm-slate-500); line-height: 1.35; }

  /* Standalone nav-links (Hedge / AP Partnership / Help) — same visual as mega-link */
  .nav.menu-open .nav-menu > a.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    margin: 0 12px;
    border-radius: 12px;
    font-size: 15.5px;
    font-weight: 700;
    color: var(--apm-navy);
    text-decoration: none;
    letter-spacing: 0;
    text-transform: none;
    transition: background .15s ease;
    border-bottom: 0;
  }
  .nav.menu-open .nav-menu > a.nav-link::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--apm-blue);
    flex-shrink: 0;
  }
  .nav.menu-open .nav-menu > a.nav-link:hover,
  .nav.menu-open .nav-menu > a.nav-link:active { background: var(--apm-slate-50); }

  /* Row 3: sticky footer with CTAs */
  .nav.menu-open .nav-actions {
    display: flex !important;
    flex-direction: column;
    position: fixed !important;
    left: 0 !important; right: 0 !important;
    bottom: 0 !important;
    top: auto !important;
    padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0px));
    gap: 10px;
    background: white;
    border-top: 1px solid var(--apm-slate-200);
    z-index: 102;
    box-shadow: 0 -12px 30px -14px rgba(10,22,38,.15);
  }
  .nav.menu-open .nav-actions > .btn {
    width: 100%;
    justify-content: center;
    padding: 14px 20px;
    font-size: 15px;
    border-radius: 999px;
  }
  /* Body offset so last items aren't hidden behind the footer */
  .nav.menu-open .nav-menu { padding-bottom: 148px; }

  /* Hamburger → close X when menu is open. Icon swap: hide lucide, show CSS X */
  .nav.menu-open .nav-mobile-toggle {
    position: fixed;
    top: 12px; right: 12px;
    height: 44px; width: 44px;
    z-index: 201;
    background: var(--apm-slate-50);
    border: 1px solid var(--apm-slate-200);
    border-radius: 12px;
    color: var(--apm-navy);
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 0;
  }
  .nav.menu-open .nav-mobile-toggle > .icon,
  .nav.menu-open .nav-mobile-toggle > svg { display: none; }
  .nav.menu-open .nav-mobile-toggle::before,
  .nav.menu-open .nav-mobile-toggle::after {
    content: '';
    position: absolute;
    width: 20px; height: 2px;
    background: var(--apm-navy);
    border-radius: 2px;
  }
  .nav.menu-open .nav-mobile-toggle::before { transform: rotate(45deg); }
  .nav.menu-open .nav-mobile-toggle::after  { transform: rotate(-45deg); }
  .nav.menu-open .nav-mobile-toggle:hover { background: var(--apm-slate-100); }

  /* Prevent body scroll when menu is open */
  body:has(.nav.menu-open) { overflow: hidden; }
}

/* ============================================================
   Floating Support Button (site-wide, mobile + desktop)
   ============================================================ */
.support-fab {
  position: fixed;
  right: 20px;
  bottom: 22px;
  z-index: 45;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--apm-blue);
  color: white;
  text-decoration: none;
  box-shadow:
    0 14px 30px -10px rgba(46,107,255,.55),
    0 4px 12px -4px rgba(0,8,28,.35),
    0 0 0 1px rgba(255,255,255,.10) inset;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.support-fab::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,107,255,.35), transparent 70%);
  filter: blur(6px);
  z-index: -1;
  animation: supportFabPulse 2.6s ease-in-out infinite;
}
.support-fab:hover {
  background: var(--apm-blue-dark, #1e4fbf);
  transform: translateY(-2px) scale(1.04);
}
.support-fab .icon { width: 26px; height: 26px; }
.support-fab-label {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  background: var(--apm-navy);
  color: white;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}
.support-fab:hover .support-fab-label { opacity: 1; transform: translateY(-50%) translateX(-2px); }
@keyframes supportFabPulse {
  0%, 100% { opacity: .55; transform: scale(1); }
  50%      { opacity: .85; transform: scale(1.12); }
}
@media (max-width: 640px) {
  .support-fab { right: 16px; bottom: 16px; width: 54px; height: 54px; }
  .support-fab .icon { width: 24px; height: 24px; }
  .support-fab-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .support-fab::before { animation: none; }
}

/* --- HERO --- */
.hero {
  background: var(--apm-navy);
  color: white;
  position: relative;
  overflow: hidden;
  padding: 100px 0 120px;
  isolation: isolate;
}
/* Background video (designer drops assets/hero-loop.mp4 + hero-poster.jpg) */
.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
  opacity: .55;
  pointer-events: none;
}
.hero-video-overlay {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(10,22,38,.45) 0%, rgba(10,22,38,.75) 60%, var(--apm-navy) 100%),
    linear-gradient(90deg, rgba(10,22,38,.65) 0%, transparent 40%);
}
.hero-with-video .container { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
}
.hero .container { position: relative; z-index: 2; }
.hero-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 1023px) { .hero-grid { grid-template-columns: 1fr; gap: 40px; } }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: var(--r-full);
  background: rgba(46,107,255,.15); color: #7BA4FF;
  font-size: 11px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-eyebrow .badge-new { background: var(--apm-blue); color: white; padding: 2px 8px; border-radius: var(--r-full); font-size: 10px; }
.hero h1 { color: white; margin-bottom: 24px; }
.hero h1 .hero-line-1, .hero h1 .hero-line-2 { display: block; }
.hero h1 .hero-line-1 { color: white; }
.hero h1 .hero-line-2 { color: var(--apm-blue); }
.hero p.lead { color: rgba(255,255,255,.75); margin-bottom: 36px; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 36px; flex-wrap: wrap; }
.hero-stat .num { font-size: 32px; font-weight: 800; color: white; line-height: 1; }
.hero-stat .lbl { font-size: 12px; color: rgba(255,255,255,.55); margin-top: 6px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }

/* Hero visual (right side) */
.hero-visual {
  background: linear-gradient(160deg, rgba(46,107,255,.10), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r-xl);
  padding: 24px;
  backdrop-filter: blur(6px);
  position: relative;
}

/* ====== 3D interactive variant ====== */
.hero-visual-3d {
  perspective: 1200px;
  background: transparent;
  border: 0;
  padding: 0;
  transform-style: preserve-3d;
}
.hero-visual-3d .hero-visual-inner {
  position: relative;
  border-radius: 26px;
  padding: 26px 26px 24px;
  background:
    linear-gradient(165deg, rgba(46,107,255,.22) 0%, rgba(16,28,52,.85) 60%, rgba(8,16,32,.95) 100%);
  border: 1px solid rgba(123,164,255,.20);
  box-shadow:
    0 30px 60px -22px rgba(0,8,28,.85),
    0 0 0 1px rgba(255,255,255,.04) inset,
    0 1px 0 0 rgba(255,255,255,.12) inset,
    0 -1px 0 0 rgba(0,0,0,.40) inset;
  backdrop-filter: blur(14px) saturate(1.1);
  transform: rotateX(6deg) rotateY(-9deg);
  transform-style: preserve-3d;
  transition: transform .5s cubic-bezier(.16,.84,.32,1);
  overflow: hidden;
}
.hero-visual-3d:hover .hero-visual-inner {
  transform: rotateX(2deg) rotateY(-3deg) translateY(-4px);
}
/* Soft top highlight */
.hero-visual-3d .hero-visual-inner::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 60%;
  background: linear-gradient(180deg, rgba(123,164,255,.10) 0%, transparent 100%);
  border-radius: 26px 26px 0 0;
  pointer-events: none;
  mix-blend-mode: screen;
}
/* Outer floating glow behind the card */
.hero-visual-3d .hero-visual-glow {
  position: absolute; inset: -28px;
  background: radial-gradient(circle at 30% 30%, rgba(46,107,255,.35), transparent 50%),
              radial-gradient(circle at 80% 80%, rgba(123,164,255,.20), transparent 55%);
  filter: blur(40px);
  z-index: -1;
  opacity: .85;
  animation: apm-aurora 14s ease-in-out infinite;
}

/* Tab pills with active glow */
.hero-visual-3d .hero-visual-tab { display: flex; gap: 6px; margin-bottom: 20px; }
.hero-visual-3d .hero-visual-tab button {
  padding: 8px 14px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700; letter-spacing: .02em;
  color: rgba(255,255,255,.60);
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.06);
  cursor: pointer;
  transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
}
.hero-visual-3d .hero-visual-tab button:hover:not(.active) {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.85);
  transform: translateY(-1px);
}
.hero-visual-3d .hero-visual-tab button.active {
  background: linear-gradient(135deg, #2E6BFF 0%, #4A82FF 100%);
  color: white; border-color: rgba(123,164,255,.50);
  box-shadow: 0 6px 16px rgba(46,107,255,.45), 0 0 0 1px rgba(255,255,255,.15) inset;
}

.hero-visual-3d .hero-visual-symbol { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.hero-visual-3d .hero-visual-symbol .sym { font-size: 22px; font-weight: 700; color: white; letter-spacing: .01em; }
.hero-visual-3d .hero-visual-symbol .chg { font-size: 14px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: rgba(74,222,128,.12); color: #4ade80; transition: background .25s, color .25s; }
.hero-visual-3d .hero-visual-symbol .chg.dn { background: rgba(248,113,113,.12); color: #f87171; }
.hero-visual-3d .live-dot {
  margin-left: auto;
  width: 8px; height: 8px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 0 rgba(74,222,128,.7);
  animation: apm-pulse-dot 1.8s ease-out infinite;
}
.hero-visual-3d .hero-visual-price {
  font-size: 44px; font-weight: 900; color: white;
  margin-bottom: 8px; line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.02em;
  text-shadow: 0 8px 24px rgba(46,107,255,.30);
  transition: color .2s ease, transform .2s ease;
}
.hero-visual-3d .hero-visual-price.flash-up { color: #4ade80; }
.hero-visual-3d .hero-visual-price.flash-dn { color: #f87171; }
.hero-visual-3d .hero-visual-sub { font-size: 12px; color: rgba(255,255,255,.55); margin-bottom: 14px; font-variant-numeric: tabular-nums; }

.hero-visual-3d svg .chart-fill { transition: d 0.6s ease; }
.hero-visual-3d svg .chart-line { transition: d 0.6s ease; }
.hero-visual-3d svg .chart-dot { transition: transform 0.6s ease; }

.hero-quote-meta {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px;
  margin-top: 18px; padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-quote-meta > div { display: flex; flex-direction: column; gap: 3px; }
.hero-quote-meta span { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,255,255,.45); }
.hero-quote-meta strong { font-size: 14px; font-weight: 700; color: white; font-variant-numeric: tabular-nums; }

/* Fallback for the non-3D variant (other pages still use it) */
.hero-visual:not(.hero-visual-3d) .hero-visual-tab { display: flex; gap: 6px; margin-bottom: 16px; }
.hero-visual:not(.hero-visual-3d) .hero-visual-tab button { padding: 6px 12px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600; color: rgba(255,255,255,.55); background: rgba(255,255,255,.04); }
.hero-visual:not(.hero-visual-3d) .hero-visual-tab button.active { background: var(--apm-blue); color: white; }
.hero-visual:not(.hero-visual-3d) .hero-visual-symbol { display: flex; align-items: baseline; gap: 12px; margin-bottom: 4px; }
.hero-visual:not(.hero-visual-3d) .hero-visual-symbol .sym { font-size: 22px; font-weight: 700; color: white; }
.hero-visual:not(.hero-visual-3d) .hero-visual-symbol .chg { color: var(--apm-success); font-size: 14px; font-weight: 600; }
.hero-visual:not(.hero-visual-3d) .hero-visual-price { font-size: 32px; font-weight: 800; color: white; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.hero-visual:not(.hero-visual-3d) .hero-visual-sub { font-size: 11px; color: rgba(255,255,255,.5); margin-bottom: 16px; }

/* --- TRUST STRIP --- */
.trust {
  background: white;
  border-bottom: 1px solid var(--apm-slate-200);
  padding: 40px 0;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
  perspective: 1400px;
  perspective-origin: 50% 30%;
}
.trust-grid-5 { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.trust-grid-6 { grid-template-columns: repeat(6, 1fr); gap: 12px; }
@media (max-width: 1023px) {
  .trust-grid-5 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .trust-grid-6 { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (max-width: 768px) {
  .trust-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .trust-grid-5, .trust-grid-6 { grid-template-columns: repeat(2, 1fr); }
}

/* Compact styling specifically for 6-item strip so all fit in one desktop row */
.trust-grid-6 .trust-item {
  padding: 18px 10px 16px;
  border-radius: 14px;
}
.trust-grid-6 .trust-item .icon {
  width: 36px !important; height: 36px !important;
  padding: 7px;
  border-radius: 10px;
  margin: 0 auto 10px !important;
}
.trust-grid-6 .trust-item .val {
  font-size: 20px;
  letter-spacing: -.02em;
}
.trust-grid-6 .trust-item .lbl {
  font-size: 11px;
  margin-top: 6px;
  line-height: 1.35;
}

/* 3D card variant */
.trust-item {
  position: relative;
  text-align: center;
  padding: 24px 16px 22px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
  border: 1px solid var(--apm-slate-200);
  border-radius: 18px;
  transform-style: preserve-3d;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.95) inset,
    0 8px 18px -10px rgba(10,22,38,.10),
    0 18px 36px -22px rgba(10,22,38,.16);
  transition: transform .4s cubic-bezier(.16,.84,.32,1),
              box-shadow .4s cubic-bezier(.16,.84,.32,1),
              border-color .25s ease;
}
/* Subtle top glow strip — visible on hover */
.trust-item::before {
  content: '';
  position: absolute; top: 0; left: 14px; right: 14px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,107,255,.50) 30%, rgba(46,107,255,.70) 50%, rgba(46,107,255,.50) 70%, transparent 100%);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity .35s ease;
}
.trust-item:hover {
  transform: translateY(-6px) rotateX(2deg);
  border-color: var(--apm-blue);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.95) inset,
    0 22px 42px -18px rgba(46,107,255,.22),
    0 14px 28px -14px rgba(10,22,38,.18);
}
.trust-item:hover::before { opacity: 1; }

/* Icon chip with depth */
.trust-item .icon {
  width: 44px !important; height: 44px !important;
  margin: 0 auto 14px !important;
  padding: 9px;
  color: var(--apm-blue) !important;
  background: var(--apm-blue-soft, #EEF5FF);
  border-radius: 12px;
  display: block !important;
  box-sizing: border-box;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.90) inset,
    0 0 0 1px rgba(46,107,255,.10) inset,
    0 6px 14px -8px rgba(46,107,255,.30);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.trust-item:hover .icon {
  background: var(--apm-blue);
  color: white !important;
  transform: scale(1.05) rotate(-3deg);
}
.trust-item .val {
  font-size: 24px; font-weight: 900; color: var(--apm-navy);
  letter-spacing: -.015em; line-height: 1;
}
.trust-item .lbl {
  font-size: 12px; color: var(--apm-slate-500); font-weight: 600;
  margin-top: 8px;
}

/* --- ASSETS SECTION --- */
.assets-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 1023px) { .assets-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .assets-grid { grid-template-columns: 1fr; } }
.asset-card {
  background: white;
  border: 1px solid var(--apm-slate-200);
  border-radius: var(--r-lg);
  padding: 24px;
  transition: all .2s;
}
.asset-card:hover { border-color: var(--apm-blue); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.asset-card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.asset-card-cat { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--apm-slate-500); }
.asset-card-icon { width: 36px; height: 36px; border-radius: var(--r-md); background: var(--apm-blue-soft); display: flex; align-items: center; justify-content: center; color: var(--apm-blue); }
.asset-card h3 { font-size: 18px; margin-bottom: 4px; }
.asset-card p { font-size: 13px; color: var(--apm-slate-500); margin: 4px 0 16px; }
.asset-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--apm-slate-100); }
.asset-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--apm-slate-100); font-size: 13px; }
.asset-list li:last-child { border-bottom: none; }
.asset-list .sym { font-weight: 600; color: var(--apm-navy); }
.asset-list .px { font-variant-numeric: tabular-nums; font-weight: 600; }
.asset-list .px.up { color: var(--apm-success); }
.asset-list .px.dn { color: var(--apm-error); }

/* --- ACCOUNTS PREVIEW · 3 arriba + 2 abajo centrados --- */
.accounts-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 48px; }
.accounts-grid > * { grid-column: span 2; }
.accounts-grid > *:nth-child(4) { grid-column: 2 / span 2; }
.accounts-grid > *:nth-child(5) { grid-column: 4 / span 2; }
@media (max-width: 1199px) {
  .accounts-grid { grid-template-columns: repeat(6, 1fr); }
  .accounts-grid > * { grid-column: span 3; }
  .accounts-grid > *:nth-child(odd):last-child { grid-column: 2 / span 4; }
  .accounts-grid > *:nth-child(4),
  .accounts-grid > *:nth-child(5) { grid-column: span 3; }
}
@media (max-width: 768px) {
  .accounts-grid { grid-template-columns: 1fr; }
  .accounts-grid > *,
  .accounts-grid > *:nth-child(4),
  .accounts-grid > *:nth-child(5),
  .accounts-grid > *:nth-child(odd):last-child { grid-column: 1; }
}

/* Account spec rows (label : value) */
.account-specs { list-style: none; padding: 0; margin: 18px 0 24px; display: grid; gap: 2px; }
.account-specs li {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 13px;
  margin: 0 -12px;
  transition: background .2s ease;
}
.account-specs li:hover { background: var(--apm-slate-50); }
.account-specs .lbl { color: var(--apm-slate-500); font-weight: 500; }
.account-specs .val { color: var(--apm-navy); font-weight: 800; text-align: right; }
.account-specs .val.ok {
  color: #10B981;
  background: rgba(16,185,129,.08);
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
}
/* ==== Account cards v3 — 3D brand-only ==== */
.accounts-grid {
  perspective: 1600px;
  perspective-origin: 50% 30%;
  padding-top: 28px; /* room for the POPULAR badge */
}
.account-card {
  position: relative;
  background:
    radial-gradient(circle at 0% 0%, rgba(46,107,255,.05), transparent 55%),
    linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
  border: 1px solid var(--apm-slate-200);
  border-radius: 22px;
  padding: 32px 26px 26px;
  overflow: visible;
  display: flex; flex-direction: column;
  transform-style: preserve-3d;
  transform: rotateY(0deg);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.95) inset,
    0 8px 18px -10px rgba(10,22,38,.10),
    0 18px 36px -22px rgba(10,22,38,.16);
  transition: transform .45s cubic-bezier(.16,.84,.32,1),
              box-shadow .45s cubic-bezier(.16,.84,.32,1),
              border-color .25s ease;
}
/* Subtle top blue ribbon (brand only) */
.account-card::before {
  content: '';
  position: absolute; top: 0; left: 14px; right: 14px;
  height: 3px;
  background: linear-gradient(90deg, transparent 0%, rgba(46,107,255,.50) 30%, rgba(46,107,255,.70) 50%, rgba(46,107,255,.50) 70%, transparent 100%);
  border-radius: 0 0 3px 3px;
  opacity: 0;
  transition: opacity .35s ease;
}
.account-card:hover::before { opacity: 1; }

.account-card:hover {
  transform: translateY(-8px) rotateX(2deg);
  border-color: var(--apm-blue);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.95) inset,
    0 26px 50px -22px rgba(46,107,255,.22),
    0 14px 28px -14px rgba(10,22,38,.18);
}

/* Card head row: icon + name + tag */
.account-card .acct-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 4px;
}
.account-card .acct-icon {
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--apm-blue-soft);
  color: var(--apm-blue);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.90) inset,
    0 0 0 1px rgba(46,107,255,.10) inset,
    0 6px 14px -8px rgba(46,107,255,.30);
  transition: background .25s ease, color .25s ease, transform .25s ease;
}
.account-card:hover .acct-icon {
  background: var(--apm-blue); color: white;
  transform: scale(1.05) rotate(-3deg);
}

.account-card h4 {
  font-size: 19px; font-weight: 800;
  color: var(--apm-navy);
  margin: 0; letter-spacing: -.01em;
}
.account-card .acct-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--apm-slate-100);
  color: var(--apm-slate-500);
  border: 1px solid var(--apm-slate-200);
}
.account-card .acct-sub {
  font-size: 12.5px; color: var(--apm-slate-500);
  margin: 4px 0 18px;
  font-weight: 500;
}

/* Price block */
.account-card .price {
  display: flex; align-items: baseline; gap: 8px;
  padding-bottom: 22px; margin-bottom: 4px;
  border-bottom: 1px dashed var(--apm-slate-200);
  position: relative;
}
.account-card .price .num {
  font-size: 44px; font-weight: 900;
  color: var(--apm-navy);
  letter-spacing: -.025em; line-height: 1;
}
.account-card .price .unit {
  font-size: 12px; color: var(--apm-slate-500); font-weight: 600;
}

/* Specs list — uniform style */
.account-card .account-specs {
  list-style: none; padding: 0; margin: 18px 0 22px;
  display: grid; gap: 2px;
}
.account-card .account-specs li {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  padding: 10px 10px;
  border-radius: 8px;
  font-size: 13px;
  transition: background .2s ease;
}
.account-card .account-specs li:hover { background: var(--apm-slate-50); }
.account-card .account-specs .lbl { color: var(--apm-slate-500); font-weight: 500; }
.account-card .account-specs .val { color: var(--apm-navy); font-weight: 700; font-variant-numeric: tabular-nums; }
.account-card .account-specs .val.ok { color: var(--apm-blue); }

/* Featured card */
.account-card.featured {
  background:
    radial-gradient(circle at 0% 0%, rgba(46,107,255,.10), transparent 55%),
    linear-gradient(180deg, #F4F8FF 0%, white 80%);
  border: 1.5px solid var(--apm-blue);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.95) inset,
    0 0 0 1px rgba(46,107,255,.15) inset,
    0 14px 30px -10px rgba(46,107,255,.30),
    0 26px 50px -24px rgba(10,22,38,.22);
}
.account-card.featured:hover {
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.95) inset,
    0 0 0 1px rgba(46,107,255,.20) inset,
    0 26px 56px -14px rgba(46,107,255,.40),
    0 34px 60px -24px rgba(10,22,38,.25);
}
.account-card.featured::before {
  background: linear-gradient(90deg, transparent 0%, var(--apm-blue) 30%, var(--apm-blue-2, #4A82FF) 50%, var(--apm-blue) 70%, transparent 100%);
  opacity: 1;
}
.account-card.featured .price .num {
  background: linear-gradient(135deg, var(--apm-blue) 0%, var(--apm-blue-2, #4A82FF) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.account-card.featured .acct-icon {
  background: var(--apm-blue);
  color: white;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.40) inset,
    0 8px 18px -6px rgba(46,107,255,.55);
}
.account-card.featured .acct-tag {
  background: var(--apm-blue);
  color: white;
  border-color: var(--apm-blue);
}

/* POPULAR badge — clean floating pill above the card */
.account-card.featured::after {
  content: 'POPULAR';
  position: absolute; top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--apm-navy);
  color: white;
  font-size: 11px; font-weight: 800;
  letter-spacing: .14em;
  padding: 7px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.15);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.12) inset,
    0 8px 20px -6px rgba(10,22,38,.45),
    0 0 0 4px rgba(46,107,255,.18);
  white-space: nowrap;
  z-index: 3;
  letter-spacing: .15em;
}

/* ==== mod-card-acct (accounts.html detail grid) — same brand language ==== */
.mod-card-acct {
  position: relative;
  background: linear-gradient(180deg, #FFFFFF 0%, #F8FAFD 100%);
  border: 1px solid var(--apm-slate-200);
  border-radius: 18px;
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 8px 18px -10px rgba(10,22,38,.10);
  transition: transform .35s cubic-bezier(.16,.84,.32,1), box-shadow .35s ease, border-color .25s ease;
}
.mod-card-acct:hover {
  transform: translateY(-3px);
  border-color: var(--apm-blue);
  box-shadow: 0 22px 40px -18px rgba(46,107,255,.20);
}
.mod-card-acct .acct-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mod-card-acct h3 { font-size: 17px; font-weight: 800; color: var(--apm-navy); margin: 0; }
.mod-card-acct p { font-size: 13.5px; color: var(--apm-slate-700); line-height: 1.6; margin: 0; flex: 1; }
.mod-card-acct .acct-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: .10em; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px;
  background: var(--apm-slate-100);
  color: var(--apm-slate-500);
  border: 1px solid var(--apm-slate-200);
}
.mod-card-acct .acct-tag-featured {
  background: var(--apm-blue);
  color: white;
  border-color: var(--apm-blue);
}
.mod-card-acct-featured {
  border: 1.5px solid var(--apm-blue);
  background:
    radial-gradient(circle at 0% 0%, rgba(46,107,255,.08), transparent 50%),
    linear-gradient(180deg, #F4F8FF 0%, white 80%);
  box-shadow: 0 14px 30px -10px rgba(46,107,255,.20);
}

/* --- SECTION HEADER --- */
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head h2 { margin-bottom: 14px; }
.section-head p { font-size: var(--fs-md); color: var(--apm-slate-500); }

/* --- PLATFORMS --- */
.platforms {
  background: linear-gradient(180deg, var(--apm-slate-50), white);
}
.platforms-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 1023px) { .platforms-grid { grid-template-columns: 1fr; gap: 40px; } }
.platforms-features { display: grid; gap: 16px; margin: 28px 0; }
.platforms-feature {
  display: flex; gap: 14px; padding: 14px;
  background: white; border: 1px solid var(--apm-slate-200); border-radius: var(--r-md);
}
.platforms-feature-icon { width: 38px; height: 38px; border-radius: var(--r-md); background: var(--apm-blue-soft); color: var(--apm-blue); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.platforms-feature h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.platforms-feature p { font-size: 12.5px; color: var(--apm-slate-500); margin: 0; line-height: 1.5; }
.platform-mockup {
  background: var(--apm-navy);
  border-radius: var(--r-xl);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  color: white;
}
.platform-mockup-head { display: flex; gap: 6px; margin-bottom: 16px; }
.platform-mockup-head span { width: 10px; height: 10px; border-radius: 50%; }
.platform-mockup-head span:nth-child(1) { background: #ff5f57; }
.platform-mockup-head span:nth-child(2) { background: #febc2e; }
.platform-mockup-head span:nth-child(3) { background: #28c840; }
.platform-mockup-chart { background: rgba(255,255,255,.03); border-radius: var(--r-md); padding: 18px; }

/* --- HEDGE FUND TEASER --- */
.hedge {
  background: var(--apm-navy);
  color: white;
  position: relative;
  overflow: hidden;
}
.hedge::before {
  content: ''; position: absolute; top: 0; right: -20%;
  width: 60%; height: 100%;
  background: radial-gradient(circle at center, rgba(46,107,255,.25) 0%, transparent 60%);
}
.hedge .container { position: relative; z-index: 2; }
.hedge-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
@media (max-width: 1023px) { .hedge-grid { grid-template-columns: 1fr; } }
.hedge h2 { color: white; margin-bottom: 20px; }
.hedge p { color: rgba(255,255,255,.75); font-size: var(--fs-md); margin-bottom: 28px; }
.hedge-points { display: grid; gap: 16px; margin-bottom: 32px; }
.hedge-point { display: flex; gap: 14px; }
.hedge-point-icon { width: 36px; height: 36px; border-radius: var(--r-md); background: rgba(46,107,255,.20); color: #7BA4FF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.hedge-point h4 { color: white; font-size: 14.5px; margin-bottom: 4px; }
.hedge-point p { font-size: 13px; margin: 0; color: rgba(255,255,255,.65); line-height: 1.5; }
.hedge-visual {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(123,164,255,.18);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.06) inset,
    0 30px 60px -28px rgba(0,8,28,.55);
}
.hedge-tiers-head {
  text-align: center;
  font-size: 11px; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: rgba(255,255,255,.55);
  margin-bottom: 22px;
}
.hedge-tiers {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 540px) { .hedge-tiers { grid-template-columns: 1fr; } }

.hedge-tier {
  position: relative;
  padding: 22px 20px;
  background:
    linear-gradient(165deg, rgba(46,107,255,.10) 0%, rgba(16,28,52,.50) 60%, rgba(8,16,32,.65) 100%);
  border: 1px solid rgba(123,164,255,.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.06) inset,
    0 8px 20px -10px rgba(0,8,28,.45);
  transition: transform .35s cubic-bezier(.16,.84,.32,1), border-color .25s ease, box-shadow .35s ease;
}
.hedge-tier::before {
  content: '';
  position: absolute; top: 0; left: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, var(--apm-blue) 0%, #7BA4FF 100%);
  border-radius: 0 2px 2px 0;
}
.hedge-tier:hover {
  transform: translateY(-3px);
  border-color: rgba(123,164,255,.40);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.10) inset,
    0 18px 36px -14px rgba(46,107,255,.40);
}
.hedge-tier-num {
  font-size: 28px; font-weight: 900;
  background: linear-gradient(135deg, var(--apm-blue) 0%, #7BA4FF 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
  line-height: 1;
  margin-bottom: 12px;
}
.hedge-tier-name {
  color: white;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.01em;
  margin-bottom: 6px;
  line-height: 1.25;
}
.hedge-tier-tag {
  display: inline-block;
  font-size: 10.5px; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: #7BA4FF;
  background: rgba(46,107,255,.12);
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(123,164,255,.22);
}

/* --- WHY US --- */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
@media (max-width: 1023px) { .why-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  padding: 32px;
  border-radius: var(--r-lg);
  background: white;
  border: 1px solid var(--apm-slate-200);
  transition: all .2s;
}
.why-card:hover { border-color: var(--apm-blue); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-card-icon { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--apm-blue-soft); color: var(--apm-blue); display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.why-card h3 { font-size: 18px; margin-bottom: 10px; font-weight: 700; }
.why-card p { font-size: 13.5px; color: var(--apm-slate-500); margin: 0; line-height: 1.6; }

/* --- TIMELINE --- */
.timeline { background: var(--apm-slate-50); }
/* timeline-track + timeline-item visual rules live in animations.css */

/* --- IB TEASER --- */
.ib {
  background: linear-gradient(135deg, var(--apm-blue) 0%, var(--apm-blue-2) 100%);
  color: white;
  border-radius: var(--r-2xl);
  padding: 56px 64px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center;
  position: relative;
  overflow: hidden;
}
@media (max-width: 1023px) { .ib { grid-template-columns: 1fr; padding: 40px; } }
.ib::before {
  content: ''; position: absolute; top: -50%; right: -10%;
  width: 60%; height: 200%;
  background: radial-gradient(circle, rgba(255,255,255,.12) 0%, transparent 60%);
}
.ib > * { position: relative; z-index: 2; }
.ib h2 { color: white; }
.ib p { color: rgba(255,255,255,.85); margin-top: 14px; font-size: 15px; }
.ib-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
/* Stacked variant — two full-width cards, each with icon + text row */
.ib-stats.ib-stats-stacked {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
}
.ib-stat {
  position: relative;
  padding: 22px 20px;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.20);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  box-shadow:
    0 1px 0 0 rgba(255,255,255,.20) inset,
    0 8px 20px -10px rgba(0,8,28,.30);
  transition: transform .3s ease, background .3s ease, border-color .3s ease;
}
.ib-stats-stacked .ib-stat {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 20px 22px;
}
.ib-stat:hover {
  transform: translateY(-3px);
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.30);
}
.ib-stat-icon {
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(160deg, rgba(255,255,255,.22), rgba(255,255,255,.08));
  border: 1px solid rgba(255,255,255,.28);
  color: white;
  box-shadow: 0 1px 0 rgba(255,255,255,.30) inset;
}
.ib-stat-icon .icon {
  width: 24px;
  height: 24px;
  stroke-width: 2;
}
.ib-stat-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ib-stat .num {
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: white;
  letter-spacing: -.015em;
  word-break: normal;
  hyphens: none;
}
.ib-stats:not(.ib-stats-stacked) .ib-stat .num { font-size: 30px; }
.ib-stat .lbl {
  font-size: 10.5px;
  color: rgba(255,255,255,.75);
  margin-top: 2px;
  text-transform: uppercase;
  letter-spacing: .10em;
  font-weight: 700;
  line-height: 1.4;
}
.ib-stats:not(.ib-stats-stacked) .ib-stat .lbl { margin-top: 8px; }

/* --- TRUSTED ECOSYSTEM (marquee w/ real logos) --- */
.ecosystem-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(180deg, #0A1626 0%, #0d1a30 100%);
  overflow: hidden;
}
.ecosystem-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(600px 240px at 15% 30%, rgba(46,107,255,.14), transparent 70%),
    radial-gradient(500px 220px at 85% 70%, rgba(123,164,255,.10), transparent 70%);
  pointer-events: none;
}
.ecosystem-strip {
  position: relative;
  margin-top: 40px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 8%, black 92%, transparent 100%);
}
.ecosystem-track {
  display: flex;
  align-items: center;
  gap: 64px;
  width: max-content;
  animation: ecosystemMarquee 32s linear infinite;
}
.ecosystem-track:hover { animation-play-state: paused; }
.ecosystem-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  min-width: 130px;
  padding: 0 12px;
}
.ecosystem-logo img {
  max-height: 44px;
  max-width: 160px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1) opacity(.55);
  transition: filter .25s ease, transform .25s ease;
}
.ecosystem-logo:hover img {
  filter: brightness(0) invert(1) opacity(1);
  transform: scale(1.05);
}
@keyframes ecosystemMarquee {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .ecosystem-track { animation: none; }
}

/* --- Social Trading hero gif --- */
.social-hero-gif {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 30px 60px -25px rgba(0,8,28,.55), 0 0 0 1px rgba(46,107,255,.12);
  aspect-ratio: 16 / 10;
  background: linear-gradient(160deg, #0f2141 0%, #060d1a 100%);
}
.social-hero-gif img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- HOME · Platforms MT5 showcase (bare logo, no card) --- */
.platforms-mt5-showcase {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  min-height: 260px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.platforms-mt5-logo {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 16px 40px rgba(46,107,255,.35));
  animation: platformsMt5In .9s ease-out both, platformsMt5Float 6s ease-in-out 1s infinite;
}
@keyframes platformsMt5In {
  0% { opacity: 0; transform: translateY(24px) scale(.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes platformsMt5Float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@media (max-width: 900px) {
  .platforms-mt5-showcase { min-height: 200px; padding: 12px 0; }
  .platforms-mt5-logo { max-height: 160px; }
}

/* --- MT5 HERO LOGO (platforms page) — clean centered logo w/ glow --- */
.mt5-hero-logo {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 30px;
  min-height: 300px;
  border-radius: 22px;
  background: linear-gradient(160deg, rgba(46,107,255,.16) 0%, rgba(46,107,255,.04) 100%);
  border: 1px solid rgba(123,164,255,.22);
  box-shadow:
    0 1px 0 rgba(255,255,255,.08) inset,
    0 24px 50px -22px rgba(0,8,28,.55);
  overflow: hidden;
  isolation: isolate;
}
.mt5-hero-logo img {
  position: relative;
  z-index: 2;
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 30px rgba(46,107,255,.35));
  animation: mt5LogoIn .9s ease-out both, mt5LogoFloat 6s ease-in-out 1s infinite;
}
.mt5-hero-logo-glow {
  position: absolute;
  inset: -30% -20% auto auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(46,107,255,.55) 0%, rgba(46,107,255,0) 70%);
  filter: blur(30px);
  pointer-events: none;
  z-index: 0;
  animation: mt5LogoGlow 5s ease-in-out infinite;
}
@keyframes mt5LogoIn {
  0% { opacity: 0; transform: translateY(24px) scale(.94); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes mt5LogoFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
@keyframes mt5LogoGlow {
  0%, 100% { opacity: .6; transform: scale(1); }
  50% { opacity: .9; transform: scale(1.08); }
}
@media (max-width: 900px) {
  .mt5-hero-logo { min-height: 220px; padding: 30px 20px; }
  .mt5-hero-logo img { max-height: 160px; }
}



/* --- OBJECTIONS STRIP (home, below trust strip) --- */
.objections-section {
  padding: 10px 0 56px;
  background: white;
}
.objections-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.objections-grid-3 { grid-template-columns: repeat(3, 1fr); }
.objection-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 18px;
  border-radius: 16px;
  background: var(--apm-slate-50);
  border: 1px solid var(--apm-slate-200);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.objection-card:hover {
  transform: translateY(-3px);
  border-color: rgba(46,107,255,.35);
  box-shadow: 0 14px 30px -18px rgba(10,22,38,.25);
}
.objection-icon {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: var(--apm-blue-soft, #EEF5FF);
  color: var(--apm-blue);
}
.objection-icon .icon { width: 22px; height: 22px; }
.objection-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--apm-navy);
  margin-bottom: 4px;
}
.objection-body p {
  margin: 0;
  font-size: 12.5px;
  color: var(--apm-slate-500);
  line-height: 1.5;
}
@media (max-width: 1023px) {
  .objections-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .objections-grid { grid-template-columns: 1fr; }
}

/* --- ACCOUNTS · profile guide --- */
.accounts-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.accounts-guide-card {
  display: flex;
  flex-direction: column;
  padding: 28px 26px;
  border-radius: 18px;
  background: white;
  border: 1px solid var(--apm-slate-200);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.accounts-guide-card:hover {
  transform: translateY(-4px);
  border-color: rgba(46,107,255,.35);
  box-shadow: 0 20px 40px -22px rgba(10,22,38,.28);
}
.accounts-guide-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--apm-blue-soft, #EEF5FF);
  color: var(--apm-blue);
  margin-bottom: 16px;
}
.accounts-guide-icon .icon { width: 24px; height: 24px; }
.accounts-guide-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
  color: var(--apm-navy);
}
.accounts-guide-card p {
  margin: 0 0 18px;
  font-size: 13.5px;
  color: var(--apm-slate-500);
  line-height: 1.65;
  flex: 1;
}
.accounts-guide-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--apm-blue);
  text-decoration: none;
}
.accounts-guide-link:hover { text-decoration: underline; }
.accounts-guide-link .icon { width: 15px; height: 15px; }
@media (max-width: 900px) {
  .accounts-guide-grid { grid-template-columns: 1fr; }
}

/* --- BIG CTA (redesign v2 — navy 3D w/ orbs + shimmer) --- */
.bigcta {
  position: relative;
  padding: 110px 0;
  text-align: center;
  background:
    radial-gradient(1000px 500px at 50% -20%, rgba(46,107,255,.28) 0%, rgba(46,107,255,0) 60%),
    linear-gradient(180deg, #0A1626 0%, #0d1a30 100%);
  color: white;
  overflow: hidden;
  isolation: isolate;
}
.bigcta::before,
.bigcta::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
}
.bigcta::before {
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(46,107,255,.55), rgba(46,107,255,0) 65%);
  top: -180px;
  left: -120px;
  animation: bigctaOrb 12s ease-in-out infinite;
}
.bigcta::after {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(123,164,255,.45), rgba(123,164,255,0) 65%);
  bottom: -160px;
  right: -100px;
  animation: bigctaOrb 14s ease-in-out infinite reverse;
}
@keyframes bigctaOrb {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(40px, -30px) scale(1.15); }
}
.bigcta > .container,
.bigcta > .container-narrow { position: relative; z-index: 2; }
.bigcta-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
  opacity: .35;
  mix-blend-mode: screen;
  pointer-events: none;
}
.bigcta::marker { display: none; }
.bigcta h2 {
  color: white;
  margin: 0 0 18px;
  background: linear-gradient(180deg, #fff 0%, #cfe0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: -.02em;
}
.bigcta p {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.75);
  max-width: 620px;
  margin: 0 auto 34px;
}
.bigcta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.bigcta-actions .btn-primary {
  box-shadow: 0 12px 30px -8px rgba(46,107,255,.6), 0 0 0 1px rgba(255,255,255,.08) inset;
  transform: translateZ(0);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bigcta-actions .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px -8px rgba(46,107,255,.7), 0 0 0 1px rgba(255,255,255,.15) inset;
}
.bigcta-actions .btn-ghost {
  color: white;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.04);
  backdrop-filter: blur(6px);
}
.bigcta-actions .btn-ghost:hover {
  border-color: rgba(255,255,255,.55);
  background: rgba(255,255,255,.10);
}

/* --- FOOTER --- */
.footer {
  background: var(--apm-navy);
  color: rgba(255,255,255,.65);
  padding: 80px 0 24px;
  font-size: 13px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(4, 1fr);
  gap: 40px;
  margin-bottom: 56px;
}
@media (max-width: 1023px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand img { height: 36px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,.55); line-height: 1.6; max-width: 280px; font-size: 12.5px; margin-bottom: 18px; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 34px; height: 34px;
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65);
  transition: all .15s;
}
.footer-social a:hover { background: var(--apm-blue); color: white; }
.footer-col h5 {
  color: white; font-size: 13px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-col a { color: rgba(255,255,255,.65); font-size: 13.5px; transition: color .15s; }
.footer-col a:hover { color: white; }
.footer-regulation {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 32px;
  margin-bottom: 24px;
  display: grid;
  gap: 28px;
}
.footer-legal-block { padding: 0; }
.footer-regulation h6 {
  color: white; font-size: 12px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .12em;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-regulation p { color: rgba(255,255,255,.55); font-size: 11.5px; line-height: 1.7; margin-bottom: 10px; }
.footer-regulation p:last-child { margin-bottom: 0; }
.footer-entities {
  list-style: none; padding: 0; margin: 10px 0;
  display: grid; gap: 10px;
}
.footer-entities li {
  color: rgba(255,255,255,.65);
  font-size: 11.5px; line-height: 1.7;
  padding: 12px 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
  border-left: 3px solid var(--apm-blue);
  border-radius: 8px;
}
.footer-bar {
  border-top: 1px solid rgba(255,255,255,.10);
  padding-top: 24px;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  font-size: 12px; color: rgba(255,255,255,.45);
}
.footer-bar-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-bar-links a { color: rgba(255,255,255,.55); font-size: 12px; }

/* --- ICONS --- */
.icon { display: inline-block; flex-shrink: 0; }
.icon-sm { width: 14px; height: 14px; }
.icon-md { width: 18px; height: 18px; }
.icon-lg { width: 22px; height: 22px; }
