/* Fade In On Scroll Animations */
.fade-in-section {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

    .fade-in-section.is-visible {
        opacity: 1;
        transform: translateY(0);
    }

    /* Staggered animation delays for children */
    .fade-in-section.delay-100 {
        transition-delay: 0.1s;
    }

    .fade-in-section.delay-200 {
        transition-delay: 0.2s;
    }

    .fade-in-section.delay-300 {
        transition-delay: 0.3s;
    }

    .fade-in-section.delay-400 {
        transition-delay: 0.4s;
    }

/* Hero Section Enhancements */
.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95) 0%, rgba(255,255,255,0.7) 50%, transparent 100%);
    padding: 3rem 0 2rem;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    color: #530966;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.9);
}

.hero-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    color: #530966;
    margin-bottom: 2rem;
    font-weight: 500;
}

/* Download Buttons Enhancement */
.download-section {
    background: white;
    padding: 3rem 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(83, 9, 102, 0.15);
    margin-top: -3rem;
    position: relative;
    z-index: 10;
}

.download-title {
    font-size: 1.75rem;
    color: #530966;
    font-weight: 600;
    margin-bottom: 2rem;
}

.download-button-wrapper {
    position: relative;
}

.custom-download-btn {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem 2.5rem;
    background: linear-gradient(135deg, #530966 0%, #7a1fa3 100%);
    border: 2px solid rgba(198, 168, 119, 0.3);
    border-radius: 16px;
    color: white;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 25px rgba(83, 9, 102, 0.3);
    position: relative;
    overflow: hidden;
    min-width: 240px;
}

    .custom-download-btn::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
        transition: left 0.5s ease;
    }

    .custom-download-btn:hover::before {
        left: 100%;
    }

    .custom-download-btn:hover {
        transform: translateY(-8px) scale(1.05);
        box-shadow: 0 15px 40px rgba(83, 9, 102, 0.4);
        border-color: #C6A877;
        color: white;
    }

    .custom-download-btn:active {
        transform: translateY(-4px) scale(1.02);
    }

.download-btn-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.custom-download-btn:hover .download-btn-icon {
    background: rgba(198, 168, 119, 0.3);
    transform: scale(1.1);
}

.download-btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.download-btn-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.85;
    font-weight: 500;
}

.download-btn-platform {
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

/* Balance Section - ENHANCED */
.balance-section {
    background: linear-gradient(135deg, #530966 0%, #7a1fa3 50%, #530966 100%);
    padding: 6rem 2rem;
    color: white;
    margin-top: 4rem;
    position: relative;
    overflow: hidden;
}

    .balance-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 20% 30%, rgba(198, 168, 119, 0.15) 0%, transparent 50%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.05) 0%, transparent 50%);
        pointer-events: none;
    }

    .balance-section::after {
        content: '';
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        height: 100px;
        background: linear-gradient(to bottom, transparent, rgba(0,0,0,0.1));
        pointer-events: none;
    }

.balance-content {
    position: relative;
    z-index: 1;
    max-width: 1100px;
    margin: 0 auto;
}

.balance-header {
    text-align: center;
    margin-bottom: 3rem;
}

.balance-section h2 {
    font-size: 2.75rem;
    font-weight: 700;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    color: white !important;
    margin-bottom: 1rem;
}

.balance-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    max-width: 700px;
    margin: 0 auto;
}

.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.balance-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

    .balance-card::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(198, 168, 119, 0.1) 0%, transparent 100%);
        opacity: 0;
        transition: opacity 0.4s ease;
    }

    .balance-card:hover {
        transform: translateY(-10px);
        background: rgba(255, 255, 255, 0.15);
        box-shadow: 0 20px 40px rgba(0,0,0,0.3);
    }

        .balance-card:hover::before {
            opacity: 1;
        }

.balance-card-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #C6A877 0%, #d4b88a 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(198, 168, 119, 0.4);
    position: relative;
    z-index: 1;
}

.balance-card h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
    position: relative;
    z-index: 1;
}

.balance-card p {
    color: rgba(255,255,255,0.95) !important;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    line-height: 1.8;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

/* Features Section Enhanced - Using old layout with new card design */
.feature-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    height: 100%;
    border: 2px solid transparent;
    text-align: center;
}

    .feature-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 40px rgba(83, 9, 102, 0.2);
        border-color: #C6A877;
    }

.feature-icon-wrapper {
    width: 80px;
    height: 80px;
    margin: 0 auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(83, 9, 102, 0.1);
}

.feature-image {
    max-width: 60px;
}

.feature-details h4 {
    color: #530966;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.25rem;
}

.feature-details p {
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* Why Choose Section */
.why-choose-section {
    padding: 5rem 2rem;
    background: white;
}

.why-choose-header {
    text-align: center;
    margin-bottom: 4rem;
}

    .why-choose-header h2 {
        color: #530966;
        font-size: 2.5rem;
        font-weight: 700;
        margin-bottom: 1rem;
    }

    .why-choose-header p {
        color: #666;
        font-size: 1.2rem;
        max-width: 800px;
        margin: 0 auto;
    }

.advantage-cards-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.advantage-item {
    flex: 1 1 calc(33.333% - 2rem);
    min-width: 300px;
    max-width: 380px;
}

.advantage-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 2.5rem;
    height: 100%;
    border-left: 4px solid #C6A877;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
}

    .advantage-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 8px 30px rgba(83, 9, 102, 0.15);
        border-left-color: #530966;
    }

.advantage-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #530966 0%, #7a1fa3 100%);
    color: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.75rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 12px rgba(83, 9, 102, 0.3);
}

.advantage-card h3 {
    color: #530966;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

.advantage-card p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.advantage-list {
    list-style: none;
    padding: 0;
    margin-top: 1rem;
}

    .advantage-list li {
        color: #555;
        padding: 0.5rem 0;
        display: flex;
        align-items: flex-start;
    }

        .advantage-list li::before {
            content: "✓";
            color: #C6A877;
            font-weight: bold;
            font-size: 1.2rem;
            margin-right: 0.75rem;
            flex-shrink: 0;
        }

/* How It Works Section */
.how-it-works-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    padding: 5rem 2rem;
}

.how-it-works-content {
    display: flex;
    align-items: center;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.how-it-works-image {
    flex: 1;
    max-width: 500px;
}

.how-it-works-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.how-it-works-text {
    flex: 1;
}

.how-it-works-text h2 {
    color: #530966;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 2rem;
}

.how-it-works-text p {
    color: #555;
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
}

/* CTA Section */
.cta-section {
    background: linear-gradient(135deg, #530966 0%, #7a1fa3 100%);
    padding: 5rem 2rem;
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

    .cta-section::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: radial-gradient(circle at 50% 50%, rgba(198, 168, 119, 0.1) 0%, transparent 70%);
    }

.cta-content {
    position: relative;
    z-index: 1;
    max-width: 700px;
    margin: 0 auto;
}

.cta-section h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.cta-section p {
    font-size: 1.25rem;
    margin-bottom: 2.5rem;
    opacity: 0.95;
}

.cta-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.cta-button-primary {
    background: white;
    color: #530966;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 4px 20px rgba(0,0,0,0.2);
    position: relative;
    overflow: hidden;
}

    .cta-button-primary::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: rgba(83, 9, 102, 0.1);
        transform: translate(-50%, -50%);
        transition: width 0.6s, height 0.6s;
    }

    .cta-button-primary:hover::before {
        width: 300px;
        height: 300px;
    }

    .cta-button-primary:hover {
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 12px 40px rgba(0,0,0,0.3);
        color: #530966;
    }

    .cta-button-primary:active {
        transform: translateY(-2px) scale(1.02);
    }

.cta-button-secondary {
    background: transparent;
    color: white;
    padding: 1.25rem 3rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1.1rem;
    text-decoration: none;
    border: 2px solid white;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

    .cta-button-secondary::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: white;
        transition: left 0.4s ease;
        z-index: 0;
    }

    .cta-button-secondary:hover::before {
        left: 0;
    }

    .cta-button-secondary:hover {
        color: #530966;
        transform: translateY(-5px) scale(1.05);
        box-shadow: 0 8px 25px rgba(255,255,255,0.3);
    }

    .cta-button-secondary:active {
        transform: translateY(-2px) scale(1.02);
    }

    .cta-button-secondary i,
    .cta-button-secondary span {
        position: relative;
        z-index: 1;
    }

/* Responsive */
@media (max-width: 768px) {
    .how-it-works-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .how-it-works-image {
        max-width: 100%;
        width: 100%;
    }
    
    .how-it-works-text {
        width: 100%;
    }
    
    .how-it-works-text h2 {
        font-size: 1.75rem;
        margin-bottom: 1.25rem;
    }
    
    .how-it-works-text p {
        font-size: 1rem;
        margin-bottom: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 2rem;
    }

    .balance-section,
    .why-choose-section,
    .how-it-works-section,
    .cta-section {
        padding: 3rem 1.5rem;
    }

    .balance-section h2 {
        font-size: 2rem;
    }

    .balance-subtitle {
        font-size: 1.1rem;
    }

    .balance-cards {
        grid-template-columns: 1fr;
    }

    .why-choose-header h2 {
        font-size: 2rem;
    }

    .advantage-item {
        flex: 1 1 100%;
        max-width: 100%;
        margin-bottom: 1.5rem;
    }

    .download-section {
        margin-top: 0;
        border-radius: 0;
    }

    .custom-download-btn {
        min-width: 200px;
        padding: 1rem 1.5rem;
    }

    .download-btn-platform {
        font-size: 1.1rem;
    }
    
    .cta-section h2 {
        font-size: 1.75rem;
    }
    
    .cta-section p {
        font-size: 1rem;
    }
}