﻿/* ==========================================================
   Download Section
   ========================================================== */

.download-section {
    padding-top: 55px;
    padding-bottom: 85px;
    background: radial-gradient(circle at 20% 30%, rgba(191, 196, 201, .22), transparent 34%), radial-gradient(circle at 85% 80%, rgba(214, 160, 75, .12), transparent 30%), var(--color-background);
}

.download-container {
    display: grid;
    grid-template-columns: .95fr 1.05fr;
    gap: 64px;
    align-items: center;
}


/* ==========================================================
   Download Visual
   ========================================================== */

.download-visual {
    display: flex;
    justify-content: center;
}

.download-phone {
    width: 315px;
    min-height: 620px;
    padding: 14px;
    border-radius: 44px;
    background: linear-gradient(145deg, #5b6066, #22262a);
    box-shadow: 0 30px 80px rgba(68, 72, 77, .22), inset 0 0 0 1px rgba(255, 255, 255, .16);
    transform: rotate(-4deg);
}

.download-phone-screen {
    min-height: 592px;
    padding: 24px;
    border-radius: 34px;
    background: linear-gradient(180deg, rgba(246, 243, 238, 1), rgba(231, 226, 218, .82));
    overflow: hidden;
}

.download-app-top {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

    .download-app-top img {
        width: 52px;
        height: 52px;
        border-radius: 16px;
        box-shadow: 0 10px 24px rgba(68, 72, 77, .16);
    }

    .download-app-top strong {
        display: block;
        margin-bottom: 3px;
        color: var(--color-text);
        font-size: 18px;
    }

    .download-app-top span {
        color: var(--color-neutral-dark);
        font-size: 13px;
        font-weight: 600;
    }


/* ==========================================================
   Preview Cards
   ========================================================== */

.download-preview-card {
    margin-bottom: 16px;
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, .64);
    border: 1px solid rgba(191, 196, 201, .42);
    box-shadow: 0 14px 34px rgba(68, 72, 77, .07);
}

    .download-preview-card.active {
        background: linear-gradient(145deg, rgba(255, 255, 255, .86), rgba(191, 196, 201, .22));
        border-color: rgba(191, 196, 201, .78);
    }

    .download-preview-card span {
        display: inline-flex;
        margin-bottom: 12px;
        padding: 7px 12px;
        border-radius: var(--radius-pill);
        background: rgba(126, 155, 122, .16);
        color: var(--color-success);
        font-size: 12px;
        font-weight: 800;
    }

    .download-preview-card strong {
        display: block;
        color: var(--color-text);
        font-size: 18px;
        line-height: 1.45;
    }


/* ==========================================================
   Download Content
   ========================================================== */

.download-content h2 {
    max-width: 700px;
    margin-bottom: 20px;
    color: var(--color-text);
    font-size: clamp(32px, 3.6vw, 52px);
    letter-spacing: -0.045em;
}

.download-content p {
    max-width: 650px;
    color: var(--color-neutral-dark);
    font-size: 17px;
    line-height: 1.85;
}

.download-buttons {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 32px;
    flex-wrap: wrap;
}

.store-button {
    min-width: 178px;
    min-height: 58px;
    padding: 10px 20px;
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--color-text);
    color: var(--color-background);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-normal);
}

    .store-button:hover {
        transform: translateY(-4px);
        box-shadow: var(--shadow-medium);
    }

    .store-button span {
        font-size: 12px;
        font-weight: 600;
        opacity: .78;
    }

    .store-button strong {
        font-size: 19px;
        line-height: 1.2;
    }

.download-note {
    margin-top: 18px;
    color: var(--color-neutral-dark);
    font-size: 14px;
}


/* ==========================================================
   RTL
   ========================================================== */

html[dir="rtl"] .download-content {
    text-align: right;
}

html[dir="rtl"] .download-app-top {
    direction: rtl;
    text-align: right;
}

html[dir="rtl"] .download-preview-card {
    text-align: right;
}


/* ==========================================================
   Responsive
   ========================================================== */

@media (max-width: 992px) {
    .download-container {
        grid-template-columns: 1fr;
        gap: 46px;
    }

    .download-content {
        text-align: center;
    }

        .download-content h2,
        .download-content p {
            margin-inline: auto;
        }

    .download-buttons {
        justify-content: center;
    }

    html[dir="rtl"] .download-content {
        text-align: center;
    }
}

@media (max-width: 640px) {
    .download-section {
        padding-top: 45px;
        padding-bottom: 65px;
    }

    .download-phone {
        width: min(100%, 292px);
        min-height: 560px;
        transform: rotate(0);
    }

    .download-phone-screen {
        min-height: 532px;
        padding: 20px;
    }

    .download-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .store-button {
        width: 100%;
        align-items: center;
        text-align: center;
    }
}
