/* MetaTrader 5 page — deliberately scoped so shared pages remain untouched. */
:root {
  --mt5-bg: #0f1011;
  --mt5-panel: #191b1d;
  --mt5-line: #303338;
  --mt5-paper: #f7f5f2;
  --mt5-muted: #9da1a8;
  --mt5-orange: #ff5b1f;
  --mt5-green: #24d19b;
}

.vm-mt5-page { margin: 0; background: var(--mt5-bg); color: var(--mt5-paper); }
.vm-mt5-page *, .vm-mt5-page *::before, .vm-mt5-page *::after { box-sizing: border-box; }
.vm-mt5-page a { color: inherit; text-decoration: none; }
.mt5-wrap { width: min(calc(100% - 64px), 1240px); margin: 0 auto; }
.mt5-platform-logo { display: block; width: 190px; max-width: 60%; height: auto; margin: 0 0 22px; object-fit: contain; filter: drop-shadow(0 5px 12px rgba(0,0,0,.35)); }
.mt5-kicker { margin: 0 0 15px; color: var(--mt5-orange); font-size: 12px; font-weight: 800; letter-spacing: .28em; line-height: 1.2; text-transform: uppercase; }

.mt5-hero { position: relative; overflow: hidden; padding: 92px 0 82px; background: radial-gradient(circle at 90% 42%, rgba(255,91,31,.22), transparent 32%), var(--mt5-bg); }
.mt5-hero::before { position: absolute; inset: 0; content: ""; opacity: .55; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 80px 80px; pointer-events: none; }
.mt5-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0,.92fr) minmax(440px,1.08fr); align-items: center; gap: clamp(42px, 6vw, 88px); }
.mt5-hero h1 { max-width: 690px; margin: 0; font-size: clamp(48px, 5.4vw, 78px); font-weight: 700; letter-spacing: -.075em; line-height: .98; }
.mt5-hero h1 em { color: var(--mt5-orange); font-style: normal; }
.mt5-lead { max-width: 620px; margin: 27px 0 0; color: #c1c3c7; font-size: clamp(17px,1.45vw,21px); line-height: 1.55; }
.mt5-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.mt5-primary, .mt5-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 54px; padding: 0 22px; border: 1px solid transparent; border-radius: 4px; font-weight: 800; transition: transform .2s ease, background .2s ease, border-color .2s ease; }
.mt5-primary { background: var(--mt5-orange); color: #fff; }
.mt5-secondary { border-color: var(--mt5-line); background: rgba(15,16,17,.72); color: var(--mt5-paper); }
.mt5-primary:hover, .mt5-secondary:hover { transform: translateY(-3px); }
.mt5-secondary:hover { border-color: var(--mt5-orange); }
.mt5-note { margin: 18px 0 0; color: var(--mt5-muted); font-size: 14px; }
.mt5-note i { margin-right: 7px; color: var(--mt5-green); }

.mt5-showcase { position: relative; min-height: 440px; }
.mt5-showcase::before { position: absolute; inset: 4% 0 0 12%; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; background: linear-gradient(145deg, rgba(255,91,31,.14), transparent 57%); content: ""; }
.mt5-showcase > img { position: absolute; z-index: 2; right: -5%; bottom: -4%; width: 105%; max-width: 740px; filter: drop-shadow(0 30px 30px rgba(0,0,0,.45)); }
.mt5-screen { position: absolute; z-index: 1; top: 45px; left: 0; width: 55%; min-height: 265px; overflow: hidden; border: 1px solid #35393e; border-radius: 12px; background: #141618; box-shadow: 0 20px 45px rgba(0,0,0,.34); }
.mt5-screen-head { display: flex; align-items: center; gap: 10px; padding: 11px 13px; border-bottom: 1px solid #2b2e31; color: #eee; font-size: 10px; }
.mt5-screen-head span { display: flex; gap: 4px; }
.mt5-screen-head i { width: 6px; height: 6px; border-radius: 50%; background: #555; }
.mt5-screen-head i:first-child { background: var(--mt5-orange); }
.mt5-screen-head small { margin-left: auto; color: var(--mt5-muted); }
.mt5-chart { padding: 18px 17px 0; color: var(--mt5-orange); }
.mt5-chart span { display: block; color: #d6d7d8; font-size: 12px; }
.mt5-chart > strong { display: flex; justify-content: space-between; margin-top: 6px; color: #f5f5f5; font-size: 19px; }
.mt5-chart strong b { color: var(--mt5-green); font-size: 12px; }
.mt5-chart svg { display: block; width: 100%; height: 104px; margin-top: 12px; }
.mt5-order { display: grid; gap: 5px; padding: 15px 17px; border-top: 1px solid #2b2e31; color: #c9cace; font-size: 11px; }
.mt5-order strong { color: #fff; font-size: 13px; }
.mt5-order b { color: var(--mt5-orange); font-size: 11px; }
.mt5-float { position: absolute; z-index: 3; display: flex; align-items: center; gap: 10px; padding: 10px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 9px; background: rgba(22,24,26,.93); box-shadow: 0 14px 25px rgba(0,0,0,.25); color: #d8d9db; font-size: 11px; line-height: 1.35; }
.mt5-float i { color: var(--mt5-orange); font-size: 18px; }
.mt5-float strong { color: #fff; }
.mt5-float.top { top: 8px; right: 2%; }
.mt5-float.bottom { bottom: 2%; left: 3%; }

.mt5-signal { border-top: 1px solid var(--mt5-line); border-bottom: 1px solid var(--mt5-line); background: #141516; }
.mt5-signal .mt5-wrap { display: grid; grid-template-columns: repeat(4,1fr); }
.mt5-signal article { min-height: 150px; padding: 28px 25px; border-right: 1px solid var(--mt5-line); }
.mt5-signal article:last-child { border-right: 0; }
.mt5-signal span { display: block; margin-bottom: 19px; color: var(--mt5-orange); font-size: 12px; font-weight: 800; }
.mt5-signal strong { display: block; color: #fff; font-size: 17px; }
.mt5-signal p { margin: 8px 0 0; color: var(--mt5-muted); font-size: 14px; }

.mt5-section, .mt5-access, .mt5-faq { padding: 108px 0; }
.mt5-section { background: #101112; }
.mt5-heading { display: grid; grid-template-columns: 1fr .68fr; gap: 50px; align-items: end; margin-bottom: 44px; }
.mt5-heading h2, .mt5-steps h2, .mt5-faq h2, .mt5-cta h2 { margin: 0; font-size: clamp(36px,4.2vw,58px); letter-spacing: -.06em; line-height: 1.02; }
.mt5-heading > p, .mt5-steps > div > p, .mt5-faq > div > p { margin: 0; color: var(--mt5-muted); font-size: 17px; line-height: 1.55; }
.mt5-features { display: grid; grid-template-columns: 1.12fr .88fr .88fr; gap: 16px; }
.mt5-features article { min-height: 260px; padding: 26px; border: 1px solid var(--mt5-line); border-radius: 10px; background: var(--mt5-panel); }
.mt5-features article.wide { grid-row: span 2; min-height: 536px; }
.mt5-features article.accent { background: linear-gradient(145deg, #ff5b1f, #c83e12); border-color: transparent; }
.mt5-features article > div { display: flex; justify-content: space-between; color: var(--mt5-orange); font-size: 23px; }
.mt5-features article > div span { color: var(--mt5-muted); font-size: 12px; font-weight: 800; }
.mt5-features h3 { margin: 33px 0 10px; font-size: 23px; letter-spacing: -.03em; }
.mt5-features p { margin: 0; color: var(--mt5-muted); line-height: 1.55; }
.mt5-features .wide b { display: block; margin-top: 122px; color: #fff; font-size: 15px; }
.mt5-features .accent div, .mt5-features .accent p, .mt5-features .accent > div span { color: rgba(255,255,255,.84); }
.mt5-features .accent a { display: inline-block; margin-top: 28px; font-weight: 800; }

.mt5-access { background: #17191a; }
.mt5-downloads { display: grid; grid-template-columns: repeat(5,1fr); gap: 11px; }
.mt5-downloads a { display: flex; flex-direction: column; min-height: 188px; padding: 22px; border: 1px solid var(--mt5-line); border-radius: 9px; background: #101112; transition: transform .2s ease, border-color .2s ease; }
.mt5-downloads a:hover { transform: translateY(-5px); border-color: var(--mt5-orange); }
.mt5-downloads > a > i { margin-bottom: 26px; font-size: 31px; }
/* Use recognisable platform marks in their native brand palettes, not one generic accent colour. */
.mt5-downloads > a:nth-child(1) > i { color: #00a4ef; } /* Windows */
.mt5-downloads > a:nth-child(2) > i,
.mt5-downloads > a:nth-child(4) > i { color: #f4f4f4; } /* Apple */
.mt5-downloads > a:nth-child(3) > i { color: #3ddc84; } /* Android */
.mt5-downloads > a:nth-child(5) > i { color: #62b7ed; } /* Web */
.mt5-downloads span { color: var(--mt5-muted); font-size: 12px; }
.mt5-downloads strong { margin: 4px 0 auto; font-size: 18px; }
.mt5-downloads em { color: var(--mt5-orange); font-size: 12px; font-style: normal; font-weight: 800; }
.mt5-disclaimer { margin: 18px 0 0; color: var(--mt5-muted); font-size: 12px; line-height: 1.5; }

.steps { border-top: 1px solid var(--mt5-line); background: #101112; }
.mt5-steps { display: grid; grid-template-columns: .84fr 1.16fr; gap: 90px; }
.mt5-steps > div > p { margin-top: 24px; }
.mt5-steps ol { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--mt5-line); }
.mt5-steps li { display: grid; grid-template-columns: 80px 1fr; gap: 18px; padding: 25px 0; border-bottom: 1px solid var(--mt5-line); }
.mt5-steps li > b { color: var(--mt5-orange); font-size: 14px; }
.mt5-steps h3 { margin: 0; font-size: 21px; }
.mt5-steps li p { margin: 8px 0 10px; color: var(--mt5-muted); line-height: 1.5; }
.mt5-steps li a, .mt5-faq a { color: var(--mt5-orange); font-size: 14px; font-weight: 800; }

.mt5-faq { background: #17191a; }
.mt5-faq .mt5-wrap { display: grid; grid-template-columns: .75fr 1.25fr; gap: 96px; }
.mt5-faq > .mt5-wrap > div > p { margin-top: 22px; }
.mt5-faq > .mt5-wrap > div > a { display: inline-block; margin-top: 24px; }
.mt5-faq details { border-top: 1px solid var(--mt5-line); }
.mt5-faq details:last-child { border-bottom: 1px solid var(--mt5-line); }
.mt5-faq summary { position: relative; padding: 22px 30px 22px 0; cursor: pointer; font-size: 18px; font-weight: 700; list-style: none; }
.mt5-faq summary::after { position: absolute; right: 2px; content: "+"; color: var(--mt5-orange); font-size: 25px; font-weight: 400; }
.mt5-faq details[open] summary::after { content: "−"; }
.mt5-faq details p { max-width: 690px; margin: 0; padding: 0 25px 22px 0; color: var(--mt5-muted); line-height: 1.55; }

.mt5-cta { position: relative; overflow: hidden; padding: 88px 0; background: var(--mt5-orange); color: #fff; }
.mt5-cta::after { position: absolute; right: 12%; bottom: -80px; width: 220px; height: 330px; border: 52px solid rgba(102,29,10,.3); transform: skewX(-35deg); content: ""; }
.mt5-cta .mt5-wrap { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: space-between; gap: 35px; }
.mt5-cta .mt5-kicker { color: #fff; }
.mt5-cta h2 { max-width: 690px; }
.mt5-cta > .mt5-wrap > div { display: flex; flex-wrap: wrap; gap: 12px; }
.mt5-cta .mt5-primary { background: #111; }
.mt5-cta .mt5-secondary { border-color: rgba(255,255,255,.5); background: transparent; }

@media (max-width: 1050px) {
  .mt5-hero-grid, .mt5-steps, .mt5-faq .mt5-wrap { grid-template-columns: 1fr; }
  .mt5-hero-grid { gap: 42px; }
  .mt5-showcase { max-width: 700px; width: 100%; margin: 0 auto; }
  .mt5-downloads { grid-template-columns: repeat(3,1fr); }
  .mt5-faq .mt5-wrap, .mt5-steps { gap: 50px; }
}
@media (max-width: 760px) {
  .mt5-wrap { width: min(calc(100% - 36px), 1240px); }
  .mt5-hero, .mt5-section, .mt5-access, .mt5-faq { padding: 70px 0; }
  .mt5-hero h1 { font-size: clamp(42px, 12vw, 61px); }
  .mt5-showcase { min-height: 335px; }
  .mt5-screen { top: 26px; min-height: 220px; width: 64%; }
  .mt5-showcase > img { width: 108%; right: -8%; }
  .mt5-float { display: none; }
  .mt5-signal .mt5-wrap { grid-template-columns: repeat(2,1fr); }
  .mt5-signal article:nth-child(2) { border-right: 0; }
  .mt5-signal article { min-height: 130px; padding: 22px 17px; border-bottom: 1px solid var(--mt5-line); }
  .mt5-signal article:nth-child(n+3) { border-bottom: 0; }
  .mt5-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 31px; }
  .mt5-features { grid-template-columns: 1fr; }
  .mt5-features article.wide { min-height: 330px; grid-row: auto; }
  .mt5-features .wide b { margin-top: 65px; }
  .mt5-downloads { grid-template-columns: repeat(2,1fr); }
  .mt5-downloads a:last-child { grid-column: span 2; }
  .mt5-cta .mt5-wrap { display: block; }
  .mt5-cta > .mt5-wrap > div { margin-top: 26px; }
}
@media (max-width: 430px) {
  .mt5-showcase { min-height: 285px; }
  .mt5-screen { width: 70%; min-height: 194px; }
  .mt5-screen-head { font-size: 8px; }
  .mt5-chart { padding: 13px 12px 0; }
  .mt5-chart svg { height: 70px; }
  .mt5-order { padding: 10px 12px; }
  .mt5-actions, .mt5-actions a { width: 100%; }
}
