@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Menlo:wght@400;600&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

.font-menlo {
    font-family: 'Menlo', monospace;
}

.glass-card {
    background: rgba(15, 15, 15, 0.7);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(139, 92, 246, 0.2);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(139, 92, 246, 0.1);
}

.glass-card:hover {
    background: rgba(25, 25, 25, 0.8);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 12px 40px rgba(139, 92, 246, 0.2);
}

/* Enhanced scrollbar */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 6px;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #8b5cf6, #3b82f6);
    border-radius: 6px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, #7c3aed, #2563eb);
}

/* Sophisticated noise texture */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: -1;
}

/* Enhanced glow effects */
.focus\:ring-4:focus {
    box-shadow: 
        0 0 0 4px rgba(147, 51, 234, 0.3), 
        0 0 30px rgba(147, 51, 234, 0.2),
        0 0 60px rgba(147, 51, 234, 0.1);
}

/* Smooth transforms */
.hover\:scale-105:hover {
    transform: scale(1.03);
}

/* Professional loading animation */
@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Gradient text enhancement */
.bg-clip-text {
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* Button depth and shadows */
.shadow-2xl {
    box-shadow: 
        0 25px 50px -12px rgba(139, 92, 246, 0.25),
        0 0 0 1px rgba(139, 92, 246, 0.1);
}

/* Confidence bar animations */
@keyframes fillBar {
    from {
        width: 0%;
        opacity: 0.5;
    }
    to {
        opacity: 1;
    }
}

.confidence-bar {
    animation: fillBar 2s ease-out;
}

/* Enhanced mobile responsiveness */
@media (max-width: 768px) {
    .glass-card {
        backdrop-filter: blur(8px);
        border-radius: 16px;
    }
    
    .text-4xl {
        font-size: 2rem;
    }
    
    .hover\:scale-105:hover {
        transform: scale(1.01);
    }
    
    .px-8 {
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .py-6 {
        padding-top: 1rem;
        padding-bottom: 1rem;
    }
}

/* Accessibility enhancements */
@media (prefers-reduced-motion: reduce) {
    .hover\:scale-105:hover {
        transform: none;
    }
    
    .transition-transform,
    .transition-all {
        transition: none;
    }
    
    .animate-spin {
        animation: none;
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .glass-card {
        border-width: 2px;
        background: rgba(0, 0, 0, 0.9);
    }
    
    .bg-gradient-to-r {
        background: #8b5cf6;
    }
}

/* Focus indicators for keyboard navigation */
button:focus-visible,
input:focus-visible {
    outline: 2px solid #8b5cf6;
    outline-offset: 2px;
}

/* Professional typography scale */
h1, h2, h3, h4 {
    letter-spacing: -0.025em;
    line-height: 1.2;
}

.text-lg {
    line-height: 1.6;
}

.text-sm {
    line-height: 1.5;
}

/* Subtle entrance animations for results */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.glass-card {
    animation: fadeInUp 0.6s ease-out;
}

.glass-card:nth-child(2) {
    animation-delay: 0.1s;
}

.glass-card:nth-child(3) {
    animation-delay: 0.2s;
}

.glass-card:nth-child(4) {
    animation-delay: 0.3s;
}