/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg-dark: #000000;
    --bg-card: #0c0806; /* Very dark warm color to match orange accents */
    --primary-gradient: linear-gradient(135deg, #FF3B00, #FF7B00);
    --primary-orange: #FF5A00;
    --text-light: #F0F4F8;
}

body {
    font-family: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

a { text-decoration: none; }

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes btnPulse {
    0% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0.7); transform: scale(1); }
    50% { box-shadow: 0 0 0 15px rgba(255, 90, 0, 0); transform: scale(1.02); }
    100% { box-shadow: 0 0 0 0 rgba(255, 90, 0, 0); transform: scale(1); }
}


/* --- Hero Section --- */
.hero {
    position: relative;
    background-color: #0d0d0d;
    z-index: 1;
    overflow: hidden;
}

.hero-split-layout {
    display: flex;
    width: 100%;
}

.hero-text-side {
    width: 55%;
    display: flex;
    justify-content: flex-start;
    padding: 20px 40px 120px 8vw;
    z-index: 2;
}

.hero-text-content {
    width: 100%;
    max-width: 680px;
}

.hero-image-side {
    width: 45%;
    display: flex;
    justify-content: flex-start;
    align-items: stretch;
    position: relative;
    z-index: 1;
}

.hero-image-side::after {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0; right: 0;
    background: linear-gradient(to right, #0d0d0d 0%, rgba(13,13,13,0.6) 15%, transparent 40%);
    pointer-events: none;
}

.hero-img-element {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
    -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,0.8) 25%, black 45%);
    mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.1) 5%, rgba(0,0,0,0.8) 25%, black 45%);
}

.logo {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    margin-bottom: 40px;
    animation: fadeInUp 0.8s ease backwards;
}

.logo-img {
    max-height: 140px;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(255, 90, 0, 0.4));
}

.hero-title {
    font-size: 2.8rem;
    font-weight: 600;
    max-width: 680px;
    margin: 0 0 20px 0;
    line-height: 1.15;
    animation: fadeInUp 0.8s ease 0.1s backwards;
}

.text-gradient {
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: #B0B9C2;
    max-width: 550px;
    margin: 0 0 30px 0;
    animation: fadeInUp 0.8s ease 0.2s backwards;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    font-weight: 900;
    font-size: 1.2rem;
    padding: 22px 45px;
    border-radius: 50px;
    display: inline-block;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 8px 25px rgba(255, 90, 0, 0.4);
    animation: btnPulse 2s infinite, fadeInUp 0.8s ease 0.3s backwards;
}

.btn-primary:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(255, 90, 0, 0.7);
    animation: none;
}

.btn-subtext {
    margin: 15px 0 0 0;
    font-size: 0.85rem;
    color: #666;
    animation: fadeInUp 0.8s ease 0.4s backwards;
    max-width: 400px;
}


.highlight-stripe {
    color: #000;
}

/* --- Slanted Marquees --- */
.slanted-marquees {
    position: absolute;
    bottom: -40px;
    left: 0;
    width: 100%;
    height: 150px;
    z-index: 10;
    overflow: hidden;
}

.marquee-stripe {
    position: absolute;
    width: 110%;
    left: -5%;
    background: var(--primary-gradient);
    color: #fff;
    padding: 12px 0;
    font-weight: 800;
    font-size: 1.2rem;
    text-transform: uppercase;
    white-space: nowrap;
    display: flex;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.marquee-stripe-1 {
    top: 30px;
    transform: rotate(-3deg);
    z-index: 2;
    background: #FF5A00;
}

.marquee-stripe-2 {
    top: 50px;
    transform: rotate(2deg);
    z-index: 1;
    background: #CC4800;
}

.marquee-content-stripe {
    display: flex;
    gap: 30px;
    animation: scroll-marquee 15s linear infinite;
    will-change: transform;
    width: max-content;
}

.stripe-reverse {
    animation: scroll-marquee-reverse 15s linear infinite;
    will-change: transform;
}

@keyframes scroll-marquee-reverse {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

@keyframes scroll-marquee {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- Cards Section --- */
.cards-section {
    padding: 120px 0 80px;
    background: #000;
    position: relative;
    z-index: 5;
}

.section-title {
    text-align: center;
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 100px; /* Large space for overlapping icons */
}

.text-gradient-large {
    font-size: 3.5rem;
    font-weight: 900;
    background: var(--primary-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    display: block;
    margin-top: 5px;
}

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

.card {
    background: var(--bg-card);
    border: 1px solid rgba(255, 90, 0, 0.2);
    border-radius: 20px;
    padding: 50px 30px 40px;
    position: relative;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(255, 90, 0, 0.2);
    border-color: rgba(255, 90, 0, 0.5);
}

.card-icon {
    position: absolute;
    top: -40px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 80px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 20px rgba(255, 90, 0, 0.4);
    border: 6px solid #000;
}

.card-content h3 {
    color: var(--primary-orange);
    font-size: 1.4rem;
    margin-bottom: 15px;
}

.card-content p {
    color: #B0B9C2;
    font-size: 1.05rem;
}

.card-content i {
    color: #888;
    font-size: 0.95rem;
}

.center-btn {
    text-align: center;
}

/* --- Dashboard Section --- */
.dashboard-section {
    padding: 60px 0 100px;
    background: #000;
}

.dashboard-section .section-title {
    margin-bottom: 40px;
    font-size: 2rem;
}

.result-image-wrapper {
    display: flex;
    justify-content: center;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8), 0 0 40px rgba(255, 90, 0, 0.2);
    border: 1px solid rgba(255, 90, 0, 0.3);
}

.resultado-img {
    max-width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.resultado-img:hover {
    transform: scale(1.02);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #555;
}

/* Responsive Design */
@media (max-width: 900px) {
    /* Problema 6 - Overflow horizontal global */
    html, body {
        overflow-x: hidden;
        width: 100%;
    }
    .hero {
        overflow: hidden;
    }

    /* Problema 1 e 2 - Hero Imagem e Texto */
    .hero-split-layout {
        flex-direction: column-reverse;
        min-height: unset;
    }

    .hero-image-side {
        width: 100%;
        height: 80vw;
        min-height: 300px;
        max-height: 480px;
        overflow: hidden;
        position: relative;
        display: block;
        flex: none;
    }

    /* Redefine o pseudo-elemento para fade suave de baixo pra cima */
    .hero-image-side::after {
        content: '';
        position: absolute;
        top: 0; left: 0; right: 0; bottom: 0;
        background: linear-gradient(
            to top,
            #0d0d0d 0%,
            rgba(13,13,13,0.5) 18%,
            transparent 55%
        );
        pointer-events: none;
        z-index: 2;
    }

    .hero-img-element {
        width: 100%;
        height: 100%;
        object-fit: cover;

        /* CRÍTICO: centraliza horizontalmente e posiciona o rosto no topo da área visível */
        object-position: center 10%;

        /* Remove máscara lateral que existia para desktop — no mobile a máscara é vertical */
        -webkit-mask-image: none;
        mask-image: none;

        display: block;
        position: relative;
        z-index: 1;
    }

    .hero-text-side {
        width: 100%;
        padding: 0 24px 120px;
        text-align: center;
        justify-content: center;
        flex: none;
    }

    .hero-text-content {
        max-width: 100%;
    }

    .logo {
        justify-content: center;
        margin-bottom: 24px;
    }

    .logo-img {
        max-height: 80px;
    }

    .hero-title {
        font-size: clamp(1.5rem, 5.2vw, 2rem);
        margin: 0 auto 16px;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin: 0 auto 24px;
    }

    .btn-primary {
        display: block;
        width: 100%;
        max-width: 400px;
        margin: 0 auto;
        font-size: 1rem;
        padding: 20px 24px;
        text-align: center;
        touch-action: manipulation;
        min-height: 56px;
    }



    /* Problema 4 - Faixas laranja */
    .slanted-marquees {
        bottom: -25px;
        height: 120px;
        overflow: visible; /* Allow rotated stripes to show */
    }
    .marquee-stripe {
        font-size: 0.9rem;
        padding: 12px 0;
        letter-spacing: 0.5px;
        width: 120%;
        left: -10%;
    }
    .marquee-stripe-1 {
        top: 20px;
    }
    .marquee-stripe-2 {
        top: 50px;
    }

    /* Problema 5 - Cards */
    .cards-section {
        padding: 90px 0 60px;
    }
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 64px;
    }
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 72px;
        padding: 0 16px;
    }
    .text-gradient-large {
        font-size: 2rem;
    }
    .center-btn {
        padding: 0 0;
    }
}
