/* --- PREMIUM MODERN DARK GLASSMORPHIC PALETTE --- */
:root {
    --bg-main: #0B0B12;
    --bg-accent: #131322;
    --text-primary: #FFFFFF;
    --text-secondary: #A0A0B0;
    --brand-blue: #0A84FF;
    --brand-blue-hover: #0066CC;
    --brand-green: #30D158;
    --glass-bg: rgba(255, 255, 255, 0.04);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* --- SYSTEM GLOBAL STYLES & FLUID HANDLING --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: var(--text-primary);
    background-color: var(--bg-main);
}

body {
    overflow-x: hidden;
    background: radial-gradient(circle at 50% 0%, #1c1c3a 0%, var(--bg-main) 70%);
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}

/* --- BUTTON CONSTRUCTS --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--brand-blue);
    color: white;
    padding: 16px 36px;
    font-size: 1.1rem;
    box-shadow: 0 8px 24px rgba(10, 132, 255, 0.3);
    margin-top: 16px; /* Added spacing from components above */
}

.btn-primary:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(10, 132, 255, 0.5);
}

.btn-primary i {
    margin-right: 8px; /* Balanced spacing for the download icon */
}

/* --- 1. HERO SECTION --- */
.hero-section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 80px 24px; /* Balanced height framing */
}

.hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 24px; /* Native flex gap separation instead of collapsing margins */
}

.hero-logo-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.app-logo {
    width: 160px;
    height: 160px;
    border-radius: 36px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 40px rgba(10, 132, 255, 0.2);
    transition: transform 0.5s ease;
}

.app-logo:hover {
    transform: rotate(5deg) scale(1.05);
}

.app-name {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -1px;
    background: linear-gradient(135deg, #fff 0%, var(--text-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.app-tagline {
    font-size: 1.3rem;
    color: var(--text-secondary);
    max-width: 650px;
    line-height: 1.6;
}

.hero-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.hero-badges span {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.scroll-indicator {
    position: absolute;
    bottom: 30px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.animate-bounce {
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

/* --- 2. GALLERY & VIDEO SECTION --- */
.gallery-section {
    padding: 100px 0;
    background-color: rgba(11, 11, 18, 0.6);
}

.section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 48px;
    text-align: center;
}

.section-title i {
    color: var(--brand-blue);
    margin-right: 10px;
}

.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 60px;
}

.screenshot-card {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    overflow: hidden;
    padding: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    transition: transform 0.3s ease;
}

.screenshot-card img {
    width: 100%;
    border-radius: 16px;
    display: block;
}

.screenshot-card:hover {
    transform: translateY(-5px);
}

.video-container-wrapper {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 40px;
    border-radius: 28px;
    max-width: 850px;
    margin: 0 auto;
}

.video-container-wrapper h3 {
    margin-bottom: 24px;
    text-align: center;
}

.video-ratio-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.5);
}

.video-ratio-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* --- 3. DUAL CREATOR & DONATION SECTION --- */
.creator-donation-section {
    padding: 100px 0;
}

.dual-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.glass-card {
    background: rgba(19, 19, 34, 0.4);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 32px;
    padding: 40px;
    display: flex;
    flex-direction: column;
}

.card-title {
    font-size: 1.6rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.creator-bio, .donation-message {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: auto;
    font-size: 1.05rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 30px;
}

.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px;
    border-radius: 14px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    transition: filter 0.2s ease;
}

.fb-btn { background-color: #1877F2; }
.msg-btn { background-color: #00B2FF; }
.social-btn:hover { filter: brightness(1.15); }

/* --- GCash QR Block Setup --- */
.qr-container-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    margin: 30px 0 20px 0;
}

.qr-wrapper {
    text-align: center;
    background: white;
    padding: 12px;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.4);
    display: inline-block;
}

.gcash-qr {
    width: 200px;
    height: 200px;
    max-width: 100%;
    object-fit: contain;
    display: block;
}

.qr-badge {
    display: block;
    color: #1c1c3a;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.qr-action-links {
    display: flex;
    gap: 12px;
    width: 100%;
    max-width: 232px;
}

.qr-action-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    padding: 10px 12px;
    border-radius: 10px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.qr-action-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.donation-subtext {
    text-align: center;
    font-size: 0.9rem;
    color: var(--brand-green);
}

/* --- 4. DOWNLOAD TERMINAL & COUNTER --- */
.download-section {
    padding: 120px 0;
    text-align: center;
}

.download-box {
    background: linear-gradient(180deg, rgba(10,132,255,0.1) 0%, rgba(0,0,0,0) 100%);
    border: 1px solid rgba(10, 132, 255, 0.2);
    border-radius: 40px;
    padding: 60px 40px;
    max-width: 750px;
    margin: 0 auto;
}

.download-box h2 {
    font-size: 2.2rem;
    margin-bottom: 12px;
}

.download-box p {
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* --- LIVE DOWNLOAD COUNTER BADGE --- */
.counter-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(48, 209, 88, 0.1);
    border: 1px solid rgba(48, 209, 88, 0.25);
    padding: 8px 18px;
    border-radius: 30px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--brand-green);
    margin-bottom: 24px;
    letter-spacing: 0.3px;
    box-shadow: 0 4px 15px rgba(48, 209, 88, 0.1);
}

#count-number {
    font-family: monospace;
    font-size: 1.1rem;
    font-weight: 700;
    color: #FFFFFF;
}

.btn-download {
    background-color: var(--brand-blue);
    color: white;
    padding: 20px 40px;
    border-radius: 20px;
    box-shadow: 0 15px 35px rgba(10, 132, 255, 0.3);
    
    /* --- CENTERING & BLOCK FLEX SYSTEM --- */
    display: flex;
    width: 100%;
    max-width: max-content;
    margin: 0 auto;
}

.btn-download:hover {
    background-color: var(--brand-blue-hover);
    transform: translateY(-3px);
    box-shadow: 0 20px 45px rgba(10, 132, 255, 0.5);
}

.btn-content {
    display: flex;
    align-items: center;
    gap: 20px;
    text-align: left;
}

.download-main-icon {
    font-size: 2.5rem;
}

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

.btn-sub {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    opacity: 0.8;
}

.btn-main {
    font-size: 1.4rem;
    font-weight: 700;
}

.security-notice {
    margin-top: 30px;
    font-size: 0.9rem;
    color: var(--brand-green);
}

/* --- FOOTER --- */
.site-footer {
    padding: 40px 0;
    text-align: center;
    border-top: 1px solid var(--glass-border);
    color: rgba(255,255,255,0.3);
    font-size: 0.9rem;
}

/* --- HIGH-PERFORMANCE MEDIA QUERY STACK (RESPONSIVE OVERRIDES) --- */

/* Tablet Optimization */
@media (max-width: 992px) {
    .screenshots-grid {
        gap: 16px;
    }
    .dual-grid {
        gap: 20px;
    }
    .glass-card {
        padding: 30px;
    }
}

/* Smartphone / Mobile Conversion Layout */
@media (max-width: 768px) {
    .hero-section {
        padding: 40px 16px; /* Optimized viewport padding */
    }

    .hero-container {
        gap: 20px; /* Snappy, precise mobile compression */
    }

    .app-logo {
        width: 140px; /* Gently downscaled layout profile */
        height: 140px;
        border-radius: 32px;
    }

    .app-name {
        font-size: 2.8rem; /* Corrected viewport scale */
    }

    .app-tagline {
        font-size: 1.1rem;
        line-height: 1.5;
        padding: 0 8px;
    }

    .hero-badges {
        gap: 8px; /* Tighter badge flow layout */
    }

    .hero-badges span {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .btn-primary {
        padding: 14px 32px; /* Fixed side bounds and padding execution */
        font-size: 1rem;
        width: auto;
        margin-top: 8px;
    }
    
    /* Stack grid views perfectly on touch screens */
    .screenshots-grid {
        grid-template-columns: 1fr; 
        gap: 24px;
        max-width: 320px; /* Forces screenshots to behave like real mobile aspect ratios */
        margin: 0 auto 40px auto;
    }
    
    .dual-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .video-container-wrapper {
        padding: 20px;
        border-radius: 20px;
    }
    
    .glass-card {
        padding: 24px;
        border-radius: 24px;
    }
    
    .download-box {
        padding: 40px 20px;
        border-radius: 28px;
    }
    
    .btn-download {
        max-width: 100%; /* Spans button layout nicely on mobile windows */
    }
    
    .qr-action-links {
        max-width: 100%;
    }
}
