/* RESET */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', sans-serif;
}

html, body {
    min-height: 100%;
}

html {
    scroll-behavior: smooth;
}

/* BODY */
body {
    display: flex;
    flex-direction: column;
    background: linear-gradient(-45deg, #0f2027, #203a43, #2c7744, #0f2027);
    background-size: 400% 400%;
    animation: gradientBG 12s ease infinite;
    color: white;
    overflow-x: hidden;
}

/* ANIMAÇ?O FUNDO */
@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* HEADER */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: 22px clamp(24px, 6vw, 72px);
}

.logo {
    font-size: 26px;
    font-weight: bold;
    letter-spacing: -0.04em;
}

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

nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: white;
    padding: 10px 12px;
    font-weight: 500;
    border-radius: 999px;
    transition: background 0.2s ease, opacity 0.2s ease;
}

nav a:hover {
    background: rgba(255, 255, 255, 0.1);
}

nav .nav-login {
    margin-left: 4px;
    padding-inline: 20px;
    background: white;
    color: #246339;
    font-weight: 700;
}

nav .nav-login:hover {
    background: rgba(255, 255, 255, 0.88);
}

/* HERO */
.hero {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: clamp(40px, 7vw, 100px);
    width: min(100%, 1280px);
    margin: 0 auto;
    padding: clamp(64px, 9vh, 110px) clamp(24px, 6vw, 72px);
    min-height: calc(100vh - 88px);
}

.hero-text {
    flex: 1 1 560px;
    max-width: 620px;
    animation: fadeIn 1.5s ease-in-out;
}

.hero-text h1 {
    font-size: clamp(2.6rem, 5vw, 4.5rem);
    line-height: 1.04;
    letter-spacing: -0.055em;
    margin-bottom: 20px;
}

.hero-text p {
    max-width: 590px;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
    line-height: 1.65;
    margin-bottom: 32px;
    opacity: 0.9;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* BOTÕES */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 30px;
    border: none;
    cursor: pointer;
    font-size: 16px;
    font-weight: bold;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn-primary {
    background: white;
    color: #2c7744;
}

.btn-primary:hover {
    transform: translateY(-3px);
}

.btn-outline {
    background: transparent;
    border: 2px solid white;
    color: white;
}

.btn-outline:hover {
    background: white;
    color: #2c7744;
}

/* HERO IMAGE */
.hero-image {
    flex: 0 1 440px;
    width: min(100%, 440px);
    min-height: 420px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: float 4s ease-in-out infinite;
}

.glass-box {
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: clamp(28px, 4vw, 42px);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 25px;
    width: 100%;
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.18);
}

.glass-box h3 {
    margin-bottom: 15px;
    font-size: clamp(1.25rem, 2vw, 1.55rem);
}

.glass-box p {
    margin-bottom: 8px;
    line-height: 1.5;
}

/* ANIMAÇÕES */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0px); }
}

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

/* SEÇ?O IA */
.ia-revolucao {
    padding: clamp(72px, 9vw, 110px) max(6vw, calc((100% - 1120px) / 2));
    background: #ffffff;
    color: #1a1a1a;
    text-align: center;
}

.ia-revolucao h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    margin-bottom: 10px;
    color: #2c7744;
}

.subtitulo {
    font-size: 1.2rem;
    margin-bottom: 40px;
    color: #555;
}

.frase-impacto {
    max-width: 880px;
    margin-inline: auto;
    font-size: clamp(1.35rem, 3vw, 1.8rem);
    line-height: 1.35;
    margin-bottom: 60px;
    color: #1a1a1a;
    font-weight: 600;
}

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

.card-ia {
    background: #f8f8f8;
    padding: 35px;
    border-radius: 15px;
    border: 1px solid #e5e5e5;
    transition: all 0.3s ease;
    text-align: left;
}

.card-ia:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.08);
}

.card-ia h3 {
    margin-bottom: 15px;
    font-size: 1.2rem;
    color: #2c7744;
}

.destaque {
    border: 2px solid #2c7744;
    background: linear-gradient(135deg, #ffffff, #f0fff5);
}

/* PLANOS */
.planos-publicos {
    padding: clamp(72px, 9vw, 105px) max(6vw, calc((100% - 1120px) / 2));
    background: #f4f8f5;
    color: #17231d;
    text-align: center;
}

.planos-publicos h2 {
    font-size: clamp(2rem, 4vw, 2.7rem);
    margin-bottom: 10px;
    color: #2c7744;
}

.grid-planos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    align-items: stretch;
    margin-top: 42px;
}

.card-plano {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 430px;
    padding: 30px;
    border: 1px solid #dfe7e2;
    border-radius: 8px;
    background: #ffffff;
    text-align: left;
    box-shadow: 0 16px 36px rgba(23, 35, 29, 0.08);
}

.card-plano h3 {
    margin-bottom: 16px;
    color: #2c7744;
    font-size: 1.5rem;
}

.card-plano strong {
    display: block;
    color: #17231d;
    font-size: 2rem;
}

.card-plano strong span,
.card-plano small {
    color: #607067;
    font-size: 0.95rem;
    font-weight: 600;
}

.card-plano ul {
    display: grid;
    gap: 10px;
    margin: 24px 0;
    padding: 0;
    list-style: none;
}

.card-plano li {
    color: #34443b;
    line-height: 1.35;
}

.card-plano li::before {
    content: "✓";
    margin-right: 8px;
    color: #2c7744;
    font-weight: 900;
}

.card-plano .btn {
    width: 100%;
    margin: auto 0 0;
    border-radius: 8px;
    background: #2c7744;
    color: #ffffff;
}

/* CTA */
.cta {
    padding: 80px 8%;
    text-align: center;
    background: linear-gradient(135deg, #203a43, #2c7744);
    color: white;
}

.cta h2 {
    margin-bottom: 30px;
    font-size: clamp(1.8rem, 4vw, 2.25rem);
}

/* FOOTER */
footer {
    text-align: center;
    padding: 20px;
    background: rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    header {
        width: 100%;
        padding: 18px 20px 14px;
    }

    .logo {
        font-size: 24px;
    }

    nav {
        gap: 2px;
    }

    nav a {
        display: none;
    }

    nav .nav-login {
        display: inline-flex;
        min-height: 42px;
        margin: 0;
        padding: 9px 18px;
    }

    .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        min-height: auto;
        padding: 52px 20px 68px;
        text-align: center;
    }

    .hero-text {
        flex-basis: auto;
        max-width: 100%;
    }

    .hero-text h1 {
        max-width: 540px;
        margin-inline: auto;
        font-size: clamp(2.35rem, 11vw, 3.4rem);
        line-height: 1.04;
    }

    .hero-text p {
        max-width: 540px;
        margin-inline: auto;
        margin-bottom: 28px;
        font-size: 1.05rem;
        line-height: 1.6;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-image {
        width: 100%;
        min-height: 0;
        margin: 0 auto;
        animation: none;
    }

    .glass-box {
        padding: 28px;
        border-radius: 18px;
        text-align: left;
    }

    .planos-publicos,
    .ia-revolucao {
        padding: 68px 20px;
    }

    .subtitulo {
        margin-bottom: 32px;
        font-size: 1.05rem;
        line-height: 1.55;
    }

    .frase-impacto {
        margin-bottom: 38px;
    }

    .grid-ia,
    .grid-planos {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .card-ia {
        padding: 26px 24px;
    }

    .card-plano {
        min-height: 0;
        padding: 26px 24px;
    }

    .cta {
        padding: 64px 20px;
    }

    footer {
        padding: 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .hero {
        padding-top: 38px;
    }

    .hero-text h1 {
        font-size: clamp(2.15rem, 10.5vw, 2.8rem);
    }

    .hero-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .hero-actions .btn {
        width: 100%;
        min-height: 48px;
    }

    .glass-box {
        padding: 24px 20px;
    }

    .ia-revolucao h2,
    .planos-publicos h2 {
        line-height: 1.12;
    }

    .card-ia:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body,
    .hero-text,
    .hero-image {
        animation: none;
    }
}

