/* Broker integrations — RocketStock Brand Guidelines */

body.rs-marketing.rs-integrations {
    overflow-x: hidden;
    margin-bottom: 0;
    max-width: 100%;
}

.rs-integrations {
    /* ── RocketStock Brand Tokens ── */
    --brand-primary:   #FF6600;   /* RocketStock Orange */
    --brand-accent:    #FF8C40;   /* Orange 75% tint */
    --brand-peach:     #FFD9BF;   /* Orange 25% tint / peach */
    --brand-peach-soft:#FFF4EE;   /* Very light peach surface */
    --brand-dark:      #1A1A1A;   /* Near-black */
    --brand-soft:      #F9FAFB;   /* Neutral light surface */
    --brand-green:     #697E70;   /* RocketStock Green (secondary) */
    --brand-blue:      #00239C;   /* RocketStock Blue (secondary) */
    --profit:          #16A34A;
    --loss:            #DC2626;
    --text-primary:    #1A1A1A;
    --text-muted:      #6B7280;
    --border-subtle:   rgba(26, 26, 26, 0.08);
    --gradient-brand:  linear-gradient(135deg, #FF6600 0%, #FF8C40 100%);
    font-family: 'Sharp Sans', 'Avenir', 'Helvetica Neue', Arial, sans-serif;
}

/* Hero — match Home peach */
.rs-int-hero {
    position: relative;
    background: var(--brand-peach, #FFD9BF);
    padding: 3.5rem 0 4rem;
    overflow: hidden;
}

.rs-int-hero h1 .text-orange {
    color: var(--brand-primary, #FF6600);
}

.rs-int-hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.7;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 102,  0, 0.10) 0%, transparent 42%),
        radial-gradient(circle at 8% 78%,  rgba(255, 217, 191, 0.35) 0%, transparent 40%),
        radial-gradient(circle at 50% 110%, rgba(0,  35, 156, 0.05) 0%, transparent 55%);
}

/* RocketStock brand pattern circles — decorative orange circles */
.rs-int-hero-pattern::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255,102,0,0.06) 1px, transparent 1px);
    background-size: 32px 32px;
    mask-image: radial-gradient(ellipse at 80% 20%, black 10%, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at 80% 20%, black 10%, transparent 65%);
}

.rs-int-hero .container { position: relative; z-index: 1; }

.rs-int-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--brand-primary);
    margin-bottom: 0.75rem;
}

.rs-int-hero h1 {
    font-size: clamp(2rem, 5vw, 3.1rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.rs-int-lead {
    font-size: 1.1rem;
    line-height: 1.65;
    color: var(--text-muted);
    max-width: 520px;
    margin-bottom: 1.75rem;
}

.rs-int-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.rs-int-trust-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.rs-int-trust-row i {
    color: var(--brand-primary);
    margin-right: 0.35rem;
}

/* Integration hub visual */
.rs-int-hub {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rs-int-hub svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.rs-int-hub-line {
    stroke-dasharray: 8 5;
    animation: rsHubFlow 2.8s linear infinite;
}

@keyframes rsHubFlow {
    0% { stroke-dashoffset: 26; }
    100% { stroke-dashoffset: 0; }
}

.rs-int-hub-center {
    position: relative;
    z-index: 2;
    width: 96px;
    height: 96px;
    border-radius: 18px;
    background: #fff;
    border: 1.5px solid rgba(255, 102, 0, 0.20);
    box-shadow:
        0 12px 36px rgba(255, 102, 0, 0.14),
        0 0 0 0 rgba(255, 102, 0, 0);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: rsHubFloat 5s ease-in-out infinite,
               rsHubGlow  3s ease-in-out infinite;
}

@keyframes rsHubGlow {
    0%, 100% { box-shadow: 0 12px 36px rgba(255,102,0,0.14), 0 0 0 0 rgba(255,102,0,0); }
    50%       { box-shadow: 0 16px 44px rgba(255,102,0,0.22), 0 0 0 10px rgba(255,102,0,0.07); }
}

.rs-int-hub-logo {
    height: 40px;
    object-fit: contain;
}

.rs-int-hub-mark {
    font-size: 1.5rem;
    font-weight: 800;
    background: var(--gradient-brand);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.rs-int-hub-platform {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 4px;
}

@keyframes rsHubFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-6px); }
}

.rs-int-hub-node {
    position: absolute;
    z-index: 2;
    text-align: center;
    animation: rsHubFloat 5s ease-in-out infinite;
}

.rs-int-hub-node .node-badge {
    width: 64px;
    height: 64px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.25rem;
    color: #fff;
    box-shadow: 0 8px 24px rgba(17, 24, 39, 0.18);
}

.rs-int-hub-node .node-label {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-top: 0.35rem;
}

.rs-int-hub-node.pos-top { top: 0; left: 50%; transform: translateX(-50%); }
.rs-int-hub-node.pos-tr { top: 50%; right: 0; transform: translateY(-50%); }
.rs-int-hub-node.pos-bl { bottom: 8%; left: 4%; }
.rs-int-hub-node.pos-br { bottom: 8%; right: 4%; }

/* Sections */
.rs-int-section {
    padding: 4rem 0;
}

.rs-int-section-alt {
    background: #fff;
}

.rs-int-section-title {
    font-size: clamp(1.5rem, 3vw, 2rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

.rs-int-section-subtitle {
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
}

/* Broker cards */
.rs-int-broker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.rs-int-broker-card {
    background: #fff;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    transition: transform 0.25s, box-shadow 0.25s, border-color 0.25s;
    cursor: pointer;
}

.rs-int-broker-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 40px rgba(255, 102, 0, 0.10);
    border-color: rgba(255, 102, 0, 0.24);
}

.rs-int-broker-accent {
    height: 4px;
    width: 100%;
}

.rs-int-broker-body { padding: 1.5rem 1.6rem; }

.rs-int-broker-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.rs-int-broker-logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    color: #fff;
    flex-shrink: 0;
}

.rs-int-broker-name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.rs-int-broker-domain {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.rs-int-status {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.3rem 0.65rem;
    border-radius: 999px;
    white-space: nowrap;
}

.rs-int-status.active {
    background: rgba(255, 102, 0, 0.09);
    color: var(--brand-primary);
    border: 1px solid rgba(255, 102, 0, 0.20);
}

.rs-int-status.connected {
    background: rgba(22, 199, 132, 0.12);
    color: var(--profit);
    border: 1px solid rgba(22, 199, 132, 0.3);
}

.rs-int-broker-tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.rs-int-metric-list {
    list-style: none;
    padding: 0;
    margin: 0 0 1.25rem;
}

.rs-int-metric-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.88rem;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    line-height: 1.45;
}

.rs-int-metric-list i {
    color: var(--profit);
    margin-top: 0.2rem;
    font-size: 0.7rem;
}

.rs-int-broker-foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 102, 0, 0.09);
    font-size: 0.8rem;
}

.rs-int-broker-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-decoration: none;
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
    border: 1.5px solid var(--broker-color, #FF6600);
    color: var(--broker-color, #FF6600) !important;
    background: transparent;
    letter-spacing: 0.01em;
    transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease, transform 0.18s cubic-bezier(.34,1.56,.64,1);
    white-space: nowrap;
}

.rs-int-broker-btn:hover {
    background: var(--broker-color, #FF6600);
    color: #fff !important;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px var(--broker-glow, rgba(255,102,0,0.28));
}

/* Timeline */
.rs-int-timeline {
    max-width: 640px;
    margin: 0 auto;
    padding-left: 2rem;
    border-left: 2px solid transparent;
    border-image: var(--gradient-brand) 1;
}

.rs-int-step {
    position: relative;
    padding-bottom: 2.5rem;
}

.rs-int-step:last-child { padding-bottom: 0; }

.rs-int-step-icon {
    position: absolute;
    left: -2.65rem;
    top: 0;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: #fff;
    border: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    box-shadow: 0 4px 12px rgba(255, 102, 0, 0.09);
}

.rs-int-step-num {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--brand-primary);
}

.rs-int-step h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0.25rem 0 0.5rem;
}

.rs-int-step p {
    font-size: 0.92rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.6;
}

/* Graphite trust band */
.rs-int-trust-band {
    background: #fff;
    border-top: 1px solid rgba(255, 179, 128, 0.4);
    border-bottom: 1px solid rgba(255, 179, 128, 0.4);
    padding: 4rem 0;
}

.rs-int-trust-card {
    background: #fff;
    border: 1px solid rgba(255, 179, 128, 0.45);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 8px 24px rgba(26, 26, 26, 0.06);
}

.rs-int-trust-band h2 {
    font-size: clamp(1.4rem, 3vw, 1.9rem);
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.rs-int-trust-band p {
    color: var(--text-muted);
    line-height: 1.65;
    margin-bottom: 1.5rem;
}

.rs-int-trust-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.88rem;
}

.rs-int-trust-pills i { margin-right: 0.4rem; }

.rs-int-trust-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
}

.rs-int-trust-tile {
    background: var(--brand-peach-soft, #FFF4EE);
    border: 1px solid rgba(255, 179, 128, 0.35);
    border-radius: 12px;
    padding: 1.1rem;
    text-align: center;
}

.rs-int-trust-tile i {
    font-size: 1.35rem;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.rs-int-trust-tile .title {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rs-int-trust-tile .sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.2rem;
}

/* DMA callout */
.rs-int-dma-band {
    background: rgba(255, 102, 0, 0.05);
    border-top: 1px solid var(--border-subtle);
    border-bottom: 1px solid var(--border-subtle);
    padding: 2.5rem 0;
    text-align: center;
}

.rs-int-dma-band .label {
    font-size: 0.78rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-primary);
    margin-bottom: 0.5rem;
}

.rs-int-dma-band h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.65rem;
}

.rs-int-dma-band p {
    font-size: 0.92rem;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

.rs-int-dma-band strong { color: var(--text-primary); }
.rs-int-dma-band .accent { color: var(--brand-primary); }

/* Modal */
.rs-int-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    background: rgba(17, 24, 39, 0.55);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.rs-int-modal {
    background: #fff;
    border-radius: 16px;
    border: 1px solid var(--border-subtle);
    box-shadow: 0 24px 64px rgba(17, 24, 39, 0.2);
    max-width: 480px;
    width: 100%;
    padding: 1.75rem;
    position: relative;
}

.rs-int-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: none;
    background: transparent;
    color: var(--text-muted);
    font-size: 1.25rem;
    cursor: pointer;
}

.rs-int-modal h3 {
    font-size: 1.35rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 0.35rem;
}

.rs-int-modal .tagline {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.rs-int-modal ul {
    list-style: none;
    padding: 0;
    margin: 0 0 1.5rem;
}

.rs-int-modal ul li {
    font-size: 0.9rem;
    color: var(--text-primary);
    margin-bottom: 0.45rem;
    padding-left: 1rem;
    position: relative;
}

.rs-int-modal ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.55rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--brand-accent);
}

/* Animations */
.rs-int-fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}

.rs-int-fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

[x-cloak] { display: none !important; }

@media (max-width: 991px) {
    .rs-int-hero { padding: 2.5rem 0 3rem; }
    .rs-int-hub { min-height: 300px; margin-top: 2rem; }
    .rs-int-hub-node.pos-bl { left: 0; }
    .rs-int-hub-node.pos-br { right: 0; }
}
