/* ==========================================================================
INSTITUTIONAL RESOURCES, STRATEGIES & LIVE TERMINAL STYLES (resources.css)
========================================================================== */

/* 1. Institutional Hero & Quick-Jump Navigation */
.rs-hero {
position: relative;
padding: 72px 0 54px;
border-bottom: 1px solid var(--fp-border-subtle);
background:
radial-gradient(circle at 82% 18%, var(--fp-accent-glow) 0%, transparent 48%),
radial-gradient(circle at 12% 85%, var(--fp-gold-glow) 0%, transparent 45%),
var(--fp-bg-base);
overflow: hidden;
}

.rs-hero::before {
content: '';
position: absolute;
inset: 0;
background-image:
linear-gradient(to right, var(--fp-border-highlight) 1px, transparent 1px),
linear-gradient(to bottom, var(--fp-border-highlight) 1px, transparent 1px);
background-size: 48px 48px;
mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.74) 15%, transparent 78%);
-webkit-mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.74) 15%, transparent 78%);
pointer-events: none;
}

.rs-hero-inner {
position: relative;
z-index: 1;
max-width: 820px;
margin-bottom: 30px;
}

.rs-eyebrow {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 5px 12px;
border-radius: 6px;
font-size: 0.6875rem;
font-weight: 500;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--fp-accent-secondary);
background-color: var(--fp-gold-glow);
border: 1px solid var(--fp-border-subtle);
margin-bottom: 18px;
}

.rs-eyebrow-dot {
width: 6px;
height: 6px;
border-radius: 50%;
background-color: var(--fp-accent-secondary);
}

.rs-title {
font-size: clamp(2rem, 3.9vw, 2.9rem);
font-weight: 500;
line-height: 1.15;
letter-spacing: -0.03em;
color: var(--fp-text-primary);
margin-bottom: 14px;
}

.rs-lead {
font-size: 1.03125rem;
line-height: 1.65;
color: var(--fp-text-secondary);
max-width: 670px;
}

.rs-jump-bar {
position: relative;
z-index: 1;
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 8px;
}

.rs-jump-pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 8px 14px;
border-radius: 8px;
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
font-size: 0.8125rem;
font-weight: 500;
color: var(--fp-text-secondary);
transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease;
}

.rs-jump-pill:hover {
border-color: var(--fp-accent-secondary);
color: var(--fp-text-primary);
background-color: var(--fp-bg-elevated);
}

.rs-jump-num {
font-size: 0.7rem;
color: var(--fp-accent-secondary);
}

/* 2. Live TradingView Ticker Tape Container */
.rs-ticker-band {
background-color: var(--fp-bg-surface);
border-bottom: 1px solid var(--fp-border-subtle);
min-height: 46px;
overflow: hidden;
}

/* 3. Shared Section Framing */
.rs-section {
position: relative;
padding: 72px 0;
border-bottom: 1px solid var(--fp-border-subtle);
overflow: hidden;
}

.rs-section-alt {
background-color: var(--fp-bg-surface);
}

.rs-section-top {
display: flex;
align-items: flex-end;
justify-content: space-between;
flex-wrap: wrap;
gap: 20px;
margin-bottom: 36px;
}

.rs-section-head {
max-width: 650px;
}

.rs-kicker {
display: block;
font-size: 0.6875rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.08em;
color: var(--fp-accent-secondary);
margin-bottom: 10px;
}

.rs-section-title {
font-size: clamp(1.5rem, 2.6vw, 2.05rem);
font-weight: 500;
letter-spacing: -0.025em;
line-height: 1.22;
color: var(--fp-text-primary);
margin-bottom: 10px;
}

.rs-section-sub {
font-size: 0.9375rem;
line-height: 1.62;
color: var(--fp-text-secondary);
}

/* Filter Tabs */
.rs-filter-group {
display: inline-flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
padding: 5px;
border-radius: 10px;
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
}

.rs-section-alt .rs-filter-group {
background-color: var(--fp-bg-base);
}

.rs-filter-btn {
padding: 7px 13px;
border-radius: 7px;
font-size: 0.78125rem;
font-weight: 500;
color: var(--fp-text-secondary);
transition: all 0.18s ease;
}

.rs-filter-btn:hover {
color: var(--fp-text-primary);
}

.rs-filter-btn.active {
background-color: var(--fp-accent-glow);
color: var(--fp-text-primary);
border: 1px solid var(--fp-border-subtle);
}

/* 4. Quantitative Strategies Matrix */
.rs-strat-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 20px;
}

.rs-strat-card {
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
border-radius: 12px;
padding: 26px 24px;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 20px;
transition: border-color 0.2s ease, transform 0.2s ease;
}

.rs-strat-card:hover {
border-color: var(--fp-accent-secondary);
transform: translateY(-2px);
}

.rs-strat-head {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
margin-bottom: 12px;
}

.rs-strat-tag {
font-size: 0.6875rem;
font-weight: 500;
letter-spacing: 0.06em;
text-transform: uppercase;
padding: 3px 9px;
border-radius: 5px;
background-color: var(--fp-gold-glow);
color: var(--fp-accent-secondary);
border: 1px solid var(--fp-border-subtle);
}

.rs-strat-risk {
font-size: 0.725rem;
color: var(--fp-status-green);
font-weight: 500;
}

.rs-strat-card h3 {
font-size: 1.0625rem;
font-weight: 500;
color: var(--fp-text-primary);
margin-bottom: 8px;
}

.rs-strat-card p {
font-size: 0.875rem;
line-height: 1.62;
color: var(--fp-text-secondary);
}

.rs-strat-metrics {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 10px;
padding-top: 16px;
border-top: 1px solid var(--fp-border-highlight);
}

.rs-metric-box span {
display: block;
font-size: 0.6875rem;
color: var(--fp-text-muted);
margin-bottom: 2px;
}

.rs-metric-box strong {
font-size: 0.875rem;
font-weight: 500;
color: var(--fp-text-primary);
}

/* 5. Execution Technology + Dynamic Non-BTC Crypto SVG Watermarks */
.rs-tech-section {
position: relative;
}

.rs-watermark-layer {
position: absolute;
inset: 0;
pointer-events: none;
overflow: hidden;
z-index: 0;
}

.rs-crypto-wm {
position: absolute;
color: var(--fp-accent-secondary);
opacity: 0.055;
transition: transform 0.6s ease, opacity 0.3s ease;
}

[data-theme="light"] .rs-crypto-wm {
opacity: 0.045;
}

.rs-wm-eth {
top: -30px;
right: 4%;
width: 280px;
height: 280px;
animation: rsFloatSlow 14s ease-in-out infinite;
}

.rs-wm-sol {
bottom: -40px;
left: 3%;
width: 260px;
height: 260px;
animation: rsFloatSlow 17s ease-in-out infinite reverse;
}

.rs-wm-link {
top: 38%;
left: 46%;
width: 220px;
height: 220px;
animation: rsFloatSlow 20s ease-in-out infinite;
}

@keyframes rsFloatSlow {
0%, 100% { transform: translateY(0px) rotate(0deg); }
50% { transform: translateY(-14px) rotate(3deg); }
}

.rs-tech-grid {
position: relative;
z-index: 1;
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.rs-tech-card {
position: relative;
background-color: var(--fp-bg-base);
border: 1px solid var(--fp-border-subtle);
border-radius: 12px;
padding: 26px 24px;
overflow: hidden;
box-shadow: var(--fp-card-shadow);
}

.rs-card-bg-svg {
position: absolute;
right: -18px;
bottom: -22px;
width: 132px;
height: 132px;
color: var(--fp-text-primary);
opacity: 0.045;
pointer-events: none;
transition: transform 0.35s ease, opacity 0.35s ease;
}

.rs-tech-card:hover .rs-card-bg-svg {
transform: scale(1.08) rotate(-4deg);
opacity: 0.08;
}

.rs-tech-icon {
width: 38px;
height: 38px;
border-radius: 8px;
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
color: var(--fp-accent-secondary);
display: flex;
align-items: center;
justify-content: center;
margin-bottom: 16px;
}

.rs-tech-card h3 {
font-size: 1rem;
font-weight: 500;
color: var(--fp-text-primary);
margin-bottom: 8px;
}

.rs-tech-card p {
font-size: 0.84375rem;
line-height: 1.62;
color: var(--fp-text-secondary);
margin-bottom: 16px;
}

.rs-tech-spec {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.725rem;
font-weight: 500;
color: var(--fp-status-green);
background-color: var(--fp-status-green-bg);
padding: 4px 10px;
border-radius: 5px;
}

/* 6. Live Theme-Synced Multi-Asset Terminal & Broker Liquidity Widgets */
.rs-terminal-shell {
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
border-radius: 14px;
overflow: hidden;
box-shadow: var(--fp-card-shadow);
}

.rs-terminal-bar {
display: flex;
align-items: center;
justify-content: space-between;
flex-wrap: wrap;
gap: 12px;
padding: 14px 20px;
border-bottom: 1px solid var(--fp-border-subtle);
background-color: var(--fp-bg-elevated);
}

.rs-terminal-tabs {
display: flex;
align-items: center;
flex-wrap: wrap;
gap: 6px;
}

.rs-sym-btn {
padding: 6px 12px;
border-radius: 6px;
font-size: 0.78125rem;
font-weight: 500;
color: var(--fp-text-secondary);
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
transition: all 0.18s ease;
}

.rs-sym-btn:hover {
color: var(--fp-text-primary);
}

.rs-sym-btn.active {
background-color: var(--fp-accent-primary);
border-color: var(--fp-accent-primary);
color: var(--fp-text-inverse);
}

.rs-terminal-status {
display: inline-flex;
align-items: center;
gap: 7px;
font-size: 0.75rem;
color: var(--fp-text-secondary);
}

.rs-widgets-grid {
display: grid;
grid-template-columns: 1.55fr 0.85fr;
min-height: 460px;
}

.rs-chart-pane {
border-right: 1px solid var(--fp-border-subtle);
min-height: 460px;
background-color: var(--fp-bg-base);
}

.rs-overview-pane {
min-height: 460px;
background-color: var(--fp-bg-base);
}

/* Institutional Broker Spread & Venue Benchmark Table */
.rs-spread-strip {
display: grid;
grid-template-columns: repeat(4, 1fr);
border-top: 1px solid var(--fp-border-subtle);
background-color: var(--fp-bg-surface);
}

.rs-spread-cell {
padding: 16px 20px;
border-right: 1px solid var(--fp-border-subtle);
}

.rs-spread-cell:last-child {
border-right: none;
}

.rs-spread-pair {
display: flex;
align-items: center;
justify-content: space-between;
font-size: 0.78125rem;
font-weight: 500;
color: var(--fp-text-primary);
margin-bottom: 4px;
}

.rs-spread-venue {
font-size: 0.6875rem;
color: var(--fp-accent-secondary);
}

.rs-spread-val {
font-size: 0.8125rem;
color: var(--fp-text-secondary);
}

/* 7. Educational Materials & Interactive Trading Guides */
.rs-guides-grid {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 20px;
}

.rs-guide-card {
background-color: var(--fp-bg-base);
border: 1px solid var(--fp-border-subtle);
border-radius: 12px;
padding: 24px;
display: flex;
flex-direction: column;
justify-content: space-between;
gap: 18px;
transition: border-color 0.2s ease, transform 0.2s ease;
}

.rs-guide-card:hover {
border-color: var(--fp-accent-secondary);
transform: translateY(-2px);
}

.rs-guide-meta {
display: flex;
align-items: center;
justify-content: space-between;
gap: 8px;
margin-bottom: 12px;
}

.rs-guide-level {
font-size: 0.6875rem;
font-weight: 500;
text-transform: uppercase;
letter-spacing: 0.06em;
color: var(--fp-accent-secondary);
}

.rs-guide-time {
font-size: 0.725rem;
color: var(--fp-text-muted);
}

.rs-guide-card h3 {
font-size: 1rem;
font-weight: 500;
line-height: 1.4;
color: var(--fp-text-primary);
margin-bottom: 8px;
}

.rs-guide-card p {
font-size: 0.84375rem;
line-height: 1.6;
color: var(--fp-text-secondary);
}

.rs-guide-btn {
display: inline-flex;
align-items: center;
gap: 6px;
font-size: 0.8125rem;
font-weight: 500;
color: var(--fp-accent-secondary);
padding-top: 12px;
border-top: 1px solid var(--fp-border-highlight);
width: 100%;
text-align: left;
}

.rs-guide-btn:hover {
text-decoration: underline;
}

/* Interactive Guide Briefing Modal */
.rs-modal-backdrop {
position: fixed;
inset: 0;
background-color: rgba(5, 7, 11, 0.74);
backdrop-filter: blur(6px);
-webkit-backdrop-filter: blur(6px);
display: none;
align-items: center;
justify-content: center;
padding: 20px;
z-index: 1250;
}

.rs-modal-backdrop.open {
display: flex;
}

.rs-modal-dialog {
width: 100%;
max-width: 640px;
max-height: 86vh;
overflow-y: auto;
background-color: var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
border-radius: 14px;
padding: 28px 30px;
box-shadow: var(--fp-card-shadow);
}

.rs-modal-top {
display: flex;
align-items: flex-start;
justify-content: space-between;
gap: 16px;
padding-bottom: 16px;
margin-bottom: 18px;
border-bottom: 1px solid var(--fp-border-subtle);
}

.rs-modal-top h3 {
font-size: 1.25rem;
font-weight: 500;
color: var(--fp-text-primary);
margin-top: 6px;
}

.rs-modal-close {
width: 32px;
height: 32px;
border-radius: 7px;
border: 1px solid var(--fp-border-subtle);
background-color: var(--fp-bg-base);
color: var(--fp-text-secondary);
display: inline-flex;
align-items: center;
justify-content: center;
flex-shrink: 0;
}

.rs-modal-close:hover {
color: var(--fp-text-primary);
}

.rs-modal-body p {
font-size: 0.9rem;
line-height: 1.7;
color: var(--fp-text-secondary);
margin-bottom: 14px;
}

.rs-modal-footer {
display: flex;
align-items: center;
justify-content: space-between;
gap: 12px;
padding-top: 16px;
margin-top: 18px;
border-top: 1px solid var(--fp-border-subtle);
}

/* 8. Bottom Institutional CTA */
.rs-cta-section {
padding: 64px 0;
}

.rs-cta-box {
background:
radial-gradient(circle at 90% 20%, var(--fp-accent-glow) 0%, transparent 52%),
var(--fp-bg-surface);
border: 1px solid var(--fp-border-subtle);
border-radius: 14px;
padding: 40px 44px;
display: flex;
align-items: center;
justify-content: space-between;
gap: 32px;
box-shadow: var(--fp-card-shadow);
}

.rs-cta-copy h2 {
font-size: clamp(1.35rem, 2.3vw, 1.8rem);
font-weight: 500;
letter-spacing: -0.02em;
color: var(--fp-text-primary);
margin-bottom: 8px;
}

.rs-cta-copy p {
font-size: 0.9375rem;
color: var(--fp-text-secondary);
max-width: 550px;
}

.rs-cta-actions {
display: flex;
align-items: center;
gap: 12px;
flex-shrink: 0;
}

/* ==========================================================================
RESPONSIVE BREAKPOINTS
========================================================================== */
@media (max-width: 1024px) {
.rs-strat-grid,
.rs-tech-grid,
.rs-guides-grid {
grid-template-columns: 1fr;
}

.rs-widgets-grid {
grid-template-columns: 1fr;
}

.rs-chart-pane {
border-right: none;
border-bottom: 1px solid var(--fp-border-subtle);
min-height: 400px;
}

.rs-spread-strip {
grid-template-columns: repeat(2, 1fr);
}

.rs-spread-cell:nth-child(2) {
border-right: none;
}

.rs-spread-cell:nth-child(1),
.rs-spread-cell:nth-child(2) {
border-bottom: 1px solid var(--fp-border-subtle);
}

.rs-cta-box {
flex-direction: column;
align-items: flex-start;
padding: 32px 24px;
}
}

@media (max-width: 576px) {
.rs-hero {
padding: 48px 0 40px;
}

.rs-section {
padding: 48px 0;
}

.rs-spread-strip {
grid-template-columns: 1fr;
}

.rs-spread-cell {
border-right: none;
border-bottom: 1px solid var(--fp-border-subtle);
}

.rs-spread-cell:last-child {
border-bottom: none;
}

.rs-cta-actions {
width: 100%;
flex-direction: column;
}

.rs-cta-actions .fp-btn {
width: 100%;
}
}