@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Inter', sans-serif;
}

/* HERO */
.hero-bg {
    background-image:
        linear-gradient(to right, rgba(7, 24, 8, 0.82), rgba(7, 24, 8, 0.40), rgba(7, 24, 8, 0.12)),
        url('assets/banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* CTA */
/* CTA - Fundo com Agricultor */
.cta-bg {
    background-image:
        linear-gradient(to right, rgba(0, 0, 0, 0.8) 20%, rgba(0, 0, 0, 0.2) 60%, rgba(0, 0, 0, 0) 100%),
        url('assets/fundo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

/* MÉTRICAS */
.metrics-bg {
    background-image:
        linear-gradient(to bottom, rgba(0, 0, 0, 0.78), rgba(0, 0, 0, 0.66)),
        url('assets/banner.png');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}

html {
    scroll-behavior: smooth;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #15803d;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #166534;
}

tr {
    transition: all 0.2s ease;
}

button {
    transition: all 0.3s ease;
}

#mobile-menu {
    transition: all 0.3s ease-in-out;
}

.shadow-device {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

.lead-form {
    border: 1px solid rgba(255, 255, 255, 0.45);
}

.lead-input {
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

#lead-form button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
}

#lead-form-status {
    color: #4b5563;
}

#lead-form-status.is-success {
    color: #166534;
}

#lead-form-status.is-error {
    color: #b91c1c;
}

@keyframes pulse-green {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.animate-pulse-green {
    animation: pulse-green 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes count-up {
    0% {
        transform: translateY(10px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.count-animation {
    display: inline-block;
    animation: count-up 0.5s ease-out forwards;
}

/* Imagem do agricultor */
.farmer-image {
    right: -250px;
    bottom: -100px;
    height: 130%;
    width: auto;
    object-fit: contain;
    object-position: bottom right;
    filter: drop-shadow(0 20px 30px rgba(0, 0, 0, 0.35));
}

/* Responsivo */
@media (max-width: 1024px) {
    .hero-bg,
    .cta-bg {
        background-attachment: scroll;
    }
}

@media (max-width: 640px) {
    .hero-bg {
        background-position: 68% center;
    }

    .cta-bg {
        background-position: center center;
    }

    .metrics-bg {
        background-position: center center;
    }

    #user-count,
    #business-count,
    #security-count {
        font-size: 3.5rem;
    }
}
