:root {
    --features--bg-color: hsl(220, 16%, 96%);
    --features__heading--color: hsl(0, 0%, 22%);
    --features__details--color: hsl(233, 8%, 62%);
    --features__list-heading--color: hsl(0, 0%, 22%);
    --features__list-details--color: hsl(233, 8%, 62%);
}
.features__dark-mode {
    --features--bg-color: hsl(0, 0%, 10%);
    --features__heading--color: hsl(0, 0%, 90%);
    --features__details--color: hsl(233, 8%, 62%);
    --features__list-heading--color: hsl(0, 0%, 90%);
    --features__list-details--color: hsl(233, 8%, 62%);
}
.features {
    display: flex;
    flex-direction: column;
    gap: 65px;
    padding: min(100.8px, 7vw) 150px;
    background-color: var(--features--bg-color);
}
.features__info {
    display: flex;
    flex-direction: column;
    gap: 30px;
    width: 60%;
}
.features__heading {
    font-weight: 300;
    font-size: clamp(1.5625rem, 2.7778vw, 2.9375rem);
    color: var(--features__heading--color);
}
.features__details {
    font-size: clamp(0.875rem, 1.25vw, 1.4rem);
    line-height: 1.5;
}
.features__list {
    display: flex;
    justify-content: space-between;
    gap: 40px;
}
.features__list-item {
    display: flex;
    flex-direction: column;
    gap: 40px;
}
.features__list-heading {
    font-weight: 300;
    font-size: 1.5rem;
    letter-spacing: -0.5px;
    color: var(--features__list-heading--color);
}
.features__list-info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}
.features__details {
    color: var(--features__details--color);
}
.features__list-details {
    font-size: clamp(0.77775rem, 1.11vw, 1.25rem);
    line-height: 1.6;
    letter-spacing: -0.4px;
    color: var(--features__list-details--color);
}

@media screen and (max-width: 1439px) {
    .features {
        padding: min(100.8px, 7vw) min(10.41667vw, 150px);
    }
    .features__list {
        flex-wrap: wrap;
    }
    .features__list-item {
        gap: 40px;
        width: calc(50% - 20px);
    }
}

@media screen and (max-width: 810px) {
    .features {
        gap: 50px;
        padding: min(100.8px, 7vw) 18vw;
    }
    .features__info {
        width: auto;
    }
    .features__heading {
        font-size: clamp(0.89375rem, 8vw, 2.125rem);
        text-align: center;
    }
    .features__details {
        font-size: clamp(0.84375rem, 3.3vw, 1.0625rem);
    }
    .features__list {
        flex-wrap: nowrap;
        flex-direction: column;
        align-items: center;
    }
    .features__list-details {
        font-size: clamp(0.8125rem, 2.93333vw, 0.94444375rem);
    }
    .features__list-heading,
    .features__list-details,
    .features__details {
        text-align: center;
    }
    .features__list-item {
        width: auto;
    }
    .features__list-image-wrapper {
        display: flex;
        justify-content: center;
    }
}

@media screen and (max-width: 400px) {
    .features {
        padding: 10vw;
    }
}
