/* TRADE MATRIX HUB GLOBAL - Institutional Fintech Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
    --bg-dark: #07090e;
    --bg-card-dark: #0d111a;
    --bg-surface-dark: #121824;
    --border-dark: #1c2536;
    --border-subtle-dark: #161e2e;
    --text-primary-dark: #f8fafc;
    --text-secondary-dark: #94a3b8;
    --text-muted-dark: #64748b;

    --brand-blue: #0284c7;
    --brand-cyan: #06b6d4;
    --brand-green: #10b981;
    --brand-red: #ef4444;
    --brand-gold: #f59e0b;

    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
}

/* Light Theme Variables */
.theme-light {
    --bg-dark: #f8fafc;
    --bg-card-dark: #ffffff;
    --bg-surface-dark: #f1f5f9;
    --border-dark: #e2e8f0;
    --border-subtle-dark: #cbd5e1;
    --text-primary-dark: #0f172a;
    --text-secondary-dark: #475569;
    --text-muted-dark: #64748b;
}

body {
    font-family: var(--font-sans);
    background-color: var(--bg-dark);
    color: var(--text-primary-dark);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.font-mono {
    font-family: var(--font-mono);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
}
::-webkit-scrollbar-thumb {
    background: rgba(100, 116, 139, 0.4);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(148, 163, 184, 0.6);
}

/* Glassmorphism */
.glass-panel {
    background: rgba(13, 17, 26, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--border-dark);
}

.glass-card {
    background: linear-gradient(135deg, rgba(18, 24, 36, 0.8) 0%, rgba(13, 17, 26, 0.9) 100%);
    backdrop-filter: blur(8px);
    border: 1px solid var(--border-dark);
}

.theme-light .glass-panel {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid #e2e8f0;
}
.theme-light .glass-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

/* Ticker Animation */
@keyframes ticker {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-50%, 0, 0); }
}

.ticker-wrap {
    overflow: hidden;
    white-space: nowrap;
}

.ticker-move {
    display: inline-flex;
    animation: ticker 35s linear infinite;
}

.ticker-move:hover {
    animation-play-state: paused;
}

/* Financial Badges */
.badge-up {
    color: #10b981;
    background-color: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-down {
    color: #ef4444;
    background-color: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.25);
}

/* Glow highlights */
.glow-primary {
    box-shadow: 0 0 25px -5px rgba(2, 132, 199, 0.35);
}

.glow-green {
    box-shadow: 0 0 20px -5px rgba(16, 185, 129, 0.3);
}

/* Active navigation indicators */
.nav-link.active {
    color: #38bdf8;
    background-color: rgba(2, 132, 199, 0.12);
    border-color: rgba(56, 189, 248, 0.3);
}

/* Grid overlay background for hero */
.bg-grid-pattern {
    background-image: radial-gradient(rgba(56, 189, 248, 0.08) 1px, transparent 1px);
    background-size: 28px 28px;
}

/* Toast container */
#toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}

.toast {
    pointer-events: auto;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* =========================================================================
   SignalLab Theme Styling & Animations
   ========================================================================= */

.font-rajdhani {
    font-family: 'Rajdhani', sans-serif;
}

.text--base {
    color: #FB3640 !important;
}

.bg--base {
    background-color: #FB3640 !important;
}

.border--base {
    border-color: #FB3640 !important;
}

.btn--base {
    background-color: #FB3640;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.75rem 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 15px rgba(251, 54, 64, 0.25);
}

.btn--base:hover {
    background-color: #e02832;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 54, 64, 0.4);
    color: #ffffff;
}

.btn-outline--base {
    border: 2px solid #FB3640;
    color: #ffffff;
    font-family: 'Rajdhani', sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.7rem 1.75rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.btn-outline--base:hover {
    background-color: #FB3640;
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(251, 54, 64, 0.35);
}

/* Radar Animation */
.hero__radar {
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    width: 480px;
    height: 480px;
    pointer-events: none;
    z-index: 1;
}

@media (max-width: 1024px) {
    .hero__radar {
        display: none;
    }
}

.hero__radar-content {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero__radar .circle-ring-1 {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1px dashed rgba(251, 54, 64, 0.25);
}

.hero__radar .circle-ring-2 {
    position: absolute;
    inset: 15%;
    border-radius: 50%;
    border: 1px solid rgba(251, 54, 64, 0.3);
}

.hero__radar .circle-ring-3 {
    position: absolute;
    inset: 32%;
    border-radius: 50%;
    border: 1px solid rgba(251, 54, 64, 0.45);
    background: radial-gradient(circle, rgba(251, 54, 64, 0.15) 0%, transparent 70%);
}

.hero__radar .circle-ring-4 {
    position: absolute;
    inset: 45%;
    border-radius: 50%;
    background: #FB3640;
    box-shadow: 0 0 25px #FB3640;
    animation: radarCenterPulse 2s ease-in-out infinite;
}

.hero__radar .radar-scanner {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: conic-gradient(from 0deg, rgba(251, 54, 64, 0.45) 0deg, rgba(251, 54, 64, 0.1) 45deg, transparent 75deg, transparent 360deg);
    animation: spinScanner 4s linear infinite;
}

@keyframes spinScanner {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

@keyframes radarCenterPulse {
    0%, 100% { transform: scale(0.9); opacity: 0.8; }
    50% { transform: scale(1.1); opacity: 1; box-shadow: 0 0 35px #FB3640; }
}

.radar-dot {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FB3640;
    box-shadow: 0 0 12px #FB3640;
    animation: radarDotPulse 2s infinite ease-in-out;
}

@keyframes radarDotPulse {
    0%, 100% { transform: scale(0.7); opacity: 0.3; }
    50% { transform: scale(1.4); opacity: 1; box-shadow: 0 0 22px #FB3640; }
}

/* Card Designs matching SignalLab */
.work-card {
    background: #132D39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.2rem 1.8rem;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.work-card:hover {
    border-color: #FB3640;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.choose-card {
    background: #132D39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2.5rem 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.choose-card:hover {
    border-color: #FB3640;
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.overview-card {
    background: #132D39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    transition: all 0.3s ease;
}

.overview-card:hover {
    border-color: #FB3640;
    transform: translateY(-4px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

.package-card {
    background: #132D39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 2.5rem 2rem;
    text-align: center;
    position: relative;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.package-card:hover, .package-card.featured {
    border-color: #FB3640;
    box-shadow: 0 15px 35px rgba(251, 54, 64, 0.15);
    transform: translateY(-6px);
}

.testimonial-card {
    background: #132D39;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
    height: 100%;
}

.testimonial-card:hover {
    border-color: #FB3640;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}

/* Floating Cookie Consent */
.cookies-card {
    position: fixed;
    bottom: 20px;
    left: 20px;
    max-width: 480px;
    background: #0d222b;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 22px;
    z-index: 99999;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    transition: all 0.4s ease;
}

.cookies-card.hidden-cookie {
    transform: translateY(150%);
    opacity: 0;
    pointer-events: none;
}
