/* 
 * Premium Light CSS - Apple + Stripe + Linear Inspired
 * UI/UX Refined for Xwallet App Download Page
 */

:root {
    /* Color Palette */
    --text-dark: #0F172A;
    --text-muted: #6B7280;
    
    /* Button Gradients & Glow Colors */
    --btn-gradient: linear-gradient(90deg, #00E676, #00C853);
    --btn-glow: 0 0 18px rgba(0, 255, 128, 0.45), 0 0 40px rgba(0, 255, 128, 0.25);
    --btn-glow-hover: 0 0 24px rgba(0, 255, 128, 0.65), 0 0 50px rgba(0, 255, 128, 0.35);
    
    /* Text Gradient */
    --text-gradient: linear-gradient(90deg, #00C853, #00B0FF);
    
    /* Transitions */
    --transition-smooth: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-dark);
    overflow: hidden;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    padding: 1.5rem;
    
    /* Soft Premium CSS-only Gradient Background */
    background: 
        radial-gradient(circle at top left, rgba(0, 255, 170, 0.22), transparent 45%),
        radial-gradient(circle at bottom right, rgba(0, 120, 255, 0.20), transparent 45%),
        linear-gradient(135deg, #f7f9fc, #eef5ff);
}

/* Hide original HTML background glows to prioritize the CSS body background & blur blobs */
.glow-bg {
    display: none;
}

/* Dynamic CSS Blur Blobs via ::before & ::after */
body::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 15%;
    width: 320px;
    height: 320px;
    background: rgba(0, 255, 170, 0.18);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: blobMove 12s ease-in-out infinite alternate;
}

body::after {
    content: '';
    position: absolute;
    bottom: 10%;
    right: 15%;
    width: 360px;
    height: 360px;
    background: rgba(0, 120, 255, 0.16);
    border-radius: 50%;
    filter: blur(100px);
    z-index: -1;
    pointer-events: none;
    animation: blobMove 15s ease-in-out infinite alternate-reverse;
}

/* Blur Blob Keyframe Animation */
@keyframes blobMove {
    0% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(40px, -30px) scale(1.1);
    }
    100% {
        transform: translate(-20px, 20px) scale(0.95);
    }
}

/* Main Card (White Glassmorphic Card) */
.download-container {
    background: rgba(255, 255, 255, 0.7);
    border-radius: 34px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.7);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.08);
    
    width: 100%;
    max-width: 410px;
    padding: 4.5rem 3rem 4rem 3rem; /* Generous spacing */
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
    
    /* Animation: Slide Up & Fade In */
    opacity: 0;
    transform: translateY(30px);
    animation: cardSlideUp 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes cardSlideUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* App Title Typography */
.app-title {
    font-size: 2.15rem;
    font-weight: 800; /* Font Weight 800 */
    letter-spacing: -1.2px;
    color: var(--text-dark);
    line-height: 1.15;
}

/* "Download" Gradient Styling */
.green-text {
    background: var(--text-gradient);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

/* App Logo Box (White Rounded Square) */
.logo-wrapper {
    position: relative;
    background: #ffffff;
    padding: 1.35rem; /* Generous padding around logo */
    border-radius: 28px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.04), 0 2px 8px rgba(15, 23, 42, 0.02);
    border: 1px solid rgba(226, 232, 240, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition-smooth);
    cursor: pointer;
}

.app-logo {
    width: 100px;
    height: 100px;
    border-radius: 18px;
    object-fit: contain;
    display: block;
}

/* Logo Interactions: Scale and Hover effects */
.logo-wrapper:hover {
    transform: scale(1.08) rotate(1deg);
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

/* Logo Floating Animation */
@keyframes float {
    0% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
    100% {
        transform: translateY(0px);
    }
}

.animate-float {
    animation: float 4.5s ease-in-out infinite;
}

/* Call to Action Wrapper */
.cta-wrapper {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.25rem;
}

/* Download Button: Large Pill Shape with Glow and Shine */
.btn-download {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    padding: 1.2rem 2.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    background: var(--btn-gradient);
    border-radius: 9999px; /* Large pill shape */
    border: none;
    text-decoration: none;
    box-shadow: var(--btn-glow);
    cursor: pointer;
    transition: 0.35s ease; /* 0.35s ease transition */
    position: relative;
    overflow: hidden;
    z-index: 1;
    
    /* Animation: Subtle Glow Pulsing */
    animation: glowPulse 3s infinite ease-in-out;
}

/* Glow Pulse Animation */
@keyframes glowPulse {
    0%, 100% {
        box-shadow: var(--btn-glow);
    }
    50% {
        box-shadow: var(--btn-glow-hover);
    }
}

/* Button Hover State */
.btn-download:hover {
    transform: translateY(-4px) scale(1.02);
}

/* Button Active State */
.btn-download:active {
    transform: scale(0.98);
}

/* White Button Icon styling */
.btn-icon {
    width: 26px;
    height: 26px;
    color: #ffffff; /* White icon color */
    stroke: #ffffff;
    transition: transform 0.35s ease;
}

.btn-download:hover .btn-icon {
    transform: translateY(3px);
}

/* Subtle Shine Animation (Left to Right using ::before) */
.btn-download::before {
    content: '';
    position: absolute;
    top: 0;
    left: -150%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.35) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transform: skewX(-30deg);
    z-index: -1;
    animation: shineEffect 4.5s infinite ease-in-out;
}

@keyframes shineEffect {
    0% {
        left: -150%;
    }
    35%, 100% {
        left: 150%;
    }
}

/* APK Metadata / Footer Text */
.apk-meta {
    font-size: 0.88rem;
    color: var(--text-muted); /* Muted slate color */
    font-weight: 600;
    letter-spacing: 0.4px; /* 0.4px spacing */
    opacity: 0.85;
}

/* JS-driven Ripple Effects */
.ripple {
    position: absolute;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    transform: scale(0);
    animation: rippleEffect 0.6s linear;
    pointer-events: none;
    z-index: 10;
}

@keyframes rippleEffect {
    to {
        transform: scale(4);
        opacity: 0;
    }
}

/* --- MOBILE FIRST RESPONSIVE ADJUSTMENTS --- */
@media (max-width: 480px) {
    body {
        padding: 1.25rem;
    }
    
    .download-container {
        padding: 3.5rem 2rem 3rem 2rem;
        gap: 2.5rem;
        border-radius: 28px;
    }
    
    .app-title {
        font-size: 1.9rem;
    }
    
    .logo-wrapper {
        border-radius: 24px;
        padding: 1.15rem;
    }
    
    .app-logo {
        width: 88px;
        height: 88px;
    }
    
    .btn-download {
        padding: 1.1rem 2rem;
        font-size: 1.15rem;
    }
    
    .btn-icon {
        width: 22px;
        height: 22px;
    }
    
    body::before, body::after {
        width: 220px;
        height: 220px;
        filter: blur(80px);
    }
}
