/* Cinematic Hero Loop & GMI Overlay (Real Video Version) */

.hero-video-mimic {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-scene {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 2s ease-in-out, transform 10s ease-out;
    transform: scale(1.0);
    /* Add a subtle blue tint via filter to match Bloomberg/Palantir branding */
    filter: sepia(0.2) hue-rotate(180deg) saturate(0.6) contrast(1.1);
}

.hero-scene.active {
    opacity: 0.8;
    transform: scale(1.15); /* Slow drone motion */
    z-index: 2;
}

.hero-scene.exiting {
    opacity: 0;
    transform: scale(1.2);
    z-index: 1;
}

/* Global Market Intelligence Overlay */
.gmi-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 8, 30, 0.7) 100%);
}

.gmi-grid {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 80px 80px;
}

.gmi-scanline {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 8px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.05), transparent);
    animation: scanline 6s linear infinite;
    opacity: 0.5;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100vh); }
}

/* Secondary Strain Ticker Styling */
.gmi-marquee-content-strains {
    display: flex;
    font-family: 'Inter', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.gmi-ticker-strain-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-right: 40px;
}

.gmi-ticker-strain-item span.strain { color: rgba(255, 255, 255, 0.9); font-weight: 700; }
.gmi-ticker-strain-item span.batch { color: rgba(255, 255, 255, 0.4); font-size: 10px; }
.gmi-ticker-strain-item span.price { color: #fff; text-transform: uppercase; }
.gmi-ticker-strain-item span.up { color: rgba(255, 255, 255, 0.9); }
.gmi-ticker-strain-item span.down { color: rgba(255, 255, 255, 0.4); }

/* Horizontal Marquee Company Ticker */
.gmi-marquee-content {
    display: flex;
    font-family: 'Inter', monospace;
    font-size: 11px;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
}

.gmi-ticker-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-right: 40px;
}

.gmi-ticker-item span.comp { color: white; font-weight: 600; text-transform: uppercase; }
.gmi-ticker-item span.up { color: rgba(255, 255, 255, 0.9); }
.gmi-ticker-item span.down { color: rgba(255, 255, 255, 0.4); }

@keyframes marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

.animate-marquee {
    animation: marquee 35s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 45s linear infinite;
}

.animate-marquee-reverse {
    animation: marquee-reverse 45s linear infinite;
}

/* 
 * ------------------------------------------------------------------
 * Unified Intelligence Reveal System (REBUILD)
 * Bar opens -> Info reveals -> Info closes -> Bar disappears
 * ------------------------------------------------------------------
 */

#intel-reveal-system {
    right: 0;
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-base {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    opacity: 0;
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.9s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-base.active-bar {
    opacity: 1;
    transform: translateX(0);
}

.reveal-bar {
    width: 250px;
    background: #000410;
    border: 1px solid rgba(0, 88, 189, 0.3);
    border-right: none;
    padding: 10px 16px;
    backdrop-filter: blur(10px);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    gap: 12px;
}

.reveal-bar .status-dot {
    width: 6px;
    height: 6px;
    background: #0058bd;
    border-radius: 50%;
    box-shadow: 0 0 8px #0058bd;
}

.reveal-bar .label {
    font-family: 'Inter', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: rgba(255, 255, 255, 0.9);
}

.reveal-content {
    width: 250px;
    background: rgba(0, 4, 16, 0.9);
    border-left: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    transform: scaleY(0) translateY(-10px);
    transform-origin: top;
    opacity: 0;
    overflow: hidden;
    height: auto;
    transition: transform 0.8s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal-base.active-content .reveal-content {
    transform: scaleY(1) translateY(0);
    opacity: 1;
    padding: 16px;
}

.reveal-content p {
    font-family: 'Manrope', sans-serif;
    font-size: 11px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 300;
}

.reveal-bar.market-node .status-dot { background: #10b981; box-shadow: 0 0 8px #10b981; }
.reveal-bar.market-node .label { color: #10b981; }
