/* =========================================================================
   VARIÁVEIS GLOBAIS E RESET
   ========================================================================= */
:root {
    --color-primary: #2E7D32;
    /* Verde Principal */
    --color-primary-hover: #43A047;
    /* Verde Destaque */
    --color-bg: #FFFFFF;
    --color-bg-light: #F8FAF8;
    /* Fundo Claro */
    --color-bg-soft-green: #e9f5e9;
    /* Fundo Verde Suave */
    --color-bg-dark: #1E1E1E;
    --color-bg-dark-deep: #121212;
    --color-text-main: #1E1E1E;
    --color-text-muted: #555555;
    --color-white: #FFFFFF;

    --font-main: 'Inter', sans-serif;
    --border-radius: 16px;
    --border-radius-btn: 8px;

    --spacing-xs: 8px;
    --spacing-sm: 16px;
    --spacing-md: 32px;
    --spacing-lg: 64px;
    --spacing-xl: 120px;
    /* Enhanced vertical pacing */

    --shadow-soft: 0 10px 30px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 15px 40px rgba(0, 0, 0, 0.12);

    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    /* Premium natural curve */
}

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

html {
    scroll-behavior: smooth;
}

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

img {
    max-width: 100%;
    height: auto;
    display: block;
}

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

.container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

.section-padding {
    padding: var(--spacing-xl) 0;
}

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

.bg-light {
    background-color: var(--color-bg-light);
}

.bg-green-soft {
    background: linear-gradient(135deg, var(--color-bg-soft-green) 0%, #dcf0dc 100%);
}

.bg-dark {
    background-color: var(--color-bg-dark);
    color: var(--color-white);
}

.bg-dark-deep {
    background-color: var(--color-bg-dark-deep);
    color: #aaaaaa;
}

/* =========================================================================
   TIPOGRAFIA
   ========================================================================= */
.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    text-align: center;
    color: var(--color-text-main);
    letter-spacing: -0.02em;
}

.section-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    text-align: center;
    max-width: 700px;
    margin: 0 auto var(--spacing-lg);
}

/* =========================================================================
   BOTÕES
   ========================================================================= */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: var(--border-radius-btn);
    transition: var(--transition-smooth);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.btn-primary:hover {
    background-color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-outline-white {
    background-color: transparent;
    border-color: var(--color-white);
    color: var(--color-white);
}

.btn-outline-white:hover {
    background-color: var(--color-white);
    color: var(--color-bg-dark);
    transform: translateY(-2px);
}

/* =========================================================================
   NAVBAR
   ========================================================================= */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 12px 0;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    transition: background 0.4s ease, backdrop-filter 0.4s ease, box-shadow 0.4s ease;
}

.navbar.scrolled {
    background: rgba(20, 20, 20, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.navbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-logo {
    display: inline-flex;
    align-items: center;
}

.logo-img {
    height: 48px;
    width: auto;
    object-fit: contain;
    display: block;
    /* Se o logo tiver fundo transparente, fica perfeito */
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.3));
}

.navbar-links {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.navbar-links a {
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition: color 0.3s ease;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
}

.navbar-links a:hover {
    color: var(--color-primary-hover);
    border-bottom-color: var(--color-primary-hover);
}

@media screen and (max-width: 768px) {
    .navbar-links {
        gap: var(--spacing-sm);
    }

    .navbar-links a {
        font-size: 0.8rem;
    }

    .logo-img {
        height: 36px;
    }
}

/* =========================================================================
   1. HERO SECTION (Parallax)
   ========================================================================= */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    /* Configuração do Parallax — imagem real do campo */
    background-image: url('../images/Fundo.jpeg');
    background-color: #2a4020;
    /* Fallback verde escuro */
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Overlay suave: imagem de fundo bem visível */
    background: linear-gradient(to bottom,
            rgba(0, 0, 0, 0.25) 0%,
            rgba(0, 0, 0, 0.40) 60%,
            rgba(0, 0, 0, 0.55) 100%);
    /* Overlay escuro suave */
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--color-white);
    padding: 0 var(--spacing-sm);
}

.hero-title {
    font-size: clamp(2.5rem, 5vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-sm);
    line-height: 1.1;
    letter-spacing: -0.03em;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: clamp(1.125rem, 2vw, 1.5rem);
    font-weight: 400;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

/* =========================================================================
   2. SOBRE O PROJETO
   ========================================================================= */
.app-showcase {
    margin-top: var(--spacing-lg);
    display: flex;
    justify-content: center;
}

.app-image {
    max-width: 800px;
    width: 100%;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-hover);
    transition: var(--transition-smooth);
}

.app-image:hover {
    transform: scale(1.02);
}

/* Lista da seção Sobre */
.sobre-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: var(--spacing-md) auto;
    max-width: 700px;
    text-align: left;
}

.sobre-lista li {
    font-size: 1.0625rem;
    color: var(--color-text-main);
    padding: 10px 16px;
    background: var(--color-bg-soft-green);
    border-radius: 8px;
    border-left: 4px solid var(--color-primary);
}

.sobre-nota {
    display: block;
    text-align: center;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-top: var(--spacing-md);
    font-style: italic;
}

/* =========================================================================
   3. COMO FUNCIONA (Cards)
   ========================================================================= */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.card {
    background-color: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.card-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto var(--spacing-md);
    background-color: var(--color-bg-soft-green);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: var(--spacing-xs);
    color: var(--color-text-main);
}

.card-text {
    font-size: 1rem;
    color: var(--color-text-muted);
}

/* Banner informativo abaixo dos cards */
.info-banner {
    margin-top: var(--spacing-lg);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
}

.info-banner-img {
    width: 100%;
    height: auto;
    min-height: 160px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #e8eee8 100%);
    display: block;
    border-radius: var(--border-radius);
    transition: var(--transition-smooth);
}

.info-banner-img:hover {
    transform: scale(1.01);
}


/* =========================================================================
   4. COMO USAR NA PRÁTICA (Passo a Passo)
   ========================================================================= */
.passo-container {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.passo-bloco {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.03);
}

.passo-bloco:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-4px);
    /* Slight lift */
}

.passo-texto {
    flex: 1;
}

.passo-titulo {
    font-size: 1.75rem;
    color: var(--color-primary);
    margin-bottom: var(--spacing-sm);
    font-weight: 700;
}

/* Badge de passo */
.passo-badge {
    display: inline-block;
    background-color: var(--color-primary);
    color: var(--color-white);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 20px;
    margin-bottom: var(--spacing-xs);
}

.badge-extra {
    background-color: #5C6BC0;
}

.badge-inovador {
    background-color: #E67E22;
}


.passo-lista {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.passo-lista li {
    position: relative;
    padding-left: 28px;
    margin-bottom: 12px;
    color: var(--color-text-muted);
    font-size: 1.125rem;
}

.passo-lista li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--color-primary);
    font-weight: bold;
}

/* Subtítulo descritivo do módulo */
.passo-desc {
    font-size: 1rem;
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-sm);
    font-style: italic;
}

/* Bloco Problema → Solução → Impacto */
.funcao-bloco {
    background: #F8FAF8;
    border-radius: 12px;
    padding: var(--spacing-sm) var(--spacing-md);
    margin: var(--spacing-sm) 0;
    border-left: 4px solid var(--color-primary);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.funcao-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--color-text-main);
    line-height: 1.5;
}

.funcao-tag {
    flex-shrink: 0;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: 12px;
    min-width: 70px;
    text-align: center;
}

.funcao-tag.problema {
    background: #FFCDD2;
    color: #B71C1C;
}

.funcao-tag.solucao {
    background: #C8E6C9;
    color: #1B5E20;
}

.funcao-tag.impacto {
    background: #E3F2FD;
    color: #0D47A1;
}

/* Conclusão estratégica ao final da seção */
.conclusao-box {
    background: var(--color-bg-dark);
    border-radius: var(--border-radius);
    padding: var(--spacing-lg) var(--spacing-xl);
    margin-top: var(--spacing-xl);
    text-align: center;
}

.conclusao-tag {
    font-size: 0.875rem;
    font-weight: 700;
    color: #90EE90;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.conclusao-box .impact-text {
    font-size: 1.5rem;
    color: var(--color-white);
    background-color: transparent;
    padding: 0;
}

.conclusao-sub {
    margin-top: 12px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
}



.passo-galeria {
    flex: 1;
    display: grid;
    gap: var(--spacing-sm);
}

.galeria-2 {
    grid-template-columns: 1fr 1fr;
}

.galeria-3 {
    grid-template-columns: repeat(3, 1fr);
}

.galeria-4 {
    grid-template-columns: 1fr 1fr;
}

/* Grid especial para 5 imagens de monitoramento */
.galeria-monit {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-sm);
    flex: 1.3;
}


.mockup-wrapper {
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    border: 4px solid #f0f0f0;
    transition: var(--transition-smooth);
    background-color: var(--color-white);
}

.mockup-wrapper:hover {
    transform: scale(1.03) translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.mockup-img {
    width: 100%;
    height: 100%;
    min-height: 120px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #e8eee8 100%);
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.mockup-img:hover {
    transform: scale(1.03);
    /* Premium subtle zoom */
}

.impact-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-text-main);
    background-color: var(--color-bg-soft-green);
    display: inline-block;
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 30px;
}

/* Tratamento de inversão de layout */
.passo-bloco.reverse-mobile {
    flex-direction: row-reverse;
}

/* Responsivo para os Passos */
@media screen and (max-width: 992px) {

    .passo-bloco,
    .passo-bloco.reverse-mobile {
        flex-direction: column;
        text-align: center;
    }

    .passo-lista li {
        text-align: left;
        display: inline-block;
        width: 100%;
    }

    .galeria-3 {
        grid-template-columns: 1fr;
    }

    .galeria-2,
    .galeria-4 {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 576px) {

    .galeria-2,
    .galeria-4 {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   5. DIFERENCIAIS (Evolução Fenológica + Painel Colheita)
   ========================================================================= */
.diferencial-bloco {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    padding: var(--spacing-md) 0;
    margin-bottom: var(--spacing-lg);
}

.diferencial-bloco:last-child {
    margin-bottom: 0;
}

.diferencial-texto {
    flex: 1;
}

.diferencial-desc {
    font-size: 1.125rem;
    color: var(--color-text-muted);
    line-height: 1.8;
    margin-top: var(--spacing-sm);
}

.diferencial-img-wrap {
    flex: 1;
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow-hover);
    transition: var(--transition-smooth);
}

.diferencial-img-wrap:hover {
    transform: scale(1.02) translateY(-4px);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.diferencial-img {
    width: 100%;
    height: auto;
    min-height: 80px;
    background: linear-gradient(135deg, var(--color-bg-light) 0%, #e8eee8 100%);
    display: block;
    object-fit: cover;
}

@media screen and (max-width: 992px) {

    .diferencial-bloco,
    .diferencial-bloco.reverse-mobile {
        flex-direction: column;
    }

    .galeria-monit {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================================
   6. LINHA DO TEMPO
   ========================================================================= */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
}

.timeline::after {
    content: '';
    position: absolute;
    width: 4px;
    background-color: #E0E0E0;
    top: 0;
    bottom: 0;
    left: 50%;
    margin-left: -2px;
    border-radius: 2px;
}

.timeline-item {
    padding: 10px 40px;
    position: relative;
    background-color: inherit;
    width: 50%;
}

.timeline-item::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    right: -10px;
    background-color: var(--color-white);
    border: 4px solid var(--color-primary);
    top: 24px;
    border-radius: 50%;
    z-index: 1;
}

.left {
    left: 0;
}

.right {
    left: 50%;
}

.right::after {
    left: -10px;
}

.timeline-content {
    padding: 24px;
    background-color: var(--color-white);
    position: relative;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.timeline-content:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.timeline-content h3 {
    color: var(--color-primary);
    margin-bottom: var(--spacing-xs);
    font-size: 1.25rem;
}

.timeline-content p {
    color: var(--color-text-muted);
}

.timeline-content.last {
    border: 2px solid var(--color-primary);
    background-color: var(--color-bg-soft-green);
}

/* Responsivo para Timeline */
@media screen and (max-width: 768px) {
    .timeline::after {
        left: 31px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 70px;
        padding-right: 0px;
    }

    .timeline-item::after {
        left: 21px;
    }

    .right {
        left: 0%;
    }
}

/* =========================================================================
   5. TECNOLOGIA E EDUCAÇÃO
   ========================================================================= */
.tech-edu {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 40vh;
}

.inspiring-text {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 300;
    color: var(--color-primary);
    line-height: 1.3;
}

/* =========================================================================
   6. CTA FINAL E FOOTER
   ========================================================================= */
.cta-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
    font-size: 1.25rem;
    color: #cccccc;
    margin-bottom: var(--spacing-lg);
}

.cta-actions {
    display: flex;
    gap: var(--spacing-sm);
    justify-content: center;
    flex-wrap: wrap;
}

.site-footer {
    padding: var(--spacing-md) 0;
    text-align: center;
    font-size: 0.875rem;
}

/* =========================================================================
   ANIMAÇÕES (IntersectionObserver)
   ========================================================================= */
.fade-in-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Animações ao rolar — conteúdo SEMPRE visível (opacity: 1), só desliza ao entrar na tela */
.animate-on-scroll {
    opacity: 1;
    transform: translateY(40px);
    transition: opacity 0.5s ease-out, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Sem JavaScript: já sem deslocamento */
html.no-js .animate-on-scroll,
html.no-js .cards-grid .card,
html.no-js .timeline-section .timeline-anim {
    transform: none;
}

.cards-grid .card {
    opacity: 1;
    transform: translateY(40px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cards-grid.show .card {
    transform: translateY(0);
}

.timeline-section .timeline-anim {
    opacity: 1;
    transform: translateX(-40px);
    transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.timeline-item.right .timeline-anim {
    transform: translateX(40px);
}

.timeline-section.show .timeline-anim {
    transform: translateX(0);
}

/* =========================================================================
   SEÇÃO: PROBLEMA REAL DO CAMPO
   ========================================================================= */
.section-title.light,
.section-desc.light {
    color: var(--color-white);
}

.section-desc.light {
    color: rgba(255, 255, 255, 0.75);
}

.problema-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
    margin-top: var(--spacing-md);
}

.problema-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(255, 255, 255, 0.07);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    padding: 16px 20px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.problema-item:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.prob-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.problema-solucao {
    margin-top: var(--spacing-lg);
    text-align: center;
    background: var(--color-primary);
    border-radius: var(--border-radius);
    padding: var(--spacing-md) var(--spacing-lg);
    color: var(--color-white);
    font-size: 1.25rem;
    line-height: 1.5;
}

.problema-solucao strong {
    color: #90EE90;
}

/* =========================================================================
   SEÇÃO: ANTES E DEPOIS
   ========================================================================= */
.ad-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: var(--spacing-md);
    align-items: center;
    margin-top: var(--spacing-lg);
}

.ad-col {
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    box-shadow: var(--shadow-soft);
}

.ad-antes {
    background: #FFF5F5;
    border: 2px solid #FFCDD2;
}

.ad-depois {
    background: var(--color-bg-soft-green);
    border: 2px solid #A5D6A7;
}

.ad-header {
    margin-bottom: var(--spacing-sm);
}

.ad-badge {
    display: inline-block;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.ad-badge.bad {
    background: #FFCDD2;
    color: #C62828;
}

.ad-badge.good {
    background: #A5D6A7;
    color: #1B5E20;
}

.ad-lista {
    list-style: none;
    margin-top: var(--spacing-sm);
}

.ad-lista li {
    padding: 9px 0;
    font-size: 1rem;
    color: var(--color-text-main);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.ad-lista li:last-child {
    border-bottom: none;
}

.ad-divider {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-arrow {
    font-size: 2.5rem;
    color: var(--color-primary);
    animation: pulseArrow 1.5s ease-in-out infinite;
}

@keyframes pulseArrow {

    0%,
    100% {
        transform: translateX(0);
        opacity: 1;
    }

    50% {
        transform: translateX(6px);
        opacity: 0.7;
    }
}

@media screen and (max-width: 768px) {
    .ad-wrapper {
        grid-template-columns: 1fr;
    }

    .ad-arrow {
        transform: rotate(90deg);
    }

    @keyframes pulseArrow {

        0%,
        100% {
            transform: rotate(90deg) translateX(0);
        }

        50% {
            transform: rotate(90deg) translateX(4px);
        }
    }
}

/* =========================================================================
   SEÇÃO: INDICADORES DE IMPACTO
   ========================================================================= */
.bg-primary-gradient {
    background: linear-gradient(135deg, var(--color-primary) 0%, #1B5E20 100%);
    color: var(--color-white);
}

.impacto-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-md);
}

.impacto-item {
    text-align: center;
    padding: var(--spacing-md) var(--spacing-sm);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: var(--transition-smooth);
}

.impacto-item:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-4px);
}

.impacto-num {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 800;
    color: var(--color-white);
    letter-spacing: -0.03em;
    line-height: 1;
}

.impacto-plus,
.impacto-perc {
    font-size: 2rem;
    font-weight: 700;
    color: #90EE90;
    vertical-align: super;
}

.impacto-label {
    margin-top: 10px;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    line-height: 1.4;
}

@media screen and (max-width: 768px) {
    .impacto-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* =========================================================================
   SEÇÃO: PÚBLICO-ALVO
   ========================================================================= */
.publico-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.publico-card {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: var(--transition-smooth);
}

.publico-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-color: var(--color-primary);
}

.publico-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
}

.publico-card h3 {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--color-primary);
}

.publico-card p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

/* =========================================================================
   SEÇÃO: AGRICULTURA 4.0
   ========================================================================= */
.agro40-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.agro40-item {
    background: var(--color-white);
    border-radius: var(--border-radius);
    padding: var(--spacing-md);
    text-align: center;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-smooth);
}

.agro40-item:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.agro40-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: var(--spacing-sm);
}

.agro40-item h4 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 8px;
}

.agro40-item p {
    font-size: 0.9375rem;
    color: var(--color-text-muted);
}

@media screen and (max-width: 768px) {
    .agro40-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 480px) {
    .agro40-grid {
        grid-template-columns: 1fr;
    }
}

/* =========================================================================
   LIGHTBOX — Preview e Zoom de Imagens
   ========================================================================= */
#lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

#lightbox.lb-open {
    opacity: 1;
    pointer-events: all;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 10, 5, 0.94);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    cursor: pointer;
}

/* Wrapper da imagem — centraliza e limita área de scroll/drag */
.lb-img-wrap {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 85vh;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lb-img {
    display: block;
    max-width: 90vw;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    transform-origin: center center;
    transition: opacity 0.3s ease, transform 0.1s linear;
    will-change: transform;
    -webkit-user-drag: none;
}

/* Botão fechar */
.lb-close {
    position: absolute;
    top: 18px;
    right: 22px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 1.25rem;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s;
    backdrop-filter: blur(8px);
}

.lb-close:hover {
    background: rgba(255, 80, 80, 0.6);
    transform: rotate(90deg) scale(1.1);
}

/* Botões de navegação */
.lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-size: 2.5rem;
    line-height: 1;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.25s, transform 0.2s;
    backdrop-filter: blur(6px);
}

.lb-nav:hover {
    background: rgba(46, 125, 50, 0.8);
    transform: translateY(-50%) scale(1.08);
}

.lb-prev {
    left: 18px;
}

.lb-next {
    right: 18px;
}

/* Legenda */
.lb-caption {
    position: absolute;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: rgba(0, 0, 0, 0.55);
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.875rem;
    padding: 6px 16px;
    border-radius: 20px;
    max-width: 80vw;
    text-align: center;
    backdrop-filter: blur(6px);
}

/* Dica de controles */
.lb-hint {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.75rem;
    white-space: nowrap;
    letter-spacing: 0.03em;
}

/* Entrada animada da imagem ao trocar */
@keyframes lbFadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsivo mobile */
@media screen and (max-width: 576px) {
    .lb-nav {
        width: 40px;
        height: 40px;
        font-size: 1.8rem;
    }

    .lb-prev {
        left: 8px;
    }

    .lb-next {
        right: 8px;
    }

    .lb-hint {
        display: none;
    }
}

/* =========================================================================
   NEW: API ENTERPRISE REPORT
   ========================================================================= */
.mac-window {
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    margin: 0 auto;
    max-width: 900px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mac-header {
    background-color: #2d2d2d;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mac-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
}

.mac-dot.close {
    background-color: #ff5f56;
}

.mac-dot.minimize {
    background-color: #ffbd2e;
}

.mac-dot.expand {
    background-color: #27c93f;
}

.mac-title {
    color: #999;
    font-size: 0.85rem;
    font-family: monospace;
    margin-left: auto;
    margin-right: auto;
    padding-right: 56px;
    /* Offset for dots */
}

.mac-body {
    padding: 24px;
    font-family: 'Consolas', 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #d4d4d4;
    overflow-x: auto;
    max-height: 500px;
    overflow-y: auto;
}

/* Custom Scrollbar for Mac Body */
.mac-body::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.mac-body::-webkit-scrollbar-track {
    background: #1e1e1e;
}

.mac-body::-webkit-scrollbar-thumb {
    background: #444;
    border-radius: 4px;
}

.mac-body::-webkit-scrollbar-thumb:hover {
    background: #666;
}

/* JSON Code Highlight Colors */
.json-key {
    color: #9cdcfe;
}

.json-string {
    color: #ce9178;
}

.json-number {
    color: #b5cea8;
}

.json-boolean {
    color: #569cd6;
}

/* =========================================================================
   NEW: WHATSAPP FLOATING BUTTON
   ========================================================================= */
.whatsapp-float {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 30px;
    right: 30px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease, background-color 0.3s ease;
}

.whatsapp-float:hover {
    background-color: #1ebe57;
    transform: scale(1.1);
}

.whatsapp-icon {
    width: 35px;
    height: 35px;
}

@media screen and (max-width: 768px) {
    .whatsapp-float {
        width: 50px;
        height: 50px;
        bottom: 20px;
        right: 20px;
    }

    .whatsapp-icon {
        width: 30px;
        height: 30px;
    }
}