/* ===== Reset & Base ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --black: #0b0f0d;
    --black-soft: #121714;
    --white: #ffffff;
    --off-white: #f4f7f5;
    --green: #16a34a;
    --green-dark: #0f7a37;
    --green-light: #4ade80;
    --gray: #6b7a72;
    --radius: 14px;
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.08);
    --transition: 0.3s ease;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: var(--white);
    color: var(--black);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

ul {
    list-style: none;
}

.container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.95rem;
    transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
    border: 2px solid transparent;
    cursor: pointer;
}

.btn--primary {
    background: var(--green);
    color: var(--white);
    box-shadow: 0 10px 25px rgba(22, 163, 74, 0.35);
}

.btn--primary:hover {
    background: var(--green-dark);
    transform: translateY(-3px);
    box-shadow: 0 14px 30px rgba(22, 163, 74, 0.45);
}

.btn--ghost {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.4);
    color: var(--white);
}

.btn--ghost:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--green-light);
    transform: translateY(-3px);
}

.btn--sm {
    padding: 10px 22px;
    font-size: 0.85rem;
}

/* ===== Header ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: background var(--transition), padding var(--transition), box-shadow var(--transition);
}

.header.scrolled {
    background: rgba(11, 15, 13, 0.92);
    backdrop-filter: blur(10px);
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.25);
}

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

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--white);
    letter-spacing: 0.5px;
}

.logo span {
    color: var(--green-light);
}

.nav {
    display: flex;
    align-items: center;
    gap: 36px;
}

.nav a {
    color: var(--white);
    font-weight: 500;
    font-size: 0.95rem;
    transition: color var(--transition);
    position: relative;
}

.nav a:not(.btn):after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -6px;
    width: 0;
    height: 2px;
    background: var(--green-light);
    transition: width var(--transition);
}

.nav a:not(.btn):hover:after {
    width: 100%;
}

.nav a:not(.btn):hover {
    color: var(--green-light);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1100;
}

.nav-toggle span {
    width: 26px;
    height: 2px;
    background: var(--white);
    border-radius: 2px;
    transition: transform var(--transition), opacity var(--transition);
}

/* ===== Hero ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--black);
    overflow: hidden;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 15% 20%, rgba(22, 163, 74, 0.35), transparent 45%),
        radial-gradient(circle at 85% 75%, rgba(74, 222, 128, 0.18), transparent 50%),
        linear-gradient(160deg, #0b0f0d 0%, #101a14 55%, #0b0f0d 100%);
}

.hero__bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(circle at 50% 40%, black, transparent 75%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    padding-top: 120px;
    padding-bottom: 80px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero__tag {
    color: var(--green-light);
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.85rem;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeUp 0.7s ease forwards;
}

.hero__title {
    color: var(--white);
    font-size: clamp(2.4rem, 6vw, 4.2rem);
    font-weight: 800;
    line-height: 1.15;
    max-width: 900px;
    margin-bottom: 24px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.15s forwards;
}

.hero__title span {
    background: linear-gradient(90deg, var(--green-light), var(--green));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero__subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
    max-width: 620px;
    margin-bottom: 40px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.3s forwards;
}

.hero__actions {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 70px;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.45s forwards;
}

.hero__stats {
    display: flex;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    opacity: 0;
    animation: fadeUp 0.7s ease 0.6s forwards;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat__number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
}

.stat__label {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.85rem;
    margin-top: 4px;
}

.hero__scroll {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    width: 26px;
    height: 42px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    z-index: 2;
}

.hero__scroll span {
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--green-light);
    animation: scrollDot 1.6s ease infinite;
}

@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    70% { opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ===== Section shared ===== */
section {
    padding: 110px 0;
}

.section__tag {
    color: var(--green);
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-size: 0.8rem;
    margin-bottom: 14px;
}

.section__title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 800;
    max-width: 640px;
    margin-bottom: 60px;
    color: var(--black);
}

/* ===== Services ===== */
.services {
    background: var(--off-white);
}

.services__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}

.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 36px 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(0, 0, 0, 0.04);
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.card.is-visible {
    animation: fadeUp 0.6s ease forwards;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 55px rgba(22, 163, 74, 0.18);
    border-color: rgba(22, 163, 74, 0.25);
}

.card__icon {
    font-size: 2.2rem;
    margin-bottom: 18px;
}

.card h3 {
    font-size: 1.25rem;
    margin-bottom: 12px;
    color: var(--black);
}

.card p {
    color: var(--gray);
    font-size: 0.96rem;
}

/* ===== About ===== */
.about__inner {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
}

.about__text {
    color: var(--gray);
    margin-bottom: 28px;
    font-size: 1.02rem;
}

.about__list li {
    position: relative;
    padding-left: 30px;
    margin-bottom: 14px;
    font-weight: 600;
    color: var(--black);
}

.about__list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    top: 0;
    width: 20px;
    height: 20px;
    color: var(--white);
    background: var(--green);
    border-radius: 50%;
    font-size: 0.7rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.about__visual {
    position: relative;
    height: 380px;
}

.about__box {
    position: absolute;
    border-radius: var(--radius);
}

.about__box--1 {
    width: 78%;
    height: 78%;
    top: 0;
    right: 0;
    background: linear-gradient(145deg, var(--black), var(--black-soft));
}

.about__box--2 {
    width: 55%;
    height: 55%;
    bottom: 0;
    left: 0;
    background: linear-gradient(145deg, var(--green), var(--green-dark));
    box-shadow: 0 20px 40px rgba(22, 163, 74, 0.3);
}

.about__box--3 {
    width: 30%;
    height: 30%;
    bottom: 12%;
    right: 8%;
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: var(--shadow);
}

/* ===== Diferenciais ===== */
.diff {
    background: var(--black);
}

.diff .section__tag {
    color: var(--green-light);
}

.diff .section__title {
    color: var(--white);
}

.diff__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 30px;
}

.diff__item {
    padding: 34px 26px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.02);
    transition: border-color var(--transition), background var(--transition), transform var(--transition);
}

.diff__item:hover {
    border-color: rgba(74, 222, 128, 0.4);
    background: rgba(74, 222, 128, 0.05);
    transform: translateY(-6px);
}

.diff__number {
    display: inline-block;
    color: var(--green-light);
    font-weight: 800;
    font-size: 1.6rem;
    margin-bottom: 14px;
}

.diff__item h3 {
    color: var(--white);
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.diff__item p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.92rem;
}

/* ===== CTA / Contato ===== */
.cta {
    background: linear-gradient(160deg, var(--green-dark), var(--green));
}

.cta__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.cta__title {
    color: var(--white);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
    font-weight: 800;
    max-width: 620px;
    margin-bottom: 16px;
}

.cta__text {
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 40px;
}

.cta__form {
    width: 100%;
    max-width: 520px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: var(--white);
    padding: 36px;
    border-radius: var(--radius);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.2);
}

.cta__form input,
.cta__form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 10px;
    border: 1px solid #dfe5e2;
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    transition: border-color var(--transition), box-shadow var(--transition);
}

.cta__form input:focus,
.cta__form textarea:focus {
    outline: none;
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.15);
}

.cta__form-msg {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--green-dark);
    min-height: 20px;
}

/* ===== Footer ===== */
.footer {
    background: var(--black);
    padding: 30px 0;
}

.footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.footer p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.85rem;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .about__inner {
        grid-template-columns: 1fr;
    }

    .about__visual {
        height: 300px;
    }
}

@media (max-width: 768px) {
    .nav {
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 78%;
        max-width: 320px;
        background: var(--black-soft);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 28px;
        transition: right var(--transition);
        box-shadow: -10px 0 40px rgba(0, 0, 0, 0.3);
    }

    .nav.is-open {
        right: 0;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.is-active span:nth-child(1) {
        transform: translateY(7px) rotate(45deg);
    }

    .nav-toggle.is-active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.is-active span:nth-child(3) {
        transform: translateY(-7px) rotate(-45deg);
    }

    .hero__stats {
        gap: 34px;
    }

    section {
        padding: 80px 0;
    }
}
