/* ─── broker.css ──────────────────────────────────────────────────────────
   Shared styles for the four broker pages (/ctrader, /bybit, /metatrader,
   /oanda). Sits on top of site.css for tokens, header, footer, hero, FAQ,
   final-CTA and buttons. Page-specific tweaks (eg the broker-themed hero
   visual) stay inline in each broker.php.
   ─────────────────────────────────────────────────────────────────────── */

/* HERO ---------------------------------------------------------------- */
.br-hero {
    position: relative;
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
}
.br-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 900px;
    height: 460px;
    background: radial-gradient(ellipse, rgba(108, 99, 255, .14) 0%, transparent 65%);
    pointer-events: none;
    z-index: 0;
}
.br-hero > * { position: relative; z-index: 1; }
.br-hero-text { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.br-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 7px 16px 7px 10px;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text);
    letter-spacing: .03em;
}
.br-badge img { height: 18px; width: auto; display: block; }
.br-hero h1 {
    font-size: clamp(34px, 4.6vw, 56px);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -1.4px;
    color: var(--head);
    margin: 0;
}
.br-hero p.br-sub {
    font-size: 17px;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
    max-width: 480px;
}
.br-hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.br-hero .trial-note { margin-top: 4px; }

/* HERO VISUAL (broker-specific card, dark glass) ---------------------- */
.br-hero-visual {
    padding: 22px;
    border-radius: 18px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.br-hv-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 16px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, .06);
}
.br-hv-logo { height: 22px; width: auto; display: block; }
.br-hv-title { font-size: 14px; font-weight: 600; color: var(--head); flex: 1; }
.br-hv-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-2);
    box-shadow: 0 0 12px var(--green-2);
}
.br-hv-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 0;
    border-bottom: 1px solid rgba(255, 255, 255, .04);
    font-size: 13px;
}
.br-hv-row:last-child { border-bottom: none; }
.br-hv-row .br-hv-lbl { color: var(--muted); }
.br-hv-row .br-hv-val { color: var(--head); font-weight: 600; font-variant-numeric: tabular-nums; }
.br-hv-row .br-hv-val.pos { color: var(--green-2); }
.br-hv-row .br-hv-val.neg { color: #ef6666; }
.br-hv-check {
    width: 14px; height: 14px; flex-shrink: 0;
    stroke: var(--green-2); stroke-width: 2.5;
    fill: none; stroke-linecap: round; stroke-linejoin: round;
}
.br-hv-perm {
    display: flex; align-items: center; gap: 10px;
    padding: 10px 12px;
    background: rgba(16, 185, 129, .06);
    border: 1px solid rgba(16, 185, 129, .18);
    border-radius: 10px;
    font-size: 12.5px; color: var(--text);
}

/* STATS BAR ----------------------------------------------------------- */
.br-stats {
    max-width: 1080px;
    margin: 80px auto 0;
    padding: 0 24px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.br-stat {
    padding: 24px 22px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.br-stat-ico {
    width: 38px; height: 38px;
    border-radius: 10px;
    background: rgba(108, 99, 255, .12);
    border: 1px solid rgba(108, 99, 255, .22);
    display: flex; align-items: center; justify-content: center;
    color: var(--accent-2);
    margin-bottom: 14px;
}
.br-stat-ico svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.br-stat-value { font-size: 22px; font-weight: 800; color: var(--head); letter-spacing: -.4px; line-height: 1.1; }
.br-stat-label { font-size: 13px; color: var(--accent-2); margin-top: 2px; font-weight: 600; letter-spacing: .04em; }
.br-stat-sub { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* SECTION primitives -------------------------------------------------- */
.br-section { max-width: 1180px; margin: 96px auto 0; padding: 0 24px; }
.br-section-head { text-align: center; margin-bottom: 48px; }
.br-section-head .sec-label { margin-bottom: 14px; }
.br-section-head h2 {
    font-size: clamp(28px, 3.8vw, 42px);
    font-weight: 800;
    letter-spacing: -1.1px;
    color: var(--head);
    margin-bottom: 14px;
    line-height: 1.1;
}
.br-section-head p {
    font-size: 16px;
    color: var(--muted);
    max-width: 620px;
    margin: 0 auto;
    line-height: 1.6;
}

/* HOW IT WORKS - numbered steps -------------------------------------- */
.br-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}
.br-step {
    padding: 24px 22px 26px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .25s, transform .25s;
}
.br-step:hover { border-color: rgba(166, 128, 255, .32); transform: translateY(-3px); }
.br-step-num {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: rgba(166, 128, 255, .1);
    border: 1px solid rgba(166, 128, 255, .35);
    color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 700;
    margin-bottom: 16px;
}
.br-step h3 { font-size: 17px; font-weight: 700; color: var(--head); margin-bottom: 8px; letter-spacing: -.2px; }
.br-step p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* WHAT GETS SYNCED - 6 cards grid ------------------------------------ */
.br-sync-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.br-sync-card {
    padding: 26px 24px 24px;
    border-radius: 16px;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    transition: border-color .25s, transform .25s;
}
.br-sync-card:hover { border-color: rgba(166, 128, 255, .32); transform: translateY(-3px); }
.br-sync-ico {
    width: 42px; height: 42px;
    border-radius: 11px;
    background: rgba(108, 99, 255, .12);
    border: 1px solid rgba(108, 99, 255, .25);
    color: var(--accent-2);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 16px;
}
.br-sync-ico svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.br-sync-card h3 { font-size: 17px; font-weight: 700; color: var(--head); margin-bottom: 8px; letter-spacing: -.2px; }
.br-sync-card p { font-size: 14px; color: var(--muted); line-height: 1.55; }

/* FEATURE BLOCKS - alternating two-column with mockup ---------------- */
.br-feature-block {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: center;
    margin-bottom: 56px;
}
.br-feature-block:last-child { margin-bottom: 0; }
.br-feature-block.reverse > div:first-child { order: 2; }
.br-feature-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: 14px;
}
.br-feature-block h3 {
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 800;
    color: var(--head);
    letter-spacing: -.8px;
    line-height: 1.15;
    margin-bottom: 16px;
}
.br-feature-block p.br-feature-desc {
    font-size: 16px;
    color: var(--muted);
    line-height: 1.65;
    margin-bottom: 22px;
}
.br-feature-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.br-feature-list li {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 14.5px; color: var(--text); letter-spacing: .02em; line-height: 1.5;
}
.br-feature-list li svg { flex-shrink: 0; margin-top: 2px; width: 15px; height: 15px; stroke: var(--accent-2); fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }

/* Wrap an app-block as the feature mockup - overflow-cropped panel */
.br-feature-visual {
    border-radius: 18px;
    overflow: hidden;
    background:
        radial-gradient(ellipse 90% 70% at 50% 100%, rgba(255, 255, 255, .03), transparent 70%),
        linear-gradient(180deg, #181818 0%, #0d0d0d 100%);
    border: 1px solid rgba(255, 255, 255, .075);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
    position: relative;
    padding: 18px;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* Inline visual rows (lightweight version when app-blocks would be too dense) */
.br-vis-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .03);
    border: 1px solid rgba(255, 255, 255, .04);
    font-size: 13px;
}
.br-vis-lbl { color: var(--text); font-weight: 500; }
.br-vis-val { font-weight: 700; font-variant-numeric: tabular-nums; }
.br-vis-val.pos { color: var(--green-2); }
.br-vis-val.neg { color: #ef6666; }
.br-vis-val.accent { color: var(--accent-2); }

/* SUPPORTED LOGOS strip (white-label brokers etc) -------------------- */
.br-logos {
    margin-top: 36px;
    padding: 28px 24px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .06);
    background: rgba(255, 255, 255, .02);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 36px;
    flex-wrap: wrap;
}
.br-logos-item {
    font-size: 14.5px;
    font-weight: 600;
    color: var(--muted);
    letter-spacing: .03em;
    opacity: .8;
}
.br-logos-item:hover { color: var(--text); opacity: 1; }

/* RESPONSIVE ---------------------------------------------------------- */
@media (max-width: 900px) {
    .br-hero { grid-template-columns: 1fr; gap: 36px; padding-top: 56px; }
    .br-hero-text { align-items: center; text-align: center; }
    .br-hero p.br-sub { margin: 0 auto; }
    .br-steps { grid-template-columns: repeat(2, 1fr); }
    .br-sync-grid { grid-template-columns: repeat(2, 1fr); }
    .br-feature-block { grid-template-columns: 1fr; gap: 28px; }
    .br-feature-block.reverse > div:first-child { order: 0; }
}
@media (max-width: 560px) {
    .br-stats { grid-template-columns: 1fr; }
    .br-steps { grid-template-columns: 1fr; }
    .br-sync-grid { grid-template-columns: 1fr; }
    .br-logos { gap: 20px; padding: 22px 16px; }
}
