:root {
    --p1: #4b1c71; --p2: #7f4ca5; --p3: #b57edc; --p4: #dbb6cc; --white: #ffffff;
    --dark: #0f0a14; --glass: rgba(255, 255, 255, 0.05);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Poppins', sans-serif; }

body { background: var(--dark); color: var(--white); overflow-x: hidden; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Header & Nav */

.site-header { position: fixed; width: 100%; top: 0; z-index: 1000; padding: 20px 0; background: rgba(15, 10, 20, 0.8); backdrop-filter: blur(10px); border-bottom: 1px solid var(--p1); }

.header-content { display: flex; justify-content: space-between; align-items: center; }

.logo { font-weight: 900; letter-spacing: -1px; }

.logo span { color: var(--p3); }

.main-nav { display: flex; align-items: center; gap: 30px; }

.main-nav ul { display: flex; gap: 20px; list-style: none; }

.main-nav a { color: var(--white); text-decoration: none; font-size: 14px; font-weight: 600; transition: 0.3s; }

.main-nav a:hover { color: var(--p3); }

.btn-denuncie { background: var(--p3); color: var(--p1) !important; padding: 10px 25px; border-radius: 50px; box-shadow: 0 0 20px rgba(181, 126, 220, 0.4); }



/* Menu Hambúrguer (Oculto no PC) */

.hamburger { display: none; flex-direction: column; cursor: pointer; background: rgba(255, 255, 255, 0.1); border: none; padding: 8px; border-radius: 5px; }

.hamburger span { width: 25px; height: 3px; background: white; margin: 2px 0; }

/* Hero Section */

.hero { height: 100vh; position: relative; display: flex; align-items: center; overflow: hidden; }

.hero-img { position: absolute; width: 100%; height: 100%; object-fit: cover; filter: brightness(0.4); z-index: -1; }

.hero-title { font-size: 5rem; line-height: 1; margin-bottom: 20px; text-transform: uppercase; }

.highlight { color: var(--p3); text-shadow: 0 0 30px var(--p1); }

.container hero-text-box p { font-size: 4.5rem;}

.reveal-text { font-size: 5.0rem;}

/* Notícias */

.news-section { padding: 100px 0; }

.section-title { font-size: 3rem; margin-bottom: 50px; text-align: center; color: var(--p4); }

.news-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }

.news-card { background: var(--glass); padding: 30px; text-decoration: none; border-radius: 15px; border: 1px solid var(--p1); transition: 0.4s ease; }

.news-card a { text-decoration: none; color: var(--p1); }

.news-card a:hover { transform: translateY(-10px); color: #ffffff; }

.news-card:hover { transform: translateY(-10px); background: rgba(181, 126, 220, 0.1); }

.news-tag { background: var(--p2); display: inline-block; padding: 5px 15px; border-radius: 20px; margin-bottom: 15px; font-size: 12px; }



/* Gráficos */

.stats-section { padding: 100px 0; background: linear-gradient(to bottom, var(--dark), var(--p1)); }

.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }

.chart-container { background: var(--glass); padding: 40px; border-radius: 20px; backdrop-filter: blur(10px); }

.stat-item { margin-bottom: 30px; }

.stat-number { font-size: 4rem; font-weight: 900; color: var(--p3); display: block; }



/* Footer */

.site-footer { padding: 50px 0; border-top: 1px solid var(--p1); margin-top: 100px; text-align: center; }



/* Ticker */

.ticker-wrap { width: 100%; overflow: hidden; background-color: var(--p1); padding: 15px 0; border-top: 2px solid var(--p3); border-bottom: 2px solid var(--p3); margin: 40px 0; }

.ticker { display: flex; white-space: nowrap; animation: ticker 30s linear infinite; }

.ticker__item { display: inline-block; padding: 0 40px; font-size: 1.5rem; font-weight: 900; color: var(--p3); text-transform: uppercase; }

@keyframes ticker { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }



/* Facts & Stats Split */

.facts-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 50px; }

.fact-card { padding: 40px; border-radius: 20px; text-align: center; transition: transform 0.3s ease;}

.fact-icon { font-size: 3rem; display: block; margin-bottom: 20px; }

.stats-split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; padding: 100px 0; }

.chart-box { padding: 30px; border-radius: 20px; }

.custom-list { list-style: none; margin-top: 20px; }

.custom-list li { margin-bottom: 15px; padding-left: 20px; border-left: 3px solid var(--p3); }



/* Impact Gallery */

.impact-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 80px 0; }

.gallery-item { position: relative; height: 400px; overflow: hidden; }

.gallery-item img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(100%); transition: 0.8s ease; }

.gallery-item:hover img { filter: grayscale(0%); scale: 1.1; }

.img-caption { position: absolute; bottom: 20px; left: 20px; background: var(--p1); color: white; padding: 5px 15px; font-weight: 600; }



/* --- RESPONSIVIDADE MOBILE / TABLET --- */



@media (max-width: 900px) {

    .hamburger { display: flex; }

    .main-nav { display: none; position: absolute; top: 75px; right: 0; width: 100%; background: var(--dark); flex-direction: column; padding: 20px; text-align: center; border-bottom: 2px solid var(--p1); }

    .main-nav.active { display: flex; }

    .main-nav ul { flex-direction: column; gap: 20px; }

    

    .stats-grid, .stats-split, .news-grid, .impact-gallery { grid-template-columns: 1fr !important; }

    .reveal-text { font-size: 2.5rem !important; }

    .stat-number { font-size: 2.5rem !important; }

    .hero-title { font-size: 2.5rem !important; }

}

/* Three.js configs */

#three-loader {
    position: fixed;
    inset: 0;
    background: #050208;
    z-index: 9999;
    /* Centraliza o container da interface */
    display: flex;
    justify-content: center;
    align-items: center;
}

.loader-interface {
    position: absolute;
    width: 100%;        /* Ocupa a largura total para o text-align funcionar */
    text-align: center; /* Centraliza o texto e elementos inline dentro dela */
    pointer-events: none;
    z-index: 10000;
}

.loader-logo {
    font-size: clamp(2rem, 8vw, 4rem); /* Responsivo: aumenta no PC, diminui no Mobile */
    font-weight: 900;
    color: white;
    margin: 0 auto 10px auto;
    display: block;
    letter-spacing: 2px;
}

.loader-bar {
    width: 250px;       /* Um pouco maior para dar mais presença */
    height: 3px;
    background: rgba(255,255,255,0.1);
    margin: 20px auto;  /* O 'auto' nas laterais centraliza a barra */
    position: relative;
    border-radius: 10px;
    overflow: hidden;
}

.progress {
    width: 0%;
    height: 100%;
    background: #b57edc;
    box-shadow: 0 0 20px #b57edc;
}