:root {
    --dl-purple: #071bb0;
    --dl-purple-dark: #051080;
    --dl-orange: #ff6b35;
    --dl-orange-dark: #e55a2b;
    --dl-bg: #f7f4fb;
    --dl-white: #ffffff;
    --dl-text: #2f2f3a;
    --dl-muted: #6f6f7b;
    --dl-glow: 0 12px 30px rgba(7, 27, 176, 0.25);
}

.download-app-page {
    background: radial-gradient(circle at 10% 10%, rgba(255, 107, 53, 0.08), transparent 35%),
                radial-gradient(circle at 90% 5%, rgba(7, 27, 176, 0.13), transparent 40%),
                var(--dl-bg);
    min-height: 100vh;
}

.download-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #030852 0%, var(--dl-purple) 45%, var(--dl-orange) 100%);
    border-radius: 0 0 28px 28px;
    box-shadow: 0 8px 28px rgba(3, 8, 82, 0.3);
}

.download-hero::before,
.download-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.download-hero::before {
    width: 260px;
    height: 260px;
    top: -100px;
    right: -40px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.2), transparent 70%);
    animation: float-slow 7s ease-in-out infinite;
}

.download-hero::after {
    width: 210px;
    height: 210px;
    bottom: -85px;
    left: -45px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.18), transparent 70%);
    animation: float-slow 8.4s ease-in-out infinite reverse;
}

.download-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 980px;
    margin: 0 auto;
    padding: 34px 20px 30px;
    animation: fade-slide-up .65s ease-out both;
}

.download-version-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 0.95rem;
    font-weight: 600;
}

.download-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.32);
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: .86rem;
    backdrop-filter: blur(4px);
    margin-bottom: 14px;
}

.download-badge i {
    color: #b8ff8d;
}

.download-title {
    font-size: clamp(1.35rem, 3.5vw, 2rem);
    font-weight: 900;
    line-height: 1.35;
    margin-bottom: 12px;
    text-shadow: 0 3px 16px rgba(0, 0, 0, 0.2);
}

.download-subtitle {
    color: rgba(255, 255, 255, 0.94);
    max-width: 760px;
    margin-bottom: 12px;
    line-height: 1.75;
}

.download-device-wrap {
    display: flex;
    justify-content: center;
    margin: 16px 0 18px;
}

.download-device {
    width: 168px;
    height: 312px;
    border-radius: 30px;
    background: linear-gradient(180deg, #1f1f24, #0f0f12);
    box-shadow: var(--dl-glow), inset 0 0 0 2px rgba(255, 255, 255, 0.08);
    padding: 10px;
    position: relative;
    animation: float-y 4s ease-in-out infinite;
}

.download-device-notch {
    width: 72px;
    height: 15px;
    border-radius: 0 0 10px 10px;
    background: #17171b;
    margin: 0 auto 7px;
}

.download-device-label {
    display: block;
    text-align: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: .72rem;
}

.download-device-screen {
    margin-top: 9px;
    height: calc(100% - 40px);
    border-radius: 20px;
    background: linear-gradient(160deg, #ffffff 0%, #f3ecff 35%, #ffe8e1 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}

.download-device-screen i {
    font-size: 2.8rem;
    color: #46af56;
    animation: pulse-soft 2.4s ease-in-out infinite;
}

.download-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 10px;
}

.btn-download-apk,
.btn-copy-apk-url {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 12px;
    min-height: 46px;
    padding: 0 18px;
    font-weight: 800;
    text-decoration: none;
    transition: .22s ease;
}

.btn-download-apk {
    background: linear-gradient(135deg, #3cc760, #1f9e43);
    color: #fff;
    box-shadow: 0 10px 24px rgba(32, 164, 76, 0.33);
}

.btn-download-apk:hover {
    color: #fff;
    transform: translateY(-2px);
    filter: brightness(1.03);
}

.btn-download-apk.disabled {
    background: rgba(255, 255, 255, 0.25);
    color: #f6f6f8;
    cursor: not-allowed;
    box-shadow: none;
}

.btn-copy-apk-url {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
}

.btn-copy-apk-url:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.2);
}

.download-meta-pills {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.download-meta-pills span {
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.33);
    padding: 5px 10px;
    border-radius: 999px;
    font-size: .78rem;
}

.download-section-title {
    margin: 24px 0 14px;
    font-size: 1.08rem;
    font-weight: 900;
    color: var(--dl-purple-dark);
}

.download-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.download-feature-card {
    background: var(--dl-white);
    border: 1px solid #ebdff8;
    border-radius: 14px;
    box-shadow: 0 8px 22px rgba(5, 16, 128, 0.08);
    padding: 14px 12px;
    transition: transform .25s ease, box-shadow .25s ease;
}

.download-feature-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 24px rgba(5, 16, 128, 0.16);
}

.download-feature-card i {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, var(--dl-purple), var(--dl-orange));
    margin-bottom: 8px;
}

.download-steps {
    background: var(--dl-white);
    border: 1px solid #eadcf8;
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(5, 16, 128, 0.08);
    padding: 14px 12px;
}

.download-step {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    padding: 7px 0;
}

.download-step + .download-step {
    border-top: 1px dashed #e8dcf5;
}

.download-step-num {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--dl-purple), var(--dl-orange));
    color: #fff;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 30px;
    box-shadow: 0 7px 16px rgba(7, 27, 176, 0.25);
}

.download-warning-box {
    margin-top: 10px;
    border-radius: 12px;
    background: #fff4e7;
    border: 1px solid #ffd8af;
    color: #8a4d00;
    padding: 10px;
    font-size: .88rem;
}

@keyframes float-slow {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

@keyframes float-y {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-7px); }
}

@keyframes pulse-soft {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: .86; }
}

@keyframes fade-slide-up {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 991.98px) {
    .download-hero {
        border-radius: 0 0 20px 20px;
    }

    .download-hero-inner {
        padding: 22px 14px 18px;
    }

    .download-device {
        width: 140px;
        height: 258px;
        border-radius: 24px;
        padding: 8px;
    }

    .download-device-notch {
        width: 60px;
        height: 12px;
    }

    .download-device-screen i {
        font-size: 2.25rem;
    }

    .btn-download-apk,
    .btn-copy-apk-url {
        min-height: 42px;
        padding: 0 14px;
        font-size: .9rem;
    }

    .download-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
}

@media (max-width: 575.98px) {
    .download-badge {
        font-size: .75rem;
        padding: 5px 10px;
        margin-bottom: 9px;
    }

    .download-subtitle {
        font-size: .84rem;
        line-height: 1.62;
        margin-bottom: 9px;
    }

    .download-device-wrap {
        margin: 11px 0 13px;
    }

    .download-device {
        width: 118px;
        height: 216px;
        border-radius: 20px;
    }

    .download-device-screen i {
        font-size: 1.95rem;
    }

    .download-cta-row {
        flex-direction: column;
    }

    .btn-download-apk,
    .btn-copy-apk-url {
        width: 100%;
        font-size: .84rem;
        min-height: 39px;
        border-radius: 10px;
    }

    .download-meta-pills {
        justify-content: flex-start;
    }

    .download-meta-pills span {
        font-size: .71rem;
    }

    .download-section-title {
        font-size: .95rem;
        margin: 16px 0 10px;
    }

    .download-features {
        grid-template-columns: 1fr;
    }

    .download-feature-card {
        padding: 11px 10px;
    }

    .download-feature-card i {
        width: 32px;
        height: 32px;
        margin-bottom: 6px;
    }

    .download-feature-card p,
    .download-step p,
    .download-warning-box {
        font-size: .77rem;
    }

    .download-steps {
        padding: 10px 9px;
    }

    .download-step {
        gap: 8px;
        padding: 6px 0;
    }

    .download-step-num {
        width: 25px;
        height: 25px;
        flex-basis: 25px;
        font-size: .75rem;
    }
}
