:root {
    --primary: #7FA37C;
    --secondary: #D46A7E;
    --bg-color: #FFF4E6;
    --text-dark: #333333;
    --white: #FFFFFF;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
}

/* HEADER & NAVBAR */
header {
    background-color: var(--white);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.8rem 1.5rem;
    position: relative;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 1.4rem;
    font-weight: bold;
}

.logo-text-green { color: var(--primary); }
.logo-text-pink { color: var(--secondary); }

/* BOTÃO DE TRÊS LISTRAS (OCULTO NO PC) */
.mobile-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.6rem;
    color: var(--primary);
    cursor: pointer;
    padding: 5px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: var(--secondary);
}

/* BOTÕES ARREDONDADOS */
.btn-download {
    background-color: var(--secondary);
    color: var(--white) !important;
    padding: 8px 18px;
    border-radius: 25px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(212, 106, 126, 0.25);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-download:hover {
    background-color: #be5367;
    transform: translateY(-2px);
}

.btn-primary {
    background-color: var(--primary);
    color: var(--white);
    padding: 8px 18px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 3px 6px rgba(127, 163, 124, 0.25);
    transition: transform 0.2s, background-color 0.3s;
}

.btn-primary:hover {
    background-color: #6a8d67;
    transform: translateY(-2px);
}

/* HERO SECTION */
.hero {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: center;
}

.hero-text h1 {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    line-height: 1.2;
}

.hero-text p {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.hero-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.hero-card {
    background: var(--white);
    padding: 25px;
    border-radius: 20px;
    box-shadow: 0 8px 18px rgba(0,0,0,0.05);
    border-top: 5px solid var(--secondary);
    text-align: center;
}

/* SEÇÃO COMO FUNCIONA */
.features {
    background-color: var(--white);
    padding: 3.5rem 2rem;
}

.section-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--primary);
    margin-bottom: 2.5rem;
}

.cards-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 15px !important;
}

.card {
    background-color: var(--bg-color);
    padding: 20px 12px;
    border-radius: 16px;
    text-align: center;
    border: 1px solid rgba(127, 163, 124, 0.25);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(127, 163, 124, 0.15);
}

.card-icon {
    width: 48px;
    height: 48px;
    background-color: rgba(212, 106, 126, 0.12);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.card-icon i {
    font-size: 1.3rem;
    color: var(--secondary);
}

.card h3 {
    color: var(--primary);
    margin-bottom: 8px;
    font-size: 0.95rem;
    line-height: 1.2;
}

.card p {
    font-size: 0.82rem;
    color: #555;
    line-height: 1.4;
}

/* RANKING TABELA */
.ranking-section {
    max-width: 1200px;
    margin: 3.5rem auto;
    padding: 0 2rem;
}

.table-container {
    background: var(--white);
    border-radius: 15px;
    overflow-x: auto;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 500px;
}

th {
    background-color: var(--primary);
    color: var(--white);
    padding: 12px 16px;
    font-size: 0.9rem;
}

td {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    font-size: 0.88rem;
}

.badge-alta {
    background-color: var(--secondary);
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.badge-media {
    background-color: #e67e22;
    color: white;
    padding: 3px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

/* ÁREA DE DOWNLOAD APP */
.app-section {
    background: linear-gradient(135deg, var(--primary), #688865);
    color: var(--white);
    padding: 3rem 1.5rem;
    text-align: center;
    border-radius: 25px;
    max-width: 1200px;
    margin: 3.5rem auto;
}

.app-section h2 {
    font-size: 1.8rem;
    margin-bottom: 0.8rem;
}

.app-section p {
    max-width: 600px;
    margin: 0 auto 1.5rem auto;
    font-size: 0.95rem;
}

/* FOOTER */
footer {
    background-color: var(--white);
    padding: 1.5rem;
    text-align: center;
    border-top: 1px solid #ddd;
    margin-top: 3.5rem;
}

/* ===================================================
   MENÚ HAMBÚRGUER COMPACTO PARA CELULAR E TABLET (<= 900px)
   =================================================== */

@media (max-width: 900px) {
    .mobile-toggle {
        display: block; /* Muestra el botón de 3 líneas */
    }

    .nav-links {
        display: none; /* Oculto por defecto */
        flex-direction: column;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background-color: var(--white);
        box-shadow: 0 8px 15px rgba(0,0,0,0.1);
        padding: 1rem 1.5rem;
        gap: 12px;
        border-bottom: 3px solid var(--primary);
    }

    /* Estado ativo ao clicar nas três listras */
    .nav-links.active {
        display: flex;
    }

    .nav-links li {
        width: 100%;
        text-align: center;
    }

    .nav-links a {
        font-size: 0.9rem; /* Tamaño de fuente más discreto */
        padding: 6px 0;
        display: block;
    }

    .nav-links .btn-download {
        width: auto;
        display: inline-flex;
        padding: 8px 20px;
        font-size: 0.85rem;
        margin-top: 5px;
    }

    .hero {
        grid-template-columns: 1fr;
        padding: 2rem 1.2rem;
        text-align: center;
    }

    .hero-text h1 {
        font-size: 1.9rem;
    }

    .hero-text p {
        font-size: 0.95rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 600px) {
    .cards-grid {
        grid-template-columns: 1fr !important;
    }

    .app-section {
        margin: 2rem 1rem;
        padding: 2rem 1rem;
    }

    .ranking-section {
        padding: 0 1rem;
    }
}