/* ==========================================================================
   Capital Mindset - Premium Institutional Trading Stylesheet
   ========================================================================== */

:root {
    --bg-black: #050505;
    --bg-dark: #0a0a0a;
    --bg-darker: #111111;
    --gold: #D4AF37;
    --gold-dim: rgba(212, 175, 55, 0.1);
    --gold-hover: #F3E5AB;
    --text-white: #F8F9FA;
    --text-gray: #A0A0A0;
    
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;
    
    --glass-bg: rgba(15, 15, 15, 0.5);
    --glass-border: rgba(212, 175, 55, 0.25);
}

/* --- Base --- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: var(--gold) var(--bg-black); }
body { background-color: var(--bg-dark); color: var(--text-white); font-family: var(--font-body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-black); }
::-webkit-scrollbar-thumb { background: var(--gold); border-radius: 10px; }

/* Typography */
.font-heading { font-family: var(--font-heading); }
.font-body { font-family: var(--font-body); }
.terminal-font { font-family: var(--font-mono); }
.gold-text { color: var(--gold) !important; }
.text-gray { color: var(--text-gray) !important; }
.bg-black { background-color: var(--bg-black) !important; }
.bg-darker { background-color: var(--bg-darker) !important; }
.tracking-wide { letter-spacing: 1px; }
.tracking-widest { letter-spacing: 2.5px; }
.py-6 { padding-top: 6rem; padding-bottom: 6rem; }
.py-7 { padding-top: 8rem; padding-bottom: 8rem; }
.max-w-600 { max-width: 600px; }

/* --- UI Enhancements --- */
.scroll-progress-container { position: fixed; top: 0; left: 0; width: 100%; height: 2px; background: transparent; z-index: 10000; }
.scroll-progress-bar { height: 100%; background: var(--gold); width: 0%; box-shadow: 0 0 10px var(--gold); }

/* Loader */
.loader-wrapper { position: fixed; inset: 0; background: var(--bg-black); display: flex; justify-content: center; align-items: center; z-index: 99999; transition: opacity 0.8s, visibility 0.8s; }
.cms-logo-spinner { width: 80px; height: 80px; border: 2px solid var(--glass-border); border-top-color: var(--gold); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-family: var(--font-heading); color: var(--gold); font-size: 20px; animation: spin 1.5s cubic-bezier(0.4, 0, 0.2, 1) infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Buttons & Links */
.btn { border-radius: 4px; padding: 0.7rem 1.8rem; transition: all 0.3s; font-family: var(--font-body); font-weight: 500; }
.btn-gold { background: var(--gold); color: #000; border: none; }
.btn-gold:hover { background: var(--gold-hover); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(212, 175, 55, 0.3); }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.2); color: #fff; }
.btn-outline-light:hover { background: #fff; color: #000; }
.btn-outline-gold { border: 1px solid var(--gold); color: var(--gold); }
.btn-outline-gold:hover { background: var(--gold); color: #000; }
.hover-gold:hover { color: var(--gold) !important; }
.hover-underline:hover { text-decoration: underline !important; }

/* Glass & Premium Cards */
.glass-panel, .glass-card { background: var(--glass-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.05); transition: all 0.4s; }
.border-gradient { border-image: linear-gradient(to bottom right, var(--glass-border), transparent) 1; border-width: 1px; border-style: solid; }
.border-top-gradient { border-top: 2px solid var(--gold); }
.shadow-premium { box-shadow: 0 10px 40px rgba(0,0,0,0.5), inset 0 0 0 1px rgba(255,255,255,0.05); }
.shadow-gold { box-shadow: 0 0 25px rgba(212, 175, 55, 0.15); }
.hover-lift:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(0,0,0,0.6); }
.hover-glow:hover { border-color: var(--gold); box-shadow: inset 0 0 20px var(--gold-dim); }
.transform-scale-105 { transform: scale(1.05); }

/* --- Navbar --- */
.glass-nav { background: rgba(5,5,5,0.8); backdrop-filter: blur(15px); border-bottom: 1px solid rgba(255,255,255,0.03); padding: 1rem 0; transition: all 0.4s; }
.glass-nav.scrolled { padding: 0.5rem 0; background: rgba(0,0,0,0.95); border-bottom-color: var(--glass-border); box-shadow: 0 5px 20px rgba(0,0,0,0.5); }
.brand-text { font-size: 1.5rem; letter-spacing: 1px; }
.nav-link { color: var(--text-white) !important; position: relative; margin: 0 0.5rem; transition: color 0.3s; }
.nav-link::after { content: ''; position: absolute; bottom: -3px; left: 0; width: 0; height: 1px; background: var(--gold); transition: width 0.3s; }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-link:hover { color: var(--gold) !important; }
.custom-toggler { border: none; }
.custom-toggler:focus { box-shadow: none; }

/* --- Navbar Logo --- */
.nav-logo {
    height: 90px;
    width: auto;
    object-fit: contain;
}

/* --- Hero Section --- */
.hero-section { min-height: 100vh; overflow: hidden; background: radial-gradient(circle at center, #111 0%, var(--bg-black) 100%); }
.hero-bg-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(212,175,55,0.02) 1px, transparent 1px), linear-gradient(90deg, rgba(212,175,55,0.02) 1px, transparent 1px); background-size: 40px 40px; }
.hero-glow { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 100%; height: 100%; background: radial-gradient(circle, rgba(212,175,55,0.08) 0%, transparent 60%); filter: blur(40px); pointer-events: none; }
.badge-premium { border: 1px solid var(--glass-border); background: var(--gold-dim); padding: 0.5rem 1rem; border-radius: 30px; font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: var(--gold); }
.hero-features li { margin-bottom: 0.8rem; font-size: 1.1rem; }
.pulse-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 5px; animation: pulse 1.5s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(40, 167, 69, 0); } 100% { box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); } }
.blink { animation: blinking 1s infinite; }
@keyframes blinking { 50% { opacity: 0; } }

/* --- TV & CMS Areas --- */
.tv-placeholder { background: repeating-linear-gradient(45deg, #0a0a0a, #0a0a0a 10px, #111 10px, #111 20px); }
.bg-premium-gradient { background: linear-gradient(180deg, var(--bg-dark) 0%, #151205 50%, var(--bg-dark) 100%); }
.bg-grid-overlay { position: absolute; inset: 0; background: url('data:image/svg+xml;utf8,<svg width="40" height="40" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h40v40H0z" fill="none"/><path d="M39.5 0v40M0 39.5h40" stroke="rgba(212,175,55,0.05)" stroke-width="1"/></svg>'); }
.hover-spin:hover { animation: spin 2s linear infinite; color: var(--gold) !important; }
.mock-chart { position: absolute; inset: 0; z-index: 0; opacity: 0.8; }
.chart-line { position: absolute; height: 1px; background: currentColor; border-top: 1px dashed currentColor; }
.chart-box { background: rgba(212, 175, 55, 0.1); }

/* --- Roadmap (Education) --- */
.roadmap-item::before { content: ''; position: absolute; left: 20px; top: 14px; bottom: -50px; width: 2px; background: rgba(212,175,55,0.3); z-index: 0; }
.roadmap-item:last-child::before { display: none; }
.roadmap-dot { z-index: 1; }

/* --- Accordion (FAQ) --- */
.custom-accordion .accordion-button { background: var(--bg-black); color: var(--text-white); box-shadow: none; border-bottom: 1px solid rgba(255,255,255,0.05); }
.custom-accordion .accordion-button:not(.collapsed) { color: var(--gold); background: var(--gold-dim); }
.custom-accordion .accordion-button::after { filter: invert(1) grayscale(100%) brightness(200%); }
.custom-accordion .accordion-button:not(.collapsed)::after { filter: invert(70%) sepia(50%) saturate(500%) hue-rotate(5deg); }

/* --- Forms & Footer --- */
.premium-input { background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.1); color: white; border-radius: 4px; padding: 0.8rem 1rem; transition: all 0.3s; }
.premium-input:focus { background: rgba(255,255,255,0.05); border-color: var(--gold); color: white; box-shadow: 0 0 10px var(--gold-dim); }
.social-btn { width: 40px; height: 40px; border: 1px solid var(--glass-border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-gray); text-decoration: none; transition: all 0.3s; }
.social-btn:hover { background: var(--gold); color: #000; border-color: var(--gold); transform: translateY(-3px); }
.footer-links li { margin-bottom: 0.5rem; }
.footer-links a { color: var(--text-gray); text-decoration: none; transition: all 0.3s; font-size: 0.9rem; }
.footer-links a:hover { color: var(--gold); padding-left: 5px; }

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .hero-section { text-align: center; padding-top: 100px; }
    .hero-features { text-align: left; margin: 0 auto; display: inline-block; }
    .transform-scale-105 { transform: none; }
    .glass-nav { background: rgba(0,0,0,0.95); }
    .roadmap-item::before { left: 16px; }
    .roadmap-dot { left: 10px !important; }
}
/* --- 1. Logo Styling --- */
.nav-logo {
    height: 125px;
    width: auto;
    object-fit: contain;
}

/* --- 2. Light Theme Logic --- */
body.light-theme {
    --bg-black: #FDFBF7 !important;
    --bg-darker: #F4EFE6 !important;
    color: #111111 !important;
    --text-gray: #4A4A4A !important;
    --gold: #B38B22 !important;
    --glass-border: rgba(0, 0, 0, 0.1) !important;
}

body.light-theme .glass-nav,
body.light-theme .glass-panel,
body.light-theme .glass-card {
    background: rgba(253, 251, 247, 0.85) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.05) !important;
}

body.light-theme .text-white { color: #111111 !important; }
body.light-theme .btn-outline-light { border-color: #111111 !important; color: #111111 !important; }
body.light-theme #theme-toggle { border-color: #111111 !important; color: #111111 !important; }
