/* =====================================================
   INDEX PAGE STYLES
   New styles for the updated index page
   ===================================================== */

/* Section subtitle */
.section-subtitle {
    text-align: center;
    font-size: 1.2rem;
    color: var(--text-color);
    margin-bottom: 3rem;
    animation: fadeInUp 0.6s ease-out;
}

/* Vision Section */
.vision-content {
    max-width: 900px;
    margin: 0 auto;

    .vision-text {
        .lead {
            font-size: 1.4rem;
            text-align: center;
            margin-bottom: 2rem;
            line-height: 1.8;
        }

        h3 {
            text-align: center;
            margin-top: 3rem;
            margin-bottom: 2rem;
        }
    }

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

        .value-item {
            text-align: center;
            padding: 1.5rem;
            background: var(--white-alpha-05);
            border-radius: var(--radius-md);
            border: var(--border-dark);
            transition: all 0.3s ease;

            &:hover {
                border-color: var(--color-decoration-light-alpha-30);
                transform: translateY(-5px);
            }

            .value-icon {
                font-size: 2.5rem;
                margin-bottom: 1rem;
            }

            h4 {
                font-size: 1.1rem;
                margin-bottom: 0.5rem;
            }

            p {
                font-size: 0.9rem;
                margin: 0;
            }
        }
    }
}

/* Hero CTA Buttons */
.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 2rem;
    animation: fadeInUp 1s ease-out 0.4s both;

    .button {
        &.primary {
            background: var(--gradient-text);
            box-shadow: 0 10px 25px var(--box-shadow-color);
        }

        &.secondary {
            background: var(--white-alpha-05);
            border: 2px solid var(--color-decoration-light-alpha-30);
        }
    }

    @media (max-width: 768px) {
        flex-direction: column;
        width: 100%;

        .button {
            width: 100%;
            max-width: 300px;
        }
    }
}

/* Hero inline newsletter form */
.hero-newsletter-form {
    display: flex;
    gap: 1rem;
    align-items: center;
    width: 100%;
    max-width: 500px;

    .form-input {
        flex: 1;
        min-width: 0;
    }

    @media (max-width: 480px) {
        flex-direction: column;

        .form-input,
        .button {
            width: 100%;
            text-align: center;
        }
    }
}

/* Featured Cards */
.card.featured {
    border: 2px solid var(--color-decoration-light-alpha-30);
    background: var(--white-alpha-10);
    transition: all 0.3s ease;

    &:hover {
        border-color: var(--color-decoration-light);
        transform: translateY(-5px);
    }
}

/* Card Link */
.card-link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--color-decoration-light);
    font-weight: 600;
    transition: all 0.3s ease;

    &:hover {
        color: var(--color-decoration-dark);
        transform: translateX(5px);
    }
}

/* Steps Section */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-top: 3rem;

    .step {
        text-align: center;
        position: relative;

        .step-number {
            width: 60px;
            height: 60px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0 auto 1.5rem;
            background: var(--gradient-text);
            border-radius: 50%;
            font-size: 1.5rem;
            font-weight: bold;
            color: var(--text-color-light);
        }

        h3 {
            font-size: 1.3rem;
            margin-bottom: 1rem;
        }

        p {
            font-size: 1rem;
            line-height: 1.6;
        }
    }

    @media (max-width: 768px) {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* AVA App - Card with intro text above */
.product-card-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .ava-intro {
        font-size: 1rem;
        line-height: 1.7;
        color: var(--text-color);
        margin: 0;
    }
}

/* AVA App - Download Steps */
.app-platform-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--color-decoration-light-alpha-10);
    border: 1px solid var(--color-decoration-light-alpha-30);
    border-radius: 20px;
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
    color: var(--color-decoration-light);
    margin-bottom: 1.5rem;

    .platform-icon {
        font-size: 1.1rem;
    }
}

.app-access-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.2rem;
    color: var(--text-color-light);
}

.app-steps {
    display: flex;
    flex-direction: column;
    gap: 1rem;

    .app-step {
        display: flex;
        gap: 1.2rem;
        align-items: flex-start;
        background: var(--white-alpha-05);
        border: 1px solid transparent;
        border-radius: var(--radius-md);
        padding: 1.2rem;
        transition: all 0.3s ease;

        &:hover {
            border-color: var(--color-decoration-light-alpha-30);
            background: var(--white-alpha-10);
        }

        .app-step-number {
            width: 36px;
            height: 36px;
            min-width: 36px;
            display: flex;
            align-items: center;
            justify-content: center;
            background: var(--gradient-text);
            border-radius: 50%;
            font-size: 1rem;
            font-weight: bold;
            color: var(--text-color-light);
        }

        .app-step-content {
            flex: 1;

            h5 {
                font-size: 1rem;
                font-weight: 600;
                margin-bottom: 0.3rem;
                color: var(--text-color-light);
            }

            p {
                font-size: 0.85rem;
                margin-bottom: 0.8rem;
                color: var(--text-color);
            }

            .button {
                font-size: 0.85rem;
                padding: 0.45rem 1rem;
            }
        }
    }

    @media (max-width: 480px) {
        .app-step {
            flex-direction: column;
            gap: 0.8rem;
        }
    }
}

/* AVA App Section */

.ava-content-centered {
    margin: 3rem 0;
    padding: 0;

    .ava-features {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;

        .ava-feature {
            display: flex;
            gap: 1rem;
            align-items: flex-start;
            background: var(--white-alpha-05);
            padding: 1.5rem;
            border-radius: var(--radius-md);
            border: var(--border-dark);
            transition: all 0.3s ease;

            &:hover {
                border-color: var(--color-decoration-light-alpha-30);
                background: var(--white-alpha-10);
            }

            .ava-feature-icon {
                font-size: 2rem;
                flex-shrink: 0;
            }

            h4 {
                margin-bottom: 0.5rem;
                font-size: 1.05rem;
            }

            p {
                font-size: 0.9rem;
                margin: 0;
                color: var(--text-color);
            }
        }
    }

    @media (max-width: 768px) {
        .ava-features {
            grid-template-columns: 1fr;
            gap: 1rem;
        }
    }
}

/* Use Cases Grid */
.use-cases {
    .card {
        text-align: center;

        .use-case-icon {
            font-size: 3rem;
            margin-bottom: 1rem;
        }
    }
}

/* Card Icon Enhancement */
.card {
    .feature-icon,
    .use-case-icon {
        font-size: 2.5rem;
        margin-bottom: 1rem;
        display: block;
    }

    .feature-icon {
        filter: drop-shadow(0 0 10px var(--color-decoration-light-alpha-30));
    }
}

/* Staggered animations for grid items */
.grid {
    .card {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;

        &:nth-child(1) { animation-delay: 0.1s; }
        &:nth-child(2) { animation-delay: 0.2s; }
        &:nth-child(3) { animation-delay: 0.3s; }
        &:nth-child(4) { animation-delay: 0.4s; }
        &:nth-child(5) { animation-delay: 0.5s; }
        &:nth-child(6) { animation-delay: 0.6s; }
    }
}

/* Steps animations */
.steps {
    .step {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;

        &:nth-child(1) { animation-delay: 0.2s; }
        &:nth-child(2) { animation-delay: 0.4s; }
        &:nth-child(3) { animation-delay: 0.6s; }
    }
}

/* Values animations */
.values-grid {
    .value-item {
        opacity: 0;
        animation: fadeInUp 0.6s ease-out forwards;

        &:nth-child(1) { animation-delay: 0.1s; }
        &:nth-child(2) { animation-delay: 0.2s; }
        &:nth-child(3) { animation-delay: 0.3s; }
        &:nth-child(4) { animation-delay: 0.4s; }
    }
}
