:root {
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --museum-blue: #1e40af;
    --museum-blue-light: #eff6ff;
    --museum-gold: #b45309;
    --museum-gold-light: #fffbeb;
    --border-soft: #e2e8f0;
    --shadow-soft: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
}

/* Performance Optimizations: HW Acceleration */
.neo-glass-card,
.standard-card,
.neural-node,
.reveal-visible,
.animate-reveal,
.comparison-img {
    will-change: transform, opacity;
}

canvas,
video {
    will-change: transform;
    contain: paint;
}

/* Source Reference Link Styles */
.source-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    text-decoration: none;
    position: relative;
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--museum-blue-light);
    border: 1px solid var(--museum-blue);
    transition: all 0.2s ease;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--museum-blue);
}

@keyframes source-pulse {

    0%,
    100% {
        box-shadow: 0 0 8px rgba(59, 130, 246, 0.2);
    }

    50% {
        box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
    }
}

.source-link:hover {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.3), rgba(139, 92, 246, 0.3));
    border-color: rgba(59, 130, 246, 0.7);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.4);
}

.source-link::before {
    content: "📖";
    font-size: 11px;
}

.source-link::after {
    display: none;
}

/* Tooltip for source links */
.source-link[data-tooltip]:hover .source-tooltip {
    opacity: 1;
    visibility: visible;
}

.source-link[data-tooltip]::before {
    content: "📖 " attr(data-tooltip);
    font-size: 9px;
}

body {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    scroll-behavior: smooth;
    line-height: 1.6;
}

.gold-gradient {
    background: linear-gradient(135deg, #D97706 0%, #F59E0B 100%);
}

.blue-gradient {
    background: linear-gradient(135deg, #1E3A8A 0%, #3B82F6 100%);
}

.standard-card {
    background: var(--bg-primary);
    border: 1px solid var(--border-soft);
    border-radius: 12px;
    box-shadow: var(--shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.standard-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1);
}

.hud-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.03);
    border-left: 2px solid var(--cyber-blue);
    color: var(--cyber-blue);
}

.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* History Specific Glass */
.glass-amber {
    background: rgba(245, 158, 11, 0.02);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(245, 158, 11, 0.1);
    border-radius: 24px;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s ease;
}

.glass-amber:hover {
    background: rgba(245, 158, 11, 0.05);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-5px);
}

.perspective-grid-amber {
    background-image: linear-gradient(var(--cyber-amber) 1px, transparent 1px),
        linear-gradient(90deg, var(--cyber-amber) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(600px) rotateX(45deg);
    mask-image: linear-gradient(to bottom, black, transparent);
}

/* Hero specific */
.hero-title {
    font-weight: 900;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

/* Simulators - Slightly compact version for fitting on screen */
.simulator-box {
    min-height: auto;
}

/* Slightly-Compact Simulator Cards in #demo section */
#demo .neo-glass-card.simulator-box {
    padding: 1.5rem !important;
}

#demo .simulator-box .flex.items-start.justify-between {
    margin-bottom: 0.75rem !important;
}

#demo .simulator-box .w-12.h-12 {
    width: 2.75rem !important;
    height: 2.75rem !important;
    font-size: 1.4rem !important;
}

#demo .simulator-box h3 {
    font-size: 1.1rem !important;
}

#demo .simulator-box p.text-sm {
    font-size: 0.8rem !important;
    margin-bottom: 1rem !important;
    line-height: 1.5 !important;
}

/* Reduce image/chat container heights - slight reduction */
#demo .simulator-box .min-h-\[220px\],
#demo .simulator-box .min-h-\[200px\] {
    min-height: 280px !important;
    max-height: 310px !important;
}

#demo .simulator-box .min-h-\[320px\] {
    min-height: 390px !important;
    max-height: 415px !important;
}

/* Chat box - slight reduction */
#demo #chatBox {
    min-height: 390px !important;
    padding: 0.875rem !important;
}

#demo .chat-bubble {
    padding: 0.6rem 0.875rem !important;
    font-size: 0.75rem !important;
}

#demo .simulator-box .grid.grid-cols-2 button {
    padding: 0.6rem !important;
    font-size: 0.7rem !important;
}

/* Action buttons - slight reduction */
#demo .simulator-box button.py-4 {
    padding-top: 0.75rem !important;
    padding-bottom: 0.75rem !important;
    font-size: 0.85rem !important;
}

/* Reduce margin between image container and button */
#demo .simulator-box .mb-6 {
    margin-bottom: 1rem !important;
}

/* Status badges and labels */
#demo .simulator-box .text-\[10px\],
#demo .simulator-box .text-\[9px\] {
    font-size: 9px !important;
}

/* Reduce overall gap in grid */
#demo .grid.lg\:grid-cols-3 {
    gap: 1.5rem !important;
}

/* Reduce section padding - slight */
#demo.py-32 {
    padding-top: 4rem !important;
    padding-bottom: 4rem !important;
}

/* Header in demo section - slight reduction */
#demo .text-6xl.md\:text-7xl {
    font-size: 3rem !important;
}

#demo .text-center.mb-24 {
    margin-bottom: 2rem !important;
}

#demo .text-center .text-lg {
    font-size: 0.9rem !important;
}

/* ========================================
   IA GENERATIVA SHOWCASE - Compact Layout
   ======================================== */

/* Reduce section padding */
#ia-showcase.py-32,
#mapa4d.py-24 {
    padding-top: 2rem !important;
    padding-bottom: 2rem !important;
}

/* Smaller header */
#ia-showcase .text-center.mb-16,
#mapa4d .text-center.mb-16 {
    margin-bottom: 0.75rem !important;
}

#ia-showcase .text-6xl.md\:text-7xl,
#mapa4d .text-6xl.md\:text-7xl {
    font-size: 2rem !important;
    margin-bottom: 0.25rem !important;
}

/* Hide main section description - keep header badge */
#ia-showcase .text-center.mb-16>p.text-slate-400,
#mapa4d .text-center.mb-16>p.text-slate-400 {
    display: none !important;
}

/* Compact tab navigation */
#ia-showcase .ia-tabs-container,
#mapa4d .ia-tabs-container {
    margin-bottom: 0.75rem !important;
}

#ia-showcase .ia-tab-buttons,
#mapa4d .ia-tab-buttons {
    gap: 0.5rem !important;
}

#ia-showcase .ia-tab-btn,
#mapa4d .immersive-tab-btn {
    padding: 0.4rem 0.75rem !important;
    font-size: 0.7rem !important;
}

.ia-tab-btn {
    color: #475569 !important;
    /* text-slate-600 */
}

.ia-tab-btn:hover {
    color: #1e40af !important;
    /* text-blue-700 */
}

.ia-tab-btn.active,
.immersive-tab-btn.active {
    background-color: #1e40af !important;
    color: white !important;
    border-color: #1e40af !important;
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.2) !important;
}

/* Tech Intro Tabs */
.tech-intro-tab-btn.active {
    color: #1e40af !important;
    border-bottom: 2px solid #1e40af !important;
}

.tech-intro-tab-content {
    display: none;
}

.tech-intro-tab-content.active {
    display: block !important;
}

/* Hide tab content headers (title + description) */
#ia-showcase .ia-tab-content>.text-center.mb-12 {
    display: none !important;
}

/* Reduce comparison container height */
/* Comparison container height auto */
/* Comparison container height auto */
#ia-showcase .comparison-container {
    height: auto !important;
    aspect-ratio: 16/9;
    position: relative !important;
}

/* Smaller top/bottom bars in cards */
#ia-showcase .neo-glass-card .px-6.py-4 {
    padding: 0.5rem 1rem !important;
}

/* Hide the description section below slider */
/* Description section visible */
#ia-showcase .neo-glass-card>.relative.z-10.px-6.py-4.bg-gradient-to-r {
    display: flex !important;
}

/* Compact gallery previews */
#ia-showcase .gallery-preview .p-4 {
    padding: 0.5rem !important;
}

#ia-showcase .gallery-preview .w-12.h-12 {
    width: 2.5rem !important;
    height: 2.5rem !important;
}

#ia-showcase .gallery-preview .text-sm {
    font-size: 0.7rem !important;
}

/* Hide info cards at bottom of reimagine tab */
#ia-showcase #ia-tab-reimagine>.mt-12.grid {
    display: none !important;
}

/* Video tab compact */
/* Video tab - natural aspect ratio */
#ia-showcase #mainVideoContainer.aspect-video {
    height: auto !important;
}

/* Hide video description section */


/* Hide video info cards */
#ia-showcase #ia-tab-videos>.mt-12.grid {
    display: none !important;
}

/* Compact video thumbnails */
#ia-showcase .video-preview .p-4 {
    padding: 0.5rem !important;
}

/* Voice tab 580px height */
#ia-showcase #ia-tab-vozes .neo-glass-card {
    height: 580px !important;
    display: flex !important;
    flex-direction: column !important;
}

#ia-showcase #ia-tab-vozes .voices-grid-container {
    flex: 1 !important;
    overflow-y: auto !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
}

#ia-showcase #ia-tab-vozes .voices-grid-container::-webkit-scrollbar {
    display: none !important;
}




/* Butterfly tab compact */
#ia-showcase #ia-tab-borboleta .grid.lg\:grid-cols-2 {
    gap: 1rem !important;
}

#ia-showcase #butterflyContainer {
    height: 500px !important;
}



.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 18px;
    margin-bottom: 8px;
    font-size: 14px;
}

.bubble-ai {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    align-self: flex-start;
}

.bubble-user {
    background: rgba(217, 119, 6, 0.2);
    border: 1px solid rgba(217, 119, 6, 0.3);
    align-self: flex-end;
    margin-left: auto;
}

#manuscriptImg.restored {
    filter: contrast(1.2) brightness(1.1) saturate(1.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.4);
}

/* VR/AR Specific */
.vr-viewport {
    height: 300px;
    background-size: cover;
    background-position: center;
    transition: all 1s ease-in-out;
    position: relative;
    overflow: hidden;
}

.ar-lens-overlay {
    position: absolute;
    inset: 0;
    background: rgba(59, 130, 246, 0.1);
    border: 2px solid rgba(59, 130, 246, 0.5);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.ar-active .ar-lens-overlay {
    opacity: 1;
}

.ar-data-point {
    position: absolute;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    transform: scale(0);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    z-index: 50;
    backdrop-filter: blur(4px);
}

.ar-active .ar-data-point {
    transform: scale(1);
}

/* AR Simulator Enhancement Styles */
.ar-grid {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(59, 130, 246, 0.2) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.2) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.ar-active .ar-grid {
    opacity: 1;
    animation: grid-move 2s linear infinite;
}

.ar-reticle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    border: 2px dashed rgba(217, 119, 6, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(2);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.ar-active .ar-reticle {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
    /* removed rotation for stability */
    border-color: #f59e0b;
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.3);
}

.ar-data-feed {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 120px;
    height: 100px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    color: rgba(59, 130, 246, 0.7);
    overflow: hidden;
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent, black 20%, black 80%, transparent);
}

.ar-feed-content {
    animation: data-stream 5s linear infinite;
}

.ar-scanner-noise {
    position: absolute;
    inset: 0;
    background: url('https://grainy-gradients.vercel.app/noise.svg');
    opacity: 0.05;
    mix-blend-mode: overlay;
    pointer-events: none;
}

/* Re-imagination Slider */
.comparison-container {
    position: relative;
    aspect-ratio: 16 / 9;
    max-height: 550px;
    overflow: hidden;
    border-radius: 1.5rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.comparison-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
}

.img-after {
    width: 50%;
    z-index: 2;
}

.slider-handle {
    position: absolute;
    z-index: 10;
    top: 0;
    bottom: 0;
    width: 4px;
    background: #D97706;
    left: 50%;
    cursor: ew-resize;
    box-shadow: 0 0 20px rgba(217, 119, 6, 0.5);
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 48px;
    height: 48px;
    background: #D97706;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 4px solid white;
}

.label-before,
.label-after {
    position: absolute;
    bottom: 2rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    font-size: 12px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-radius: 0.5rem;
    backdrop-filter: blur(8px);
    z-index: 5;
}

.label-before {
    right: 2rem;
}

.label-after {
    left: 2rem;
}

/* Audio Player Styles */
.voice-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.voice-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(217, 119, 6, 0.3);
}

.audio-progress {
    height: 4px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
}

.audio-bar {
    height: 100%;
    background: var(--museum-gold);
    width: 0%;
    transition: width 0.1s linear;
}

.playing .pulse-ring {
    animation: pulse-ring 1.5s infinite;
}

/* Audio Spectrometer Visualizer - FUTURISTIC */
.audio-spectrometer {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 2px;
    height: 60px;
    padding: 10px 16px;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.9) 100%);
    border-radius: 12px;
    margin-bottom: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scaleY(0);
    transform-origin: bottom;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

/* Scan Line Effect */
.audio-spectrometer::before {
    content: '';
    position: absolute;
    inset: 0;
    background: repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 2px,
            rgba(255, 255, 255, 0.02) 2px,
            rgba(255, 255, 255, 0.02) 4px);
    pointer-events: none;
    z-index: 10;
}

/* Moving Scan Line */
.voice-card.playing .audio-spectrometer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, currentColor, transparent);
    animation: scan-line 1.5s linear infinite;
    z-index: 20;
}

#voice1 .audio-spectrometer::after {
    color: #f59e0b;
}

#voice2 .audio-spectrometer::after {
    color: #3b82f6;
}

#voice3 .audio-spectrometer::after {
    color: #10b981;
}

@keyframes scan-line {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.voice-card.playing .audio-spectrometer {
    opacity: 1;
    transform: scaleY(1);
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.5);
}

.spectrometer-bar {
    width: 3px;
    min-height: 3px;
    border-radius: 1px 1px 0 0;
    transform-origin: bottom;
    position: relative;
}

.voice-card.playing .spectrometer-bar {
    animation: spectrometer-pulse 0.3s ease-in-out infinite alternate;
}

/* Staggered delays for organic movement */
.spectrometer-bar:nth-child(1) {
    animation-delay: 0.00s;
    --max-h: 90%;
}

.spectrometer-bar:nth-child(2) {
    animation-delay: 0.05s;
    --max-h: 60%;
}

.spectrometer-bar:nth-child(3) {
    animation-delay: 0.10s;
    --max-h: 100%;
}

.spectrometer-bar:nth-child(4) {
    animation-delay: 0.03s;
    --max-h: 75%;
}

.spectrometer-bar:nth-child(5) {
    animation-delay: 0.08s;
    --max-h: 95%;
}

.spectrometer-bar:nth-child(6) {
    animation-delay: 0.12s;
    --max-h: 55%;
}

.spectrometer-bar:nth-child(7) {
    animation-delay: 0.02s;
    --max-h: 85%;
}

.spectrometer-bar:nth-child(8) {
    animation-delay: 0.07s;
    --max-h: 100%;
}

.spectrometer-bar:nth-child(9) {
    animation-delay: 0.11s;
    --max-h: 70%;
}

.spectrometer-bar:nth-child(10) {
    animation-delay: 0.04s;
    --max-h: 90%;
}

.spectrometer-bar:nth-child(11) {
    animation-delay: 0.09s;
    --max-h: 65%;
}

.spectrometer-bar:nth-child(12) {
    animation-delay: 0.01s;
    --max-h: 80%;
}

@keyframes spectrometer-pulse {
    0% {
        height: 10%;
        opacity: 0.4;
        filter: brightness(0.8);
    }

    100% {
        height: var(--max-h, 100%);
        opacity: 1;
        filter: brightness(1.3);
    }
}

/* Color variants with NEON GLOW */
#voice1 .spectrometer-bar {
    background: linear-gradient(to top, #92400e, #f59e0b, #fcd34d);
    box-shadow: 0 0 10px #f59e0b, 0 0 20px rgba(245, 158, 11, 0.6), 0 0 40px rgba(245, 158, 11, 0.3);
}

#voice2 .spectrometer-bar {
    background: linear-gradient(to top, #1e3a8a, #3b82f6, #93c5fd);
    box-shadow: 0 0 10px #3b82f6, 0 0 20px rgba(59, 130, 246, 0.6), 0 0 40px rgba(59, 130, 246, 0.3);
}

#voice3 .spectrometer-bar {
    background: linear-gradient(to top, #064e3b, #10b981, #6ee7b7);
    box-shadow: 0 0 10px #10b981, 0 0 20px rgba(16, 185, 129, 0.6), 0 0 40px rgba(16, 185, 129, 0.3);
}

/* STRONGER Playing state glow effect on card */
.voice-card.playing {
    box-shadow: 0 0 40px rgba(139, 92, 246, 0.4), 0 0 80px rgba(139, 92, 246, 0.2);
    transform: translateY(-3px) scale(1.02);
}

#voice1.playing {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.5), 0 0 80px rgba(245, 158, 11, 0.2);
    border-color: rgba(245, 158, 11, 0.7);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, transparent 50%);
}

#voice2.playing {
    box-shadow: 0 0 40px rgba(59, 130, 246, 0.5), 0 0 80px rgba(59, 130, 246, 0.2);
    border-color: rgba(59, 130, 246, 0.7);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, transparent 50%);
}

#voice3.playing {
    box-shadow: 0 0 40px rgba(16, 185, 129, 0.5), 0 0 80px rgba(16, 185, 129, 0.2);
    border-color: rgba(16, 185, 129, 0.7);
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, transparent 50%);
}

/* 4D Map Styles */
.map-point {
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    filter: drop-shadow(0 0 10px currentColor);
}

.map-line {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    transition: stroke-dashoffset 2s ease-in-out;
}

.map-active .map-line {
    stroke-dashoffset: 0;
}

.prediction-zone {
    animation: pulse-zone 2s infinite;
}

/* Hyperscape / Gaussian Splatting Effects */
.gaussian-overlay {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, transparent 0%, rgba(30, 58, 138, 0.4) 100%);
    pointer-events: none;
    z-index: 5;
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 1s ease;
}

.vr-active .gaussian-overlay {
    opacity: 1;
}

.splat-particle {
    position: absolute;
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    filter: blur(4px);
    animation: splat-float 4s infinite ease-in-out;
    pointer-events: none;
}

.sync-progress-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 200px;
    text-align: center;
    z-index: 20;
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.syncing .sync-progress-container {
    opacity: 1;
}

.sync-bar {
    height: 2px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 12px;
}

.sync-fill {
    height: 100%;
    background: #D97706;
    width: 0%;
}

.avalanche-logo {
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 3px;
    color: rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.timeline-slider {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 100%;
    height: 10px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.1);
    outline: none;
}

.timeline-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: #D97706;
    cursor: pointer;
    border: 4px solid white;
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
}

/* 3D Digital Twin Styles */
.artifact-3d-container {
    perspective: 1000px;
    height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at center, rgba(30, 58, 138, 0.2) 0%, transparent 70%);
    border-radius: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.artifact-3d-model {
    width: 320px;
    height: 320px;
    position: relative;
    transform-style: preserve-3d;
    transition: transform 0.1s ease-out;
    cursor: grab;
}

.artifact-3d-model:active {
    cursor: grabbing;
}

.artifact-face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border-radius: 50%;
    box-shadow:
        inset -20px -20px 40px rgba(0, 0, 0, 0.5),
        0 20px 50px rgba(0, 0, 0, 0.8);
    background-size: cover;
    background-position: center;
}

.face-front {
    background-image: url('https://images.unsplash.com/photo-1633785584922-503ad0e982f5?q=80&w=800&auto=format&fit=crop');
    transform: translateZ(2px);
}

.face-back {
    background-image: url('https://images.unsplash.com/photo-1605792657660-596af9039e2d?q=80&w=800&auto=format&fit=crop');
    transform: rotateY(180deg) translateZ(2px);
}

/* Coin Edge */
.artifact-edge {
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #92400e;
    transform: translateZ(0px);
    border: 10px solid #78350f;
}

.hotspot {
    position: absolute;
    width: 24px;
    height: 24px;
    background: #D97706;
    border-radius: 50%;
    border: 3px solid white;
    box-shadow: 0 0 15px #D97706;
    cursor: pointer;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: hotspot-pulse 2s infinite;
}

.hotspot:hover {
    transform: scale(1.3);
    background: white;
    color: #D97706;
}

.hotspot-tooltip {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(15, 23, 42, 0.95);
    padding: 12px 16px;
    border-radius: 12px;
    width: 200px;
    font-size: 11px;
    color: white;
    border: 1px solid rgba(217, 119, 6, 0.4);
    backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s ease;
    text-align: left;
    z-index: 100;
}

.hotspot:hover .hotspot-tooltip {
    opacity: 1;
    bottom: 35px;
}

/* --- BUTTERFLY EFFECT SIMULATOR --- */
#butterflyContainer {
    perspective: 1000px;
    background: #020617;
}

#butterflyContainer.glitch-active {
    animation: glitch-skew 0.3s infinite;
}

@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(2deg);
        filter: hue-rotate(90deg);
    }

    40% {
        transform: skew(-3deg);
    }

    60% {
        transform: skew(1deg);
        filter: blur(1px);
    }

    80% {
        transform: skew(-1deg);
    }

    100% {
        transform: skew(0deg);
    }
}

.scenario-btn {
    background: rgba(30, 41, 59, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.scenario-btn:hover {
    background: rgba(30, 41, 59, 0.6);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

.scenario-btn.active#btn-rio {
    border-color: #3b82f6;
    background: rgba(59, 130, 246, 0.1);
}

.scenario-btn.active#btn-ferro {
    border-color: #f59e0b;
    background: rgba(245, 158, 11, 0.1);
}

.scenario-btn.active#btn-preserva {
    border-color: #10b981;
    background: rgba(16, 185, 129, 0.1);
}

#predictionTitle {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Divergence Mini-Map Styling */
#divergenceMiniMap {
    filter: drop-shadow(0 0 5px currentColor);
}

#divergencePath {
    stroke-dasharray: 100 100;
    transition: d 0.7s cubic-bezier(0.4, 0, 0.2, 1), stroke 0.4s ease;
}

.prediction-box {
    min-height: 250px;
    background: radial-gradient(circle at top right, rgba(217, 119, 6, 0.05), transparent);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    position: relative;
}

.prediction-line {
    width: 2px;
    background: linear-gradient(to bottom, #D97706, transparent);
    height: 100%;
    position: absolute;
    left: 50%;
    top: 0;
    opacity: 0.3;
}

.divergence-node {
    animation: bounce-subtle 3s infinite ease-in-out;
}

/* Language Switcher */
.lang-switcher {
    position: fixed;
    top: 2rem;
    right: 2rem;
    z-index: 1000;
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(15, 23, 42, 0.8);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
}

.lang-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
    opacity: 0.5;
    filter: grayscale(1);
}

.lang-btn.active {
    opacity: 1;
    filter: grayscale(0);
    transform: scale(1.2);
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.5);
    border: 2px solid var(--museum-gold);
}

/* FUTURISTIC MAPA 4D STYLES */
@keyframes scan {
    0% {
        top: -100%;
    }

    100% {
        top: 100%;
    }
}

@keyframes scan-slow {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(1500%);
    }
}

.animate-scan {
    animation: scan 4s linear infinite;
}


.animate-scan-slow {
    animation: scan-slow 8s linear infinite;
}

/* --- VIDEO PREVIEW STYLES --- */
.video-preview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    transform: scale(0.95);
}

.video-preview:hover {
    opacity: 1;
    transform: scale(1);
}

.video-preview.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
}

.video-preview.active div {
    border-color: rgba(59, 130, 246, 0.5);
    /* Blue border */
    background: rgba(59, 130, 246, 0.1);
    box-shadow: 0 0 20px rgba(59, 130, 246, 0.15);
}

.video-preview img {
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.video-preview:hover img,
.video-preview.active img {
    filter: grayscale(0%);
}

/* --- GALLERY PREVIEW STYLES --- */
.gallery-preview {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    opacity: 0.7;
    transform: scale(0.95);
}

.gallery-preview:hover {
    opacity: 1;
    transform: scale(1);
}

.gallery-preview.active {
    opacity: 1;
    transform: scale(1.05);
    z-index: 10;
}

.gallery-preview.active div {
    border-color: rgba(245, 158, 11, 0.5);
    /* Amber border */
    background: rgba(245, 158, 11, 0.1);
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.15);
}

.gallery-preview img {
    filter: grayscale(100%);
    transition: all 0.5s ease;
}

.gallery-preview:hover img,
.gallery-preview.active img {
    filter: grayscale(0%);
}

/* --- NEO GLASS CARD STYLES (DEMO SECTION) --- */
.neo-glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.1),
        0 2px 4px -1px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.neo-glass-card:hover {
    transform: translateY(-5px);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.2),
        0 10px 10px -5px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.2),
        0 0 20px rgba(59, 130, 246, 0.1);
    /* Subtle blue glow */
}

.card-glow {
    position: absolute;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    top: -100px;
    left: -100px;
    opacity: 0;
    transition: opacity 0.5s ease;
    mix-blend-mode: overlay;
}

.neo-glass-card:hover .card-glow {
    opacity: 1;
}

/* Simulator Specifics */
.simulator-box {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ocr-grid-overlay {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.1) 1px, transparent 1px);
    background-size: 20px 20px;
}

/* --- KNOWLEDGE GRAPH STYLES --- */
.neural-node {
    position: absolute;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 10;
}

.neural-node:hover {
    transform: scale(1.2);
    z-index: 20;
    box-shadow: 0 0 30px currentColor;
    border-color: white;
}

.neural-node.node-lg {
    width: 80px;
    height: 80px;
    font-size: 14px;
}

.neural-node.node-md {
    width: 60px;
    height: 60px;
    font-size: 12px;
}

.neural-node.node-sm {
    width: 40px;
    height: 40px;
    font-size: 10px;
    opacity: 0.8;
}

.network-lines-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.graph-scanner {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, transparent, #06b6d4, transparent);
    animation: graph-scan 6s ease-in-out infinite;
    opacity: 0.5;
    z-index: 5;
}

@keyframes graph-scan {
    0% {
        top: 0;
        opacity: 0;
    }

    10% {
        opacity: 0.8;
    }

    90% {
        opacity: 0.8;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.node-pulse {
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 1px solid currentColor;
    animation: node-ping 2s cubic-bezier(0, 0, 0.2, 1) infinite;
    opacity: 0;
}

@keyframes node-ping {
    0% {
        transform: scale(1);
        opacity: 0.5;
    }

    100% {
        transform: scale(2);
        opacity: 0;
    }
}

.floating-legend-item {
    transition: all 0.2s ease;
}

.floating-legend-item:hover {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 6px;
    padding-left: 4px;
}

/* --- IMPACT & PERFORMANCE STYLES --- */
.tech-grid-bg {
    background-size: 40px 40px;
    background-image:
        linear-gradient(to right, rgba(59, 130, 246, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(59, 130, 246, 0.05) 1px, transparent 1px);
    mask-image: radial-gradient(circle at center, black 60%, transparent 100%);
}

.neo-glass-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.neo-glass-card:hover {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px -5px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.neo-glass-card .card-glow {
    position: absolute;
    width: 60%;
    height: 60%;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0;
    transition: opacity 0.5s ease;
    z-index: -1;
}

.neo-glass-card:hover .card-glow {
    opacity: 0.2;
}

.chart-container-tech {
    position: relative;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0) 0%, rgba(59, 130, 246, 0.05) 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 1rem;
    padding: 1rem;
}

.stat-value {
    background: linear-gradient(to right, #fff, #94a3b8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* --- HISTORY SECTION STYLES --- */
.perspective-grid-amber {
    background-image: linear-gradient(rgba(245, 158, 11, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(245, 158, 11, 0.1) 1px, transparent 1px);
    background-size: 60px 60px;
    transform: perspective(1000px) rotateX(60deg) translateY(-100px) scale(2);
    mask-image: linear-gradient(to bottom, black 0%, transparent 70%);
    transform-origin: top center;
}

.glass-amber {
    background: rgba(245, 158, 11, 0.05);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(245, 158, 11, 0.2);
    border-radius: 1.5rem;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.glass-amber:hover {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.4);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.1);
    transform: translateY(-5px);
}

.glass-amber::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(245, 158, 11, 0.2), transparent);
    transform: skewX(-25deg);
    transition: 0.5s;
    pointer-events: none;
}

.glass-amber:hover::before {
    left: 100%;
    transition: 0.7s ease-in-out;
}

/* Enhanced Scan Animation */
@keyframes intense-scan {
    0% {
        top: -10%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 110%;
        opacity: 0;
    }
}

.animate-intense-scan {
    animation: intense-scan 3s cubic-bezier(0.4, 0, 0.2, 1) infinite;
    background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.8), rgba(59, 130, 246, 0.5), transparent);
    height: 20%;
}

/* --- GLOBAL ANIMATIONS (Fix for missing title/subtitle) --- */
@keyframes slide-up {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }

    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-slide-up {
    animation-name: slide-up;
    animation-duration: 0.8s;
    animation-fill-mode: forwards;
}

/* Reveal Animation (Scroll Triggered) */
.animate-reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1), transform 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.animate-reveal.reveal-visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- KNOWLEDGE DATABASE HUD --- */
.knowledge-hud-container {
    background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.05) 0%, transparent 70%);
}

.knowledge-card {
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 3px solid rgba(59, 130, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.knowledge-card:hover {
    border-color: rgba(59, 130, 246, 0.5);
    border-left-color: #3b82f6;
    transform: translateY(-5px);
    background: rgba(15, 23, 42, 0.8);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5), 0 0 20px rgba(59, 130, 246, 0.1);
}

.knowledge-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 40px;
    height: 40px;
    background: linear-gradient(45deg, transparent 50%, rgba(59, 130, 246, 0.1) 50%);
    pointer-events: none;
}

.metadata-pill {
    font-family: 'JetBrains Mono', monospace;
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.reliability-index {
    color: #10b981;
    font-weight: bold;
}

.hud-accent-corner {
    position: absolute;
    width: 10px;
    height: 10px;
    border: 1px solid rgba(59, 130, 246, 0.4);
    pointer-events: none;
}

.hud-accent-top-left {
    top: 12px;
    left: 12px;
    border-right: none;
    border-bottom: none;
}

.hud-accent-bottom-right {
    bottom: 12px;
    right: 12px;
    border-left: none;
    border-top: none;
}

.source-category-tab {
    position: relative;
    padding-bottom: 8px;
    transition: all 0.3s ease;
}

.source-category-tab.active {
    color: #3b82f6;
}

.source-category-tab.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #3b82f6;
    box-shadow: 0 0 10px #3b82f6;
}

/* --- DIGITAL FORGE (PROTOTYPE) HUD --- */
.forge-container {
    background: radial-gradient(circle at center, rgba(30, 41, 59, 0.5) 0%, transparent 100%);
}

.forge-node {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.forge-node:hover {
    background: rgba(59, 130, 246, 0.05);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateX(10px);
}

.node-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(59, 130, 246, 0.1);
    border-radius: 12px;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.forge-node:hover .node-icon-wrapper {
    background: rgba(59, 130, 246, 0.2);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.3);
}

/* Mockup Scanner Effect */
.mockup-scanner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom,
            transparent 0%,
            rgba(59, 130, 246, 0.2) 48%,
            #3b82f6 50%,
            rgba(59, 130, 246, 0.2) 52%,
            transparent 100%);
    background-size: 100% 20px;
    background-repeat: no-repeat;
    height: 100%;
    pointer-events: none;
    z-index: 20;
    opacity: 0.3;
    animation: scanner-move 4s linear infinite;
}

@keyframes scanner-move {
    0% {
        transform: translateY(-100%);
    }

    100% {
        transform: translateY(100%);
    }
}

.cyber-cta {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    box-shadow: 0 10px 25px -5px rgba(37, 99, 235, 0.4);
    transition: all 0.3s ease;
}

.cyber-cta:hover {
    transform: scale(1.02) translateY(-2px);
    box-shadow: 0 15px 35px -5px rgba(37, 99, 235, 0.6);
}

.cyber-cta::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg,
            transparent,
            rgba(255, 255, 255, 0.3),
            transparent);
    transition: all 0.6s ease;
}

.cyber-cta:hover::before {
    left: 100%;
}

.hud-tag {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    padding: 2px 8px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
    border-radius: 4px;
    pointer-events: none;
}

/* --- NEURAL NEXUS (FINAL CTA) HUD --- */
.nexus-container {
    background: radial-gradient(circle at bottom center, rgba(37, 99, 235, 0.1) 0%, transparent 80%);
    position: relative;
    overflow: hidden;
}

.nexus-launchpad {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-top: 1px solid rgba(59, 130, 246, 0.3);
    position: relative;
}

.nexus-launchpad::before {
    content: "";
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%233b82f6' fill-opacity='0.05' fill-rule='evenodd'%3E%3Cpath d='M0 40L40 0H20L0 20M40 40V20L20 40'/%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.2;
    pointer-events: none;
}

.cyber-download-btn {
    position: relative;
    padding: 1.5rem 3rem;
    background: linear-gradient(90deg, #1e40af 0%, #3b82f6 100%);
    border-radius: 1rem;
    color: white;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 2px;
    overflow: hidden;
    box-shadow: 0 0 30px rgba(59, 130, 246, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: inline-flex;
    align-items: center;
    gap: 1.25rem;
}

.cyber-download-btn:hover {
    transform: scale(1.05) translateY(-5px);
    box-shadow: 0 0 50px rgba(59, 130, 246, 0.6);
}

.cyber-download-btn::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.6s ease;
}

.cyber-download-btn:hover::after {
    left: 140%;
}

.nexus-telemetry-row {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: #475569;
}

.telemetry-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.telemetry-item span {
    color: #3b82f6;
    font-weight: bold;
}

.sync-status-indicator {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
    color: #10b981;
    padding: 4px 12px;
    border-radius: 9999px;
    font-size: 10px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #10b981;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1.2);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* --- HERO PORTAL (PARATY 4.0) STYLES --- */
.hero-portal-bg {
    background: radial-gradient(circle at center, rgba(15, 23, 42, 0) 0%, #020617 100%);
    position: relative;
    z-index: 1;
}

.hero-portal-bg::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black 40%, transparent 80%);
    pointer-events: none;
    z-index: -1;
}

/* Cyber Title - Shimmer Effect (replaces glitch) */
.hero-glitch-text {
    position: relative;
    display: inline-block;
    background: linear-gradient(90deg,
            #f59e0b 0%,
            #fbbf24 25%,
            #fff 50%,
            #fbbf24 75%,
            #f59e0b 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: shimmer-text 4s ease-in-out infinite;
}

.hero-glitch-text::before,
.hero-glitch-text::after {
    display: none;
}

@keyframes shimmer-text {

    0%,
    100% {
        background-position: -100% 0;
    }

    50% {
        background-position: 200% 0;
    }
}

/* Floating HUD Cards */
.hero-hud-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-left: 2px solid rgba(245, 158, 11, 0.5);
    /* Amber accent */
    padding: 1.5rem;
    border-radius: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.hero-hud-card:hover {
    background: rgba(15, 23, 42, 0.6);
    border-color: rgba(245, 158, 11, 0.3);
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6), 0 0 20px rgba(245, 158, 11, 0.1);
}

/* Neon Hero Buttons */
.cyber-hero-btn {
    position: relative;
    padding: 16px 32px;
    border-radius: 9999px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cyber-hero-btn-primary {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.9), rgba(245, 158, 11, 0.8));
    color: white;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.cyber-hero-btn-primary:hover {
    box-shadow: 0 0 40px rgba(245, 158, 11, 0.5);
    transform: translateY(-2px);
}

.cyber-hero-btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(8px);
}

.cyber-hero-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.system-boot-line {
    width: 0%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    animation: boot-line 1.5s ease-out forwards;
}

@keyframes boot-line {
    to {
        width: 100%;
    }
}

/* --- NEURAL GROWTH PREDICTOR HUD --- */
.neural-container {
    background: radial-gradient(circle at center, rgba(16, 185, 129, 0.05) 0%, transparent 80%);
    position: relative;
}

.holographic-card {
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(16, 185, 129, 0.1);
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.05);
    position: relative;
    overflow: hidden;
}

.holographic-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(16, 185, 129, 0.05) 0%, transparent 100%);
    pointer-events: none;
}

.telemetry-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 2px;
    color: #10b981;
    opacity: 0.6;
    text-transform: uppercase;
}

.neural-pulse {
    animation: neural-pulse 4s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes neural-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.3;
    }

    50% {
        transform: scale(1.05);
        opacity: 0.6;
    }
}

.simulation-active {
    position: relative;
}

.simulation-active::after {
    content: "SIMULATING...";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: 'JetBrains Mono', monospace;
    font-weight: 900;
    font-size: 2rem;
    color: rgba(16, 185, 129, 0.2);
    letter-spacing: 1rem;
    pointer-events: none;
    z-index: 50;
    animation: sim-text-glitch 1s infinite alternate;
}

@keyframes sim-text-glitch {
    0% {
        transform: translate(-50%, -50%) skew(0deg);
        opacity: 0.2;
    }

    20% {
        transform: translate(-51%, -49%) skew(2deg);
        opacity: 0.4;
    }

    40% {
        transform: translate(-49%, -51%) skew(-2deg);
        opacity: 0.1;
    }

    100% {
        transform: translate(-50%, -50%) skew(0deg);
        opacity: 0.3;
    }
}

.chart-glow {
    filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3));
}

.data-node-active {
    animation: node-ping 1.5s infinite;
}

@keyframes node-ping {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.4);
    }

    70% {
        transform: scale(1.1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

/* EFECTO MARIPOSA: GLITCH & SIMULATOR STYLES */
@keyframes glitch-skew {
    0% {
        transform: skew(0deg);
    }

    20% {
        transform: skew(-5deg);
        filter: hue-rotate(90deg) brightness(1.5);
    }

    40% {
        transform: skew(5deg);
        filter: hue-rotate(-90deg);
    }

    60% {
        transform: skew(-2deg);
    }

    80% {
        transform: skew(2deg);
        filter: blur(2px);
    }

    100% {
        transform: skew(0deg);
    }
}

.glitch-active {
    animation: glitch-skew 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) infinite;
}

#butterflyContainer::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgba(15, 23, 42, 0.8) 0%, transparent 50%);
    z-index: 10;
    pointer-events: none;
}

#butterflyContainer .prediction-box {
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

#predictionText {
    text-shadow: 0 0 20px rgba(0, 0, 0, 0.8);
}

.group\/mini:hover {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(15, 23, 42, 0.9);
    transform: translateY(-2px);
}

/* Futuristic Range Slider */
.futuristic-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 4px;
    background: rgba(6, 182, 212, 0.1);
    border-radius: 2px;
    outline: none;
    position: relative;
    cursor: pointer;
}

.futuristic-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 16px;
    height: 16px;
    background: #06b6d4;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 5px #fff;
    transition: all 0.2s ease;
}

.futuristic-slider::-webkit-slider-thumb:hover {
    transform: scale(1.2);
    box-shadow: 0 0 25px rgba(6, 182, 212, 1), 0 0 10px #fff;
}

.futuristic-slider::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: #06b6d4;
    border: 2px solid #fff;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.8), 0 0 5px #fff;
    transition: all 0.2s ease;
}

/* Lining Numbers utility if not in tailwind config */
.lining-nums {
    font-variant-numeric: lining-nums;
}

/* Matrix Background Canvas */
#mapMatrixBg {
    filter: blur(0.5px);
}

/* GEMELO DIGITAL: HOLOGRAPHIC & HUD STYLES */
@keyframes laser-move {

    0%,
    100% {
        top: 10%;
        opacity: 0.3;
    }

    50% {
        top: 90%;
        opacity: 0.8;
    }
}

@keyframes spin-slow {
    from {
        transform: rotate(0deg) scale(1.1);
    }

    to {
        transform: rotate(360deg) scale(1.1);
    }
}

.animate-laser-move {
    animation: laser-move 3s ease-in-out infinite;
}

.animate-spin-slow {
    animation: spin-slow 20s linear infinite;
}

/* Enhanced 3D Container */
.artifact-3d-container {
    perspective: 1000px;
    height: 450px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Hotspot Improvements in 3D Space */
#artifactModel .hotspot {
    transform-style: preserve-3d;
    backface-visibility: visible;
}

#artifactModel .hotspot-tooltip {
    min-width: 200px;
    backdrop-filter: blur(12px);
    border: 1px solid rgba(59, 130, 246, 0.3);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

/* HUD Stat Cards for Gemelo Digital */
.group\/stat:hover {
    border-color: rgba(59, 130, 246, 0.6);
    background: rgba(15, 23, 42, 0.8);
    transform: translateY(-2px);
}

.group\/stat div:first-child,
.group\/stat div:nth-child(2) {
    transition: all 0.3s ease;
}

.group\/stat:hover div:first-child {
    width: 100%;
}

.group\/stat:hover div:nth-child(2) {
    height: 100%;
}

/* FULL 3D ARCHIVE MODAL STYLES */
.bg-radial-glow {
    background: radial-gradient(circle at center, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

.custom-scrollbar::-webkit-scrollbar {
    width: 4px;
}

.custom-scrollbar::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb {
    background: rgba(59, 130, 246, 0.3);
    border-radius: 10px;
}

.custom-scrollbar::-webkit-scrollbar-thumb:hover {
    background: rgba(59, 130, 246, 0.5);
}

/* --- TIMELINE & ARCHITECTURE STYLES --- */
.roadmap-step {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.roadmap-step:hover {
    transform: translateX(10px);
}

@media (max-width: 768px) {
    .roadmap-step:hover {
        transform: translateX(5px);
    }
}

.roadmap-marker {
    transition: all 0.3s ease;
}

.group:hover .roadmap-marker {
    transform: scale(1.1);
    box-shadow: 0 0 20px currentColor;
}

.tech-stack-layer {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
}

.tech-stack-layer:hover {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
    border-color: rgba(255, 255, 255, 0.1);
    transform: scale(1.02);
}

.tech-flow-line {
    width: 2px;
    background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.2), transparent);
    height: 20px;
    margin: 0 auto;
}
}

#archiveModal .artifact-3d-model {
    cursor: grab;
    transition: transform 0.1s ease-out;
}

#archiveModal .artifact-3d-model:active {
    cursor: grabbing;
}

@keyframes scan-slow {
    0% {
        transform: translateY(-100%);
        opacity: 0;
    }

    50% {
        opacity: 0.5;
    }

    100% {
        transform: translateY(800%);
        opacity: 0;
    }
}

.animate-scan-slow {
    animation: scan-slow 8s linear infinite;
}

/* ============================================
   IA SHOWCASE TAB SYSTEM
   ============================================ */

.ia-tabs-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 3rem;
}

.ia-tab-buttons {
    display: flex;
    gap: 1rem;
    background: rgba(15, 23, 42, 0.6);
    padding: 0.5rem;
    border-radius: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(15px);
    box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5);
}

.ia-tab-btn,
.data-tab-btn,
.immersive-tab-btn {
    padding: 0.875rem 1.75rem;
    border-radius: 1.25rem;
    font-weight: 800;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
    background: transparent;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    position: relative;
    overflow: hidden;
}

.ia-tab-btn:hover,
.data-tab-btn:hover,
.immersive-tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.ia-tab-btn:active,
.data-tab-btn:active,
.immersive-tab-btn:active {
    transform: translateY(0) scale(0.96);
}

.ia-tab-btn.active,
.data-tab-btn.active,
.immersive-tab-btn.active {
    color: white;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow:
        0 0 20px rgba(59, 130, 246, 0.4),
        0 10px 20px -5px rgba(0, 0, 0, 0.5);
}

.ia-tab-btn.active::after,
.data-tab-btn.active::after,
.immersive-tab-btn.active::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: skewX(-25deg);
    animation: shine-tab 3s infinite;
}

@keyframes shine-tab {
    0% {
        left: -100%;
    }

    20%,
    100% {
        left: 200%;
    }
}


.ia-tab-content,
.data-tab-content,
.immersive-tab-content {
    display: none;
    animation: fadeInTab 0.5s ease-in-out;
}

.ia-tab-content.active,
.data-tab-content.active,
.immersive-tab-content.active {
    display: block;
}

@keyframes fadeInTab {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tabs */
@media (max-width: 768px) {
    .ia-tab-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }

    .ia-tab-btn {
        width: 100%;
        justify-content: center;
    }
}

/* --- GEMELO DIGITAL SCANNER UPDATE --- */
.face-wireframe {
    background-image:
        linear-gradient(rgba(59, 130, 246, 0.5) 1px, transparent 1px),
        linear-gradient(90deg, rgba(59, 130, 246, 0.5) 1px, transparent 1px);
    background-size: 20px 20px;
    border: 2px solid rgba(59, 130, 246, 0.8);
    transform: translateZ(3px);
    box-shadow: 0 0 15px rgba(59, 130, 246, 0.4);
}

.face-points {
    background-image: radial-gradient(#10b981 1.5px, transparent 1.5px);
    background-size: 10px 10px;
    transform: translateZ(4px);
    mix-blend-mode: screen;
}

.animate-spin-slow {
    animation: spin 15s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* 4D Map Scanning Animation */
@keyframes laser-scan {
    0% {
        top: 0%;
        opacity: 0;
    }

    10% {
        opacity: 1;
    }

    90% {
        opacity: 1;
    }

    100% {
        top: 100%;
        opacity: 0;
    }
}

.animate-laser-scan {
    animation: laser-scan 4s linear infinite;
    display: block !important;
    /* Ensure it overrides opacity hidden if needed, though JS handles it */
}

/* Specific colors are handled by the ID styles, but shadows/glows in animation might need specific keyframes if I want them pulsating */
/* For simplicity, relying on the element's base styles for color/shadow, and just animating top/opacity */