/* ── Download Section ───────────────────────────────────────────────── */

.download-section {
    padding: 120px 0;
    position: relative;
    overflow: hidden;
}

.download-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 40% at 50% 0%, rgba(26, 107, 255, 0.1) 0%, transparent 60%),
        radial-gradient(ellipse 80% 60% at 50% 100%, rgba(212, 175, 185, 0.06) 0%, transparent 70%);
    pointer-events: none;
}

.download-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.download-text {
    color: #f7f7f7;
}

.download-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #D4AFB9;
    margin-bottom: 1rem;
}

.download-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.25rem 0;
    background: linear-gradient(to right, #e0e0e0, #d6d6d6, #bfbfbf, #a8a8a8, #d6d6d6, #e0e0e0);
    background-size: 200%;
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: animate-gradient 2.5s linear infinite;
}

.download-sub {
    font-size: 1.05rem;
    color: #b0b0b0;
    line-height: 1.7;
    margin: 0 0 2.5rem 0;
    max-width: 440px;
}

.download-store-buttons {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}

.store-btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 14px 24px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.store-btn--ios {
    background: rgba(255, 255, 255, 0.08);
    color: #f7f7f7;
}

.store-btn--android {
    background: rgba(212, 175, 185, 0.12);
    color: #f7f7f7;
    border-color: rgba(212, 175, 185, 0.25);
}

/* ── Request a Demo (primary CTA) ── */
.store-btn--demo {
    position: relative;
    color: #ffffff;
    background:
        linear-gradient(135deg, rgba(167, 85, 221, 0.95), rgba(237, 85, 145, 0.95));
    border-color: rgba(255, 255, 255, 0.25);
    box-shadow:
        0 10px 30px rgba(167, 85, 221, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.store-btn--demo .store-btn-icon {
    color: #ffffff;
}

.store-btn--demo .store-btn-label {
    color: rgba(255, 255, 255, 0.85);
    opacity: 1;
}

.store-btn--demo:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 255, 255, 0.45);
    background:
        linear-gradient(135deg, rgba(180, 100, 230, 1), rgba(247, 100, 160, 1));
    box-shadow:
        0 16px 40px rgba(167, 85, 221, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ── Discord (secondary CTA) ── */
.store-btn--discord {
    background: rgba(88, 101, 242, 0.15);
    border-color: rgba(88, 101, 242, 0.4);
    color: #f7f7f7;
}

.store-btn--discord .store-btn-icon {
    color: #5865F2;
}

.store-btn--discord:hover {
    transform: translateY(-3px);
    background: rgba(88, 101, 242, 0.28);
    border-color: rgba(88, 101, 242, 0.7);
    box-shadow: 0 12px 30px rgba(88, 101, 242, 0.35);
}

.store-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.store-btn--ios:hover,
.store-btn--android:hover {
    border-color: rgba(212, 175, 185, 0.5);
    background: rgba(212, 175, 185, 0.18);
}

.store-btn-icon {
    font-size: 1.8rem;
    flex-shrink: 0;
}

.store-btn-text {
    display: flex;
    flex-direction: column;
}

.store-btn-label {
    font-size: 0.7rem;
    opacity: 0.7;
    font-weight: 400;
    line-height: 1;
}

.store-btn-name {
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.3;
}

.download-note {
    font-size: 0.8rem;
    color: #666;
    margin: 0;
}

/* ── Phone mockups ── */
.download-mockups {
    position: relative;
    height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-phone {
    position: absolute;
    width: 220px;
    border-radius: 36px;
    overflow: hidden;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mockup-phone img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mockup-front {
    height: 460px;
    z-index: 2;
    transform: rotate(-3deg) translateX(40px);
}

.mockup-back {
    height: 400px;
    z-index: 1;
    transform: rotate(6deg) translateX(-60px) translateY(30px);
    opacity: 0.7;
}

/* ── Feature card image fix ── */
.card-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    filter: brightness(0.5);
    transition: transform 0.5s ease-in-out;
}

.card:hover .card-img {
    transform: scale(1.05);
}

/* ── Pricing intro (kept here for backwards compat) ── */
.pricing-intro {
    color: #888;
    font-size: 1rem;
    margin: 0 auto 0.5rem auto;
    max-width: 520px;
    text-align: center;
    line-height: 1.6;
}

/* ── Responsive ── */
@media screen and (max-width: 900px) {
    .download-container {
        grid-template-columns: 1fr;
        gap: 50px;
        text-align: center;
    }
    .download-sub {
        max-width: 100%;
    }
    .download-store-buttons {
        justify-content: center;
    }
    .download-mockups {
        height: 380px;
    }
    .mockup-front {
        width: 160px;
        height: 340px;
    }
    .mockup-back {
        width: 140px;
        height: 290px;
    }
    .download-title {
        font-size: 2.5rem;
    }
}

@media screen and (max-width: 480px) {
    .download-store-buttons {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
    .store-btn {
        width: 100%;
        max-width: 280px;
        justify-content: center;
        padding: 12px 18px;
    }
    .store-btn-icon { font-size: 1.5rem; }
    .store-btn-name { font-size: 1rem; }
    .download-title { font-size: 2rem; }
    .download-section { padding: 60px 0; }
}

/* Iter — extra-small mobile (≤380px). Hero CTA stack still works but
   the store buttons need to behave as a vertical group inside the
   phone-frame's column. The hero-buttons-container is `flex-direction: column`
   already; this just tightens spacing + ensures the buttons fill width. */
@media screen and (max-width: 380px) {
    .hero-buttons-container .download-store-buttons {
        flex-direction: column;
        gap: 8px;
    }
    .hero-buttons-container .store-btn {
        width: 100%;
        max-width: none;
    }
}
