:root {
    --primary: #6366F1;
    --primary-dark: #4F46E5;
    --secondary: #10B981;
    --accent: #F59E0B;
    --dark: #0F172A;
    --gray-900: #1E293B;
    --gray-800: #334155;
    --gray-700: #475569;
    --gray-600: #64748B;
    --gray-400: #94A3B8;
    --gray-200: #E2E8F0;
    --gray-100: #F1F5F9;
    --gray-50: #F8FAFC;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: var(--gray-900);
    background: var(--white);
}

/* Navigation */
.nav {
    background: var(--white);
    border-bottom: 1px solid var(--gray-200);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary);
    text-decoration: none;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-menu li a {
    color: var(--gray-700);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.2s, border-color 0.2s;
    padding-bottom: 0.25rem;
    border-bottom: 2px solid transparent;
}

.nav-menu li a:hover {
    color: var(--primary);
    border-color: var(--primary);
}

.nav-cta {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 0.6rem 1.25rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
}

.nav-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(99, 102, 241, 0.3);
}


/* Hero Section */
.hero {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--gray-50) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 4rem;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
     background-clip: text;           /* standard */
    -webkit-background-clip: text;   /* for Chrome/Safari */
    -webkit-text-fill-color: transparent;
    color: transparent;
}

.hero p {
    font-size: 1.125rem;
    color: var(--gray-600);
    margin-bottom: 2rem;
    line-height: 1.8;
}

/* Stats Row */
.stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 0.875rem;
    color: var(--gray-600);
}

/* Upload Box */
.upload-box {
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.dropzone {
    padding: 3rem;
    text-align: center;
    border: 2px dashed var(--gray-200);
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s;
}

.dropzone:hover {
    border-color: var(--primary);
    background: var(--gray-50);
}

.dropzone.active {
    border-color: var(--primary);
    background: rgba(99, 102, 241, 0.05);
}

.upload-icon {
    color: var(--gray-400);
    margin-bottom: 1rem;
}

.dropzone h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

.dropzone p {
    color: var(--gray-600);
    margin-bottom: 1.5rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(99, 102, 241, 0.3);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-900);
    border: 1px solid var(--gray-200);
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-secondary:hover {
    background: var(--gray-200);
}

/* Features Section */
.features {
    padding: 5rem 0;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    color: var(--gray-900);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background: var(--gray-50);
    padding: 2rem;
    border-radius: 16px;
    text-align: center;
    transition: all 0.3s;
}

.feature-card:hover {
    background: var(--white);
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
    transform: translateY(-5px);
}

.feature-icon-wrap {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(16, 185, 129, 0.1));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon {
    font-size: 2.5rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    color: var(--gray-900);
}

.feature-card p {
    color: var(--gray-600);
}

/* Who Uses Section */
.who-uses {
    padding: 5rem 0;
    background: var(--gray-50);
}

/* FORCE 3 equal columns on desktop, then 2/1 on smaller screens */
.users-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 2rem;
}

@media (max-width: 1024px) {
    .users-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }
}

@media (max-width: 640px) {
    .users-grid {
        grid-template-columns: 1fr;
    }
}


.user-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.user-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
}

.user-card h4 {
    margin-bottom: 0.5rem;
    color: var(--gray-900);
}

/* Algorithm Section */
.algorithm {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--dark) 0%, var(--gray-900) 100%);
}

.section-title-white {
    color: var(--white);
    text-align: center;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--gray-400);
    margin-bottom: 3rem;
}

.algorithm-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

.algorithm-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 2rem;
    border-radius: 12px;
    display: flex;
    gap: 1.5rem;
    align-items: start;
}

.check-icon {
    background: var(--secondary);
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.algorithm-card h4 {
    color: white;
    margin-bottom: 0.5rem;
}

.algorithm-card p {
    color: var(--gray-400);
}

/* Global Stats */
.global-stats {
    padding: 5rem 0;
}

.global-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
}

.global-stat {
    text-align: center;
}

.global-stat h3 {
    font-size: 3.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
     background-clip: text;           /* standard */
    -webkit-background-clip: text;   /* for Chrome/Safari */
    -webkit-text-fill-color: transparent;
    color: transparent;
    margin-bottom: 0.5rem;
}

.global-stat p {
    color: var(--gray-600);
    font-size: 1.125rem;
}

/* FAQ Section */
.faq {
    padding: 5rem 0;
    background: var(--gray-50);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
}

.faq-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.faq-card h4 {
    color: var(--primary);
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.faq-card p {
    color: var(--gray-600);
    line-height: 1.8;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

.cta-box {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
    color: white;
}

.cta-box h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
}

.cta-form {
    display: grid;
    gap: 1rem;
}

.cta-form input,
.cta-form textarea {
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 1rem;
    border-radius: 8px;
    color: white;
    font-family: inherit;
}

.cta-form input::placeholder,
.cta-form textarea::placeholder {
    color: rgba(255,255,255,0.7);
}

.cta-form .btn-primary {
    background: white;
    color: var(--primary);
}

/* Footer */
.footer {
    background: var(--dark);
    color: var(--gray-400);
    padding: 4rem 0 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    color: white;
    margin-bottom: 1rem;
}

.footer-links h4 {
    color: white;
    margin-bottom: 1rem;
    font-size: 1rem;
}

.footer-links a {
    display: block;
    color: var(--gray-400);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

/* Utility Classes */
.hidden {
    display: none !important;
}

/* Results Section */
.results {
    padding: 3rem 0;
    background: var(--gray-50);
}

.results h2 {
    text-align: center;
    color: var(--secondary);
    margin-bottom: 2rem;
}

#fileList {
    max-width: 600px;
    margin: 0 auto 2rem;
}

.file-item {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.file-item.warning {
    background-color: rgba(245, 158, 11, 0.1);
    border-left: 4px solid var(--accent);
}

.file-info h4 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.file-info p {
    font-size: 0.875rem;
    color: var(--secondary);
}

.results-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* Responsive */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-container {
        grid-template-columns: 1fr;
    }
    
    .hero-graphic {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
    }
    
        .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}


/* Blog Section */
.blog-section {
    padding: 80px 20px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.blog-section .section-subtitle {
    text-align: center;
    color: #64748b;
    font-size: 1.1rem;
    margin-top: 10px;
    margin-bottom: 50px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 900px;
    margin: 0 auto;
}

.blog-card {
    background: white;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.blog-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(99, 102, 241, 0.15);
    border-color: #6366f1;
}

.blog-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
}

.blog-card h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 15px;
    font-weight: 700;
}

.blog-card p {
    color: #64748b;
    line-height: 1.7;
    margin-bottom: 25px;
    flex-grow: 1;
}

.blog-link {
    color: #6366f1;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.3s ease;
    font-size: 1rem;
}

.blog-link:hover {
    color: #4f46e5;
    gap: 10px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .blog-section {
        padding: 60px 20px;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-card {
        padding: 30px 25px;
    }
    
    .blog-card h3 {
        font-size: 1.3rem;
    }
}