:root {
    --bg-color: #050505;
    --card-bg: #0a0a0a;
    --text-primary: #ededed;
    --text-secondary: #a1a1aa;
    --accent: #3b82f6;
    --accent-glow: rgba(59, 130, 246, 0.15);
    --border: #27272a;
    --font-main: 'Inter', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-main);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Noise texture for premium feel */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    background: rgba(5, 5, 5, 0.8);
    backdrop-filter: blur(12px);
    z-index: 100;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.nav-logo {
    height: 40px;
    width: 40px;
    object-fit: contain;
    border-radius: 4px;
    /* Slight roundness */
}

.logo-text {
    font-weight: 700;
    letter-spacing: -0.02em;
    font-size: 1.25rem;
}

.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: var(--text-primary);
}

.nav-separator {
    color: rgba(255, 255, 255, 0.1);
    font-weight: 300;
    font-size: 1.2rem;
    margin: 0 0.5rem;
}

.nav-num {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.75rem;
    margin-right: 4px;
    opacity: 0.8;
}

.nav-cta {
    border: 1px solid var(--border);
    padding: 0.5rem 1rem;
    border-radius: 4px;
    color: var(--text-primary) !important;
}

.nav-cta:hover {
    border-color: var(--accent);
    background: var(--accent-glow);
}

.nav-cta .nav-num {
    color: inherit;
    /* Keep readable on button */
    opacity: 0.6;
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-block;
    height: 100%;
    /* Ensure full height for hitting target */
}

.dropdown-trigger {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 0.5rem 0;
    /* Add padding to trigger */
}

.dropdown-arrow {
    font-size: 0.7em;
    transition: transform 0.3s ease;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(12px);

    min-width: 200px;
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    /* margin-top: 0.5rem;  <-- REMOVED to kill the hover gap */
}

/* Invisible bridge to prevent menu closing during mouse travel */
.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 20px;
    /* Bridge the gap */
    background: transparent;
}

.nav-dropdown:hover .dropdown-content {
    display: block;
    animation: fadeIn 0.2s ease-out;
}

.dropdown-content a {
    color: var(--text-secondary);
    padding: 0.75rem 1.25rem;
    text-decoration: none;
    display: block;
    font-size: 0.85rem;
    border-left: 2px solid transparent;
    transition: all 0.2s ease;
}

.dropdown-content a:hover {
    background: rgba(255, 255, 255, 0.05);
    color: white;
    border-left-color: var(--accent);
    padding-left: 1.5rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0 5%;
    overflow: hidden;
}

.hero-section.dragging {
    user-select: none;
    -webkit-user-select: none;
    cursor: grabbing;
}

.hero-section.dragging * {
    user-select: none;
    -webkit-user-select: none;
}

#hero-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    user-select: none;
    -webkit-user-select: none;
    cursor: default;
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%);
}

/* On touch/mobile devices - keep canvas non-interactive but scrollable */
@media (pointer: coarse),
(max-width: 768px) {
    #hero-canvas {
        pointer-events: none;
        touch-action: none;
        -webkit-touch-callout: none;
    }
}

.hero-content {
    max-width: 800px;
    z-index: 10;
}

.hero-title {
    font-size: 5rem;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(to right, #fff, #9CA3AF);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    max-width: 600px;
}

/* Subtle Holdings Float Button */
.holdings-float-btn {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.3s ease;
    z-index: 20;
}

.holdings-float-btn:hover {
    background: rgba(20, 20, 20, 0.9);
    border-color: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
    transform: translateY(-2px);
}

.holdings-float-btn svg {
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.holdings-float-btn:hover svg {
    opacity: 1;
    color: var(--accent);
}

.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 2px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.btn-primary {
    background: white;
    color: black;
}

.btn-primary:hover {
    background: #e5e5e5;
    transform: translateY(-2px);
}

/* Sections */
.section {
    padding: 8rem 5%;
    position: relative;
    border-bottom: 1px solid rgba(255, 255, 255, 0.03);
    background: transparent;
}

.dark-bg {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(5px);
}

.tech-bg {
    background: rgba(5, 5, 5, 0.2);
}

/* Stat Box Base Styles (complements inline styles) */
.stat-box {
    position: relative;
    overflow: hidden;
    transition: border-color 0.3s ease;
    border: 1px solid transparent;
    /* Prepare for hover */
}

.stat-box:hover {
    border-color: rgba(255, 255, 255, 0.1);
}

.stat-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.stat-box:hover::before {
    opacity: 1;
}

.stat-box>* {
    position: relative;
    z-index: 2;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.section-number {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--accent);
    opacity: 0.8;
    font-weight: 400;
    letter-spacing: 0.05em;
    transform: translateY(2px);
    /* visual alignment */
}

.section-line {
    width: 60px;
    height: 2px;
    background: var(--accent);
}

/* Grid Layouts */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.text-block p {
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
}

.block-title {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    font-weight: 500;
}

/* Abstract Cards */
.abstract-card {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid var(--border);
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.abstract-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.abstract-card:hover::before {
    opacity: 1;
}

.abstract-card>* {
    position: relative;
    z-index: 2;
}

.stat-row {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mono {
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.9rem;
}

.graph-line {
    height: 100px;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.1) 0%, rgba(0, 0, 0, 0) 100%);
    margin-top: 2rem;
    border-top: 1px solid var(--accent);
}

/* Strategies Grid */
.strategy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.strategy-card {
    background: linear-gradient(135deg, rgba(15, 15, 20, 0.95) 0%, rgba(5, 5, 10, 0.98) 100%);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.15);
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow:
        0 4px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

/* Mysterious glow effect */
.strategy-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(600px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
            rgba(59, 130, 246, 0.08),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
    z-index: 1;
}

/* Corner accent lines */
.strategy-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, transparent 60%, rgba(59, 130, 246, 0.2) 100%);
    opacity: 0.3;
    transition: opacity 0.4s ease;
    z-index: 1;
}

.strategy-card:hover::before {
    opacity: 1;
}

.strategy-card:hover::after {
    opacity: 0.6;
}

.strategy-card>* {
    position: relative;
    z-index: 2;
}

.strategy-card:hover {
    transform: translateY(-8px);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.6),
        0 0 0 1px rgba(59, 130, 246, 0.2),
        0 0 30px rgba(59, 130, 246, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* Enhanced card number indicator */
.card-icon {
    font-family: 'Courier New', monospace;
    color: rgba(59, 130, 246, 0.6);
    font-size: 0.75rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    letter-spacing: 0.1em;
    padding: 4px 10px;
    background: rgba(59, 130, 246, 0.08);
    border: 1px solid rgba(59, 130, 246, 0.2);
    border-radius: 4px;
    display: inline-block;
    transition: all 0.3s ease;
}

.strategy-card:hover .card-icon {
    color: rgba(59, 130, 246, 0.9);
    background: rgba(59, 130, 246, 0.15);
    border-color: rgba(59, 130, 246, 0.4);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.2);
}

.strategy-card h3 {
    margin-bottom: 1rem;
    font-weight: 600;
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.01em;
    transition: color 0.3s ease;
}

.strategy-card:hover h3 {
    color: #ffffff;
}

.strategy-card p {
    color: rgba(161, 161, 170, 0.95);
    font-size: 0.95rem;
    line-height: 1.65;
}

/* Risk Visual */
.risk-visual {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border: 1px solid var(--border);
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.risk-circle {
    width: 150px;
    height: 150px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.1);
}

.risk-label {
    position: absolute;
    bottom: 2rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    color: var(--accent);
}

/* Tech Section */
.large-text {
    font-size: 2rem;
    font-weight: 300;
    color: var(--text-primary);
    line-height: 1.4;
    max-width: 900px;
}

/* Footer */
.footer {
    padding: 5rem 0 3rem;
    border-top: 1px solid var(--border);
    background: #050505;
    font-size: 0.9rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-col h4 {
    color: white;
    margin-bottom: 0.5rem;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.footer-col h5 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    opacity: 0.7;
}

.footer-tagline {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    font-size: 0.95rem;
}

/* Legal Links Styling */
.links-col a {
    display: block;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: color 0.2s ease;
}

.links-col a:hover {
    color: var(--accent);
    padding-left: 5px;
    /* Subtle movement on hover */
}

.footer-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
}

.footer-item svg {
    flex-shrink: 0;
    opacity: 0.7;
    transition: opacity 0.2s ease;
}

.footer-item:hover {
    color: var(--accent);
}

.footer-item:hover svg {
    opacity: 1;
    color: var(--accent);
}

.email-item {
    font-size: 0.85rem;
    word-break: break-all;
    /* Break long emails on mobile */
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: rgba(161, 161, 170, 0.4);
    /* Very muted */
    font-size: 0.75rem;
    font-weight: 300;
    font-family: 'Inter', sans-serif;
}

.footer-bottom p:first-child {
    color: rgba(255, 255, 255, 0.6);
    letter-spacing: 0.05em;
    font-size: 0.8rem;
}

.disclaimer {
    font-size: 0.7rem;
    line-height: 1.7;
    max-width: 900px;
    opacity: 0.7;
}

@media (max-width: 768px) {
    .footer {
        padding: 4rem 0 2rem;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        margin-bottom: 3rem;
        text-align: center;
        /* Center text */
    }

    .footer-col h5 {
        margin-bottom: 1rem;
    }

    .footer-item {
        margin-bottom: 1rem;
        justify-content: center;
        /* Center flex items (icons + text) */
    }

    .brand-col .footer-item {
        justify-content: center;
        /* Explicitly center location pin */
    }

    .footer-bottom {
        padding-top: 2rem;
        gap: 1rem;
        text-align: center;
    }

    .disclaimer {
        font-size: 0.65rem;
        /* Slightly smaller legal text */
        line-height: 1.6;
    }

    /* Story section responsive */
    .story-layout {
        grid-template-columns: 1fr !important;
        gap: 2.5rem !important;
    }

    .glance-card {
        position: static !important;
    }
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-up {
    animation: fadeInUp 1s ease-out forwards;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.delay-1 {
    transition-delay: 0.1s;
}

.delay-2 {
    transition-delay: 0.2s;
}

/* Top Holdings Section */
.holdings-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-top: 1rem;
}

.holdings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1rem;
}

.holdings-loading {
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem;
    color: var(--text-secondary);
}

.loading-pulse {
    width: 8px;
    height: 8px;
    background: var(--accent);
    border-radius: 50%;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.5);
    }
}

.holding-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    background: var(--card-bg);
    border: 1px solid var(--border);
    padding: 1.25rem 1.5rem;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    animation: fadeSlideIn 0.5s ease-out forwards;
    opacity: 0;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.holding-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 3px;
    height: 100%;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.holding-card:hover {
    border-color: rgba(255, 255, 255, 0.15);
    transform: translateX(5px);
}

.holding-card:hover::before {
    opacity: 1;
}

.holding-rank {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    background: rgba(59, 130, 246, 0.15);
    color: var(--accent);
    flex-shrink: 0;
}

.holding-rank.top-3 {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.2), rgba(234, 179, 8, 0.05));
    color: #fbbf24;
    border: 1px solid rgba(234, 179, 8, 0.3);
}

.holding-info {
    flex: 1;
    min-width: 0;
}

.holding-symbol {
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: -0.01em;
    margin-bottom: 0.15rem;
}

.holding-name {
    font-size: 0.8rem;
    color: var(--text-secondary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.holding-price {
    text-align: right;
    flex-shrink: 0;
}

.holding-price-value {
    font-family: 'Courier New', monospace;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.15rem;
}

.holding-change {
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    padding: 0.2rem 0.5rem;
    border-radius: 3px;
    display: inline-block;
}

.holding-change.positive {
    background: rgba(16, 185, 129, 0.15);
    color: #34d399;
}

.holding-change.negative {
    background: rgba(239, 68, 68, 0.15);
    color: #f87171;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-title {
        font-size: 3rem;
    }

    .grid-2 {
        grid-template-columns: 1fr;
    }

    .reverse-mobile {
        display: flex;
        flex-direction: column-reverse;
        gap: 2rem;
    }

    .nav-links {
        display: none;
        /* For simplicity in this demo, usually would have a hamburger */
    }
}

/* =========================================
   Labs Page Styles
   ========================================= */

.labs-header {
    padding-top: 140px;
    padding-bottom: 60px;
    text-align: center;
}

.labs-header .hero-subtitle {
    margin-inline: auto;
}

.lab-tag {
    display: inline-block;
    font-family: 'Courier New', monospace;
    color: var(--accent);
    font-size: 0.85rem;
    margin-bottom: 1rem;
    padding: 0.25rem 0.5rem;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 4px;
}

.labs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.lab-card {
    background: linear-gradient(145deg, rgba(20, 20, 20, 0.8), rgba(10, 10, 10, 0.95));
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
}

.lab-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.06), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.lab-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.8);
}

.lab-card:hover::before {
    opacity: 1;
}

.lab-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 1.5rem;
}

.lab-icon {
    color: var(--text-secondary);
    opacity: 0.5;
    transition: all 0.3s ease;
}

.lab-card:hover .lab-icon {
    color: var(--accent);
    opacity: 1;
    transform: scale(1.1);
}

.lab-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.lab-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    flex-grow: 1;
}

.lab-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.5rem;
}

.tech-stack {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    color: var(--text-secondary);
    opacity: 0.7;
}

.lab-status {
    display: inline-flex;
    align-items: center;
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
    border-radius: 100px;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-weight: 600;
}

.status-active {
    background: rgba(16, 185, 129, 0.1);
    color: #34d399;
    border: 1px solid rgba(16, 185, 129, 0.2);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.1);
}

.status-dev {
    background: rgba(245, 158, 11, 0.1);
    color: #fbbf24;
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.status-concept {
    background: rgba(255, 255, 255, 0.05);
    color: #a1a1aa;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-text {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--accent);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.btn-text:hover {
    gap: 0.75rem;
    color: #60a5fa;
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.5);
}

.btn-text.disabled {
    color: var(--text-secondary);
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-text.disabled:hover {
    gap: 0.5rem;
    color: var(--text-secondary);
    text-shadow: none;
}

.fading-in {
    animation: fadeInUp 0.8s ease-out forwards;
}

/* Additional Spotlight Cards */
.philosophy-card,
.target-audience-card {
    position: relative;
    overflow: hidden;
}

.philosophy-card::before,
.target-audience-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(800px circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 255, 255, 0.04), transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
    z-index: 1;
}

.philosophy-card:hover::before,
.target-audience-card:hover::before {
    opacity: 1;
}

.philosophy-card>*,
.target-audience-card>* {
    position: relative;
    z-index: 2;
}





/* Quant Terminal / Code Editor Visual */
.quant-terminal {
    background: #0d1117;
    border: 1px solid rgba(48, 54, 61, 0.8);
    border-radius: 10px;
    overflow: hidden;
    font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03);
}

.terminal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    background: rgba(22, 27, 34, 0.95);
    border-bottom: 1px solid rgba(48, 54, 61, 0.6);
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f57;
}

.dot.yellow {
    background: #febc2e;
}

.dot.green {
    background: #28c840;
}

.terminal-title {
    font-size: 0.75rem;
    color: rgba(139, 148, 158, 0.9);
    letter-spacing: 0.02em;
}

.terminal-status {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.65rem;
    color: #3fb950;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
}

.status-pulse {
    width: 6px;
    height: 6px;
    background: #3fb950;
    border-radius: 50%;
    animation: pulse-live 1.5s ease-in-out infinite;
    box-shadow: 0 0 8px rgba(63, 185, 80, 0.6);
}

@keyframes pulse-live {

    0%,
    100% {
        opacity: 1;
        transform: scale(1);
    }

    50% {
        opacity: 0.5;
        transform: scale(0.85);
    }
}

.terminal-body {
    padding: 1.25rem;
    font-size: 0.8rem;
    line-height: 1.7;
    color: #c9d1d9;
}

.code-line {
    display: flex;
    align-items: baseline;
    margin-bottom: 2px;
}

.line-num {
    width: 28px;
    color: rgba(110, 118, 129, 0.6);
    font-size: 0.7rem;
    user-select: none;
    flex-shrink: 0;
}

.code-indent {
    display: inline-block;
    width: 1.5em;
}

.code-indent.double {
    width: 3em;
}

/* Syntax Highlighting */
.code-comment {
    color: #8b949e;
    font-style: italic;
}

.code-keyword {
    color: #ff7b72;
    font-weight: 500;
}

.code-func {
    color: #d2a8ff;
}

.code-string {
    color: #a5d6ff;
}

.code-number {
    color: #79c0ff;
}

.code-bool {
    color: #ff7b72;
}

.code-var {
    color: #ffa657;
}

.code-output {
    color: #8b949e;
}

.code-result {
    color: #79c0ff;
    font-weight: 600;
}

.code-result.safe {
    color: #3fb950;
}

.output-section {
    margin-top: 8px;
    padding-left: 4px;
    border-left: 2px solid rgba(63, 185, 80, 0.3);
    margin-left: 0;
    background: rgba(63, 185, 80, 0.03);
    padding-top: 4px;
    padding-bottom: 4px;
}

.output-section .line-num {
    color: #3fb950;
    font-weight: 600;
}

.last-line {
    border-left-color: rgba(63, 185, 80, 0.5);
}

.cursor-blink {
    animation: blink 1s step-end infinite;
    color: #3fb950;
    font-weight: bold;
}

@keyframes blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Hover effect on code lines */
.code-line:hover {
    background: rgba(136, 198, 255, 0.04);
    margin-left: -4px;
    padding-left: 4px;
    margin-right: -4px;
    padding-right: 4px;
    border-radius: 3px;
}

/* Parentheses styling */
.code-paren {
    color: #ffd700;
}

/* Highlight for special values */
.code-result.highlight {
    color: #f78166;
    background: rgba(247, 129, 102, 0.12);
    padding: 1px 6px;
    border-radius: 3px;
    font-weight: 700;
}

/* Typewriter animation - lines appear one by one when terminal is visible */
.typewriter {
    opacity: 0;
    transform: translateY(4px);
}

.quant-terminal.visible .typewriter {
    animation: typeIn 0.4s ease-out forwards;
    animation-delay: calc(var(--line-index, 0) * 0.12s + 0.3s);
}

@keyframes typeIn {
    0% {
        opacity: 0;
        transform: translateY(4px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Terminal glow effect on scroll into view */
.quant-terminal.visible {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5),
        0 0 0 1px rgba(255, 255, 255, 0.03),
        0 0 60px rgba(63, 185, 80, 0.08);
}

/* Terminal Mobile Responsiveness */
@media (max-width: 768px) {
    .quant-terminal {
        border-radius: 6px;
        margin: 0 -15px;
        /* Bleed more to edge */
        width: calc(100% + 30px);
        font-size: 0.65rem;
        /* Base font smaller */
    }

    .terminal-header {
        padding: 0.35rem 0.75rem;
        /* Tighter header */
        min-height: 32px;
    }

    .terminal-dots {
        gap: 4px;
    }

    .terminal-dots .dot {
        width: 10px;
        height: 10px;
    }

    .terminal-body {
        padding: 0.75rem 0.5rem;
        /* Less padding */
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        line-height: 1.5;
        /* Tighter lines */
    }

    .code-line {
        white-space: nowrap;
        padding-right: 1rem;
        font-size: 0.6rem;
        /* Smaller code font */
        margin-bottom: 1px;
        /* Tighter spacing */
    }

    .line-num {
        width: 18px;
        font-size: 0.55rem;
        margin-right: 2px;
    }

    .code-indent {
        width: 1rem;
    }

    .code-indent.double {
        width: 2rem;
    }

    .terminal-title {
        display: block;
        max-width: 100px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size: 0.65rem;
    }

    .terminal-status {
        scale: 0.9;
    }
}

/* Mobile Navigation Styles */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    z-index: 2000;
    /* Force on top */
    padding: 10px;
    /* Increase hit area */
}

.mobile-menu-toggle span {
    width: 24px;
    height: 2px;
    background: #ffffff;
    /* Force white */
    transition: 0.3s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    /* Shadow for visibility on light backgrounds */
}

.mobile-sidebar {
    position: fixed;
    top: 0;
    right: -280px;
    width: 280px;
    height: 100vh;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-left: 1px solid var(--border);
    z-index: 2000;
    transition: right 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    padding: 2rem;
    box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
}

.mobile-sidebar.active {
    right: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--border);
    padding-bottom: 1rem;
}

.close-sidebar {
    font-size: 2rem;
    cursor: pointer;
    line-height: 1;
    color: var(--text-secondary);
}

.sidebar-links {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.sidebar-links a {
    color: var(--text-primary);
    text-decoration: none;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
}

.sidebar-links .nav-num {
    margin-right: 12px;
    font-size: 0.85rem;
}

.sidebar-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 0.5rem 0;
}

.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 1500;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Mobile Breakpoint for Nav */
@media (max-width: 900px) {
    .nav-links {
        display: none;
    }

    .mobile-menu-toggle {
        display: flex;
    }
}

/* =========================================
   CINEMATIC TIMELINE BACKGROUND (LABS)
   ========================================= */
.crisis-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -10;
    background: #000000;
    overflow: hidden;
    perspective: 300px;
    /* Strong perspective for speed feel */
}

/* Vignette for scary movie feel */
.crisis-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 30%, #000000 95%);
    pointer-events: none;
    z-index: 10;
}

.crisis-stage {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    transform: translate(-50%, -50%);
    transform-style: preserve-3d;
}

.crisis-item {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    /* Starting pos overridden by anim */
    text-align: center;
    font-family: 'Courier New', monospace;
    text-transform: uppercase;
    white-space: nowrap;
    will-change: transform, opacity;
    backface-visibility: hidden;
    pointer-events: none;
}

.crisis-year {
    font-size: 15vw;
    /* Huge relative to viewport */
    font-weight: 900;
    display: block;
    line-height: 0.8;
    color: rgba(255, 255, 255, 0.03);
    letter-spacing: -0.05em;
}

.crisis-name {
    font-size: 2rem;
    letter-spacing: 0.5em;
    color: rgba(255, 255, 255, 0.5);
    display: block;
    margin-top: 2rem;
    font-weight: 300;
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.8);
}

/* Highlight styles */
.crisis-item.crash .crisis-year {
    color: rgba(220, 38, 38, 0.08);
    /* Red tint */
}

.crisis-item.crash .crisis-name {
    color: rgba(220, 38, 38, 0.9);
    text-shadow: 0 0 20px rgba(220, 38, 38, 0.5);
}

.crisis-item.future .crisis-year {
    color: rgba(59, 130, 246, 0.05);
    /* Blue tint */
}

.crisis-item.future .crisis-name {
    color: rgba(59, 130, 246, 0.9);
}

.crisis-item.highlight .crisis-year {
    color: rgba(255, 255, 255, 0.1);
}

.crisis-item.highlight .crisis-name {
    color: #ffffff;
    font-weight: 700;
    font-size: 4rem;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.8);
}

@keyframes tunnelMove {
    0% {
        transform: translate(-50%, -50%) translateZ(-5000px) rotate(0deg);
        opacity: 0;
        filter: blur(10px);
    }

    10% {
        opacity: 0.1;
    }

    30% {
        opacity: 1;
        filter: blur(0px);
    }

    80% {
        opacity: 1;
    }

    100% {
        transform: translate(-50%, -50%) translateZ(300px) rotate(0deg);
        /* Pass camera */
        opacity: 0;
        filter: blur(20px);
    }
}

/* =========================================
   LABS TRAILER OVERLAY
   ========================================= */
#labs-trailer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: #000;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: none;
    /* Hide cursor during trailer */
}

#labs-trailer.hidden {
    opacity: 0;
    pointer-events: none;
    transition: opacity 2s ease-out;
}

/* Trailer Text Containers */
.trailer-text {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
    opacity: 0;
    transition: opacity 0.5s ease;
    padding: 0 2rem;
}

.trailer-text.visible {
    opacity: 1;
}

/* Warning Gate Box */
.trailer-warning-box {
    position: absolute;
    width: 100%;
    text-align: center;
    color: #fff;
    padding: 0 2rem;
    /* Visible by default until dismissed */
}

/* Scene 1 Styles */
.trailer-title-lg {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.05em;
    font-family: 'Inter', sans-serif;
}

.trailer-title-sub {
    font-family: 'Courier New', monospace;
    font-size: 1.5rem;
    letter-spacing: 0.5em;
    margin-top: 1rem;
    color: #3b82f6;
}

/* Scene 2 & 3 Styles */
.trailer-line-lg {
    font-size: 2.5rem;
    font-weight: 300;
    line-height: 1.4;
}

.trailer-line-sm {
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: #a1a1aa;
    margin-top: 2rem;
}

.trailer-fragment {
    display: block;
    margin-bottom: 2rem;
}

/* Scene 4 - Project Montage */
.trailer-project-title {
    font-family: 'Courier New', sans-serif;
    color: #3b82f6;
    font-size: 0.9rem;
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    letter-spacing: 0.2em;
}

.trailer-project-name {
    font-size: 4rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.02em;
    position: relative;
    z-index: 2;
}

.trailer-project-sub {
    font-family: 'Courier New', monospace;
    font-size: 1.1rem;
    color: #a1a1aa;
    margin-top: 1rem;
    border-left: 2px solid #3b82f6;
    padding-left: 1rem;
    display: inline-block;
}

/* Scene 6 - CTA */
.trailer-enter-btn {
    margin-top: 3rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    padding: 1rem 3rem;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    letter-spacing: 0.2em;
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.trailer-enter-btn:hover {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.2);
}

.trailer-cta-micro {
    position: absolute;
    bottom: 2rem;
    font-size: 0.7rem;
    color: #555;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.05em;
}

/* Flash Layer */
#trailer-flash-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10000;
    background-color: transparent;
    opacity: 0;
}

.flash-white {
    background-color: white !important;
}

.flash-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: contrast(1.5) grayscale(1);
}

/* Specific Timeline Asset Flashes - DIRECT ASSET MAPPING */
.flash-bankpanic {
    background-image: url('assets/timeline_bankpanic.png');
}

.flash-blacktuesday {
    background-image: url('assets/timeline_blacktuesday.png');
}

.flash-panic-exec {
    background-image: url('assets/panic_exec.png');
}

/* NEW WC EXEC */
.flash-panic-crowd {
    background-image: url('assets/panic_crowd.png');
}

/* NEW PANIC CROWD */
.flash-housing {
    background-image: url('assets/timeline_housingcrisis.jpg');
}

.flash-dotcom {
    background-image: url('assets/timeline_dotcom.jpeg');
}

.flash-flashcrash {
    background-image: url('assets/timeline_flashcrash.jpeg');
}

.flash-covid {
    background-image: url('assets/timeline_covid.jpg');
}

.flash-inflation {
    background-image: url('assets/timeline_inflation.jpg');
}

.flash-asian {
    background-image: url('assets/timeline_asian.jpg');
}

.flash-blackmonday {
    background-image: url('assets/timeline_blackmonday.avif');
}

.flash-gold {
    background-image: url('assets/timeline_gold.jpg');
}

.flash-nixon {
    background-image: url('assets/timeline_nixon.png');
}

/* Retain these for variety/backwards compat if needed, but primary are above */
.flash-1929 {
    background-image: url('assets/timeline_1929.png');
}

.flash-2008 {
    background-image: url('assets/timeline_2008.png');
}

.flash-future {
    background-image: url('assets/timeline_future.png');
}

.flash-glitch {
    background-image: url('assets/labs_flash.png');
}

/* "Punch" Zoom Effect via Animation */
@keyframes flashPunch {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.3);
    }
}

.flash-punch {
    animation: flashPunch 0.2s cubic-bezier(0.1, 0.7, 1.0, 0.1) forwards;
}

/* Text Jitter (Nervous) */
/* Hard Glitch Effect */
@keyframes glitch-anim-1 {
    0% {
        clip-path: inset(20% 0 80% 0);
        transform: translate(-2px, 1px);
    }

    20% {
        clip-path: inset(60% 0 10% 0);
        transform: translate(2px, -1px);
    }

    40% {
        clip-path: inset(10% 0 50% 0);
        transform: translate(-2px, 2px);
    }

    60% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(2px, -2px);
    }

    80% {
        clip-path: inset(30% 0 40% 0);
        transform: translate(-1px, 1px);
    }

    100% {
        clip-path: inset(50% 0 30% 0);
        transform: translate(1px, -1px);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip-path: inset(10% 0 60% 0);
        transform: translate(2px, -1px);
    }

    20% {
        clip-path: inset(80% 0 5% 0);
        transform: translate(-2px, 2px);
    }

    40% {
        clip-path: inset(30% 0 20% 0);
        transform: translate(1px, 1px);
    }

    60% {
        clip-path: inset(10% 0 80% 0);
        transform: translate(-1px, -2px);
    }

    80% {
        clip-path: inset(40% 0 10% 0);
        transform: translate(2px, 1px);
    }

    100% {
        clip-path: inset(70% 0 20% 0);
        transform: translate(-2px, -1px);
    }
}

.glitch-text {
    position: relative;
    display: inline-block;
}

.glitch-text::before,
.glitch-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #000;
}

.glitch-text::before {
    left: 2px;
    text-shadow: -1px 0 #ff00c1;
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -1px 0 #00fff9;
    clip-path: inset(44% 0 61% 0);
    animation: glitch-anim-2 2s infinite linear alternate-reverse;
}

/* Mobile rotation hint - only shows on phones in portrait */
@media screen and (max-width: 768px) and (orientation: portrait) {
    .mobile-rotate-hint {
        display: block !important;
    }
}

/* Explicit Glitch Class */
.text-glitch-active h1,
.text-glitch-active h2 {
    animation: glitch-anim-1 2s infinite linear alternate-reverse;
}

/* Bloody Text Effect */
.bloody-text {
    color: #880808 !important;
    /* Dark dried blood red */
    transition: color 1.5s ease-in;
    /* Faster saturation */
    animation: bloodDrip 1.5s ease-in forwards;
}

@keyframes bloodDrip {
    0% {
        text-shadow: 0 0 0 transparent;
    }

    20% {
        text-shadow: 0 0 10px rgba(136, 8, 8, 0.5);
        /* Pool forming */
    }

    100% {
        text-shadow:
            0 20px 15px rgba(136, 8, 8, 0.9),
            4px 40px 10px rgba(136, 8, 8, 0.6),
            /* Drip 1 */
            -4px 30px 10px rgba(136, 8, 8, 0.6);
        /* Drip 2 */
        transform: scale(1.05);
    }
}

@keyframes nervousText {
    0% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-1px);
    }

    50% {
        transform: translateX(0);
    }

    75% {
        transform: translateX(1px);
    }

    100% {
        transform: translateX(0);
    }
}

/* Typewriter Cursor (optional if needed later) */
.typewriter-cursor::after {
    content: '_';
    animation: blink 1s step-start infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Aggressive Quadrant Crops (retained for glitch asset) */
.flash-crop-1 {
    background-position: 0% 0%;
    background-size: 200% 200%;
}

.flash-crop-2 {
    background-position: 100% 0%;
    background-size: 200% 200%;
}

.flash-crop-3 {
    background-position: 0% 100%;
    background-size: 200% 200%;
}

.flash-crop-4 {
    background-position: 100% 100%;
    background-size: 200% 200%;
}

/* Terminal Card Styling (Updated) */
.terminal-card {
    background: #050505;
    border: 1px solid #1a1a1a;
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    padding: 1.5rem;
    position: sticky;
    top: 120px;
    font-family: 'Courier New', Courier, monospace !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
    overflow: hidden;
    color: #ccc;
}

.terminal-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), transparent);
    opacity: 0.5;
}

.terminal-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1a1a1a;
    margin-bottom: 1.5rem;
}

.terminal-title-group {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.terminal-led {
    width: 8px;
    height: 8px;
    background-color: var(--accent);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--accent);
    animation: pulse-terminal 2s infinite;
}

@keyframes pulse-terminal {
    0% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent);
    }

    50% {
        opacity: 0.4;
        box-shadow: 0 0 2px var(--accent);
    }

    100% {
        opacity: 1;
        box-shadow: 0 0 10px var(--accent);
    }
}

.terminal-title-text {
    font-size: 0.9rem;
    color: #fff;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.terminal-items {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.t-item {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    position: relative;
}

.t-label {
    font-size: 0.75rem;
    color: #555;
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.05em;
}

.t-dots {
    flex-grow: 1;
    border-bottom: 1px dashed #222;
    margin: 0 10px;
    position: relative;
    top: -4px;
}

.t-value {
    text-align: right;
    font-size: 0.85rem;
    font-weight: 600;
    color: #ddd;
    letter-spacing: 0.02em;
}

.t-value.firm {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
}

.t-value.cap {
    color: #a5b4fc;
}

/* Indigo tint */
.t-value.asset {
    color: #6ee7b7;
}

/* Emerald tint */
.t-value.horizon {
    color: #fcd34d;
}

/* Amber tint */
.t-value.min {
    color: #f87171;
}

/* Red tint for warnings/limits */

.t-cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: var(--accent);
    vertical-align: middle;
    margin-left: 5px;
    animation: blink-cursor 1s step-end infinite;
}

@keyframes blink-cursor {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}

/* Scanline effect */
.terminal-card::after {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    z-index: 2;
    background-size: 100% 2px, 3px 100%;
    pointer-events: none;
    opacity: 0.1;
}