/* Base Resets */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: #050505; /* Deep black foundation */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #ffffff;
    overflow-x: hidden;
}

/* Split Layout Setup */
.page-wrapper {
    display: flex;
    min-height: 100dvh; /* Dynamic Viewport Height for mobile */
    width: 100%;
    flex-direction: row;
}

.left-hero {
    flex: 1;
    position: relative;
    overflow: hidden;
    background: #050505;
}

/* Gradient overlay to create a smooth transition into right-content */
.left-hero::after {
    content: '';
    position: absolute;
    top: 0;
    right: -1px; /* Avoid sub-pixel rendering line */
    width: 40%;
    height: 100%;
    background: linear-gradient(to right, transparent, #050505);
    z-index: 2;
}

.bg-layer {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0; left: 0;
    background-image: url('../assets/bg.png');
    background-size: cover;
    background-position: center 20%;
    filter: blur(6px) brightness(0.8) saturate(1.2); 
    animation: slowPulse 10s infinite alternate ease-in-out;
    transform: scale(1.1);
}

.right-content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #050505;
}

@keyframes slowPulse {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.05); }
}

/* Main Content Container */
.content-container {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2rem;
    align-items: center;
    text-align: center;
    width: 100%;
}

/* Logo Section */
.logo-section {
    animation: fadeDown 1s ease-out;
}

.brand-logo {
    max-width: 280px;
    height: auto;
    filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.9));
    margin-bottom: 24px;
}

.brand-title {
    font-size: 1.1rem;
    letter-spacing: 4px;
    font-weight: 800;
    color: #D4AF37; /* Premium Gold */
    background: -webkit-linear-gradient(135deg, #F9D57C, #C39953);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 8px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.brand-subtitle {
    font-size: 0.8rem;
    letter-spacing: 3px;
    color: #8E8E93;
    font-weight: 400;
}

/* Download Section */
.download-section {
    width: 100%;
    max-width: 320px;
    margin-top: 3rem;
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    animation: fadeUp 1s ease-out 0.2s both;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    padding: 16px 20px;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
}

.btn::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transform: skewX(-20deg);
    transition: all 0.5s ease;
}

.btn:active {
    transform: scale(0.96);
}

.btn:active::before {
    left: 150%;
}

/* iOS Button: Primary Gold Gradient */
.btn-ios {
    background: linear-gradient(135deg, #F9D57C 0%, #C39953 100%);
    color: #0a0a0c;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-ios .icon svg {
    color: #0a0a0c;
    fill: #0a0a0c;
}

/* Android Button: Dark Mode Outline */
.btn-android {
    background: rgba(26, 26, 29, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(212, 175, 55, 0.5);
    color: #F9D57C;
}

.btn-android .icon svg {
    color: #F9D57C;
}

/* Inner Button Formatting */
.icon {
    display: flex;
    align-items: center;
    margin-right: 15px;
}

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

.btn-text .small {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1;
    margin-bottom: 4px;
    opacity: 0.8;
}

.btn-text .large {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1;
}

/* Footer Section */
.footer-info {
    margin-bottom: 2vh;
    font-size: 0.75rem;
    color: #555555;
    animation: fadeIn 2s ease-out 1s both;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Animations */
@keyframes fadeDown {
    0% { opacity: 0; transform: translateY(-30px); }
    100% { opacity: 1; transform: translateY(0); }
}

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

@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

/* Responsive constraints */
@media (max-width: 768px) {
    .page-wrapper {
        flex-direction: column;
    }
    .left-hero {
        flex: none;
        height: 30dvh; /* Further reduced height to pull content significantly up */
    }
    .left-hero::after {
        width: 100%;
        height: 60%;
        bottom: -1px;
        top: auto;
        left: 0;
        background: linear-gradient(to bottom, transparent, #050505);
    }
    .right-content {
        flex: 1;
        align-items: flex-start;
        padding-top: 0;
    }
    .logo-section {
        margin-top: -10vh; /* Substantial negative margin to pull everything up */
        animation: fadeDown 1s ease-out;
    }
    .brand-logo {
        max-width: max(200px, 50vw);
        margin-bottom: 16px;
    }
    .brand-title {
        font-size: clamp(1rem, 4.5vw, 1.2rem);
    }
    .download-section {
        margin-top: 1.5rem;
        margin-bottom: 2rem;
        gap: 1rem;
    }
    .btn {
        padding: 14px 20px;
    }
}

@media (min-width: 769px) {
    .download-section {
        flex-direction: row;
        max-width: 600px;
    }
    .btn {
        flex: 1;
    }
}
