:root {
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --text-color: #ffffff;
    --bg-gradient: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
    --font-family: 'Outfit', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html,
body {
    height: 100%;
    /* Standard height for desktop */
    margin: 0;
    padding: 0;
    overflow: hidden;
    /* Prevent default scroll */
    background: var(--bg-gradient);
    background-color: #0f0c29;
    /* Fallback */
    font-family: var(--font-family);
    color: var(--text-color);
}

/* 
 * MAIN LAYOUT 
 * Use 100dvh to handle mobile browser bars correctly without scroll 
 */
.main-container {
    margin-top: 2%;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    /* Dynamic height for mobile */
    display: flex;
    flex-direction: column;
    padding: 1rem 5%;
    /* Default padding */
    position: relative;
    z-index: 10;
}

/* 
 * TOP SECTION 
 * Auto height, stays at top
 */
.top-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-bottom: 0.5rem;
    flex-shrink: 0;
    /* Do not shrink content */
}

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.logo {
    width: 60px;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.app-name {
    font-size: 2.5rem;
    font-weight: 600;
    color: #ffc818;
    letter-spacing: 1px;
}

.subtitle {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
    max-width: 600px;
}

/* Store Badge */
.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--glass-bg);
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(10px);
    text-decoration: none;
    color: var(--text-color);
    transition: transform 0.2s, background 0.3s;
    margin-bottom: 0.5rem;
    /* Slight gap before video */
}

.store-badge:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.store-badge img {
    height: 20px;
}

.store-badge p {
    font-size: 0.9rem;
    margin: 0;
}

/* 
 * VIDEO SECTION
 * Flex 1 to take remaining space, min-height 0 to allow shrinking
 */
.video-section {
    flex: 1;
    width: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0;
}

.promo-video {
    max-width: 100%;
    max-height: 100%;
    /* Fit entirely within section */
    height: auto;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: contain;
}

/* 
 * FOOTER
 * Stick to bottom, auto height
 */
footer {
    width: 100%;
    padding: 0.5rem 0 1rem 0;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.7;
    flex-shrink: 0;
}

.footer-links {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: #ccc;
    text-decoration: none;
    margin: 0 0.5rem;
    transition: color 0.2s;
}

.footer-links a:hover {
    color: #fff;
}

.separator {
    color: #666;
}

.copyright {
    font-size: 0.7rem;
    opacity: 0.6;
}

/* 
 * RESPONSIVE TWEAKS 
 */
@media (max-width: 768px) {
    .main-container {
        margin-top: 10%;
        padding: 0.5rem 5% 0.5rem 5%;
        /* Tighter padding on mobile */
    }

    .brand {
        margin-bottom: 0.5rem;
    }

    .logo {
        width: 45px;
    }

    .app-name {
        font-size: 2rem;
    }

    .subtitle {
        font-size: 0.9rem;
        margin-bottom: 0.75rem;
        line-height: 1.3;
    }

    .store-badge {
        padding: 0.5rem 1rem;
        transform: scale(0.95);
    }

    footer {
        margin-bottom: 10%;
    }

    /* 
     * Force Video to align top to avoid "gap" feel 
     * but still flex to fit
     */
    .video-section {
        margin-top: 2%;
        align-items: flex-start;
        /* Align top */
    }
}