/**
 * trader2B MT5 Bridge landing page
 *
 * The approved comp for this page (trader2B MT5 Bridge Trading Platform.png) is
 * a standalone design: its green is brighter than --color-brand-600 and its
 * surfaces are a cooler near-black than --color-bg-base. Rather than bend the
 * global tokens - which the header, footer and every other page share - the
 * palette the comp asks for is declared once on .mt5-page and used from there.
 * Change --mt5-green here to move the whole page onto the brand green.
 *
 * @package Trader2B_Lite
 */

.mt5-page {
    /* ---- palette, sampled from the approved comp ---- */
    --mt5-green: #00EE66;
    --mt5-green-ink: #00210D;          /* text on a green fill */
    --mt5-green-soft: rgba(0, 238, 102, .14);

    --mt5-ink: #FFFFFF;
    --mt5-ink-dim: #D7E0E3;
    --mt5-muted: #A9B8BE;

    --mt5-bg: #020A0E;                 /* dark bands */
    --mt5-bg-alt: #09141A;             /* lighter bands */
    --mt5-surface: #0A161D;            /* cards */
    --mt5-surface-2: #071318;          /* flatter cards: strip, FAQ rows */

    --mt5-line: rgba(255, 255, 255, .07);
    --mt5-line-soft: rgba(255, 255, 255, .05);

    --mt5-info: #4FB9E8;               /* the blue "i" bullets */
    --mt5-alert: #F0325C;              /* the red "Important Notes" mark */

    --mt5-container: min(1296px, calc(100% - 48px));

    background: var(--mt5-bg);
    color: var(--mt5-ink);
    font-family: 'Poppins', var(--font-family-body);
    overflow-x: clip;
}

.mt5-wrap {
    width: var(--mt5-container);
    margin-inline: auto;
}

.mt5-anchor { scroll-margin-top: 96px; }

.mt5-page h1,
.mt5-page h2,
.mt5-page h3 {
    font-family: inherit;
    margin: 0;
}

/* ------------------------------------------------------------- buttons -- */

.mt5-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    padding: 14px 24px;
    border: 1px solid transparent;
    border-radius: var(--br-8);
    font-size: 16px;
    font-weight: var(--fw-600);
    line-height: 1;
    text-decoration: none;
    transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.mt5-btn:hover,
.mt5-btn:focus-visible {
    transform: translateY(-2px);
    text-decoration: none;
}

.mt5-btn--primary {
    background: var(--mt5-green);
    color: var(--mt5-green-ink);
}

.mt5-btn--primary:hover,
.mt5-btn--primary:focus-visible {
    color: var(--mt5-green-ink);
    box-shadow: 0 10px 28px rgba(0, 238, 102, .28);
}

/* Neutral outline, next to the green primary - the green --outline variant is
   for the closing CTA, where it sits on a green panel and needs to read as a
   button rather than as part of the background. */
.mt5-btn--ghost {
    border-color: rgba(255, 255, 255, .22);
    background: transparent;
    color: var(--mt5-ink);
}

.mt5-btn--ghost:hover,
.mt5-btn--ghost:focus-visible {
    border-color: var(--mt5-green);
    color: var(--mt5-ink);
    background: rgba(255, 255, 255, .04);
}

.mt5-btn--outline {
    border-color: var(--mt5-green);
    background: transparent;
    color: var(--mt5-green);
}

.mt5-btn--outline:hover,
.mt5-btn--outline:focus-visible {
    background: var(--mt5-green-soft);
    color: var(--mt5-green);
}

.mt5-btn svg { flex: none; width: 19px; height: 19px; }

/* ---------------------------------------------------------------- hero -- */

.mt5-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 40px 0 36px;
    background: var(--mt5-bg);
}

/* The comp's photograph bleeds off the right edge and fades into the copy. */
.mt5-hero__media {
    position: absolute;
    inset: 0 0 0 50%;
    z-index: -1;
    background-image: var(--mt5-hero-image);
    background-size: cover;
    background-position: right center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16%);
    mask-image: linear-gradient(90deg, transparent 0, #000 16%);
}

.mt5-hero__media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, var(--mt5-bg) 0, rgba(2, 10, 14, 0) 34%);
}

.mt5-hero__grid {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 50%) minmax(0, 1fr);
    align-items: center;
}

.mt5-hero__copy { max-width: 700px; padding-right: 40px; }

.mt5-eyebrow {
    display: flex;
    align-items: center;
    gap: 14px;
    margin: 0 0 18px;
    font-size: 15px;
    font-weight: var(--fw-600);
    color: var(--mt5-ink);
}

.mt5-pill {
    padding: 5px 13px;
    border-radius: var(--br-12);
    background: var(--mt5-green);
    color: var(--mt5-green-ink);
    font-size: 12px;
    font-weight: var(--fw-700);
    letter-spacing: .6px;
}

.mt5-hero__title {
    font-size: clamp(34px, 4.1vw, 59px);
    font-weight: var(--fw-700);
    line-height: 1.08;
    letter-spacing: -1.4px;
    margin: 0 0 16px;
    text-wrap: balance;
}

.mt5-hero__title .mt5-accent { color: var(--mt5-green); }

.mt5-hero__lead {
    max-width: 34ch;
    margin: 0 0 26px;
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.42;
    color: var(--mt5-ink-dim);
    font-weight: var(--fw-400);
}

.mt5-benefits {
    display: grid;
    gap: 16px;
    margin: 0 0 30px;
}

.mt5-benefit {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 16px;
    align-items: start;
}

.mt5-check {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--mt5-green);
    color: var(--mt5-green-ink);
}

.mt5-check svg { width: 16px; height: 16px; }

.mt5-benefit b {
    display: block;
    font-size: 18px;
    font-weight: var(--fw-600);
    line-height: 1.3;
}

.mt5-benefit small {
    display: block;
    margin-top: 2px;
    font-size: 15px;
    line-height: 1.4;
    color: var(--mt5-muted);
    font-weight: var(--fw-400);
}

.mt5-actions {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

.mt5-note {
    margin: 18px 0 0;
    font-size: 14px;
    color: var(--mt5-muted);
}

/* --------------------------------------------------------- value strip -- */

.mt5-strip {
    background: #071518;
    padding: 20px 0 22px;
}

.mt5-strip__grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.mt5-strip__item {
    display: grid;
    grid-template-columns: 32px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 15px 14px;
    border: 1px solid var(--mt5-line);
    border-radius: var(--br-12);
    background: var(--mt5-surface-2);
}

.mt5-strip__icon {
    display: grid;
    place-items: center;
    color: var(--mt5-green);
}

.mt5-strip__icon svg { width: 30px; height: 30px; }

.mt5-strip__item b {
    display: block;
    font-size: 14.5px;
    font-weight: var(--fw-600);
    line-height: 1.25;
}

.mt5-strip__item small {
    display: block;
    margin-top: 4px;
    font-size: 13.5px;
    line-height: 1.38;
    color: var(--mt5-muted);
    font-weight: var(--fw-400);
}

/* ------------------------------------------------------------ sections -- */

.mt5-section { padding: 36px 0 40px; }

.mt5-section--alt { background: var(--mt5-bg-alt); }

.mt5-h2 {
    font-size: clamp(24px, 2.2vw, 32px);
    font-weight: var(--fw-700);
    line-height: 1.2;
    letter-spacing: -.5px;
    text-align: center;
    margin: 0;
}

.mt5-sub {
    max-width: 760px;
    margin: 7px auto 0;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
    color: var(--mt5-ink-dim);
}

.mt5-underline {
    width: 86px;
    height: 3px;
    margin: 8px auto 0;
    border-radius: var(--br-4);
    background: var(--mt5-green);
}

/* ------------------------------------------------------- how it works  -- */

/* Four cards with the comp's chevrons sitting in the gaps between them. The
   chevrons are grid items of their own, so hiding them on a narrow screen
   takes them out of the flow and the cards reflow on their own. */
.mt5-steps {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 0 12px;
    align-items: stretch;
    margin-top: 20px;
}

.mt5-steps__arrow {
    align-self: center;
    display: grid;
    place-items: center;
    color: var(--mt5-green);
}

.mt5-steps__arrow svg { width: 22px; height: 22px; }

.mt5-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 22px 24px;
    border: 1px solid var(--mt5-line-soft);
    border-radius: var(--br-12);
    background: linear-gradient(160deg, #0C1B22 0%, #060F14 70%);
    text-align: center;
}

.mt5-step__num {
    position: absolute;
    top: 18px;
    left: 18px;
    display: grid;
    place-items: center;
    width: 29px;
    height: 29px;
    border-radius: 50%;
    background: var(--mt5-green);
    color: var(--mt5-green-ink);
    font-size: 15px;
    font-weight: var(--fw-700);
}

.mt5-step__icon {
    display: grid;
    place-items: center;
    height: 46px;
    margin-bottom: 12px;
    color: var(--mt5-ink);
}

.mt5-step__icon svg { width: 38px; height: 38px; }

.mt5-step__icon--green { color: var(--mt5-green); }

.mt5-step h3 {
    font-size: 18px;
    font-weight: var(--fw-600);
    line-height: 1.25;
    margin: 0 0 9px;
}

.mt5-step p {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
    color: var(--mt5-ink-dim);
    font-weight: var(--fw-400);
}

/* --------------------------------------------------------- screenshots -- */

.mt5-shots {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    margin-top: 20px;
}

.mt5-shot { margin: 0; }

.mt5-shot__visual {
    display: grid;
    place-items: center;
    height: 215px;
    overflow: hidden;
}

.mt5-shot__visual img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    border-radius: var(--br-8);
}

.mt5-shot figcaption { margin-top: 14px; }

/* An h3 for the outline's sake - the three screenshots are this section's subjects -
   styled as the caption it is, without a heading's default margins. */
.mt5-shot__text h3 {
    display: block;
    margin: 0;
    font-size: 17px;
    font-weight: var(--fw-600);
    line-height: 1.7;
}

.mt5-shot__text span {
    display: block;
    margin-top: 1px;
    font-size: 15px;
    line-height: 1.42;
    color: var(--mt5-ink-dim);
    font-weight: var(--fw-400);
}

/* ---------------------------------------------------------- info cards -- */

.mt5-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}

.mt5-card {
    padding: 20px 24px 24px;
    border: 1px solid var(--mt5-line);
    border-radius: var(--br-12);
    background: var(--mt5-surface);
}

.mt5-card__head {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--mt5-line);
}

.mt5-card__head svg { width: 27px; height: 27px; flex: none; }

.mt5-card__head h3 {
    font-size: 18px;
    font-weight: var(--fw-600);
    line-height: 1.3;
}

.mt5-card--req .mt5-card__head svg,
.mt5-card--cap .mt5-card__head svg { color: var(--mt5-green); }

.mt5-card--notes .mt5-card__head svg { color: var(--mt5-alert); }

.mt5-card ul {
    list-style: none;
    margin: 16px 0 0;
    padding: 0;
    display: grid;
    gap: 11px;
}

.mt5-card li {
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    font-size: 15px;
    line-height: 1.42;
    color: var(--mt5-ink-dim);
}

.mt5-card li svg {
    width: 20px;
    height: 20px;
    margin-top: 1px;
    flex: none;
    color: var(--mt5-green);
}

.mt5-card--notes li svg { color: var(--mt5-info); }

.mt5-card a { color: var(--mt5-green); }

/* ------------------------------------------------------------------ faq -- */

.mt5-faq {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(4, min-content);
    grid-auto-flow: column;
    gap: 10px 26px;
    margin-top: 20px;
}

.mt5-faq__item {
    align-self: start;
    border: 1px solid var(--mt5-line);
    border-radius: var(--br-8);
    background: var(--mt5-surface-2);
}

.mt5-faq__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 12px 20px;
    cursor: pointer;
    list-style: none;
    font-size: 16px;
    font-weight: var(--fw-600);
    line-height: 1.35;
}

.mt5-faq__item summary::-webkit-details-marker { display: none; }

.mt5-faq__item summary::after {
    content: "+";
    flex: none;
    font-size: 22px;
    font-weight: var(--fw-400);
    line-height: 1;
    color: var(--mt5-muted);
}

.mt5-faq__item[open] summary::after { content: "\2212"; color: var(--mt5-green); }

.mt5-faq__item p {
    margin: 0;
    padding: 0 20px 16px;
    font-size: 15px;
    line-height: 1.55;
    color: var(--mt5-muted);
    font-weight: var(--fw-400);
}

/* ------------------------------------------------------------ final cta -- */

.mt5-cta-band { padding: 0 0 48px; }

.mt5-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    flex-wrap: wrap;
    padding: 22px 34px;
    border: 1px solid rgba(0, 238, 102, .35);
    border-radius: var(--br-16);
    background: linear-gradient(100deg, #02401F 0%, #017B36 40%, #005A2B 62%, #0A2A1C 86%, #061319 100%);
}

.mt5-cta h2 {
    font-size: clamp(21px, 1.9vw, 28px);
    font-weight: var(--fw-700);
    line-height: 1.25;
    margin: 0 0 6px;
}

.mt5-cta p {
    margin: 0;
    font-size: 16px;
    color: #DFF5E7;
    font-weight: var(--fw-400);
}

.mt5-cta__buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.mt5-cta .mt5-btn--outline {
    border-color: var(--mt5-green);
    background: rgba(0, 0, 0, .18);
}

/* --------------------------------------------------------- responsive  -- */

@media (max-width: 1180px) {
    .mt5-strip__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .mt5-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
    .mt5-steps__arrow { display: none; }
}

@media (max-width: 980px) {
    .mt5-page { --mt5-container: min(1296px, calc(100% - 32px)); }

    /* Stacked, copy first: the photograph is scene-setting, not the message. */
    .mt5-hero {
        display: flex;
        flex-direction: column;
        padding: 34px 0 0;
    }

    .mt5-hero__media { order: 2; }

    .mt5-hero__grid { grid-template-columns: minmax(0, 1fr); }

    .mt5-hero__copy { max-width: none; }

    .mt5-hero__lead { max-width: none; }

    .mt5-hero__media {
        position: relative;
        inset: auto;
        z-index: 0;
        width: 100vw;
        margin: 36px calc(50% - 50vw) 0;
        aspect-ratio: 512 / 430;
        -webkit-mask-image: none;
        mask-image: none;
    }

    .mt5-hero__media::after { display: none; }

    .mt5-shots { grid-template-columns: minmax(0, 1fr); gap: 36px; }
    .mt5-shot__visual { height: auto; }
    .mt5-cards { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .mt5-faq { grid-template-columns: minmax(0, 1fr); grid-auto-flow: row; grid-template-rows: none; }
}

@media (max-width: 700px) {
    .mt5-strip__grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .mt5-steps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .mt5-section { padding: 48px 0 50px; }
    .mt5-actions { gap: 20px; }
    .mt5-actions .mt5-btn--primary { width: 100%; }
    .mt5-cta { padding: 26px 22px; }
    .mt5-cta__buttons { width: 100%; }
    .mt5-cta__buttons .mt5-btn { width: 100%; }
    .mt5-cta-band { padding: 0 0 54px; }
}

@media (prefers-reduced-motion: reduce) {
    .mt5-btn { transition: none; }
    .mt5-btn:hover,
    .mt5-btn:focus-visible { transform: none; }
}
