:root {
    /* 1. Paleta de Cores Nova: Verde Sálvia e Verde Água */
    --primary-color: #0447AC; /* Verde Sálvia Escuro */
    --secondary-color: #6C757D; /* Cinza Profundo */
    --accent-color: #9EC8B9; /* Verde Água Claro (Destaque) */
    --bg-light: #F8F9FA; /* Quase Branco */
    --bg-medium: #E9ECEF; /* Cinza Muito Claro */
    --text-dark: #212529;
    --text-light: #ffffff;

    /* 4. Soft Neumorphism / Sombra Elegante */
    --shadow-soft: 6px 6px 15px rgba(0, 0, 0, 0.08),
                   -6px -6px 15px rgba(255, 255, 255, 0.9);
    --shadow-inset: inset 2px 2px 5px rgba(0, 0, 0, 0.1),
                    inset -2px -2px 5px rgba(255, 255, 255, 0.7);

    --border-radius: 12px;
    /* 19. Transições de 0.3s a 0.5s */
    --transition-speed: 0.4s ease-in-out;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--bg-light);
    overflow-x: hidden;
    scroll-behavior: smooth;
    /* 20. Scrollbar Customizado (Webkit) */
    scrollbar-color: var(--primary-color) var(--bg-medium);
    scrollbar-width: thin;
}

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

::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 10px;
}

a {
    text-decoration: none;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    /* 17. Espaçamento Modular */
    padding: 0 24px;
}

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

.section {
    padding: 100px 0;
}

/* 16. Cores de Fundo Invertidas */
.section:nth-of-type(odd) {
    background-color: var(--bg-light);
}

.section:nth-of-type(even) {
    background-color: var(--bg-medium);
}

/* 12. Título de Seção com Linha Minimalista */
.section-heading {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
}

.section-heading::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 50px;
    height: 2px;
    background-color: var(--accent-color);
    border-radius: 1px;
    transition: transform 0.8s ease;
}

.section-heading.visible::after {
    transform: translateX(-50%) scaleX(1);
}

.btn {
    cursor: pointer;
    border: none;
    padding: 15px 35px;
    border-radius: 50px;
    font-weight: 600;
    transition: all var(--transition-speed);
    box-shadow: var(--shadow-soft);
    will-change: transform, box-shadow;
    display: inline-block;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    font-size: 1.05rem;
}

/* 4. Efeito "Flutuante" Sutil */
.btn-primary:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 8px 8px 20px rgba(0, 0, 0, 0.15),
                -8px -8px 20px rgba(255, 255, 255, 0.8);
}

.btn-secondary {
    background-color: var(--bg-light);
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    font-size: 1.05rem;
    box-shadow: none;
}

.btn-secondary:hover {
    transform: translateY(-3px);
    background-color: var(--primary-color);
    color: var(--text-light);
}

/* 18. Acessibilidade de Foco Aprimorada */
input:focus,
textarea:focus,
button:focus {
    outline: 3px solid var(--accent-color);
    outline-offset: 3px;
    border-color: transparent;
}

/* 5. Navbar Semitransparente (Blur) */
.navbar {
    background-color: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    animation: slideDown 0.8s ease-out;
}

@keyframes slideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
}

.navbar-brand {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary-color);
}

.nav-links a {
    color: var(--secondary-color);
    margin-left: 30px;
    font-weight: 500;
    position: relative;
    transition: color var(--transition-speed);
    padding: 5px 0;
}

/* 8. Indicador de Link Sublinhado (Novo) */
.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 100%;
    height: 2px;
    background-color: var(--primary-color);
    transition: transform 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.btn-nav {
    margin-left: 30px;
}

/* 2. Fundo Geométrico na Hero (Quebra de Seção Diagonal) */
.hero {
    background-color: var(--bg-medium);
    padding: 200px 0 120px;
    text-align: center;
    position: relative;
    /* A geometria é criada com um pseudoelemento */
    clip-path: polygon(0 0, 100% 0, 100% 90%, 0 100%);
    margin-bottom: -50px;
}

.hero h1 {
    font-size: 3.8rem;
    /* 20. Ênfase na Hierarquia Visual */
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1.2;
}

.hero p {
    font-size: 1.25rem;
    font-weight: 400;
    color: var(--secondary-color);
    max-width: 750px;
    margin: 0 auto 50px;
}

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

.card {
    background-color: var(--bg-light);
    padding: 40px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition-speed);
    border: 1px solid var(--bg-medium);
    overflow: hidden;
}

/* 6. Sombra Interior nos Cards (Neumorfismo de Pressionado) */
.card:hover {
    transform: translateY(1px);
    box-shadow: var(--shadow-inset);
    border-color: var(--accent-color);
}

.card .icon-container {
    font-size: 3.2rem;
    color: var(--primary-color);
    margin-bottom: 25px;
    transition: transform 0.5s ease;
}

/* 9. Animação de Ícones no Card */
.card:hover .icon-container {
    transform: scale(1.1) rotate(5deg);
    color: var(--accent-color);
}

.card h3 {
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.card p {
    color: var(--secondary-color);
    font-size: 0.95rem;
}

/* SEÇÃO SOBRE */
.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    flex-wrap: wrap;
}

.about-text {
    flex: 1;
    min-width: 350px;
    max-width: 50%;
    /* 11. Alinhamento Híbrido */
    text-align: justify;
}

.about-text p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    color: var(--secondary-color);
}

/* 10. Design da Imagem de Dashboard com Mockup */
.dashboard-img-wrapper {
    flex: 1;
    min-width: 400px;
    max-width: 500px;
    background-color: var(--text-dark);
    padding: 20px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    transition: all var(--transition-speed);
    overflow: hidden;
    position: relative;
    border-bottom: 5px solid var(--primary-color);
}

.dashboard-img-wrapper::before {
    content: '';
    position: absolute;
    top: 5px;
    left: 50%;
    transform: translateX(-50%);
    width: 40px;
    height: 4px;
    background-color: var(--bg-medium);
    border-radius: 2px;
}

.dashboard-img-wrapper:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.dashboard-img-wrapper img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 6px;
}

/* PRICING */
.pricing-grid {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
}

.pricing-card {
    background-color: var(--bg-medium);
    padding: 40px 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-soft);
    text-align: center;
    transition: all var(--transition-speed);
    display: flex;
    flex-direction: column;
    width: 320px;
    border: 2px solid transparent;
}

.pricing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    background-color: var(--bg-light);
}

/* 13. Gradiente Sutil na Borda do Card Destaque */
.pricing-card.highlight {
    background-color: var(--text-light);
    border: 3px solid transparent;
    border-image: linear-gradient(45deg, var(--primary-color), var(--accent-color)) 1;
    box-shadow: 0 15px 30px rgba(92, 131, 116, 0.3); /* Sombra da cor primária */
}

.pricing-card h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
}

/* 14. Preço com Estilo Monocromático */
.pricing-card .price {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--primary-color);
    margin-bottom: 20px;
    line-height: 1;
}

.pricing-card .price span {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--secondary-color);
    display: block;
    margin-top: 5px;
}

.pricing-card ul {
    list-style: none;
    padding: 0;
    margin-bottom: 30px;
    flex-grow: 1;
    text-align: left;
}

.pricing-card ul li {
    margin-bottom: 12px;
    color: var(--secondary-color);
    font-weight: 500;
    display: flex;
    align-items: flex-start;
    font-size: 0.95rem;
}

/* 15. Ícones de Lista com Círculos */
.pricing-card ul li i {
    color: var(--primary-color);
    margin-right: 10px;
    font-size: 1rem;
    margin-top: 2px;
}

.footer {
    background-color: #0447AC; /* Primary color slightly darker */
    color: var(--bg-light);
    padding: 40px 0;
    text-align: center;
}

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

.footer-copy {
    font-weight: 300;
    font-size: 0.9rem;
}

.social-icons a {
    color: var(--bg-light);
    font-size: 1.4rem;
    margin-left: 20px;
    transition: color var(--transition-speed);
}

.social-icons a:hover {
    color: var(--accent-color);
}

/* RESPONSIVIDADE */
@media (max-width: 992px) {
    .about-text {
        max-width: 100%;
        text-align: center;
    }

    .dashboard-img-wrapper {
        min-width: 100%;
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .navbar .container {
        flex-direction: column;
        align-items: center;
        padding-bottom: 10px;
    }

    .nav-links {
        margin-top: 10px;
    }

    .nav-links a {
        margin: 0 10px;
        font-size: 0.9rem;
    }

    .btn-nav {
        display: none;
    }

    .hero {
        padding: 150px 0 80px;
        clip-path: polygon(0 0, 100% 0, 100% 95%, 0 100%);
        margin-bottom: -30px;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .section-heading {
        font-size: 2rem;
        margin-bottom: 40px;
    }

    .about-content {
        flex-direction: column;
    }

    .footer .container {
        flex-direction: column;
        gap: 15px;
    }

    .social-icons {
        margin-top: 10px;
    }
}