/* ===== DOWNLOAD LANDING (IG / bio) ===== */

.page-download {
    --display: "Syne", "Poppins", sans-serif;
    min-height: 100vh;
    min-height: 100dvh;
    color: #fff;
    background: #0a0f3d;
    overflow-x: hidden;
}

.page-download p {
    color: rgba(255, 255, 255, 0.78);
}

.download-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background:
        radial-gradient(ellipse 70% 55% at 15% 20%, rgba(233, 30, 140, 0.35), transparent 55%),
        radial-gradient(ellipse 60% 50% at 90% 75%, rgba(255, 154, 26, 0.22), transparent 50%),
        radial-gradient(ellipse 50% 40% at 50% 100%, rgba(26, 43, 143, 0.8), transparent 60%),
        linear-gradient(160deg, #0a0f3d 0%, #12185a 45%, #1a0f4a 100%);
    animation: bgDrift 18s ease-in-out infinite alternate;
}

@keyframes bgDrift {
    from { filter: hue-rotate(0deg) saturate(1); transform: scale(1); }
    to { filter: hue-rotate(8deg) saturate(1.08); transform: scale(1.04); }
}

.download-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.04;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-download .download-header {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    background: transparent;
    border: none;
    box-shadow: none;
}

.page-download .download-header .logo h1 {
    background: none;
    -webkit-background-clip: unset;
    background-clip: unset;
    color: #fff;
}

.page-download .site-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.25);
    padding-bottom: 1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.page-download .site-link:hover {
    color: #ffc107;
    border-color: #ffc107;
}

.download-main {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    min-height: calc(100vh - 72px);
    min-height: calc(100dvh - 72px);
    padding: 1.5rem 1.5rem 3.5rem;
}

.download-copy {
    width: min(100%, 22rem);
    text-align: center;
    animation: downloadRise 1s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes downloadRise {
    from { opacity: 0; transform: translateY(28px); }
    to { opacity: 1; transform: none; }
}

.download-logo {
    width: 88px;
    height: 88px;
    margin: 0 auto 1.35rem;
    border-radius: 22%;
    box-shadow:
        0 16px 40px rgba(0, 0, 0, 0.35),
        0 0 0 1px rgba(255, 255, 255, 0.12);
    animation: logoPop 1.1s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

@keyframes logoPop {
    from { opacity: 0; transform: scale(0.86); }
    to { opacity: 1; transform: scale(1); }
}

.download-brand {
    font-family: var(--display);
    font-weight: 800;
    font-size: clamp(1.05rem, 2.5vw, 1.2rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffc107;
    margin-bottom: 0.85rem;
}

.download-title {
    font-family: "Poppins", sans-serif;
    font-weight: 800;
    font-size: clamp(2.6rem, 9vw, 3.6rem);
    line-height: 0.95;
    letter-spacing: -0.06em;
    color: #fff;
    margin-bottom: 1rem;
}

.download-sub {
    font-size: 1.05rem;
    line-height: 1.5;
    max-width: 28ch;
    margin: 0 auto 1.75rem;
}

.download-cta {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    width: 100%;
    max-width: 20rem;
    margin: 0 auto;
    animation: downloadRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.18s both;
}

.page-download .btn-store {
    width: 100%;
    min-width: 0;
    padding: 1.05rem 1.35rem;
    border-radius: 14px;
    font-size: 1.02rem;
    gap: 0.65rem;
    text-decoration: none;
}

.page-download .btn-store .icon {
    width: 22px;
    height: 22px;
    margin: 0;
}

.page-download .btn-store-primary {
    background: #fff;
    color: #0a0f3d;
}

.page-download .btn-store-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.4);
    box-shadow: none;
}

.page-download .btn-store-secondary:hover {
    background: rgba(255, 255, 255, 0.16);
    box-shadow: none;
}

.download-escape {
    margin-top: 0.85rem;
    max-width: 36ch;
    margin-left: auto;
    margin-right: auto;
    padding: 0.9rem 1rem;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: rgba(255, 255, 255, 0.78);
    text-align: left;
    animation: downloadRise 1s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.download-escape[hidden],
.download-copied[hidden],
.btn-store-copy[hidden] {
    display: none !important;
}

.download-escape p {
    color: rgba(255, 255, 255, 0.85) !important;
    font-size: 0.88rem;
    margin-bottom: 0.65rem;
    line-height: 1.4;
}

.download-escape ol {
    margin: 0;
    padding-left: 1.15rem;
    font-size: 0.82rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.download-escape strong {
    color: #ffc107;
    font-weight: 700;
}

.page-download .btn-store-copy {
    width: 100%;
    min-width: 0;
    padding: 1.05rem 1.35rem;
    border-radius: 14px;
    font-size: 1.02rem;
    background: transparent;
    color: #fff;
    border: 1.5px dashed rgba(255, 255, 255, 0.45);
    box-shadow: none;
    cursor: pointer;
}

.page-download .btn-store-copy:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: none;
    box-shadow: none;
}

.download-copied {
    margin-top: 0.85rem;
    font-size: 0.88rem;
    font-weight: 600;
    color: #ffc107 !important;
}

.download-footer {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 1.5rem 1.75rem;
}

.download-footer p {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.4) !important;
}

@media (min-width: 640px) {
    .download-cta {
        max-width: 22rem;
    }

    .download-logo {
        width: 96px;
        height: 96px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-bg,
    .download-copy,
    .download-logo,
    .download-cta,
    .download-hint {
        animation: none;
    }
}
