.hero-section {
    min-height: 100vh;
    min-height: 100dvh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: clamp(3rem, 10vh, 5rem) 1rem 2rem;
    position: relative;
    overflow: hidden;
}

.hero-content {
    color: white;
    max-width: 900px;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 0.5rem 1.5rem;
    border-radius: 50px;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: fadeIn 0.6s ease;
}

.gradient-text {
    background: linear-gradient(to right, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-title {
    font-size: clamp(2rem, 6vw, 3.5rem);
    font-weight: 800;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    animation: fadeIn 0.8s ease;
    font-family: 'Nunito', sans-serif;
}

.hero-subtitle {
    font-size: clamp(1.1rem, 3vw, 1.4rem);
    margin-bottom: 2.5rem;
    opacity: 0.95;
    font-weight: 500;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    animation: fadeIn 1s ease;
    font-family: 'Quicksand', sans-serif;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    animation: fadeIn 1.2s ease;
}

.cta-button {
    color: white;
    border: none;
    padding: clamp(0.85rem, 2.5vw, 1.1rem) clamp(1.75rem, 5vw, 2.25rem);
    border-radius: 50px;
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    min-height: 48px;
    min-width: 140px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    will-change: transform;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.cta-button:focus-visible {
    outline: 3px solid white;
    outline-offset: 4px;
}

.cta-button.primary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.25), rgba(255, 255, 255, 0.15));
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.cta-button.secondary {
    background: rgba(255, 255, 255, 0.95);
    color: #667eea;
    border: 2px solid transparent;
}

.cta-button:active {
    transform: scale(0.95);
}

.features-section {
    padding: 3rem 1rem;
    background: var(--bg);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr));
    gap: clamp(0.75rem, 2vw, 1.5rem);
    max-width: 1200px;
    margin: 0 auto 3rem;
}

.stat-card {
    background: white;
    padding: clamp(1rem, 3vw, 1.5rem);
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s ease;
    will-change: transform;
    contain: layout style paint;
}

.stat-card:active {
    transform: scale(0.96);
}

@media (hover: hover) {
    .stat-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
}

.stat-card i {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.stat-card h3 {
    font-size: clamp(1.5rem, 4vw, 2rem);
    color: #2d3748;
    margin: 0.5rem 0;
    font-weight: 800;
    font-family: 'Nunito', sans-serif;
}

.stat-card p {
    color: var(--text-light);
    font-size: clamp(0.85rem, 2vw, 1rem);
    margin: 0;
    font-weight: 500;
    font-family: 'Quicksand', sans-serif;
}

.features-grid {
    display: grid;
    gap: 1rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: white;
    padding: 1.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}

.feature-card:active {
    transform: scale(0.98);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.1rem;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-family: 'Nunito', sans-serif;
    font-weight: 700;
}

.feature-card p {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    font-family: 'Quicksand', sans-serif;
}

@media (min-width: 768px) {
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
}

@media (max-width: 767px) {
    .hero-badge,
    .hero-title,
    .hero-subtitle,
    .hero-buttons {
        animation: none;
    }
}

@media (min-width: 768px) {
    .hero-section {
        background-attachment: scroll;
    }

    .features-section {
        padding: 4rem 2rem;
    }

    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .features-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (hover: hover) and (min-width: 768px) {
    .cta-button:hover {
        transform: translateY(-4px) scale(1.05);
        box-shadow: 0 15px 40px rgba(0,0,0,0.4);
    }
    
    .cta-button.primary:hover {
        background: linear-gradient(135deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.25));
        border-color: rgba(255, 255, 255, 0.5);
    }
    
    .cta-button.secondary:hover {
        background: white;
        box-shadow: 0 15px 40px rgba(255, 255, 255, 0.3);
    }

    .feature-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .stat-card,
    .feature-card {
        border: 2px solid var(--primary);
    }
}
