/* --- Design System and Global Reset --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Color Palette */
    --color-bg-overlay: rgba(18, 10, 5, 0.4); /* warm dark brown overlay tint */
    --color-bg-dark: #000000;
    --color-white: #ffffff;
    --color-coral: #ff623d; /* Highlighted orange-red */
    --color-gray-text: rgba(255, 255, 255, 0.55);
    
    /* Button Gradients */
    --gradient-btn: linear-gradient(95deg, #ff385c 0%, #ff5238 45%, #ff8c00 100%);
    --gradient-btn-hover: linear-gradient(95deg, #ff4d6e 0%, #ff6952 45%, #ffa31a 100%);
    
    /* Fonts */
    --font-primary: 'Hind', 'Poppins', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-bg-dark);
    color: var(--color-white);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.4;
    -webkit-font-smoothing: antialiased;
}

/* --- Background Overlay with Cinematic Feel --- */
.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Dark blurry background from the movie */
    background-image: 
        radial-gradient(circle at center, rgba(18, 10, 5, 0.3) 0%, rgba(0, 0, 0, 0.95) 100%),
        url('bg.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    filter: blur(2px) scale(1.02); /* Slight scale to prevent blurred border artifacts */
    z-index: -1;
    animation: bgEntrance 1.8s ease-out forwards;
}

/* --- Layout Container --- */
.container {
    width: 100%;
    max-width: 1200px;
    min-height: 100vh;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between; /* Header at top, content/button in middle/bottom */
    align-items: center;
    position: relative;
    z-index: 1;
}

/* --- Header & Logo --- */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    margin-bottom: 40px;
    animation: fadeInDown 1s ease-out;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo-icon {
    filter: drop-shadow(0 4px 10px rgba(255, 45, 85, 0.35));
    transition: transform 0.3s ease;
}

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

.logo-text {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 1.8rem;
    color: var(--color-white);
    letter-spacing: -0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.logo-text-light {
    font-weight: 500;
    color: var(--color-white);
}

/* --- Main Content Section --- */
.main-content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    margin-bottom: 30px;
}

/* Responsive Content Wrappers */
.content-desktop {
    display: block;
    animation: fadeInUp 1s ease-out;
}

.content-mobile {
    display: none;
    animation: fadeInUp 1s ease-out;
}

/* Headline Styles */
.headline-large {
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-white);
    margin-bottom: 15px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.9);
    letter-spacing: -0.2px;
}

.headline-sub-desktop {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 40px;
}

.headline-mobile-main {
    font-size: 2.2rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 10px;
}

.headline-sub-mobile {
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--color-white);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.9), 0 2px 5px rgba(0, 0, 0, 0.9);
    margin-bottom: 35px;
}

.highlight-text {
    color: var(--color-coral);
}

/* --- Call To Action Button --- */
.cta-container {
    width: 100%;
    max-width: 480px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    animation: fadeInUp 1.2s ease-out;
}

.download-btn {
    display: block;
    width: 100%;
    background: var(--gradient-btn);
    border-radius: 50px;
    text-decoration: none;
    color: var(--color-white);
    padding: 14px 20px;
    box-shadow: 0 8px 30px rgba(255, 60, 92, 0.35), 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.download-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    transition: all 0.6s ease;
}

.download-btn:hover::before {
    left: 100%;
    transition: all 0.8s ease;
}

.download-btn:hover {
    background: var(--gradient-btn-hover);
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 60, 92, 0.5), 0 6px 15px rgba(0, 0, 0, 0.4);
}

.download-btn:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: 0 4px 15px rgba(255, 60, 92, 0.3), 0 2px 6px rgba(0, 0, 0, 0.3);
}

.btn-content {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
}

.download-icon {
    flex-shrink: 0;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.25));
    animation: bounce 2s infinite;
}

.btn-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.btn-title {
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    line-height: 1.2;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.btn-subtitle {
    font-size: 0.8rem;
    font-weight: 400;
    opacity: 0.85;
    margin-top: 1px;
}

.os-info {
    font-size: 0.85rem;
    color: var(--color-gray-text);
    font-weight: 500;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    opacity: 0.8;
}

/* --- Animations --- */
@keyframes bgEntrance {
    0% {
        transform: scale(1.1) rotate(1deg);
        filter: blur(10px);
    }
    100% {
        transform: scale(1.02) rotate(0deg);
        filter: blur(2px);
    }
}

@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInDown {
    0% {
        opacity: 0;
        transform: translateY(-20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* --- Media Queries (Responsive Design) --- */

/* Tablet Breakpoint (Transitions from Desktop to Tablet View) */
@media (max-width: 991px) {
    .headline-large {
        font-size: 2.5rem;
    }
    .headline-sub-desktop {
        font-size: 1.8rem;
        margin-bottom: 30px;
    }
}

/* Mobile Breakpoint (Switches to Mobile layout structure completely) */
@media (max-width: 767px) {
    .container {
        padding: 20px 15px;
    }

    .header {
        margin-bottom: 20px;
    }

    .logo-text {
        font-size: 1.6rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }

    /* Switch layout structures */
    .content-desktop {
        display: none;
    }

    .content-mobile {
        display: block;
    }

    /* Button and subtext optimizations for small screens */
    .cta-container {
        max-width: 100%;
        padding: 0 10px;
    }

    .download-btn {
        padding: 12px 15px;
    }

    .btn-title {
        font-size: 1.1rem;
    }

    .btn-subtitle {
        font-size: 0.75rem;
    }

    .download-icon {
        width: 24px;
        height: 24px;
    }
}

/* Very Small Screen Optimizations */
@media (max-width: 375px) {
    .headline-mobile-main {
        font-size: 1.9rem;
    }
    .headline-sub-mobile {
        font-size: 1.5rem;
    }
    .btn-title {
        font-size: 1rem;
    }
}
