/* =====================================================================
   BTS PAMM — style.css
   Loads AFTER Bootstrap 5 + Font Awesome and overrides them.
   Single source of design tokens. No stock-Bootstrap surfaces allowed.
   ===================================================================== */

/* ------------------------------------------------------- 1. TOKENS */
:root {
    /* brand */
    --brand-grad: linear-gradient(90deg, #af2028 0%, #d1232d 100%);
    --brand-grad-135: linear-gradient(135deg, #af2028 0%, #d1232d 100%);
    --brand-a: #af2028;
    --brand-b: #d1232d;
    --brand-glow: rgba(209, 35, 45, 0.35);

    /* surfaces */
    --bg: #0a0a0a;
    --bg-elev: #121216;
    --bg-elev-2: #17171d;
    --border: rgba(255, 255, 255, 0.07);
    --border-strong: rgba(255, 255, 255, 0.12);

    /* text */
    --text: #f5f5f7;
    --text-dim: #a1a1aa;
    --text-mute: #6b7280;

    /* semantic */
    --pos: #16c784;
    --neg: #ea3943;

    /* radii */
    --radius-card: 16px;
    --radius-ctrl: 10px;
    --radius-pill: 999px;

    /* spacing scale (base 4px) */
    --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
    --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 64px; --sp-9: 96px;

    /* elevation */
    --shadow-card: 0 1px 0 rgba(255,255,255,0.02) inset, 0 8px 24px rgba(0,0,0,0.35);
    --shadow-hover: 0 12px 32px rgba(0,0,0,0.45), 0 0 0 1px var(--brand-b), 0 8px 40px var(--brand-glow);

    --nav-h: 68px;

    /* ---- Bootstrap variable remap (so BS components inherit BTS) ---- */
    --bs-body-bg: var(--bg);
    --bs-body-color: var(--text);
    --bs-border-color: var(--border);
    --bs-primary: #d1232d;
    --bs-primary-rgb: 209, 35, 45;
    --bs-link-color: #d1232d;
    --bs-link-hover-color: #e2434c;
    --bs-focus-ring-color: var(--brand-glow);
    --bs-body-font-family: 'Inter', system-ui, -apple-system, sans-serif;
    --bs-border-radius: var(--radius-ctrl);
}

/* ------------------------------------------------------- 2. BASE */
* { -webkit-tap-highlight-color: transparent; }

html { scroll-behavior: auto; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    /* overflow-x: clip (NOT hidden). `hidden` forces overflow-y to compute to
       `auto`, turning <body> into a nested scroll container that breaks the
       normal page scroll (slow/stuck). `clip` prevents sideways scroll with no
       scroll container. */
    overflow-x: clip;
    padding-top: var(--nav-h);
}

h1, h2, h3, h4, .display, .num, .stat-value, .tc-roi, .tc-cell-value {
    font-family: 'Space Grotesk', 'Inter', sans-serif;
}
.num, .stat-value, .tc-roi, .tc-cell-value, .tc-slots, .lb-caption .count, .tc-followers span {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

a { color: var(--brand-b); text-decoration: none; transition: color .18s ease; }
a:hover { color: #e2434c; }

/* brand container width cap */
.container { max-width: 1180px; }

/* section rhythm */
.section { padding-block: var(--sp-8); position: relative; }
.section-tight { padding-block: var(--sp-7); }

.eyebrow {
    font-size: .72rem; letter-spacing: .14em; text-transform: uppercase;
    color: var(--text-mute); font-weight: 600;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 700; letter-spacing: -.02em; }
.text-dim { color: var(--text-dim); }
.text-mute { color: var(--text-mute); }
.text-pos { color: var(--pos); }
.text-neg { color: var(--neg); }
.grad-text {
    background: var(--brand-grad); -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent; color: transparent;
}

/* focus-visible — brand ring everywhere, kill BS blue */
:focus { outline: none; }
a:focus-visible, button:focus-visible, input:focus-visible,
.btn:focus-visible, .chip:focus-visible, .lb-tab:focus-visible,
.form-control:focus-visible, .tc-star:focus-visible, .accordion-button:focus-visible {
    outline: 2px solid var(--brand-b);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--brand-glow) !important;
}
.form-control:focus { border-color: var(--brand-b); box-shadow: none; }

.skip-link {
    position: fixed; top: 8px; left: 8px; z-index: 2000;
    background: var(--bg-elev-2); color: var(--text);
    padding: 8px 14px; border-radius: var(--radius-ctrl); border: 1px solid var(--border-strong);
}

/* ------------------------------------------------------- 3. BUTTONS */
.btn { font-weight: 600; border-radius: var(--radius-ctrl); transition: all .2s ease; border: 1px solid transparent; }

.bts-btn-primary {
    background: var(--brand-grad); color: #fff; border: none;
    padding: .55rem 1.15rem; box-shadow: 0 4px 16px rgba(209,35,45,0.28);
}
.bts-btn-primary:hover { color: #fff; filter: brightness(1.08); box-shadow: 0 6px 22px var(--brand-glow); transform: translateY(-1px); }

.bts-btn-ghost {
    background: transparent; color: var(--text); border: 1px solid var(--border-strong);
    padding: .55rem 1.05rem;
}
.bts-btn-ghost:hover { color: #fff; border-color: var(--brand-b); background: rgba(209,35,45,0.08); }

.bts-btn-outline {
    background: transparent; color: var(--brand-b); border: 1px solid var(--brand-b);
    padding: .5rem 1rem; font-weight: 600;
}
.bts-btn-outline:hover { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 18px var(--brand-glow); }

.bts-icon-btn {
    width: 40px; height: 40px; display: inline-grid; place-items: center;
    background: transparent; color: var(--text-dim); border: 1px solid transparent;
    border-radius: var(--radius-ctrl); font-size: 1rem; transition: all .18s ease; cursor: pointer;
}
.bts-icon-btn:hover { color: var(--text); background: var(--bg-elev-2); }

/* ------------------------------------------------------- 4. NAVBAR */
.bts-nav {
    height: var(--nav-h);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background .3s ease, border-color .3s ease;
    z-index: 1030;
}
.bts-nav.is-scrolled {
    background: rgba(10, 10, 10, 0.82);
    backdrop-filter: blur(10px) saturate(130%);
    -webkit-backdrop-filter: blur(10px) saturate(130%);
    border-bottom: 1px solid var(--border);
}
.bts-nav .container { display: flex; align-items: center; justify-content: space-between; }

.bts-brand { display: inline-flex; align-items: center; gap: .55rem; }
.bts-logo { height: 38px; width: auto; display: block; }
.bts-brand-word {
    font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.15rem;
    letter-spacing: .04em; color: var(--text);
}

.bts-nav-center { flex: 1; justify-content: center; }
.bts-nav-link {
    color: var(--text-dim); font-weight: 500; font-size: .92rem; padding: .5rem .75rem !important;
    border-radius: var(--radius-ctrl); transition: color .18s ease, background .18s ease;
    position: relative;
}
.bts-nav-link:hover, .bts-nav-link:focus { color: var(--text); }
.bts-nav-link.dropdown-toggle::after { margin-left: .35em; opacity: .7; }

.bts-dropdown {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-card);
    box-shadow: var(--shadow-card); padding: .4rem; margin-top: .5rem;
}
.bts-dropdown .dropdown-item {
    color: var(--text-dim); border-radius: var(--radius-ctrl); font-size: .9rem; padding: .5rem .75rem;
}
.bts-dropdown .dropdown-item:hover { background: var(--bg-elev-2); color: var(--text); }

/* nav search */
.bts-search { position: relative; display: flex; align-items: center; }
.bts-search i { position: absolute; left: 12px; color: var(--text-mute); font-size: .85rem; pointer-events: none; }
.bts-search .form-control {
    background: var(--bg-elev); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius-ctrl); padding: .5rem .75rem .5rem 2.1rem; font-size: .88rem;
}
.bts-search .form-control::placeholder { color: var(--text-mute); }
.bts-search--nav .form-control { width: 130px; transition: width .25s ease; }
.bts-search--nav .form-control:focus { width: 180px; background: var(--bg-elev-2); }
.bts-search--mobile .form-control, .bts-search--traders .form-control { width: 100%; }

/* offcanvas */
.bts-offcanvas {
    background: var(--bg-elev); color: var(--text); border-left: 1px solid var(--border);
    width: min(86vw, 340px);
}
.bts-offcanvas .offcanvas-header { border-bottom: 1px solid var(--border); }
.bts-mobile-nav .nav-link { padding: .7rem .25rem !important; font-size: 1rem; color: var(--text); border-bottom: 1px solid var(--border); }
.bts-mobile-sub { list-style: none; padding: 0 0 .4rem .25rem; margin: 0; }
.bts-mobile-sub li a { display: block; padding: .35rem .5rem; color: var(--text-mute); font-size: .88rem; }
.bts-mobile-sub li a:hover { color: var(--text); }

/* ------------------------------------------------------- 5. HERO */
.hero {
    position: relative;
    min-height: min(92vh, 780px);
    display: flex; align-items: center;
    overflow: hidden;
    padding-block: var(--sp-8) var(--sp-7);
}
#heroCanvas {
    position: absolute; inset: 0; width: 100%; height: 100%;
    z-index: 0; pointer-events: none; display: block;
}
.hero-scrim {
    position: absolute; inset: 0; z-index: 1; pointer-events: none;
    background:
        radial-gradient(120% 90% at 70% 15%, rgba(209,35,45,0.10), transparent 55%),
        linear-gradient(180deg, rgba(10,10,10,0.35) 0%, rgba(10,10,10,0) 30%, rgba(10,10,10,0.6) 78%, var(--bg) 100%);
}
.hero .container { position: relative; z-index: 2; }

.hero-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .4rem .85rem; margin-bottom: var(--sp-4);
    border: 1px solid var(--border-strong); border-radius: var(--radius-pill);
    background: rgba(209,35,45,0.06);
    color: var(--text-dim); font-size: .8rem; font-weight: 500; letter-spacing: .01em;
}
.live-dot {
    width: 8px; height: 8px; border-radius: 50%; background: var(--pos); position: relative; flex: none;
    box-shadow: 0 0 0 0 rgba(22,199,132,.5); animation: livePulse 2s ease-out infinite;
}
@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(22,199,132,.5); }
    70%  { box-shadow: 0 0 0 7px rgba(22,199,132,0); }
    100% { box-shadow: 0 0 0 0 rgba(22,199,132,0); }
}

.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 700; line-height: 1.04; letter-spacing: -.03em;
    margin-bottom: var(--sp-4);
}
.hero-sub { font-size: clamp(1rem, 1.6vw, 1.18rem); color: var(--text-dim); max-width: 46ch; margin-bottom: var(--sp-5); }

.hero-cta { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-6); }
.btn-hero { padding: .7rem 1.35rem; font-size: .98rem; }
.btn-hero i { transition: transform .2s ease; }
.btn-hero:hover i { transform: translateX(3px); }

.hero-stats { display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.stat { display: flex; flex-direction: column; }
.stat-value { font-size: clamp(1.3rem, 2vw, 1.7rem); font-weight: 700; line-height: 1.1; letter-spacing: -.01em; white-space: nowrap; }
.stat-label { font-size: .78rem; color: var(--text-mute); margin-top: 2px; letter-spacing: .02em; }
.stat + .stat { padding-left: var(--sp-5); border-left: 1px solid var(--border); }

/* hero right card */
.hero-card {
    background: linear-gradient(160deg, var(--bg-elev-2) 0%, var(--bg-elev) 100%);
    border: 1px solid var(--border-strong); border-radius: var(--radius-card);
    padding: var(--sp-6); position: relative; overflow: hidden; box-shadow: var(--shadow-card);
}
.hero-card::after {
    content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px;
    background: radial-gradient(circle, var(--brand-glow), transparent 65%); pointer-events: none;
}
.hero-card-shield {
    width: 56px; height: 56px; display: grid; place-items: center; border-radius: 14px;
    background: var(--brand-grad-135); color: #fff; font-size: 1.5rem; margin-bottom: var(--sp-4);
    box-shadow: 0 8px 24px var(--brand-glow);
}
.hero-card h3 { font-size: 1.25rem; font-weight: 600; margin-bottom: .35rem; }
.hero-card p { color: var(--text-dim); font-size: .95rem; margin-bottom: var(--sp-4); }
.hero-card-link { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.hero-card-link i { transition: transform .2s ease; }
.hero-card-link:hover i { transform: translateX(4px); }

.hero-card-tag {
    position: absolute; top: var(--sp-5); right: var(--sp-5); z-index: 1;
    display: inline-flex; align-items: center; gap: .35rem;
    padding: .25rem .6rem; border-radius: var(--radius-pill);
    background: rgba(209,35,45,0.12); border: 1px solid rgba(209,35,45,0.3);
    color: var(--brand-b); font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
}
/* mini live-copy preview inside the card — makes it read as a real illustration */
.hero-card-preview {
    display: flex; align-items: center; gap: .6rem; position: relative; z-index: 1;
    margin-top: var(--sp-5); padding-top: var(--sp-4); border-top: 1px solid var(--border);
}
.hcp-avatar {
    flex: none; width: 38px; height: 38px; border-radius: var(--radius-pill);
    display: grid; place-items: center; color: #fff; font-family: 'Space Grotesk', sans-serif;
    font-weight: 700; font-size: .82rem;
}
.hcp-id { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.hcp-name { font-weight: 600; font-size: .9rem; display: inline-flex; align-items: center; gap: .3rem; }
.hcp-name i { color: var(--brand-b); font-size: .78rem; }
.hcp-sub { font-size: .74rem; color: var(--text-mute); }
.hcp-roi { font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 1.05rem; color: var(--pos); }

/* ------------------------------------------------------- 6. CTA CARDS */
.cta-card {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: var(--sp-5); height: 100%; transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.cta-card:hover { transform: translateY(-4px); border-color: var(--brand-b); box-shadow: var(--shadow-hover); }
.cta-card h3 { font-size: 1.1rem; font-weight: 600; margin: 0 0 .2rem; color: var(--text); }
.cta-card p { margin: 0; color: var(--text-dim); font-size: .9rem; }
.cta-card-icon {
    flex: none; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
    font-size: 1.35rem; color: var(--brand-b); background: rgba(209,35,45,0.10); border: 1px solid rgba(209,35,45,0.25);
    transition: all .25s ease;
}
.cta-card:hover .cta-card-icon { background: var(--brand-grad-135); color: #fff; border-color: transparent; }

/* ------------------------------------------------------- 7. LEADERBOARD CONTROLS */
.lb-tabs { display: flex; gap: var(--sp-1); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.lb-tab {
    background: none; border: none; color: var(--text-dim); font-weight: 600; font-size: .95rem;
    padding: .7rem .9rem; position: relative; cursor: pointer; transition: color .18s ease;
}
.lb-tab::after {
    content: ""; position: absolute; left: .9rem; right: .9rem; bottom: -1px; height: 2px;
    background: var(--brand-grad); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform .25s ease;
}
.lb-tab:hover { color: var(--text); }
.lb-tab.active { color: var(--text); }
.lb-tab.active::after { transform: scaleX(1); }

.lb-toolbar { display: flex; gap: var(--sp-3); align-items: center; }
.bts-search--traders { min-width: 220px; }

.chips { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.chip {
    background: var(--bg-elev); border: 1px solid var(--border); color: var(--text-dim);
    border-radius: var(--radius-pill); padding: .45rem 1rem; font-size: .85rem; font-weight: 500;
    cursor: pointer; transition: all .2s ease; white-space: nowrap;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); background: var(--bg-elev-2); }
.chip.active { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 16px var(--brand-glow); }

.lb-caption { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4); }
.lb-caption .cap-text { color: var(--text-dim); font-size: .92rem; }
.view-all { font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: .35rem; }
.view-all i { transition: transform .2s ease; }
.view-all:hover i { transform: translateX(3px); }

/* ------------------------------------------------------- 8. TRADER CARDS */
.trader-card {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: var(--sp-5); height: 100%; position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.trader-card:hover { transform: translateY(-4px); border-color: var(--brand-b); box-shadow: var(--shadow-hover); }

.tc-top { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.tc-avatar {
    flex: none; width: 44px; height: 44px; border-radius: var(--radius-pill);
    display: grid; place-items: center; font-family: 'Space Grotesk', sans-serif; font-weight: 700;
    font-size: .95rem; color: #fff; letter-spacing: .02em; position: relative;
}
.tc-avatar .verified {
    position: absolute; right: -3px; bottom: -3px; font-size: .8rem; color: var(--brand-b);
    background: var(--bg-elev); border-radius: 50%; line-height: 1;
}
.tc-id { min-width: 0; flex: 1; }
.tc-name { font-weight: 700; font-size: 1rem; display: flex; align-items: center; gap: .4rem; }
.tc-name .name-text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-badge { flex: none; font-size: .62rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
    padding: .12rem .4rem; border-radius: var(--radius-pill); }
.tc-badge.crown { color: #f2c14e; background: rgba(242,193,78,.12); border: 1px solid rgba(242,193,78,.3); }
.tc-badge.new { color: var(--brand-b); background: rgba(209,35,45,.12); border: 1px solid rgba(209,35,45,.3); }
.tc-rank { font-size: .78rem; color: var(--text-mute); margin-top: 1px; }

.tc-star {
    flex: none; background: none; border: none; color: var(--text-mute); font-size: 1rem; cursor: pointer;
    width: 32px; height: 32px; border-radius: var(--radius-ctrl); transition: all .18s ease;
}
.tc-star:hover { color: #f2c14e; background: var(--bg-elev-2); }
.tc-star.is-fav { color: #f2c14e; }

.tc-followers { display: flex; align-items: center; gap: .4rem; color: var(--text-dim); font-size: .82rem; margin-bottom: var(--sp-4); }
.tc-followers i { color: var(--text-mute); font-size: .8rem; }
.tc-slots {
    background: var(--bg-elev-2); border: 1px solid var(--border); border-radius: var(--radius-pill);
    padding: .1rem .5rem; font-size: .78rem; color: var(--text); font-weight: 600;
}

.tc-roi-row { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.tc-roi-label { font-size: .78rem; color: var(--text-mute); margin-bottom: 2px; }
.tc-roi { font-size: 1.7rem; font-weight: 700; line-height: 1; color: var(--pos); letter-spacing: -.01em; }
.spark { display: block; overflow: visible; }
.spark-line { transition: filter .25s ease; }
.trader-card:hover .spark-line { filter: drop-shadow(0 0 6px rgba(22,199,132,.55)); }

.tc-divider { height: 1px; background: var(--border); margin-block: var(--sp-3) var(--sp-4); }
.tc-cells { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.tc-cell-value { font-weight: 600; font-size: 1rem; }
.tc-cell-value.pos { color: var(--pos); }
.tc-cell-label { font-size: .72rem; color: var(--text-mute); margin-top: 1px; }
.tc-cell + .tc-cell { padding-left: var(--sp-4); border-left: 1px solid var(--border); }

.tc-copy {
    width: 100%; background: transparent; color: var(--brand-b); border: 1px solid var(--brand-b);
    border-radius: var(--radius-ctrl); padding: .55rem; font-weight: 600; transition: all .2s ease; cursor: pointer;
}
.tc-copy:hover { background: var(--brand-grad); color: #fff; border-color: transparent; box-shadow: 0 4px 18px var(--brand-glow); }

.trader-card.is-hidden { display: none; }

/* ------------------------------------------------------- 9. PROMO BANNERS */
.promo-banner {
    position: relative; overflow: hidden; border-radius: var(--radius-card); border: 1px solid var(--border-strong);
    padding: var(--sp-6); min-height: 180px; height: 100%;
    display: flex; flex-direction: column; justify-content: center;
    background: linear-gradient(120deg, var(--bg-elev-2), var(--bg-elev));
}
.promo-banner .promo-eyebrow { font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text-mute); margin-bottom: .5rem; }
.promo-banner h3 { font-size: 1.5rem; font-weight: 700; max-width: 16ch; margin-bottom: var(--sp-4); }
.promo-banner .promo-link { font-weight: 600; display: inline-flex; align-items: center; gap: .4rem; }
.promo-banner .promo-link i { transition: transform .2s ease; }
.promo-banner:hover .promo-link i { transform: translateX(4px); }
.promo-glow {
    position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
    font-size: 6rem; color: rgba(209,35,45,0.14); pointer-events: none;
}
.promo-b .promo-glow { color: rgba(242,193,78,0.14); }
.promo-banner::before {
    content: ""; position: absolute; right: -40px; bottom: -40px; width: 220px; height: 220px;
    background: radial-gradient(circle, var(--brand-glow), transparent 65%); pointer-events: none; opacity: .7;
}
.promo-b::before { background: radial-gradient(circle, rgba(242,193,78,0.18), transparent 65%); }

/* ------------------------------------------------------- 10. MASTER BAND */
.master-band {
    background:
        radial-gradient(80% 140% at 50% 0%, rgba(209,35,45,0.12), transparent 60%),
        linear-gradient(180deg, #0d0d11 0%, #0a0a0a 100%);
    border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
    text-align: center;
}
.master-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; letter-spacing: -.02em; margin-bottom: var(--sp-4); }
.master-band p { color: var(--text-dim); max-width: 46ch; margin: 0 auto var(--sp-5); font-size: 1.05rem; }

/* ------------------------------------------------------- 11. FAQ (BS accordion reskin) */
.faq-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-6); }
.faq-head .faq-links { display: flex; gap: var(--sp-5); }
.faq-head .faq-links a { color: var(--text-dim); font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.faq-head .faq-links a:hover { color: var(--text); }

.bts-accordion .accordion-item {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-card) !important;
    margin-bottom: var(--sp-3); overflow: hidden;
}
.bts-accordion .accordion-button {
    background: transparent; color: var(--text); font-family: 'Space Grotesk', sans-serif;
    font-weight: 600; font-size: 1.05rem; padding: var(--sp-4) var(--sp-5); box-shadow: none;
}
.bts-accordion .accordion-button:not(.collapsed) { background: var(--bg-elev-2); color: var(--text); }
.bts-accordion .accordion-button::after { display: none; } /* kill default BS chevron image */
.bts-accordion .accordion-button .faq-chevron {
    margin-left: auto; color: var(--brand-b); transition: transform .3s ease; font-size: .9rem;
}
.bts-accordion .accordion-button[aria-expanded="true"] .faq-chevron { transform: rotate(180deg); }
.bts-accordion .accordion-body { color: var(--text-dim); padding: 0 var(--sp-5) var(--sp-5); font-size: .95rem; line-height: 1.65; }

.risk-disclosure { color: var(--text-mute); font-size: .8rem; line-height: 1.6; margin-top: var(--sp-6);
    padding: var(--sp-4); border: 1px dashed var(--border); border-radius: var(--radius-ctrl); }

/* ---------------------------------------------- 11.5 CONTACT + FORM */
.contact-section {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    background:
        linear-gradient(180deg, #0c0c11 0%, #0a0a0d 100%);
}
/* subtle dot grid, fading out toward edges */
.contact-section::before {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background-image: radial-gradient(rgba(255,255,255,0.05) 1px, transparent 1.4px);
    background-size: 24px 24px;
    -webkit-mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
            mask-image: radial-gradient(120% 90% at 70% 40%, #000 30%, transparent 75%);
    opacity: .6;
}
/* diagonal brand sheen across the band */
.contact-section::after {
    content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
    background: linear-gradient(135deg, rgba(209,35,45,0.10) 0%, transparent 40%);
}
/* soft glowing orbs behind the form */
.contact-decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.contact-orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; }
.contact-orb--1 { width: 340px; height: 340px; right: -60px; top: -80px;
    background: radial-gradient(circle, rgba(209,35,45,0.55), transparent 70%); }
.contact-orb--2 { width: 300px; height: 300px; left: -70px; bottom: -90px;
    background: radial-gradient(circle, rgba(175,32,40,0.40), transparent 70%); opacity: .4; }

/* split card: brand info panel (left) + form panel (right) */
.contact-shell {
    position: relative; display: flex; overflow: hidden;
    border: 1px solid var(--border-strong); border-radius: var(--radius-card);
    background: linear-gradient(165deg, rgba(23,23,29,0.96) 0%, rgba(16,16,20,0.96) 100%);
    -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.02) inset, 0 12px 50px rgba(209,35,45,0.10);
}

/* left brand panel */
.contact-aside {
    flex: 0 0 40%; position: relative; overflow: hidden; display: flex;
    padding: var(--sp-7) var(--sp-6);
    background: linear-gradient(160deg, var(--brand-a) 0%, #8f171d 55%, #5c1015 100%);
    color: #fff;
}
.contact-aside::before {
    content: ""; position: absolute; right: -90px; bottom: -110px; width: 280px; height: 280px;
    border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.16), transparent 60%); pointer-events: none;
}
.contact-aside::after {
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: radial-gradient(rgba(255,255,255,0.10) 1px, transparent 1.4px);
    background-size: 18px 18px;
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 72%);
            mask-image: linear-gradient(180deg, #000, transparent 72%);
}
.contact-aside-inner { position: relative; z-index: 1; display: flex; flex-direction: column; width: 100%; }
.contact-aside-eyebrow { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.78); }
.contact-aside-title { font-family: 'Space Grotesk', sans-serif; font-size: clamp(1.6rem, 2.6vw, 2.15rem); font-weight: 700; letter-spacing: -.02em; line-height: 1.08; margin: var(--sp-3) 0 var(--sp-4); }
.contact-aside-text { color: rgba(255,255,255,0.85); font-size: .95rem; line-height: 1.6; margin-bottom: var(--sp-5); }
.contact-points { list-style: none; padding: 0; margin: 0 0 var(--sp-6); display: flex; flex-direction: column; gap: .7rem; }
.contact-points li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: rgba(255,255,255,0.92); }
.contact-points i { color: #fff; opacity: .92; font-size: .85rem; }
.contact-aside-mail {
    margin-top: auto; width: fit-content; display: inline-flex; align-items: center; gap: .5rem;
    color: #fff; font-weight: 600; font-size: .88rem;
    padding: .55rem .9rem; border: 1px solid rgba(255,255,255,0.28); border-radius: var(--radius-ctrl);
    background: rgba(255,255,255,0.08); transition: background .2s ease;
}
.contact-aside-mail:hover { color: #fff; background: rgba(255,255,255,0.18); }

/* right form panel */
.contact-form-panel { flex: 1; min-width: 0; padding: var(--sp-7) var(--sp-6); }
.contact-form-panel .form-label { font-size: .8rem; font-weight: 600; color: var(--text-dim); margin-bottom: .35rem; letter-spacing: .01em; }

@media (max-width: 991.98px) {
    .contact-shell { flex-direction: column; }
    .contact-aside { flex-basis: auto; padding: var(--sp-6); }
    .contact-aside-mail { margin-top: var(--sp-4); }
    .contact-form-panel { padding: var(--sp-6); }
}
.bts-input {
    background: var(--bg-elev-2); border: 1px solid var(--border); color: var(--text);
    border-radius: var(--radius-ctrl); padding: .65rem .85rem; font-size: .92rem;
}
.bts-input::placeholder { color: var(--text-mute); }
.bts-input:focus { background: var(--bg-elev-2); border-color: var(--brand-b); color: var(--text); box-shadow: none; }
select.bts-input option { background: var(--bg-elev); color: var(--text); }
textarea.bts-input { resize: vertical; min-height: 120px; }

/* leading-icon fields */
.bts-field { position: relative; }
.bts-field > i {
    position: absolute; left: .9rem; top: 50%; transform: translateY(-50%);
    color: var(--text-mute); font-size: .85rem; pointer-events: none; z-index: 1; transition: color .18s ease;
}
.bts-field:focus-within > i { color: var(--brand-b); }
.bts-input.has-icon { padding-left: 2.4rem; }
.bts-field--area > i { top: 1rem; transform: none; }
.cf-privacy { color: var(--text-mute); font-size: .78rem; margin: .1rem 0 0; display: flex; align-items: center; gap: .45rem; }
.cf-privacy i { color: var(--text-dim); }

.bts-input.is-invalid { border-color: var(--neg); }
.cf-error { color: var(--neg); font-size: .76rem; margin-top: .3rem; min-height: .9rem; }
.cf-status { font-size: .88rem; font-weight: 600; }
.cf-status.ok { color: var(--pos); }
.cf-status.err { color: var(--neg); }

/* ------------------------------------------------------- 12. FOOTER */
.site-footer { background: #08080a; border-top: 1px solid var(--border); padding-block: var(--sp-8) var(--sp-6); }
.footer-brand { display: inline-flex; align-items: center; gap: .55rem; margin-bottom: var(--sp-4); }
.footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--sp-5); }
.footer-links a { color: var(--text-dim); font-size: .9rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); margin-top: var(--sp-6); padding-top: var(--sp-5);
    color: var(--text-mute); font-size: .82rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-3); }
.footer-social { display: flex; gap: var(--sp-2); }

/* ------------------------------------------------------- 13. REVEAL (GSAP hooks) */
/* Reveals are VISIBLE by default (no-JS / CDN-failure safe). Only when JS marks
   the page .js-ready do they start hidden, then reveal.
   Below-fold reveals animate with CSS transitions (compositor-driven — never
   blocked by a stalled requestAnimationFrame). Hero [data-hero] items are driven
   by GSAP instead, so they get no CSS transition (avoids fighting inline styles). */
.reveal { opacity: 1; transform: none; }
.js-ready .reveal { opacity: 0; transform: translateY(24px); }
.js-ready .reveal:not([data-hero]) {
    transition: opacity .6s ease, transform .55s cubic-bezier(.2, .7, .2, 1);
}
.js-ready .reveal.is-visible { opacity: 1; transform: none; }

/* ------------------------------------------------------- 14. RESPONSIVE */
@media (max-width: 991.98px) {
    .hero { min-height: auto; padding-block: var(--sp-7) var(--sp-6); }
    .hero-card { margin-top: var(--sp-6); }
    .lb-toolbar { width: 100%; }
}
@media (max-width: 575.98px) {
    :root { --nav-h: 60px; }
    .section { padding-block: var(--sp-7); }
    .hero-stats { gap: var(--sp-4); }
    .stat + .stat { padding-left: var(--sp-4); }
    .lb-caption { flex-direction: column; align-items: flex-start; gap: var(--sp-2); }
    .bts-search--traders { min-width: 0; flex: 1; }
    .faq-head { margin-bottom: var(--sp-5); }
}

/* ------------------------------------------------------- 15. REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
    * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
    .reveal { opacity: 1 !important; transform: none !important; }
    #heroCanvas { display: none; }
    .hero { background: radial-gradient(120% 90% at 70% 15%, rgba(209,35,45,0.10), transparent 55%), var(--bg); }
}

/* ===================================================================== */
/* 16. PAMM ADDITIONS — section heads, allocation card, how-it-works,     */
/*     manager metric grid, fees block. Token-only; re-skinned Bootstrap. */
/* ===================================================================== */

/* section heads for How PAMM Works / Fees */
.section-head { margin-bottom: var(--sp-5); max-width: 62ch; }
.section-head .section-sub { color: var(--text-dim); font-size: 1rem; margin: .5rem 0 0; }

/* ---- hero allocation diagram (replaces the loss-protection card) ---- */
.hero-card--alloc .alloc {
    position: relative; z-index: 1;
    margin: var(--sp-6) 0 var(--sp-5);
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-2);
}
.alloc-row { display: flex; gap: var(--sp-2); justify-content: center; flex-wrap: wrap; }
.alloc-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .8rem; color: var(--text);
    font-variant-numeric: tabular-nums;
    background: var(--bg-elev-2); border: 1px solid var(--border-strong);
    border-radius: var(--radius-pill); padding: .25rem .6rem;
}
.alloc-chip i { color: var(--brand-b); font-size: .72rem; }
.alloc-flow {
    font-size: .66rem; color: var(--text-mute); display: inline-flex; align-items: center; gap: .35rem;
    text-transform: uppercase; letter-spacing: .06em;
}
.alloc-flow i { color: var(--brand-b); }
.alloc-pool {
    display: inline-flex; align-items: center; gap: .5rem;
    background: var(--brand-grad-135); color: #fff; font-weight: 600; font-size: .92rem;
    border-radius: var(--radius-ctrl); padding: .55rem 1rem; box-shadow: 0 8px 24px var(--brand-glow);
}
.alloc-tag { font-size: .84rem; color: var(--text-dim); display: inline-flex; align-items: center; gap: .35rem; }
.alloc-tag .num { font-family: 'Space Grotesk', sans-serif; font-weight: 700; }

/* ---- How PAMM Works cards ---- */
.how-card {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: var(--sp-5); height: 100%; position: relative; overflow: hidden;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.how-card:hover { transform: translateY(-4px); border-color: var(--brand-b); box-shadow: var(--shadow-hover); }
.how-step {
    position: absolute; top: var(--sp-3); right: var(--sp-4);
    font-family: 'Space Grotesk', sans-serif; font-size: 2.4rem; font-weight: 700; line-height: 1;
    color: rgba(255,255,255,0.05);
}
.how-icon {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px;
    font-size: 1.35rem; color: var(--brand-b); background: rgba(209,35,45,0.10);
    border: 1px solid rgba(209,35,45,0.25); margin-bottom: var(--sp-4); transition: all .25s ease;
}
.how-card:hover .how-icon { background: var(--brand-grad-135); color: #fff; border-color: transparent; }
.how-card h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .4rem; }
.how-card p { color: var(--text-dim); font-size: .9rem; margin: 0; }

/* ---- manager card metric grid (replaces the 2-cell trader footer) ---- */
.mc-grid {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: var(--sp-4) var(--sp-3); margin-bottom: var(--sp-4);
}
.mc-cell { min-width: 0; }
.mc-val {
    font-family: 'Space Grotesk', sans-serif; font-weight: 600; font-size: .98rem; line-height: 1.1;
    white-space: nowrap;
}
.mc-lbl {
    font-size: .68rem; color: var(--text-mute); margin-top: 3px; line-height: 1.2;
    display: flex; align-items: center; gap: .25rem; flex-wrap: wrap;
}
.hwm {
    font-size: .56rem; font-weight: 700; letter-spacing: .04em; color: var(--brand-b);
    background: rgba(209,35,45,0.12); border: 1px solid rgba(209,35,45,0.25);
    border-radius: var(--radius-pill); padding: 0 .28rem; cursor: help;
}

/* manager meta chips: skin-in-the-game / track record / risk (last row of card) */
.mc-meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.mc-chip {
    display: inline-flex; align-items: center; gap: .3rem;
    font-size: .72rem; color: var(--text-dim); font-weight: 500;
    background: var(--bg-elev-2); border: 1px solid var(--border);
    border-radius: var(--radius-pill); padding: .2rem .55rem;
}
.mc-chip i { color: var(--text-mute); font-size: .72rem; }
.mc-chip .num { font-family: 'Space Grotesk', sans-serif; font-weight: 600; }
.risk-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; }
.risk-low    { color: #8fe3bf; } .risk-low    .risk-dot { background: var(--pos); }
.risk-medium { color: #f0d69a; } .risk-medium .risk-dot { background: #f2c14e; }
.risk-high   { color: #f0b48f; } .risk-high   .risk-dot { background: #e8622a; }

/* ---- Fees & Allocation cards ---- */
.fee-card {
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-card);
    padding: var(--sp-5); height: 100%;
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.fee-card:hover { transform: translateY(-3px); border-color: var(--border-strong); box-shadow: var(--shadow-card); }
.fee-icon {
    width: 46px; height: 46px; display: grid; place-items: center; border-radius: 12px;
    font-size: 1.15rem; color: var(--brand-b); background: rgba(209,35,45,0.10);
    border: 1px solid rgba(209,35,45,0.25); margin-bottom: var(--sp-4);
}
.fee-card h3 { font-size: 1.05rem; font-weight: 600; margin-bottom: .4rem; }
.fee-card p { color: var(--text-dim); font-size: .9rem; margin: 0; }
.fee-card p em { color: var(--text); font-style: normal; font-weight: 600; }

/* compliance line in footer */
.footer-compliance {
    color: var(--text-mute); font-size: .78rem; line-height: 1.5; margin: var(--sp-4) 0 0; max-width: 78ch;
}

@media (max-width: 400px) {
    .mc-grid { grid-template-columns: repeat(2, 1fr); }
}
