/* ==========================================
   PRIMEFX SOLUTIONS – GLOBAL STYLES
   ========================================== */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --gold:       #a07215;
  --gold-light: #c9a227;
  --gold-dark:  #7a5510;
  --dark:       #f4f6fb;
  --dark2:      #eaecf3;
  --dark3:      #dde1ec;
  --dark4:      #cdd3e3;
  --card-bg:    #ffffff;
  --border:     rgba(0,0,0,.1);
  --text:       #1e2432;
  --text-muted: #5d6785;
  --green:      #16a34a;
  --red:        #dc2626;
  --white:      #1e2432;
  --radius:     12px;
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--dark);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.gold { color: var(--gold); }
.dark-section { background: var(--dark2); }

/* ==========================================
   BUTTONS
   ========================================== */
.btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: #000;
  font-weight: 700;
  padding: 12px 26px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
  white-space: nowrap;
}
.btn-gold:hover { filter: brightness(1.12); transform: translateY(-2px); }
.btn-gold.large { padding: 15px 36px; font-size: 1rem; }

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--gold);
  font-weight: 600;
  padding: 12px 26px;
  border-radius: 8px;
  border: 1.5px solid var(--gold);
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.btn-outline:hover { background: var(--gold); color: #000; }
.btn-outline.large { padding: 15px 36px; font-size: 1rem; }

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--dark4);
  color: var(--white);
  font-weight: 600;
  padding: 11px 22px;
  border-radius: 8px;
  border: 1px solid var(--border);
  transition: border-color var(--transition), background var(--transition);
}
.btn-store:hover { border-color: var(--gold); background: var(--dark3); }

.link-arrow {
  color: var(--gold);
  font-weight: 600;
  font-size: .9rem;
  transition: letter-spacing var(--transition);
}
.link-arrow:hover { letter-spacing: .5px; }

/* ==========================================
   SECTION GENERIC
   ========================================== */
.section {
  padding: 80px 0;
}
.section-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 12px;
  text-align: center;
}
.section h2 {
  font-size: clamp(1.6rem, 3vw, 2.6rem);
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
  line-height: 1.2;
  text-align: center;
}
.section-sub {
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
  font-size: 1.02rem;
}

.text-center { text-align: center; }

/* Spacing: h2 → grid when no section-sub between them */
.section h2 + .instruments-grid,
.section h2 + .sol-plan-grid,
.section h2 + .solutions-grid,
.section h2 + .market-cards { margin-top: 36px; }
.table-note {
  font-size: .82rem;
  color: var(--text-muted);
  margin-top: 16px;
  font-style: italic;
}

/* ==========================================
   NAVBAR
   ========================================== */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: background var(--transition), box-shadow var(--transition);
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 1px 12px rgba(0,0,0,.07);
}

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 70px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo-img { height: 40px; width: auto; }
.nav-logo-wordmark {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
.logo-fx { color: var(--gold-light); font-style: normal; }
.logo-tag {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gold);
  opacity: .85;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.nav-links > li {
  position: relative;
}
.nav-links > li > a {
  display: block;
  padding: 8px 13px;
  border-radius: 6px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  position: relative;
}
.nav-links > li > a:hover,
.nav-links > li.dropdown:hover > a { color: var(--gold); background: rgba(160,114,21,.07); }

/* Invisible hover bridge — prevents dropdown closing mid-cursor */
.nav-links > li.dropdown > a::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* ── Dropdown panel ─────────────────────────────── */
.dropdown-menu {
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  top: calc(100% + 2px);
  left: 0;
  min-width: 240px;
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.09);
  border-radius: 14px;
  padding: 6px;
  box-shadow: 0 20px 60px rgba(0,0,0,.13), 0 4px 12px rgba(0,0,0,.06);
  transform: translateY(6px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0.18s;
  z-index: 1001;
}
/* Right-align last 2 dropdowns to prevent off-screen overflow */
.nav-links > li:nth-last-child(-n+2) > .dropdown-menu {
  left: auto;
  right: 0;
}
.dropdown:hover > .dropdown-menu {
  visibility: visible;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0s linear 0s;
}

/* Dropdown items with icon */
.dropdown-menu li a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 9px;
  font-size: .875rem;
  font-weight: 500;
  color: var(--text);
  transition: background var(--transition), color var(--transition);
  white-space: nowrap;
}
.dropdown-menu li a:hover {
  background: rgba(160,114,21,.09);
  color: var(--gold);
}
.dropdown-menu li a:hover .dd-icon { background: rgba(160,114,21,.18); }

/* Icon box in dropdown items */
.dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(160,114,21,.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  flex-shrink: 0;
  transition: background var(--transition);
}

.nav-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1.5rem;
  cursor: pointer;
  margin-left: auto;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(0,0,0,.06); }

/* ==========================================
   HERO
   ========================================== */
.hero {
  min-height: 100vh;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 130px 24px 80px;
  overflow: hidden;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(201,162,39,.15) 0%, transparent 70%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(201,162,39,.08) 0%, transparent 60%),
    linear-gradient(180deg, var(--dark) 0%, var(--dark2) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle, rgba(201,162,39,.06) 1px, transparent 1px);
  background-size: 40px 40px;
}

.ticker-bar {
  position: absolute;
  top: 70px;
  left: 0; right: 0;
  background: var(--dark3);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  height: 38px;
  display: flex;
  align-items: center;
  z-index: 2;
}
.ticker-track {
  display: flex;
  gap: 0;
  animation: ticker 30s linear infinite;
  white-space: nowrap;
}
.tick {
  padding: 0 28px;
  font-size: .82rem;
  font-weight: 600;
  border-right: 1px solid var(--border);
}
.tick.up { color: var(--green); }
.tick.down { color: var(--red); }

@keyframes ticker {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(201,162,39,.1);
  border: 1px solid rgba(201,162,39,.3);
  border-radius: 100px;
  padding: 6px 18px;
  font-size: .78rem;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 28px;
  letter-spacing: .5px;
}
.dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0%,100% { box-shadow: 0 0 0 0 rgba(34,197,94,.5); }
  50% { box-shadow: 0 0 0 6px rgba(34,197,94,0); }
}

.hero h1 {
  font-size: clamp(2.4rem, 5.5vw, 4.4rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 22px;
  letter-spacing: -1px;
}

.hero-sub {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto 36px;
}

.hero-cta {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.hero-disclaimer {
  font-size: .78rem;
  color: var(--text-muted);
  margin-bottom: 56px;
}

.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 28px 40px;
  box-shadow: 0 4px 16px rgba(0,0,0,.06);
  flex-wrap: wrap;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 40px;
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-label {
  font-size: .75rem;
  color: var(--text-muted);
  margin-top: 6px;
  font-weight: 500;
}
.stat-divider {
  width: 1px;
  height: 48px;
  background: var(--border);
}

/* ==========================================
   MARKET INSTRUMENTS
   ========================================== */
.instruments-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.instrument-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.instrument-card:hover {
  border-color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}
.instrument-icon {
  font-size: 2.4rem;
  margin-bottom: 18px;
}
.instrument-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.instrument-card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 16px;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.card-tags span {
  background: rgba(160,114,21,.12);
  color: var(--gold);
  border: 1px solid rgba(160,114,21,.25);
  border-radius: 20px;
  padding: 2px 10px;
  font-size: .72rem;
  font-weight: 600;
}
.stat-badge {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  color: var(--gold);
  border-top: 1px solid var(--border);
  padding-top: 10px;
  margin-top: auto;
}

/* ==========================================
   GREY LABEL SOLUTIONS
   ========================================== */
.solutions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.solution-card {
  display: flex;
  gap: 18px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color var(--transition), transform var(--transition);
  color: var(--text);
}
.solution-card:hover {
  border-color: var(--gold);
  transform: translateY(-3px);
}
.sol-icon {
  font-size: 2rem;
  flex-shrink: 0;
  margin-top: 2px;
}
.sol-content h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}
.sol-content p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 14px;
}
.sol-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.sol-tags span {
  background: rgba(201,162,39,.12);
  color: var(--gold);
  border: 1px solid rgba(201,162,39,.25);
  border-radius: 100px;
  padding: 3px 10px;
  font-size: .72rem;
  font-weight: 600;
}

/* Solution card without icon wrapper (related-product simple cards) */
.solution-card:has(> h3) {
  flex-direction: column;
}
.solution-card:has(> h3) > h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.3;
}
.solution-card:has(> h3) > p {
  color: var(--text-muted);
  font-size: .88rem;
  margin-bottom: 18px;
  line-height: 1.6;
  flex: 1;
}
.solution-card:has(> h3) > a {
  align-self: flex-start;
}

/* ==========================================
   GLOBAL MARKETS TABLE
   ========================================== */
.markets-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}
.tab-btn {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.tab-btn.active, .tab-btn:hover {
  background: var(--gold);
  color: #000;
  border-color: var(--gold);
}

.markets-list {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.market-header, .market-row {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  align-items: center;
  padding: 16px 24px;
  gap: 12px;
}
.market-header {
  background: var(--dark4);
  font-size: .78rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.market-row {
  border-top: 1px solid var(--border);
  transition: background var(--transition);
  font-size: .9rem;
}
.market-row:hover { background: rgba(0,0,0,.025); }
.market-asset {
  display: flex;
  align-items: center;
  gap: 12px;
}
.market-asset img {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border);
}
.market-asset strong {
  display: block;
  color: var(--text);
  font-size: .95rem;
}
.market-asset small { color: var(--text-muted); font-size: .78rem; }

.badge-available {
  background: rgba(34,197,94,.12);
  color: var(--green);
  border: 1px solid rgba(34,197,94,.25);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.badge-swap {
  background: rgba(239,68,68,.1);
  color: var(--red);
  border: 1px solid rgba(239,68,68,.2);
  border-radius: 100px;
  padding: 3px 12px;
  font-size: .78rem;
  font-weight: 600;
}
.cat-link {
  color: var(--gold);
  font-size: .85rem;
  font-weight: 600;
}

/* ==========================================
   PLATFORMS
   ========================================== */
.platform-row {
  display: flex;
  align-items: center;
  gap: 72px;
  margin-bottom: 100px;
}
.platform-row:last-child { margin-bottom: 0; }
.platform-row.reverse { flex-direction: row-reverse; }

.platform-text { flex: 1; text-align: left; }
.platform-text .section-label { text-align: left; }
.platform-text h2 { margin-bottom: 16px; text-align: left; }
.platform-text p { color: var(--text-muted); font-size: 1.02rem; margin-bottom: 28px; }
.platform-cta { display: flex; gap: 14px; flex-wrap: wrap; }

.platform-image {
  flex: 1;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: 0 8px 32px rgba(0,0,0,.1);
}
.platform-image img { width: 100%; height: 340px; object-fit: cover; }

/* ==========================================
   FOREX HEATMAP
   ========================================== */
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 24px;
  font-size: .85rem;
}
.live-dot {
  background: rgba(34,197,94,.15);
  color: var(--green);
  border: 1px solid var(--green);
  border-radius: 100px;
  padding: 3px 12px;
  font-weight: 700;
  font-size: .72rem;
  letter-spacing: 1px;
}
.bull { color: var(--green); font-weight: 600; }
.bear { color: var(--red); font-weight: 600; }
.same { color: var(--text-muted); font-weight: 600; }
.hm-time { margin-left: auto; color: var(--text-muted); font-size: .8rem; }

.heatmap-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.heatmap-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.heatmap-table th {
  background: var(--dark4);
  padding: 14px 18px;
  text-align: center;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
  border-bottom: 1px solid var(--border);
}
.heatmap-table td {
  border: 1px solid rgba(0,0,0,.07);
  padding: 14px 16px;
  text-align: center;
  font-size: .85rem;
  font-weight: 600;
}
.cur-label {
  background: var(--dark4) !important;
  color: var(--text) !important;
  font-weight: 700;
  white-space: nowrap;
  text-align: left !important;
  padding-left: 20px !important;
}
.hm-cell.bull { background: rgba(34,197,94,.1); color: var(--green); }
.hm-cell.bear { background: rgba(239,68,68,.08); color: var(--red); }
.hm-cell.same { background: var(--dark3); color: var(--text-muted); }

/* ==========================================
   PRICING
   ========================================== */
.pricing-table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 700px;
}
.pricing-table thead tr {
  background: var(--dark4);
}
.pricing-table th {
  padding: 16px 20px;
  text-align: left;
  font-size: .8rem;
  color: var(--text-muted);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-bottom: 1px solid var(--border);
}
.pricing-table td {
  padding: 18px 20px;
  font-size: .95rem;
  border-bottom: 1px solid var(--border);
}
.pricing-row:last-child td { border-bottom: none; }
.pricing-row td:first-child { color: var(--text); font-weight: 700; }
.pricing-row.highlight td { background: rgba(201,162,39,.05); }

/* ==========================================
   HOW TO START
   ========================================== */
.steps-grid {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: center;
}
.step-card {
  flex: 1;
  min-width: 250px;
  max-width: 340px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 28px;
  text-align: center;
  transition: border-color var(--transition), transform var(--transition);
}
.step-card:hover { border-color: var(--gold); transform: translateY(-4px); }
.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: rgba(201,162,39,.15);
  line-height: 1;
  margin-bottom: 20px;
}
.step-card img {
  width: 80px; height: 80px;
  object-fit: contain;
  margin: 0 auto 20px;
}
.step-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}
.step-card p {
  color: var(--text-muted);
  font-size: .92rem;
  margin-bottom: 24px;
}
.step-arrow {
  font-size: 2rem;
  color: var(--gold);
  flex-shrink: 0;
}

/* ==========================================
   EDUCATION & TOOLS
   ========================================== */
.edu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 24px;
}
.edu-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px 32px;
  transition: border-color var(--transition);
}
.edu-card:hover { border-color: var(--gold); }
.edu-icon { font-size: 2.6rem; margin-bottom: 20px; }
.edu-card h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 18px;
}
.edu-card ul {
  list-style: none;
  margin-bottom: 24px;
}
.edu-card ul li {
  color: var(--text-muted);
  font-size: .92rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(0,0,0,.07);
  padding-left: 16px;
  position: relative;
}
.edu-card ul li::before {
  content: '›';
  position: absolute;
  left: 0;
  color: var(--gold);
}

/* ==========================================
   TESTIMONIALS
   ========================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.testimonial-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 28px;
}
.stars {
  color: var(--gold);
  font-size: 1.1rem;
  margin-bottom: 18px;
  letter-spacing: 2px;
}
.testimonial-card p {
  color: var(--text);
  font-size: .95rem;
  font-style: italic;
  margin-bottom: 24px;
  line-height: 1.7;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}
.testimonial-author img {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--gold);
  object-fit: cover;
}
.testimonial-author strong {
  display: block;
  color: var(--text);
  font-size: .95rem;
}
.testimonial-author small { color: var(--text-muted); font-size: .8rem; }

/* ==========================================
   CTA SECTION
   ========================================== */
.cta-section {
  position: relative;
  overflow: hidden;
  padding: 120px 0;
  background: radial-gradient(ellipse 100% 70% at 50% 100%, rgba(201,162,39,.09) 0%, transparent 70%);
  border-top: 1px solid var(--border);
}
.cta-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .15;
}
.cta-content {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.cta-text h2 {
  font-size: clamp(1.8rem, 3.5vw, 3rem);
  color: var(--text);
  margin-bottom: 16px;
}
.cta-text p { color: var(--text-muted); font-size: 1.05rem; margin-bottom: 32px; }
.cta-btns { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; }

/* ==========================================
   FAQ
   ========================================== */
.faq-list {
  max-width: 820px;
  margin-inline: auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-q {
  width: 100%;
  background: none;
  border: none;
  color: var(--text);
  font-size: 1rem;
  font-weight: 600;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  text-align: left;
  gap: 12px;
  transition: color var(--transition);
}
.faq-q:hover { color: var(--gold); }
.faq-icon {
  flex-shrink: 0;
  font-size: 1.4rem;
  color: var(--gold);
  transition: transform var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 50%;
}
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-a {
  display: none;
  color: var(--text-muted);
  font-size: .95rem;
  padding-bottom: 22px;
  line-height: 1.7;
}
.faq-item.active .faq-a { display: block; }

/* ==========================================
   PAYMENT ECOSYSTEM
   ========================================== */
.payment-scroll {
  overflow: hidden;
  width: 100%;
}
.payment-track {
  display: flex;
  gap: 40px;
  align-items: center;
  animation: scroll-left 25s linear infinite;
}
.payment-track img {
  height: 48px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1) brightness(0.65);
  transition: filter var(--transition);
  flex-shrink: 0;
}
.payment-track img:hover { filter: none; }
@keyframes scroll-left {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ==========================================
   FOOTER
   ========================================== */
.footer {
  background: var(--dark3);
  border-top: 1px solid var(--border);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1.1fr 1fr 1.1fr;
  gap: 40px;
  padding-bottom: 60px;
  align-items: start;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.footer-brand-logo-row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.footer-brand-logo-row img { height: 46px; width: auto; }
.footer-brand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
  line-height: 1;
}
.footer-brand p {
  color: var(--text-muted);
  font-size: .88rem;
  line-height: 1.6;
}
.footer-cta-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}
.integrated-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 6px;
}
.integrated-tags span {
  background: var(--dark4);
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 6px;
  padding: 4px 12px;
  font-size: .78rem;
  font-weight: 700;
}
.footer-col h4 {
  color: var(--text);
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
  font-size: .72rem;
}
.footer-col ul li {
  margin-bottom: 9px;
}
.footer-col ul li a {
  color: var(--text-muted);
  font-size: .88rem;
  transition: color var(--transition);
}
.footer-col ul li a:hover { color: var(--gold); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 28px 24px;
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: .84rem;
  color: var(--text-muted);
}
.footer-address { flex: 1; }
.footer-social {
  display: flex;
  gap: 14px;
}
.footer-social a {
  color: var(--text-muted);
  transition: color var(--transition);
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--gold); }

/* ==========================================
   RESPONSIVE
   ========================================== */
@media (max-width: 1024px) {
  .platform-row { flex-direction: column; gap: 40px; }
  .platform-row.reverse { flex-direction: column; }
  .footer-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-brand { grid-column: 1 / -1; }
  .instruments-grid, .solutions-grid { grid-template-columns: repeat(2, 1fr); }

  /* Nav collapses to hamburger at 1024px */
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(255,255,255,.98);
    backdrop-filter: blur(16px);
    padding: 12px 16px 20px;
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 32px rgba(0,0,0,.1);
    gap: 0;
    z-index: 999;
    max-height: calc(100vh - 70px);
    overflow-y: auto;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { padding: 13px 10px; border-bottom: 1px solid var(--border); font-size: .9rem; }
  .nav-links > li.dropdown > a::after { display: none; }
  /* Show a caret when the mobile dropdown is open */
  .nav-links > li.dropdown.open > a { color: var(--gold); font-weight: 600; }

  /* Mobile dropdown: reset desktop visibility/opacity, use display */
  .dropdown-menu {
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    transform: none !important;
    transition: none !important;
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 8px;
    background: var(--dark3);
    padding: 4px 0 6px;
    margin: 4px 0 6px 0;
    min-width: unset;
  }
  .dropdown.open .dropdown-menu { display: block; }
  .dropdown-menu li a { padding: 10px 14px; border-radius: 7px; white-space: normal; }
  .dd-icon { width: 24px; height: 24px; font-size: .8rem; }

  /* Right-align fix not needed on mobile */
  .nav-links > li:nth-last-child(-n+2) > .dropdown-menu { left: 0; right: unset; }

  .nav-toggle { display: block; }
}

@media (max-width: 768px) {
  .hero-stats { padding: 20px; gap: 16px; }
  .stat { padding: 12px 20px; }
  .stat-divider { display: none; }

  .hero-cta { gap: 10px; }
  .hero-sub { font-size: .98rem; }

  .market-header, .market-row { grid-template-columns: 2fr 1fr 1fr; }
  .market-header span:nth-child(4), .market-header span:nth-child(5),
  .market-row > *:nth-child(4), .market-row > *:nth-child(5) { display: none; }

  .step-arrow { display: none; }
  .steps-grid { flex-direction: column; align-items: stretch; }
  .step-card { max-width: 100%; }

  .edu-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-address { flex: unset; }
}

@media (max-width: 520px) {
  .section { padding: 64px 0; }
  .hero { padding-top: 140px; }
  .hero-stats { flex-direction: column; }
  .instruments-grid, .solutions-grid, .testimonial-grid { grid-template-columns: 1fr; gap: 16px; }
  .footer-grid { grid-template-columns: 1fr; }

  /* Tighter container on tiny screens */
  .container { padding: 0 16px; }

  /* Full-width CTA buttons */
  .hero-cta { flex-direction: column; align-items: stretch; gap: 10px; }
  .hero-cta a, .hero-cta button { width: 100%; justify-content: center; text-align: center; }

  /* Hero text tweaks */
  .hero-badge { flex-wrap: wrap; justify-content: center; line-height: 1.6; }
  .hero-sub { font-size: .92rem; }
  .hero-stats { padding: 16px; }
  .stat { padding: 10px 12px; }
}
