@import url('./variables.css');

/* Value Props Section */
.values {
    padding: var(--space-2xl) var(--space-md);
    background: var(--white);
}

.values-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.values-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

/* How It Works Section */
.how {
    padding: var(--space-2xl) var(--space-md);
    background: linear-gradient(180deg, var(--teal-light) 0%, var(--white) 100%);
}

.how-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.how-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.how-header .section-label::before {
    display: none;
}

.how-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

.three-steps {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
}

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

.step-number {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-sm);
}

.step-number-inner {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-display);
    font-size: 2.5rem;
    color: var(--white);
}

.step-1 .step-number {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.2) 0%, rgba(78, 205, 196, 0.1) 100%);
}

.step-1 .step-number-inner {
    background: linear-gradient(135deg, var(--teal) 0%, #7EDDD6 100%);
}

.step-2 .step-number {
    background: linear-gradient(135deg, rgba(253, 203, 110, 0.2) 0%, rgba(253, 203, 110, 0.1) 100%);
}

.step-2 .step-number-inner {
    background: linear-gradient(135deg, var(--gold) 0%, #FFEAA7 100%);
    color: var(--dark);
}

.step-3 .step-number {
    background: linear-gradient(135deg, rgba(255, 107, 107, 0.2) 0%, rgba(255, 107, 107, 0.1) 100%);
}

.step-3 .step-number-inner {
    background: linear-gradient(135deg, var(--coral) 0%, #FF8787 100%);
}

.step-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    color: var(--dark);
    margin-bottom: 0.5rem;
}

.step-description {
    font-size: 0.95rem;
    color: var(--gray-600);
    max-width: 280px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Features Section */
.features {
    padding: var(--space-2xl) var(--space-md);
    background: var(--white);
}

.features-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.feature-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-lg);
    align-items: center;
    margin-bottom: var(--space-2xl);
}

.feature-row:last-child {
    margin-bottom: 0;
}

.feature-image-wrapper {
    width: 100%;
    aspect-ratio: 4/3;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.feature-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    transition: transform 0.5s var(--ease-out-expo);
}

.feature-image-wrapper:hover .feature-image {
    transform: scale(1.03);
}

.feature-image-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--gray-100) 0%, var(--gray-200) 100%);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s;
}

.feature-image-wrapper.loaded::before {
    opacity: 0;
}

.feature-title {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 4vw, 2.25rem);
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin-bottom: var(--space-sm);
    color: var(--dark);
}

.feature-description {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--gray-600);
    margin-bottom: var(--space-md);
}

.feature-list {
    list-style: none;
}

.feature-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
    font-size: 0.95rem;
    color: var(--dark);
}

.feature-check {
    width: 20px;
    height: 20px;
    background: var(--teal);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 0.65rem;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Testimonials Section */
.testimonials {
    padding: var(--space-2xl) var(--space-md);
    background: var(--coral-light);
}

.testimonials-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.testimonials-header {
    text-align: center;
    margin-bottom: var(--space-xl);
}

.testimonials-header .section-label::before {
    display: none;
}

.testimonials-header .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-md);
}

.testimonial-stars {
    color: var(--gold);
    font-size: 1rem;
    margin-bottom: 0.75rem;
    letter-spacing: 2px;
}

.testimonial-quote {
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--dark);
    margin-bottom: var(--space-sm);
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.testimonial-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--teal) 0%, var(--coral) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.testimonial-name {
    font-weight: 700;
    color: var(--dark);
    font-size: 0.9rem;
}

.testimonial-location {
    font-size: 0.75rem;
    color: var(--gray-600);
}

/* CTA Section */
.cta {
    padding: 5rem var(--space-md);
    background: linear-gradient(135deg, var(--teal) 0%, var(--teal-dark) 50%, var(--coral) 100%);
    text-align: center;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(78, 205, 196, 0.25), 0 10px 30px rgba(255, 107, 107, 0.15);
    transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
}

.cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 24px 80px rgba(78, 205, 196, 0.3), 0 12px 40px rgba(255, 107, 107, 0.2);
}

.cta::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
    opacity: 0.06;
    pointer-events: none;
}

.cta::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -15%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.cta-inner {
    max-width: 700px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.cta-title {
    font-family: var(--font-display);
    font-size: clamp(2rem, 6vw, 3.5rem);
    line-height: 1.1;
    letter-spacing: -0.03em;
    color: var(--white);
    margin-bottom: 1.25rem;
    text-shadow: 0 2px 15px rgba(0, 0, 0, 0.15);
}

.cta-subtitle,
.cta-text {
    font-size: 1.15rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-weight: 400;
}

.cta-buttons {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
    justify-content: center;
    align-items: center;
}

.cta-buttons .btn {
    width: 100%;
    max-width: 280px;
    font-weight: 600;
    transition: all 0.3s var(--ease-out-expo);
}

.cta-buttons .btn:hover {
    transform: translateY(-2px);
}

.cta-buttons .btn:active {
    transform: translateY(0);
}

.cta .btn-outline {
    background: var(--white);
    border: 2px solid var(--white);
    color: var(--coral);
}

.cta .btn-outline:hover {
    background: var(--gray-100);
    border-color: var(--white);
    color: var(--coral-dark);
    transform: translateY(-2px);
}

.cta-helper {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 400;
    margin-top: var(--space-sm);
}

/* Footer */

/* Responsive Breakpoints */

/* Tablet */
@media (min-width: 640px) {
    :root {
        --space-md: 2rem;
        --space-lg: 3rem;
        --space-xl: 4rem;
        --space-2xl: 6rem;
    }

    .values-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .three-steps {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-md);
    }

    .steps {
        /* grid-template-columns: repeat(1, 1fr); */
        gap: var(--space-md);
    }

    .step-number {
        width: 120px;
        height: 120px;
    }

    .step-number-inner {
        width: 100px;
        height: 100px;
        font-size: 3rem;
    }

    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .cta {
        padding: 6rem var(--space-lg);
    }

    .cta::after {
        width: 500px;
        height: 500px;
    }

    .cta-buttons {
        flex-direction: row;
        justify-content: center;
        gap: var(--space-md);
    }

    .cta-buttons .btn {
        width: auto;
        min-width: 200px;
    }
}

/* Mobile */
@media (max-width: 639px) {
    .cta {
        padding: 4rem var(--space-md);
    }

    .cta-title {
        margin-bottom: 1rem;
    }

    .cta-subtitle,
    .cta-text {
        font-size: 1.05rem;
        margin-bottom: 2rem;
    }

    .cta-buttons .btn {
        max-width: 100%;
    }
}

/* Desktop */
@media (min-width: 1024px) {
    :root {
        --space-2xl: 8rem;
    }

    .values-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .value-icon {
        width: 72px;
        height: 72px;
        font-size: 2rem;
    }

    .value-title {
        font-size: 1.5rem;
    }

    .cta {
        padding: 7rem var(--space-xl);
    }

    .cta-inner {
        max-width: 800px;
    }

    .cta-subtitle,
    .cta-text {
        font-size: 1.2rem;
    }

    .step-number {
        width: 160px;
        height: 160px;
    }

    .step-number-inner {
        width: 140px;
        height: 140px;
        font-size: 4rem;
    }

    .three-steps {
        position: relative;
    }

    .three-steps::before {
        content: '';
        position: absolute;
        top: 80px;
        left: calc(16.67% + 1.5rem);
        right: calc(16.67% + 1.5rem);
        height: 4px;
        background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 50%, var(--coral) 100%);
    }

    .feature-row {
        grid-template-columns: 1fr 1fr;
        gap: 5rem;
    }

    .feature-row:nth-child(even) {
        direction: rtl;
    }

    .feature-row:nth-child(even)>* {
        direction: ltr;
    }

    .feature-image-wrapper {
        border-radius: 24px;
    }

    .feature-image-wrapper:hover {
        transform: translateY(-8px);
        box-shadow: 0 30px 60px rgba(0, 0, 0, 0.12);
    }

    .testimonials-grid {
        grid-template-columns: repeat(3, 1fr);
    }

}

/* Large Desktop */
@media (min-width: 1280px) {}