/* Variáveis de Cor (ID Visual Mundo Torajo) */
:root {
    --brand-green: #00A63A;
    --brand-dark-green: #007A2A;
    --brand-purple: #463B7C;
    --brand-dark-purple: #2F2459;
    --text-color: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--brand-purple);
    /* Fundo com um leve gradiente para não ficar uma cor lisa e opaca */
    background-image: radial-gradient(circle at top left, #5c4e9e 0%, var(--brand-purple) 60%);
    font-family: 'Nunito', sans-serif;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Container Principal Focado */
.download-container {
    display: flex;
    width: 100%;
    max-width: 1100px;
    background: transparent;
    padding: 40px;
    gap: 80px;
    align-items: center;
}

/* Lado do Texto */
.content-side {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.logo-container {
    margin-bottom: 40px;
}

.logo-container img {
    height: 110px;
    filter: drop-shadow(0px 8px 10px rgba(0, 0, 0, 0.3));
}

.badge-new {
    background-color: #FFD600;
    /* Amarelo Linn */
    color: var(--brand-dark-purple);
    font-family: 'Fredoka One', cursive;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 1.1rem;
    margin-bottom: 15px;
    transform: rotate(-3deg);
    box-shadow: 0 4px 0 #D4B200, 0 8px 15px rgba(0, 0, 0, 0.2);
    display: inline-block;
}

.main-title {
    font-family: 'Fredoka One', cursive;
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 25px;
    text-shadow: 3px 3px 0 var(--brand-dark-purple);
}

.promo-box {
    background-color: rgba(0, 166, 58, 0.2);
    border: 3px dashed var(--brand-green);
    padding: 15px 25px;
    border-radius: 20px;
    font-size: 1.2rem;
    margin-bottom: 25px;
}

.promo-box strong {
    color: #4BFF84;
    /* Verde Claro / Neon para contraste */
    font-weight: 900;
}

.description {
    font-size: 1.25rem;
    line-height: 1.6;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* Botão de Ação */
.action-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
}

.btn-download {
    background-color: var(--brand-green);
    color: var(--brand-dark-purple);
    font-family: 'Fredoka One', cursive;
    text-decoration: none;
    padding: 22px 50px;
    font-size: 1.5rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 2px;
    transition: all 0.2s ease;
    box-shadow: 0 6px 0 var(--brand-dark-green), 0 15px 25px rgba(0, 166, 58, 0.4);
    text-align: center;
}

.btn-download:hover {
    background-color: #00c445;
    transform: translateY(-2px);
    box-shadow: 0 8px 0 var(--brand-dark-green), 0 20px 30px rgba(0, 166, 58, 0.5);
}

.btn-download:active {
    transform: translateY(4px);
    box-shadow: 0 2px 0 var(--brand-dark-green), 0 5px 10px rgba(0, 166, 58, 0.4);
}

.platform-info {
    font-size: 0.95rem;
    opacity: 0.7;
    font-weight: 700;
    margin-left: 20px;
}

/* Lado da Imagem / Mockup Celular */
.image-side {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.phone-frame {
    width: 320px;
    height: 650px;
    border: 12px solid #ffffff;
    border-radius: 50px;
    background-color: var(--brand-purple);
    position: relative;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    overflow: hidden;
    transform: rotate(6deg);
    transition: transform 0.5s ease;
}

.phone-frame:hover {
    transform: rotate(0deg) scale(1.02);
    /* Retorna pro eixo reto e dá zoom ao passar o mouse */
}

.phone-notch {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 130px;
    height: 30px;
    background-color: #ffffff;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    z-index: 10;
}

.phone-screen-content {
    width: 100%;
    height: 100%;
    /* Gradiente igual ao botão principal */
    background: linear-gradient(180deg, var(--brand-green) 0%, var(--brand-purple) 70%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
}

.app-logo {
    width: 160px;
    filter: drop-shadow(0px 10px 15px rgba(0, 0, 0, 0.3));
    margin-bottom: 25px;
}

.phone-screen-content h2 {
    font-family: 'Fredoka One', cursive;
    font-size: 2rem;
    color: #fff;
    margin-bottom: 40px;
    text-shadow: 2px 2px 0 var(--brand-dark-purple);
}

/* Barra de carregamento dentro do celular simulada */
.loading-bar {
    width: 80%;
    height: 10px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
}

.loading-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 50%;
    background-color: #fff;
    border-radius: 10px;
    animation: loading 2s infinite ease-in-out;
}

@keyframes loading {
    0% {
        transform: translateX(-100%);
        width: 30%;
    }

    50% {
        width: 60%;
    }

    100% {
        transform: translateX(200%);
        width: 30%;
    }
}

/* Design Responsivo (Celulares e Tablets) */
@media (max-width: 900px) {
    .download-container {
        flex-direction: column;
        text-align: center;
        padding: 30px 20px;
        margin-top: 30px;
        gap: 40px;
    }

    .content-side {
        align-items: center;
    }

    .action-box {
        align-items: center;
        width: 100%;
    }

    .platform-info {
        margin-left: 0;
    }

    .phone-frame {
        transform: rotate(0deg);
        margin-top: 10px;
        width: 280px;
        height: 580px;
    }

    .main-title {
        font-size: 2.8rem;
    }
}

/* Design Responsivo Focado em Celulares */
@media (max-width: 480px) {
    .download-container {
        padding: 20px 15px;
        margin-top: 10px;
        gap: 30px;
    }

    .logo-container {
        margin-bottom: 25px;
    }

    .logo-container img {
        height: 80px;
    }

    .badge-new {
        font-size: 0.95rem;
        padding: 6px 16px;
    }

    .main-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .promo-box {
        font-size: 1rem;
        padding: 12px 15px;
    }

    .description {
        font-size: 1.05rem;
        margin-bottom: 30px;
    }

    .btn-download {
        font-size: 1.1rem;
        padding: 18px 20px;
        width: 100%;
        max-width: 320px;
        /* Garante que não fique espalhado demais */
    }

    .phone-frame {
        width: 250px;
        height: 500px;
        border-width: 8px;
        border-radius: 40px;
    }

    .phone-notch {
        width: 100px;
        height: 25px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    .app-logo {
        width: 110px;
    }

    .phone-screen-content h2 {
        font-size: 1.5rem;
    }
}