/* ============================================================
   Wmax Broker — Homepage Stylesheet
   ------------------------------------------------------------
   首页专属样式。
   依赖 common.css（token、reset、导航、页脚等已在 common.css 中）。
   ============================================================ */

/* ─── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative;
  background: var(--ink-900);
  color: #fff;
  overflow: hidden;
  isolation: isolate;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(80% 60% at 85% 20%, rgba(245,179,36,.18), transparent 60%),
    radial-gradient(50% 40% at 10% 100%, rgba(245,179,36,.08), transparent 70%),
    linear-gradient(0deg, var(--ink-900) 0%, var(--ink-800) 100%);
  z-index: -2;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 100% 80% at 60% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 100% 80% at 60% 30%, black, transparent 75%);
  z-index: -1;
  opacity: .7;
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding: clamp(56px, 9vw, 120px) var(--gutter) clamp(56px, 8vw, 96px);
  max-width: var(--max-w);
  margin: 0 auto;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--amber-400);
  margin-bottom: 28px;
}
.eyebrow::before {
  content: ""; width: 24px; height: 1px;
  background: var(--amber-500);
}
.hero h1 {
  font-size: clamp(36px, 5.6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-weight: 700;
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero h1 .accent {
  background: linear-gradient(180deg, var(--amber-400) 0%, var(--amber-600) 100%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.hero h1 .stroke {
  display: inline-block; position: relative;
}
.hero h1 .stroke::after {
  content: ""; position: absolute;
  left: 0; right: 0; bottom: -6px; height: 6px;
  background: var(--amber-500);
  border-radius: 2px;
  opacity: .9;
}
.hero__lede {
  font-size: clamp(15px, 1.3vw, 18px);
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 560px;
  margin: 0 0 36px;
}
.hero__cta {
  display: flex; flex-wrap: wrap; gap: 12px;
  margin-bottom: 48px;
}
.hero__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line-dark);
  padding-top: 28px;
  max-width: 640px;
}
.stat__num {
  font-family: var(--font-mono);
  font-size: clamp(20px, 2.2vw, 28px);
  font-weight: 500;
  color: #fff;
  letter-spacing: -.01em;
  display: flex; align-items: baseline; gap: 4px;
}
.stat__num small {
  font-family: var(--font-sans);
  font-size: 13px; font-weight: 500;
  color: var(--amber-400);
}
.stat__lbl {
  font-size: 12px;
  color: var(--slate-400);
  margin-top: 4px;
}

/* ─── Quote board (Hero right card, old style) ──────────── */
.quote-board {
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.01));
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-lg);
  padding: 22px;
  backdrop-filter: blur(6px);
  position: relative;
  overflow: hidden;
}
.quote-board::before {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 80%; height: 160%;
  background: radial-gradient(closest-side, rgba(245,179,36,.18), transparent);
  pointer-events: none;
}
.qb__head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.qb__title {
  display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600;
  color: rgba(255,255,255,.85);
  letter-spacing: .05em;
}
.qb__title .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(22,163,107,.18);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(22,163,107,.18); }
  50%      { box-shadow: 0 0 0 7px rgba(22,163,107,.05); }
}
.qb__time {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
}
.qb__row {
  display: grid;
  grid-template-columns: 1.4fr 1.4fr 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-top: 1px solid var(--line-dark);
}
.qb__row:first-of-type { border-top: 0; }
.qb__sym {
  display: flex; align-items: center; gap: 10px;
}
.qb__sym .name { font-weight: 600; font-size: 14px; color: #fff; }
.qb__sym .sub  { font-size: 11px; color: var(--slate-400); }

/* TV-style symbol icon pair */
.qb__icon-pair {
  position: relative;
  flex: 0 0 auto;
  width: 36px; height: 36px;
}
.qb__icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #fff;
  display: block;
  object-fit: cover;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 2px 8px rgba(0,0,0,.3);
}
.qb__icon--badge {
  position: absolute;
  right: -2px; bottom: -2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--ink-900);
  box-shadow: none;
}

.qb__price {
  font-family: var(--font-mono);
  font-size: 15px; font-weight: 500;
  color: #fff;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.qb__chg {
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.qb__chg.up { color: var(--up); }
.qb__chg.down { color: var(--down); }

.qb__foot {
  margin-top: 14px;
  font-size: 11px; color: var(--slate-400);
  display: flex; justify-content: space-between;
}

/* ─── Trust strip (LP partners) ──────────────────────────── */
.trust {
  background: var(--ink-900);
  padding: 36px 0;
  color: rgba(255,255,255,.5);
  position: relative;
}
.trust::before, .trust::after {
  content: "";
  position: absolute;
  left: 0; right: 0; height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(245,179,36,.45) 25%,
    rgba(245,179,36,.45) 75%,
    transparent 100%
  );
  pointer-events: none;
}
.trust::before { top: 0; }
.trust::after  { bottom: 0; }
.trust__inner {
  display: flex; align-items: center; gap: 32px;
  flex-wrap: wrap;
}
.trust__line {
  font-size: 12px; font-weight: 600;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--slate-400);
  white-space: nowrap;
  flex: 0 0 auto;
}
.trust__line span { margin: 0 8px; color: var(--amber-500); }
.trust__logos {
  flex: 1 1 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 24px; flex-wrap: wrap;
}
.tlogo {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: rgba(255,255,255,.5);
  transition: color .25s ease, transform .15s ease;
  cursor: pointer;
}
.tlogo:hover { transform: translateY(-1px); }
.tlogo[data-brand="jpm"]:hover  { color: #1A4A8C; }
.tlogo[data-brand="ubs"]:hover  { color: #E60100; }
.tlogo[data-brand="citi"]:hover { color: #056DAE; }
.tlogo[data-brand="gs"]:hover   { color: #7399C6; }
.tlogo[data-brand="db"]:hover   { color: #0018A8; }
.tlogo[data-brand="hsbc"]:hover { color: #DB0011; }

/* ─── Products grid ──────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.prod {
  position: relative;
  display: flex; flex-direction: column;
  gap: 16px;
  padding: 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: transform .25s, border-color .25s, box-shadow .25s;
  overflow: hidden;
  min-height: 260px;
}
.prod:hover {
  transform: translateY(-3px);
  border-color: rgba(245,179,36,.5);
  box-shadow: var(--shadow-md);
}
.prod__top {
  display: flex; align-items: center; justify-content: space-between;
}
.prod__num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-400);
}
.prod__icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--bone-50);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--ink-900);
}
.prod__icon.am {
  background: var(--amber-50);
  border-color: rgba(245,179,36,.3);
  color: var(--amber-600);
}
.prod__title {
  font-size: 22px; font-weight: 700;
  letter-spacing: -.005em;
  margin: 0;
  display: flex; align-items: baseline; gap: 10px;
  flex-wrap: wrap;
}
.prod__title em {
  font-style: normal; font-weight: 400;
  font-size: 14px; color: var(--slate-400);
  letter-spacing: .02em;
}
.prod__desc {
  font-size: 14px; line-height: 1.65;
  color: var(--slate-500);
  margin: 0;
}
.prod__meta {
  margin-top: auto;
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px;
  border-top: 1px dashed var(--line);
  font-size: 12px; color: var(--slate-500);
}
.prod__meta b { color: var(--ink-900); font-weight: 600; }
.prod__arrow {
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: transform .2s, background .2s, color .2s, border-color .2s;
}
.prod:hover .prod__arrow {
  transform: rotate(-45deg);
  background: var(--amber-500);
  color: var(--ink-900);
  border-color: var(--amber-500);
}

/* ─── Account types ───────────────────────────────────────── */
.acct-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.acct {
  position: relative;
  display: flex; flex-direction: column; gap: 16px;
  padding: 32px 28px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s, box-shadow .25s, background-color .35s, border-color .35s, color .35s;
}
.acct::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 80% 0%, rgba(245,179,36,.18), transparent 60%);
  pointer-events: none;
  opacity: 0;
  transition: opacity .35s;
}
.acct:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  background: var(--ink-900);
  color: #fff;
  border-color: var(--ink-900);
}
.acct:hover::before { opacity: 1; }
.acct:hover .acct__lede,
.acct:hover .acct__list { color: rgba(255,255,255,.72); }
.acct:hover .acct__list b { color: #fff; }
.acct:hover .acct__list,
.acct:hover .acct__list li { border-color: var(--line-dark); }
.acct__tag {
  align-self: flex-start;
  font-size: 11px; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--bone-50);
  color: var(--slate-500);
  border: 1px solid var(--line);
}
.acct__tag--gold {
  background: var(--amber-500);
  color: var(--ink-900);
  border-color: var(--amber-500);
}
.acct__name {
  font-size: 26px; font-weight: 700;
  margin: 4px 0 -4px;
  letter-spacing: -.005em;
}
.acct__sub {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--slate-500);
  margin: 0;
  letter-spacing: .04em;
}
.acct:hover .acct__sub { color: var(--amber-400); }
.acct__price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: 8px;
  border-bottom: 1px dashed var(--line);
  padding-bottom: 18px;
}
.acct:hover .acct__price { border-color: var(--line-dark); }
.acct__price .big {
  font-family: var(--font-mono);
  font-size: 44px; font-weight: 500;
  letter-spacing: -.02em;
  line-height: 1;
}
.acct:hover .acct__price .big { color: var(--amber-400); }
.acct:hover .btn--outline {
  background: var(--amber-500);
  color: var(--ink-900);
  border-color: var(--amber-500);
}
.acct:hover .btn--outline:hover {
  background: var(--amber-400);
  border-color: var(--amber-400);
}
.acct__price small {
  font-family: var(--font-sans);
  font-size: 13px; color: var(--slate-500);
  font-weight: 500;
}
.acct__lede {
  font-size: 14px; line-height: 1.65;
  color: var(--slate-500);
  margin: 0;
}
.acct__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 0;
  font-size: 13.5px;
  border-top: 1px solid var(--line);
}
.acct__list li {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--slate-500);
}
.acct__list b {
  color: var(--ink-900); font-weight: 600;
  font-family: var(--font-mono);
  font-size: 13px;
}
.acct .btn { margin-top: auto; }

/* ─── Platforms ──────────────────────────────────────────── */
.platforms {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 32px;
  align-items: stretch;
}
.platform-card {
  background: linear-gradient(160deg, var(--ink-800), var(--ink-900));
  color: #fff;
  border: 1px solid var(--line-dark-strong);
  border-radius: var(--r-xl);
  padding: 40px;
  position: relative;
  overflow: hidden;
}
.platform-card--hero {
  display: flex; flex-direction: column; gap: 24px;
}
.platform-card--hero::before {
  content: "MT5";
  position: absolute;
  right: -12px; bottom: -50px;
  font-size: 280px;
  font-weight: 800;
  letter-spacing: -.04em;
  background: linear-gradient(180deg, rgba(245,179,36,.18), rgba(245,179,36,0));
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  line-height: 1;
  pointer-events: none;
}
.platform-card--hero h3 {
  font-size: 28px;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.005em;
  position: relative;
}
.platform-card--hero p {
  color: rgba(255,255,255,.72);
  margin: 0;
  font-size: 15px; line-height: 1.7;
  max-width: 460px;
  position: relative;
}
.platform-features {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  position: relative;
}
.platform-features li {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.platform-features li::before {
  content: "✓";
  display: inline-grid; place-items: center;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: rgba(245,179,36,.18);
  color: var(--amber-400);
  font-size: 11px; font-weight: 700;
}
.platform-buttons {
  display: flex; flex-wrap: wrap; gap: 10px;
  position: relative;
  margin-top: 8px;
}
.platform-list {
  display: grid; gap: 16px;
  grid-template-rows: repeat(3, 1fr);
}
.platform-mini {
  display: flex; align-items: center; gap: 18px;
  padding: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  transition: border-color .2s, transform .2s;
}
.platform-mini:hover { border-color: rgba(245,179,36,.5); transform: translateY(-2px); }
.platform-mini__ic {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--bone-50);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex: 0 0 auto;
  color: var(--ink-900);
}
.platform-mini h4 {
  font-size: 16px; font-weight: 700;
  margin: 0 0 4px;
}
.platform-mini p {
  font-size: 13px; line-height: 1.55;
  color: var(--slate-500);
  margin: 0;
}
.platform-mini__tags {
  display: flex; gap: 6px;
  margin-top: 6px;
}
.platform-mini__tags span {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bone-50);
  color: var(--slate-500);
  border: 1px solid var(--line);
}

/* ─── Platform device imagery ────────────────────────────── */
.platform-card--hero { position: relative; overflow: hidden; }
.platform-card--hero > * { position: relative; z-index: 1; }
.platform-card--hero h3, .platform-card--hero p, .platform-card--hero ul, .platform-card--hero .platform-buttons {
  max-width: 62%;
}
@media (max-width: 1100px) {
  .platform-card--hero h3, .platform-card--hero p, .platform-card--hero ul, .platform-card--hero .platform-buttons { max-width: 100%; }
}

/* ─── Live spreads table ─────────────────────────────────── */
.spreads-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.spreads-tabs {
  display: flex; gap: 4px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: var(--bone-50);
  overflow-x: auto;
}
.spreads-tabs button {
  background: transparent;
  border: 0;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-size: 13.5px; font-weight: 600;
  color: var(--slate-500);
  white-space: nowrap;
}
.spreads-tabs button.is-on {
  background: var(--ink-900); color: #fff;
}
.spreads-tabs button:not(.is-on):hover { background: rgba(14,14,18,.05); }

.spreads-table { padding: 0 8px; }
.spreads-head, .spreads-row {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr .8fr 1fr;
  align-items: center;
  padding: 16px 16px;
}
.spreads-head {
  font-size: 11px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--slate-500);
  border-bottom: 1px solid var(--line);
}
.spreads-row {
  border-bottom: 1px solid var(--line);
  transition: background .15s;
}
.spreads-row:last-child { border-bottom: 0; }
.spreads-row:hover { background: var(--bone-50); }
.sp-sym { display: flex; flex-direction: column; gap: 2px; }
.sp-sym b {
  font-family: var(--font-mono);
  font-size: 14px; font-weight: 500;
  color: var(--ink-900);
}
.sp-sym small { font-size: 11.5px; color: var(--slate-500); }
.sp-bid, .sp-ask, .sp-pct {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 14px;
  text-align: right;
}
.sp-pip { text-align: right; }
.sp-pip b {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--r-sm);
  background: var(--amber-50);
  color: var(--amber-600);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid rgba(245,179,36,.3);
}
.sp-pct.up { color: var(--up); }
.sp-pct.down { color: var(--down); }

.spreads-foot {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  padding: 16px 24px;
  background: var(--bone-50);
  border-top: 1px solid var(--line);
  font-size: 13px;
}
.sp-live {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--slate-500);
  font-size: 12px; font-weight: 500;
}
.sp-live .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--up);
  box-shadow: 0 0 0 4px rgba(22,163,107,.18);
  animation: pulse 1.6s ease-in-out infinite;
}
.sp-link {
  font-size: 13px; font-weight: 600;
  color: var(--ink-900);
  border-bottom: 1px solid currentColor;
  padding-bottom: 1px;
}
.sp-link:hover { color: var(--amber-600); }

/* ─── Why Wmax ───────────────────────────────────────────── */
.why-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 56px;
}
.kpi {
  padding: 28px;
  background: rgba(255,255,255,.03);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
}
.kpi__num {
  font-family: var(--font-mono);
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 500;
  color: var(--amber-400);
  letter-spacing: -.02em;
  line-height: 1.1;
  display: flex; align-items: baseline; gap: 4px;
}
.kpi__num small {
  font-family: var(--font-sans);
  font-size: 14px;
  color: rgba(255,255,255,.55);
  font-weight: 500;
}
.kpi__lbl {
  margin-top: 10px;
  font-size: 13px;
  color: rgba(255,255,255,.72);
  line-height: 1.5;
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.value {
  padding: 28px;
  background: rgba(255,255,255,.02);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 12px;
}
.value__ic {
  width: 40px; height: 40px;
  border-radius: 10px;
  background: rgba(245,179,36,.12);
  color: var(--amber-400);
  display: grid; place-items: center;
}
.value h4 {
  font-size: 18px; font-weight: 700;
  margin: 0;
  letter-spacing: -.005em;
}
.value p {
  font-size: 14px; line-height: 1.65;
  color: rgba(255,255,255,.65);
  margin: 0;
}

/* ─── Insights & Education ───────────────────────────────── */
.insights {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.insight {
  display: flex; flex-direction: column;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.insight:hover {
  transform: translateY(-3px);
  border-color: rgba(245,179,36,.5);
  box-shadow: var(--shadow-md);
}
.insight__media {
  position: relative;
  height: 220px;
  background: var(--ink-900);
  display: flex; align-items: flex-end;
  padding: 18px;
  overflow: hidden;
}
.insight__media img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  transform: scale(1.001);
  transition: transform .7s cubic-bezier(.2,.6,.2,1), filter .7s ease;
  filter: saturate(.85) contrast(1.02);
}
.insight__media::before {
  content: "";
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(14,14,18,.0) 35%, rgba(14,14,18,.55) 78%, rgba(14,14,18,.85) 100%);
  z-index: 1;
}
.insight:hover .insight__media img {
  transform: scale(1.06);
  filter: saturate(1) contrast(1.05);
}
.insight__cat {
  position: relative; z-index: 3;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(245,179,36,.92);
  color: var(--ink-900);
  font-size: 11px; font-weight: 700;
  letter-spacing: .08em;
}
.insight__body { padding: 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.insight__meta {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--slate-500);
  letter-spacing: .04em;
}
.insight__body h4 {
  font-size: 17.5px; line-height: 1.4;
  font-weight: 700;
  margin: 0;
  letter-spacing: -.005em;
  text-wrap: pretty;
}
.insight__body p {
  font-size: 13.5px; line-height: 1.65;
  color: var(--slate-500);
  margin: 0;
  flex: 1;
}
.insight__more {
  font-size: 13px; font-weight: 600;
  color: var(--amber-600);
  margin-top: 4px;
}

/* ─── Asset / flag icons ─────────────────────────────────── */
.flag-pair {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}
.flag-pair > .flag + .flag {
  margin-left: -10px;
}
.flag {
  display: inline-block;
  width: 28px; height: 28px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1.5px solid rgba(255,255,255,.18);
  background-color: #1f1f27;
  box-shadow: 0 2px 6px rgba(0,0,0,.35);
  flex: 0 0 auto;
}
.flag-eu {
  background-color: #003399;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='%23FFCC00'><circle cx='12' cy='5' r='1.05'/><circle cx='15.5' cy='5.94' r='1.05'/><circle cx='18.06' cy='8.5' r='1.05'/><circle cx='19' cy='12' r='1.05'/><circle cx='18.06' cy='15.5' r='1.05'/><circle cx='15.5' cy='18.06' r='1.05'/><circle cx='12' cy='19' r='1.05'/><circle cx='8.5' cy='18.06' r='1.05'/><circle cx='5.94' cy='15.5' r='1.05'/><circle cx='5' cy='12' r='1.05'/><circle cx='5.94' cy='8.5' r='1.05'/><circle cx='8.5' cy='5.94' r='1.05'/></g></svg>");
}
.flag-us {
  background-color: #ffffff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><rect y='0' width='24' height='1.85' fill='%23B22234'/><rect y='3.7' width='24' height='1.85' fill='%23B22234'/><rect y='7.4' width='24' height='1.85' fill='%23B22234'/><rect y='11.1' width='24' height='1.85' fill='%23B22234'/><rect y='14.8' width='24' height='1.85' fill='%23B22234'/><rect y='18.5' width='24' height='1.85' fill='%23B22234'/><rect y='22.2' width='24' height='1.85' fill='%23B22234'/><rect width='10' height='13' fill='%233C3B6E'/><g fill='%23ffffff'><circle cx='2' cy='2' r='.4'/><circle cx='4' cy='2' r='.4'/><circle cx='6' cy='2' r='.4'/><circle cx='8' cy='2' r='.4'/><circle cx='3' cy='4' r='.4'/><circle cx='5' cy='4' r='.4'/><circle cx='7' cy='4' r='.4'/><circle cx='2' cy='6' r='.4'/><circle cx='4' cy='6' r='.4'/><circle cx='6' cy='6' r='.4'/><circle cx='8' cy='6' r='.4'/><circle cx='3' cy='8' r='.4'/><circle cx='5' cy='8' r='.4'/><circle cx='7' cy='8' r='.4'/><circle cx='2' cy='10' r='.4'/><circle cx='4' cy='10' r='.4'/><circle cx='6' cy='10' r='.4'/><circle cx='8' cy='10' r='.4'/></g></svg>");
}
.flag-gold {
  background: radial-gradient(60% 90% at 50% 30%, #FFD66E 0%, #F5B324 45%, #B5821B 100%);
  position: relative;
}
.flag-gold::before {
  content: "Au";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--font-sans);
  font-size: 10px; font-weight: 800;
  color: rgba(40,28,12,.85);
  letter-spacing: -.02em;
  text-shadow: 0 1px 0 rgba(255,255,255,.4);
}
.flag-btc {
  background: radial-gradient(70% 90% at 35% 30%, #FFB44D 0%, #F7931A 50%, #C56F0E 100%);
  position: relative;
}
.flag-btc::before {
  content: "₿";
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: "Arial Black", sans-serif;
  font-size: 18px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  padding-bottom: 1px;
  text-shadow: 0 1px 1px rgba(0,0,0,.25);
}
.flag-idx {
  background: linear-gradient(160deg, #1c2740 0%, #0E0E12 100%);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 18 L8 12 L12 15 L21 5' stroke='%2316A36B' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/><circle cx='21' cy='5' r='1.6' fill='%2316A36B'/><path d='M3 21 L21 21' stroke='rgba(255,255,255,0.15)' stroke-width='.6'/></svg>"),
    linear-gradient(160deg, #1c2740 0%, #0E0E12 100%);
  background-size: cover, cover;
}
.flag-stock {
  background: linear-gradient(160deg, #2a2a33 0%, #0E0E12 100%);
  background-image:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g fill='none' stroke='%23F5B324' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M4 16 L9 11 L13 14 L20 7'/></g><circle cx='20' cy='7' r='1.6' fill='%23F5B324'/><path d='M4 19 L20 19' stroke='rgba(255,255,255,0.15)' stroke-width='.6'/></svg>"),
    linear-gradient(160deg, #2a2a33 0%, #0E0E12 100%);
  background-size: cover, cover;
}

/* ─── CTA banner ─────────────────────────────────────────── */
.cta {
  position: relative;
  padding: clamp(48px, 7vw, 88px) clamp(28px, 5vw, 80px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(60% 90% at 80% 30%, rgba(245,179,36,.22), transparent 65%),
    linear-gradient(135deg, var(--ink-900), var(--ink-700));
  color: #fff;
  border: 1px solid var(--line-dark-strong);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.cta::before {
  content: "";
  position: absolute; right: -40px; top: 50%;
  transform: translateY(-50%) rotate(15deg);
  width: 320px; height: 320px;
  background: var(--amber-500);
  border-radius: 64px;
  opacity: .08;
  pointer-events: none;
}
.cta h2 {
  font-size: clamp(28px, 3.4vw, 44px);
  line-height: 1.15;
  margin: 0 0 16px;
  letter-spacing: -.012em;
  text-wrap: balance;
}
.cta h2 .accent { color: var(--amber-400); }
.cta p {
  font-size: 15px; line-height: 1.7;
  color: rgba(255,255,255,.7);
  margin: 0 0 28px;
  max-width: 540px;
}
.cta__buttons { display: flex; flex-wrap: wrap; gap: 12px; }
.cta__check {
  display: grid; gap: 10px;
  font-size: 14px;
  color: rgba(255,255,255,.85);
}
.cta__check li { display: flex; gap: 10px; align-items: flex-start; }
.cta__check li::before {
  content: "→";
  flex: 0 0 auto;
  color: var(--amber-400);
  font-weight: 700;
}

/* ─── 3D product icons ───────────────────────────────────── */
.prod__icon3d {
  width: 96px; height: 96px;
  margin: -8px -10px -4px 0;
  position: relative;
  filter: drop-shadow(0 12px 18px rgba(245,179,36,.18)) drop-shadow(0 4px 8px rgba(0,0,0,.12));
  transition: transform .35s cubic-bezier(.2,.6,.2,1);
}
.prod__icon3d svg { width: 100%; height: 100%; display: block; overflow: visible; }
.prod:hover .prod__icon3d { transform: translateY(-2px) rotate(-3deg) scale(1.04); }

/* ─── XAU/USD Chart Card ─────────────────────────────────── */
.chart-card {
  position: relative;
  background: linear-gradient(180deg, rgba(22,22,27,.95), rgba(14,14,18,.95));
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 22px;
  color: #fff;
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.5);
  overflow: hidden;
}
.chart-card::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(60% 50% at 80% 0%, rgba(245,179,36,.10), transparent 60%);
  pointer-events: none;
}
.chart-card > * { position: relative; z-index: 1; }

.cc__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; margin-bottom: 18px;
}
.cc__title { display: flex; align-items: center; gap: 10px; }
.cc__sym {
  font-family: var(--font-mono);
  font-size: 17px; font-weight: 700;
  letter-spacing: .02em;
  color: #fff;
}
.cc__chg {
  display: inline-flex; align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 700;
  background: rgba(53,207,131,.15);
  color: var(--up);
}
.cc__chg.down {
  background: rgba(255,107,107,.15);
  color: var(--down);
}

.cc__ranges {
  display: inline-flex;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  padding: 3px;
  gap: 0;
}
.cc__range {
  border: 0; background: transparent;
  padding: 5px 12px;
  font-size: 12px; font-weight: 600;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  border-radius: 999px;
  font-family: var(--font-sans);
  transition: background .15s, color .15s;
}
.cc__range:hover { color: rgba(255,255,255,.85); }
.cc__range.is-on {
  background: var(--amber-500);
  color: var(--ink-900);
}

.cc__pricebox {
  display: inline-flex; align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  background: rgba(40,40,48,.85);
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  margin-bottom: 12px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cc__pricebox-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: #fff;
  display: grid; place-items: center;
  overflow: hidden;
}
.cc__pricebox-icon img { width: 100%; height: 100%; display: block; object-fit: cover; }

.cc__pricebox-info { display: flex; flex-direction: column; gap: 2px; }
.cc__pricebox-sym {
  font-size: 11px; font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255,255,255,.7);
}
.cc__pricebox-line { display: inline-flex; align-items: baseline; gap: 8px; }
.cc__pricebox-price {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 700;
  color: #fff;
}
.cc__pricebox-chg {
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600;
  color: var(--up);
}
.cc__pricebox-chg.down { color: var(--down); }

.cc__chart {
  position: relative;
  height: 240px;
  margin: 0 -4px 18px;
  background:
    linear-gradient(180deg, transparent calc(100% - 1px), rgba(255,255,255,.04) calc(100% - 1px)),
    linear-gradient(0deg, transparent calc(100% - 1px), rgba(255,255,255,.04) calc(100% - 1px));
  background-size: 100% 25%;
}
.cc__chart svg { display: block; width: 100%; height: 100%; }
.cc__chart-loading {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-size: 13px;
  color: rgba(255,255,255,.4);
  pointer-events: none;
  transition: opacity .3s;
}
.cc__chart.is-loaded .cc__chart-loading { opacity: 0; }

.cc__stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding: 14px 0 12px;
  border-top: 1px solid var(--line-dark);
}
.cc__stat-k {
  font-size: 10px; font-weight: 700;
  letter-spacing: .12em;
  color: rgba(255,255,255,.45);
  margin-bottom: 4px;
}
.cc__stat-v {
  font-family: var(--font-mono);
  font-size: 16px; font-weight: 600;
  color: #fff;
  letter-spacing: -.005em;
}
.cc__foot {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: rgba(255,255,255,.4);
  letter-spacing: .04em;
}

/* XAU Chart skeleton */
.cc__skeleton {
  position: absolute; inset: 0;
  pointer-events: none;
  display: flex; align-items: center;
  padding: 0 8%;
  transition: opacity .3s;
}
.cc__skeleton-line {
  width: 100%; height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,.04) 0%,
    rgba(245,179,36,.18) 50%,
    rgba(255,255,255,.04) 100%
  );
  background-size: 200% 100%;
  animation: cc-shimmer 1.4s linear infinite;
  border-radius: 2px;
}
@keyframes cc-shimmer {
  0%   { background-position:  200% 0; }
  100% { background-position: -200% 0; }
}
.cc__chart.is-loaded .cc__skeleton { opacity: 0; }

/* XAU Chart line draw animation */
.cc__chart svg #js-cc-line {
  stroke-dasharray: var(--line-len, 2000);
  stroke-dashoffset: var(--line-len, 2000);
}
.cc__chart.is-loaded svg #js-cc-line {
  animation: cc-draw 1.2s cubic-bezier(.25,.46,.45,.94) forwards;
}
@keyframes cc-draw {
  to { stroke-dashoffset: 0; }
}
.cc__chart svg #js-cc-area { opacity: 0; }
.cc__chart.is-loaded svg #js-cc-area {
  animation: cc-fade 1.2s ease-out .4s forwards;
}
@keyframes cc-fade {
  to { opacity: 1; }
}

/* XAU Chart hover crosshair + dot + tooltip */
.cc__hover-area {
  position: absolute; inset: 0;
  cursor: crosshair;
}
.cc__crosshair {
  position: absolute;
  top: 0; bottom: 0; left: 0; width: 1px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(245,179,36,.45) 15%,
    rgba(245,179,36,.45) 85%,
    transparent 100%
  );
  opacity: 0;
  transform: translateX(-1px);
  pointer-events: none;
  transition: opacity .15s;
}
.cc__dot {
  position: absolute;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--amber-500);
  border: 2px solid var(--ink-900);
  box-shadow: 0 0 0 3px rgba(245,179,36,.25);
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .15s;
}

.cc__tooltip {
  position: absolute;
  top: 8px;
  padding: 8px 12px;
  background: rgba(40,40,48,.95);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity .15s;
  white-space: nowrap;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow: 0 4px 12px rgba(0,0,0,.4);
  z-index: 2;
}
.cc__tooltip-time {
  font-size: 10px;
  color: rgba(255,255,255,.5);
  margin-bottom: 2px;
  letter-spacing: .04em;
}
.cc__tooltip-price {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--amber-400);
}
.cc__chart.is-hover .cc__crosshair,
.cc__chart.is-hover .cc__dot,
.cc__chart.is-hover .cc__tooltip { opacity: 1; }

/* XAU Chart flash animation */
.cc__pricebox-price.is-flash-up,
.cc__stat-v.is-flash-up {
  animation: cc-flash-up .6s ease-out;
}
.cc__pricebox-price.is-flash-down,
.cc__stat-v.is-flash-down {
  animation: cc-flash-down .6s ease-out;
}
@keyframes cc-flash-up {
  0%   { color: #fff; background-color: transparent; }
  20%  { color: var(--up); background-color: rgba(53,207,131,.15); }
  100% { color: #fff; background-color: transparent; }
}
@keyframes cc-flash-down {
  0%   { color: #fff; background-color: transparent; }
  20%  { color: var(--down); background-color: rgba(255,107,107,.15); }
  100% { color: #fff; background-color: transparent; }
}

/* ════════════════ RESPONSIVE (home-specific) ═══════════════ */

@media (max-width: 1100px) {
  .acct-grid { grid-template-columns: 1fr; gap: 14px; }
  .insights { grid-template-columns: 1fr 1fr; }
  .insights .insight:nth-child(3) { grid-column: 1 / -1; }
  .insights .insight:nth-child(3) .insight__media { height: 140px; }
  .trust__inner { gap: 16px; }
  .trust__logos { gap: 16px; justify-content: flex-start; }
  .tlogo { font-size: 12px; }

  .hero__inner { grid-template-columns: 1fr; gap: 40px; }
  .hero__stats { grid-template-columns: repeat(4, 1fr); }
  .platforms { grid-template-columns: 1fr; }
  .platform-card--hero::before { font-size: 200px; }

  .why-grid { grid-template-columns: repeat(2, 1fr); }
  .value-grid { grid-template-columns: repeat(2, 1fr); }

  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  .products { grid-template-columns: 1fr; }
  .prod { padding: 22px; min-height: 0; }

  .why-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 18px; }
  .value-grid { grid-template-columns: 1fr; }

  .platform-card { padding: 28px; }
  .platform-card--hero::before { font-size: 140px; bottom: -30px; }

  .hero__stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .hero h1 { font-size: clamp(34px, 9vw, 48px); }

  .cta { padding: 32px 20px; gap: 24px; }
  .cta__check { display: none; }

  .insights { grid-template-columns: 1fr; }
  .insights .insight:nth-child(3) { grid-column: auto; }
  .insight__media { height: 200px; }
  .insight__body { padding: 22px; }
  .insight__body h4 { font-size: 17px; }

  .spreads-head, .spreads-row {
    grid-template-columns: 1.4fr .8fr .8fr;
    padding: 14px 16px;
  }
  .spreads-head span:nth-child(2),
  .spreads-head span:nth-child(3),
  .spreads-row .sp-bid,
  .spreads-row .sp-ask { display: none; }
  .spreads-foot { padding: 14px 16px; }

  .trust { padding: 20px 0; }
  .trust__line { font-size: 11px; }

  .acct { padding: 26px 22px; }
  .acct__price .big { font-size: 36px; }

  .quote-board {
    padding: 16px;
    margin-inline: -4px;
  }
  .qb__row { grid-template-columns: 1.6fr 1fr 1fr; }
  .qb__sym .sub { display: none; }

  .chart-card { padding: 16px; }
  .cc__head { flex-wrap: wrap; gap: 10px; }
  .cc__chart { height: 200px; }
  .cc__stats { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cc__stat-v { font-size: 14px; }
  .cc__range { padding: 4px 10px; font-size: 11px; }
}

@media (max-width: 540px) {
  .insight__media { height: 180px; }
  .insight__body { padding: 20px; }
  .insight__body h4 { font-size: 16px; line-height: 1.45; }
  .insight__meta { font-size: 11.5px; }
  .spreads-tabs { padding: 8px; gap: 4px; flex-wrap: wrap; }
  .spreads-tabs button { padding: 8px 12px; font-size: 12.5px; }
  .acct-grid { gap: 14px; }
  .acct__name { font-size: 22px; }
  .acct__price .big { font-size: 32px; }
  .acct ul li { font-size: 13px; }
  .qb__row { padding: 11px 0; gap: 8px; }
  .qb__sym .name { font-size: 13px; }
  .qb__price { font-size: 14px; }
  .qb__chg { font-size: 12px; }
  .quote-board { padding: 18px; }
  .why-grid { gap: 14px; }
  .why-card { padding: 22px; }
  .why-card h3 { font-size: 17px; }
  .why-card p { font-size: 13.5px; }
  .platform-card { padding: 26px 22px; }
  .platform-card h3 { font-size: 22px; }
  .platform-list li { font-size: 13.5px; }
}

@media (max-width: 420px) {
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__stats { gap: 14px 18px; }
  .stat__num { font-size: 22px; }
  .stat__lbl { font-size: 11px; }
  .sec-head h2 { font-size: 26px; }
  .sec-head { margin-bottom: 36px; gap: 22px; }
  .container { padding-inline: 18px; }
  .risk-strip__inner { padding: 7px 14px; font-size: 11px; }
  .prod__icon3d { width: 78px; height: 78px; }
}

@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .qb__title .dot { animation: none; }
}
