/* =============================================
   HOME STYLES — PID QUIZ · TEMA DESCARBONIZAÇÃO
   ============================================= */

/* ---------- Layout principal ---------- */
main {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: linear-gradient(135deg, #0d1b2a 0%, #1a2f4a 40%, #0f2336 70%, #1a3a2a 100%);
    padding: 0 8%;
    box-sizing: border-box;
    overflow: hidden;
    display: flex;
    align-items: center;
}

/* ---------- Badge versão ---------- */
.version-badge {
    position: absolute;
    top: 2rem;
    left: 8%;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 11px;
    color: #e85d04;
    letter-spacing: 3px;
    text-transform: uppercase;
}

/* ---------- Partículas de fundo ---------- */
.particles {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: rgba(100, 200, 120, 0.15);
    animation: floatUp linear infinite;
}

.particle:nth-child(1)  { width: 6px;  height: 6px;  left: 10%; animation-duration: 12s; animation-delay: 0s;   top: 80%; }
.particle:nth-child(2)  { width: 4px;  height: 4px;  left: 25%; animation-duration: 15s; animation-delay: 2s;   top: 90%; }
.particle:nth-child(3)  { width: 8px;  height: 8px;  left: 40%; animation-duration: 10s; animation-delay: 4s;   top: 85%; }
.particle:nth-child(4)  { width: 3px;  height: 3px;  left: 55%; animation-duration: 18s; animation-delay: 1s;   top: 95%; }
.particle:nth-child(5)  { width: 5px;  height: 5px;  left: 68%; animation-duration: 13s; animation-delay: 6s;   top: 88%; }
.particle:nth-child(6)  { width: 7px;  height: 7px;  left: 78%; animation-duration: 16s; animation-delay: 3s;   top: 92%; }
.particle:nth-child(7)  { width: 4px;  height: 4px;  left: 88%; animation-duration: 11s; animation-delay: 5s;   top: 82%; }
.particle:nth-child(8)  { width: 6px;  height: 6px;  left: 5%;  animation-duration: 14s; animation-delay: 7s;   top: 75%; }

@keyframes floatUp {
    0%   { transform: translateY(0) scale(1);   opacity: 0; }
    10%  { opacity: 1; }
    90%  { opacity: 0.6; }
    100% { transform: translateY(-110vh) scale(0.5); opacity: 0; }
}

/* ---------- Row / colunas ---------- */
.row {
    position: relative;
    z-index: 1;
    display: flex;
    width: 100%;
    min-height: 100vh;
    align-items: center;
    gap: 2rem;
}

.coluna {
    flex-basis: 50%;
}

/* ---------- Coluna esquerda (texto) ---------- */
.coluna-left {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    animation: fadeSlideLeft 0.9s ease both;
}

@keyframes fadeSlideLeft {
    from { opacity: 0; transform: translateX(-40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.tag-line {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 12px;
    letter-spacing: 4px;
    color: #e85d04;
    text-transform: uppercase;
}

h1 {
    font-family: "Pixelify Sans", sans-serif;
    color: #ffffff;
    font-size: 72px;
    line-height: 1.05;
    margin: 0;
}

h1 span {
    color: #e85d04;
}

p {
    color: rgba(255, 255, 255, 0.75);
    font-size: 16px;
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
}

p strong {
    color: #ffffff;
}

/* ---------- Chips de estatística ---------- */
.stats-row {
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

.stat-chip {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 12px 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    backdrop-filter: blur(8px);
    transition: border-color 0.3s;
}

.stat-chip:hover {
    border-color: rgba(232, 93, 4, 0.5);
}

.stat-num {
    font-family: "Pixelify Sans", sans-serif;
    font-size: 28px;
    color: #ffffff;
    line-height: 1;
}

.stat-label {
    font-size: 10px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.5);
}

/* ---------- Botão ---------- */
button {
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    min-width: 160px;
    color: #ffffff;
    font-family: "Pixelify Sans", sans-serif;
    font-size: 14px;
    letter-spacing: 2px;
    padding: 14px 28px;
    background: #e85d04;
    border: 2px solid #e85d04;
    border-radius: 6px;
    outline: none;
    margin-top: 0.5rem;
    transition: background 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 0 20px rgba(232, 93, 4, 0.35);
}

button:hover {
    background: transparent;
    border-color: #e85d04;
    color: #e85d04;
    transform: translateY(-2px);
    box-shadow: 0 0 32px rgba(232, 93, 4, 0.55);
}

button a {
    color: inherit;
    text-decoration: none;
}

.btn-icon {
    font-size: 18px;
}

/* ---------- Coluna direita (globo) ---------- */
.coluna-right {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeSlideRight 0.9s ease 0.2s both;
}

@keyframes fadeSlideRight {
    from { opacity: 0; transform: translateX(40px); }
    to   { opacity: 1; transform: translateX(0); }
}

.globe-container {
    position: relative;
    width: 360px;
    height: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.globe-ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(100, 200, 130, 0.2);
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    animation: pulseRing 4s ease-in-out infinite;
}

.ring-1 { width: 200px; height: 200px; animation-delay: 0s; }
.ring-2 { width: 290px; height: 290px; animation-delay: 0.8s; border-color: rgba(100, 200, 130, 0.12); }
.ring-3 { width: 360px; height: 360px; animation-delay: 1.6s; border-color: rgba(100, 200, 130, 0.07); }

@keyframes pulseRing {
    0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 1; }
    50%       { transform: translate(-50%, -50%) scale(1.04); opacity: 0.6; }
}

.globe-core {
    position: relative;
    z-index: 2;
    width: 100px;
    height: 100px;
    border-radius: 50%;
    background: radial-gradient(circle at 40% 40%, #2d6a4f, #1a3a2a);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 40px rgba(45, 106, 79, 0.6), 0 0 80px rgba(45, 106, 79, 0.3);
    animation: rotateSlow 20s linear infinite;
    margin-bottom: 1.5rem;
}

@keyframes rotateSlow {
    from { box-shadow: 0 0 40px rgba(45,106,79,0.6), 0 0 80px rgba(45,106,79,0.3); }
    50%  { box-shadow: 0 0 60px rgba(72,199,116,0.8), 0 0 100px rgba(72,199,116,0.4); }
    to   { box-shadow: 0 0 40px rgba(45,106,79,0.6), 0 0 80px rgba(45,106,79,0.3); }
}

.leaf-icon {
    font-size: 42px;
}

.globe-label {
    font-family: "Pixelify Sans", sans-serif;
    color: rgba(255, 255, 255, 0.9);
    font-size: 15px;
    text-align: center;
    line-height: 1.5;
    z-index: 2;
    position: relative;
}

.globe-sub {
    font-size: 11px;
    color: rgba(255, 255, 255, 0.35);
    text-align: center;
    letter-spacing: 1px;
    margin-top: 6px;
    z-index: 2;
    position: relative;
}

/* ---------- Navbar (se existir via global) ---------- */
.navbar {
    height: 12%;
    display: flex;
    align-items: center;
    list-style: none;
}

nav {
    flex: 1;
    text-align: right;
}

nav ul li {
    font-family: "Pixelify Sans", sans-serif;
    list-style: none;
    display: inline-block;
    padding: 5px 10px;
}

nav ul li a {
    text-decoration: none;
    color: var(--color-white);
    font-size: 18px;
}

nav ul li a:hover {
    color: #e85d04;
    text-decoration: underline;
    transition: .4s;
}

/* ---------- Responsividade ---------- */
@media screen and (max-width: 900px) {
    .row {
        flex-direction: column;
        justify-content: center;
        padding: 5rem 0 3rem;
        min-height: auto;
    }

    .coluna {
        flex-basis: 100%;
        width: 100%;
    }

    .coluna-right {
        margin-top: 2rem;
    }

    .globe-container {
        width: 260px;
        height: 260px;
    }

    .ring-1 { width: 140px; height: 140px; }
    .ring-2 { width: 200px; height: 200px; }
    .ring-3 { width: 260px; height: 260px; }
}

@media screen and (max-width: 600px) {
    h1 {
        font-size: 3.2rem;
    }

    .stats-row {
        flex-direction: column;
    }

    button {
        width: 100%;
        justify-content: center;
    }
}