/* ------------------------------------------- */
/* ESTILOS BASE E UTILITARIOS */
/* ------------------------------------------- */
:root {
    --color-primary: #38a169;
    --color-secondary: #2c523e;
    --color-text: #2d3748;
    --color-background: #ffffff;
    --color-light-gray: #f7fafc;
    --font-family: 'Inter', sans-serif;
    --color-neon-glow: #00ff7f;
    --color-data-stream: rgba(0, 255, 127, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: var(--font-family);
    color: var(--color-text);
    background-color: var(--color-background);
    line-height: 1.6;
    overflow-x: hidden;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.hidden { display: none; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 3px solid var(--color-neon-glow);
    outline-offset: 2px;
    border-radius: 2px;
}

/* ------------------------------------------- */
/* SELO / LOGO (SVG, sem depender de imagem) */
/* ------------------------------------------- */
.badge-logo svg { display: block; }
.badge-logo .ring { fill: none; stroke: var(--color-neon-glow); }
.badge-logo .ring-outer { stroke-width: 1.5; opacity: 0.55; stroke-dasharray: 4 5; }
.badge-logo .ring-inner { stroke-width: 2; }
.badge-logo .badge-b {
    font-family: var(--font-family); font-weight: 800; font-size: 24px;
    fill: var(--color-neon-glow);
}
.badge-logo .badge-sub {
    font-family: var(--font-family); font-weight: 600; font-size: 11px; letter-spacing: 0.06em;
    fill: white;
}
.badge-logo--nav { width: 34px; height: 34px; margin-right: 10px; }
.badge-logo--splash { width: 96px; height: 96px; margin: 0 auto 20px; }

/* ------------------------------------------- */
/* SPLASH SCREEN */
/* ------------------------------------------- */
#splash-screen {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center;
    z-index: 9999; transition: opacity 0.5s ease-out; background-color: #000;
}

.splash-background {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover; background-position: center; background-repeat: no-repeat;
    z-index: 1; opacity: 0.9; overflow: hidden;
}

.splash-background::before {
    content: ''; position: absolute; top: 0; left: 0; width: 200%; height: 100%;
    background: repeating-linear-gradient(45deg, transparent, transparent 50px,
        var(--color-data-stream) 50px, var(--color-data-stream) 60px);
    opacity: 0.05; animation: stream-flow 30s linear infinite; z-index: 1;
}

@keyframes stream-flow { from { transform: translateX(0); } to { transform: translateX(-50%); } }

.splash-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.65); z-index: 2;
}

.splash-content { position: relative; z-index: 3; text-align: center; padding: 0 20px; }

.splash-content h1 {
    font-size: clamp(1.4em, 4vw, 2.2em); font-weight: 800; color: white; margin-bottom: 40px;
    text-shadow: 0 0 10px rgba(56, 161, 105, 0.8);
    animation: neon-glow 1.5s ease-in-out infinite alternate;
}

@keyframes neon-glow {
    0% { text-shadow: 0 0 5px var(--color-neon-glow), 0 0 10px rgba(56, 161, 105, 0.5); }
    100% { text-shadow: 0 0 15px var(--color-neon-glow), 0 0 25px rgba(56, 161, 105, 0.8); }
}

.electric-loader-container {
    width: 200px; height: 10px; margin: 20px auto; background: #333; border-radius: 5px;
    overflow: hidden; position: relative; box-shadow: 0 0 5px var(--color-neon-glow);
}

.electric-loader {
    height: 100%; width: 0;
    background: linear-gradient(90deg, #38a169 0%, var(--color-neon-glow) 100%);
    transition: width 0.3s ease-out; position: relative;
    box-shadow: 0 0 10px var(--color-neon-glow), 0 0 20px var(--color-neon-glow);
}

.electric-loader::after {
    content: ''; position: absolute; top: 0; right: -10px; width: 5px; height: 10px;
    background: white; box-shadow: 0 0 5px white, 0 0 10px var(--color-neon-glow);
    animation: spark-move 0.5s linear infinite; opacity: 0;
}

@keyframes spark-move {
    0% { transform: translateX(0); opacity: 1; }
    50% { transform: translateX(-50px) scaleX(1.5); opacity: 0.5; }
    100% { transform: translateX(-150px) scaleX(1); opacity: 1; }
}

.loader-label {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: white; font-weight: 800; z-index: 10; text-shadow: 0 0 3px black;
}

#flash-effect {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: white; opacity: 0; z-index: 10000; pointer-events: none;
}

.flash-active { animation: lightning-flash 0.3s ease-out forwards; }

@keyframes lightning-flash { 0% { opacity: 0; } 50% { opacity: 1; } 100% { opacity: 0; } }

#main-content.hidden-start { opacity: 0; transform: translateY(100vh); display: block; }
#main-content.active-rise { animation: earth-rise 1.2s ease-out forwards; }

@keyframes earth-rise {
    0% { opacity: 0; transform: translateY(100vh); }
    50% { opacity: 1; }
    100% { opacity: 1; transform: translateY(0); }
}

/* Movimento reduzido: sem animação de subida, sem raio, conteúdo aparece direto */
@media (prefers-reduced-motion: reduce) {
    #main-content.active-rise { animation: none; opacity: 1; transform: none; }
    .splash-content h1 { animation: none; }
    .electric-loader::after { animation: none; display: none; }
    .splash-background::before { animation: none; }
    html { scroll-behavior: auto; }
}

/* ------------------------------------------- */
/* NAVEGACAO */
/* ------------------------------------------- */
header {
    background-color: rgba(255, 255, 255, 0.95); padding: 15px 0; position: sticky;
    top: 0; z-index: 1000; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

header .container { display: flex; justify-content: space-between; align-items: center; }

.logo {
    font-size: 1.5em; font-weight: 800; color: var(--color-secondary);
    display: flex; align-items: center; text-decoration: none;
}
.badge-logo--nav .badge-b { font-size: 26px; fill: var(--color-primary); }
.badge-logo--nav .badge-sub { fill: var(--color-secondary); }
.badge-logo--nav .ring-inner { stroke: var(--color-primary); }
.badge-logo--nav .ring-outer { stroke: var(--color-primary); }

.nav-links { display: flex; align-items: center; }
.nav-links a { color: var(--color-text); text-decoration: none; margin-left: 25px; font-weight: 600; transition: color 0.3s; }
.nav-links a:hover { color: var(--color-primary); }
.btn-app {
    background-color: var(--color-primary); color: white !important; padding: 10px 18px;
    border-radius: 6px; font-weight: 700 !important;
}
.btn-app:hover { background-color: var(--color-secondary); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center; gap: 5px;
    width: 40px; height: 40px; background: none; border: none; cursor: pointer;
}
.nav-toggle span { width: 100%; height: 2px; background: var(--color-secondary); border-radius: 2px; }

.btn {
    padding: 10px 20px; border-radius: 5px; text-decoration: none; font-weight: 700;
    transition: background-color 0.3s; display: inline-block;
}
.btn-primary { background-color: var(--color-primary); color: white; }
.btn-primary:hover { background-color: var(--color-secondary); }
.btn-secondary { background-color: transparent; border: 2px solid var(--color-primary); color: var(--color-primary); margin-left: 15px; }
.btn-secondary:hover { background-color: var(--color-primary); color: white; }

@media (max-width: 860px) {
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: 68px; left: 0; right: 0; background: white;
        flex-direction: column; align-items: flex-start; padding: 20px;
        box-shadow: 0 8px 16px rgba(0,0,0,0.08);
        transform: translateY(-12px); opacity: 0; pointer-events: none;
        transition: transform 0.2s ease, opacity 0.2s ease;
    }
    .nav-links.open { transform: translateY(0); opacity: 1; pointer-events: auto; }
    .nav-links a { margin: 0; padding: 12px 0; width: 100%; border-bottom: 1px solid #eee; }
    .btn-app { margin-top: 8px; text-align: center; }
}

/* ------------------------------------------- */
/* HERO SECTION */
/* ------------------------------------------- */
.hero-section {
    position: relative; min-height: 78vh; display: flex; align-items: center;
    text-align: center; color: white; background-size: cover; background-position: center;
    overflow: hidden; padding: 40px 0;
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5); z-index: 1;
}

.hero-content { position: relative; z-index: 2; padding-top: 30px; }
.hero-content h1 {
    font-size: clamp(1.9em, 4.4vw, 3.4em); margin-bottom: 20px; font-weight: 800; line-height: 1.2;
}
.hero-content p { font-size: clamp(1em, 1.6vw, 1.25em); margin-bottom: 30px; max-width: 640px; margin-left: auto; margin-right: auto; }

.hero-ctas { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }

.trust-bar {
    display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 14px;
    background-color: rgba(255, 255, 255, 0.12); padding: 20px; border-radius: 10px;
    margin-top: 50px; border: 1px solid rgba(255, 255, 255, 0.25);
}
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.86em; color: #eafff2; padding: 4px 10px; }
.trust-item svg { width: 20px; height: 20px; color: var(--color-neon-glow); flex-shrink: 0; }

/* ------------------------------------------- */
/* SECOES GERAIS */
/* ------------------------------------------- */
section { padding: 80px 0; }
.section-title { font-size: clamp(1.7em, 3.4vw, 2.4em); font-weight: 800; text-align: center; margin-bottom: 20px; }

.vision-tag {
    display: block; text-align: center; font-size: 0.82em; font-weight: 600; color: var(--color-secondary);
    background: color-mix(in srgb, var(--color-primary) 12%, transparent);
    border: 1px dashed var(--color-primary); border-radius: 100px; padding: 8px 16px;
    max-width: fit-content; margin: 0 auto 24px;
}

/* ------------------------------------------- */
/* CICLO CARBON */
/* ------------------------------------------- */
.cycle-section { background-color: var(--color-light-gray); }

.cycle-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }

.cycle-item {
    background-color: white; padding: 30px; border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); transition: transform 0.3s;
    border-top: 5px solid var(--color-primary);
}
.cycle-item:hover { transform: translateY(-5px); }
.cycle-item h3 { color: var(--color-secondary); font-size: 1.2em; margin-bottom: 15px; }
.cycle-item strong { color: var(--color-primary); }

/* ------------------------------------------- */
/* IMPACTO / VISAO DE MERCADO */
/* ------------------------------------------- */
.impact-section { background-color: var(--color-background); }

.numbers-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }

.number-item { padding: 30px 24px; border: 1px solid #e2e8f0; border-radius: 8px; }
.number-value { display: block; font-size: 1.7em; font-weight: 800; color: var(--color-primary); margin-bottom: 10px; }
.number-label { display: block; font-size: 0.9em; color: #4a5568; }

/* ------------------------------------------- */
/* CTA / CONTATO */
/* ------------------------------------------- */
.cta-section { background-color: var(--color-secondary); color: white; text-align: center; }
.cta-section h2 { color: white; }
.cta-section p { font-size: 1.1em; margin-bottom: 40px; }

.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; text-align: left; }
.contact-card {
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16);
    border-radius: 10px; padding: 26px;
}
.contact-card h4 { font-size: 1.15em; margin-bottom: 8px; }
.contact-card p { font-size: 0.92em; color: rgba(255,255,255,0.75); margin-bottom: 18px; min-height: 42px; }
.contact-card .btn { width: 100%; text-align: center; margin-left: 0; }
.contact-card .btn-secondary { border-color: rgba(255,255,255,0.4); color: white; }
.contact-card .btn-secondary:hover { background-color: white; color: var(--color-secondary); }

/* ------------------------------------------- */
/* FOOTER */
/* ------------------------------------------- */
footer { background-color: #1a202c; color: #a0aec0; padding: 30px 0; text-align: center; font-size: 0.9em; }

/* ------------------------------------------- */
/* RESPONSIVIDADE */
/* ------------------------------------------- */
@media (max-width: 992px) {
    .cycle-grid { grid-template-columns: 1fr 1fr; }
    .numbers-grid { grid-template-columns: 1fr 1fr; }
    .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
    .cycle-grid, .numbers-grid { grid-template-columns: 1fr; }
    .hero-ctas { flex-direction: column; }
    .btn-secondary { margin-left: 0; }
}
