/* MAIA Platform - Main Stylesheet */

/* Typography */
* {
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Smooth transitions */
* {
    transition: all 0.2s ease;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f9f9f9;
}

::-webkit-scrollbar-thumb {
    background: #000;
    border-radius: 4px;
}

/* Navigation */
.nav-link {
    position: relative;
    color: #000;
    text-decoration: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #000;
    transition: width 0.3s ease;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Cards */
.card-hover {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.08);
}

/* Buttons */
.btn-primary {
    background: #000;
    color: #fff;
    transition: all 0.2s ease;
}

.btn-primary:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-secondary {
    background: #fff;
    color: #000;
    border: 1px solid #e5e5e5;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: #f9f9f9;
    border-color: #000;
    transform: translateY(-2px);
}

/* Animations */
@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(20px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.fade-in {
    animation: fadeIn 0.6s ease forwards;
}

/* Stagger animation delays */
.stagger-1 { animation-delay: 0.1s; }
.stagger-2 { animation-delay: 0.2s; }
.stagger-3 { animation-delay: 0.3s; }
.stagger-4 { animation-delay: 0.4s; }

/* Grid pattern background */
.grid-pattern {
    background-image: 
        linear-gradient(to right, #f0f0f0 1px, transparent 1px),
        linear-gradient(to bottom, #f0f0f0 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Minimal loading dots */
.pulse-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #000;
    animation: pulse 1.4s infinite ease-in-out both;
}

@keyframes pulse {
    0%, 80%, 100% { 
        transform: scale(0); 
        opacity: 0.5; 
    }
    40% { 
        transform: scale(1); 
        opacity: 1; 
    }
}

.pulse-dot:nth-child(1) { animation-delay: -0.32s; }
.pulse-dot:nth-child(2) { animation-delay: -0.16s; }
.pulse-dot:nth-child(3) { animation-delay: 0; }

/* Page-specific styles */
.hero-section {
    min-height: calc(100vh - 64px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Typography scales */
.text-display {
    font-size: 3.5rem;
    line-height: 1.1;
    font-weight: 300;
}

@media (min-width: 1024px) {
    .text-display {
        font-size: 5rem;
    }
}

/* Mobile-first responsive utilities */
@media (max-width: 640px) {
    .hero-section {
        min-height: calc(100vh - 64px);
        padding-top: 4rem;
        padding-bottom: 4rem;
    }
    
    .content-narrow {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    
    .content-wide {
        max-width: 100%;
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Content containers */
.content-narrow {
    max-width: 56rem;
    margin-left: auto;
    margin-right: auto;
}

.content-wide {
    max-width: 80rem;
    margin-left: auto;
    margin-right: auto;
}

/* Subtle shadows */
.shadow-subtle {
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.shadow-hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* Prose styling */
.prose {
    line-height: 1.75;
    color: #4a4a4a;
}

.prose p {
    margin-bottom: 1.5rem;
}

.prose p:last-child {
    margin-bottom: 0;
}

/* Mobile menu */
.mobile-menu-open {
    overflow: hidden;
}

/* Print styles */
@media print {
    .no-print {
        display: none;
    }
}