/* =================================================================
   1. CONFIGURAÇÕES GLOBAIS E VARIÁVEIS
   - Define cores, fontes e estilos base para todo o site.
   ================================================================= */
:root {
    /* Paleta de cores da marca */
    --primary-green: #00bf63;
    --dark-color: #1a1a1a;
    --white-color: #ffffff;
    --light-gray-bg: #f7f7f7;
    --text-color: #555555;
    --border-color: #e5e5e5;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white-color);
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* =================================================================
   2. ESTILOS DO CABEÇALHO (HEADER)
   - Barra de navegação fixa no topo.
   ================================================================= */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: var(--dark-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    transition: background-color 0.3s ease;
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.logo-img {
    width: 140px;
    height: auto;
}

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

/* =================================================================
   ESTILOS GERAIS PARA ÍCONES SOCIAIS
   - Aplicado tanto no Header quanto no Footer.
   ================================================================= */
.social-icon-link {
    display: flex;
    align-items: center;
    justify-content: center;
}

.social-icon-img {
    width: 24px;
    height: 24px;
    transition: transform 0.3s ease, filter 0.3s ease;
    filter: brightness(0) invert(1); /* Deixa o ícone branco por padrão */
}

.social-icon-link:hover .social-icon-img {
    transform: scale(1.1);
    /* Filtro para colorir o SVG com a cor primária no hover */
    filter: invert(48%) sepia(79%) saturate(2476%) hue-rotate(120deg) brightness(95%) contrast(101%);
}

/* Aumenta o tamanho específico do ícone do Instagram */
.social-icon-link[href*="instagram.com"] .social-icon-img {
    width: 35px;
    height: 35px;
}

/* =================================================================
   3. LAYOUT E SEÇÕES PRINCIPAIS
   - Estilos para o conteúdo principal e títulos de seção.
   ================================================================= */
.main-content {
    padding-top: 70px; /* Evita que o conteúdo fique atrás do header fixo */
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    color: var(--dark-color);
    text-align: center;
    margin-bottom: 48px;
}

/* =================================================================
   4. SEÇÃO HERO
   - Bloco principal de apresentação com imagem de fundo.
   ================================================================= */
#hero {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    padding: 60px 20px;
    text-align: center;
    background-color: var(--dark-color);
    color: var(--white-color);
    position: relative;
    overflow: hidden;
}

#hero::before {
    content: '';
    position: absolute;
    bottom: -10%;
    left: 50%;
    transform: translateX(-50%);
    width: 700px;
    max-width: 90%;
    height: 450px;
    background-image: url('tenis-corrida.png');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center bottom;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 650px;
}

.hero-title {
    font-size: 52px;
    font-weight: 700;
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 18px;
    margin: 16px auto 40px auto;
    max-width: 500px;
    opacity: 0.9;
}

.launch-card {
    background-color: var(--white-color);
    color: var(--dark-color);
    padding: 24px 32px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    max-width: 450px;
    margin: 0 auto;
}

.launch-card-title {
    font-weight: 600;
    margin-bottom: 16px;
}

.countdown {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}

.countdown-item {
    background-color: var(--light-gray-bg);
    padding: 12px;
    border-radius: 8px;
    min-width: 70px;
}

.countdown-number {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
}

.countdown-label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--text-color);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 16px;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.btn-primary {
    background-color: var(--primary-green);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #00a855;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 191, 99, 0.3);
}

.btn-launch {
    width: 100%;
}

/* =================================================================
   5. SEÇÃO "TRANSFORMA"
   - Bloco verde com mensagem de impacto.
   ================================================================= */
#transforma {
    background-color: var(--primary-green);
    color: var(--white-color);
    padding: 80px 20px;
}

.transforma-container {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.transforma-text {
    flex: 1;
    max-width: 500px;
}

.transforma-text p {
    font-size: 25px;
    line-height: 1.5;
    color: var(--white-color);
    opacity: 0.9;
}

.transforma-text h2 {
    font-size: 36px;
    font-weight: 700;
    margin: 8px 0;
    color: var(--dark-color);
    text-shadow: none;
}

.transforma-text .text-bold {
    font-weight: 700;
    opacity: 1;
}

.transforma-action {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.transforma-logo {
    width: 150px;
    height: 150px;
}

.btn-transforma {
    display: inline-block;
    background-color: transparent;
    color: var(--white-color);
    border: 2px solid var(--white-color);
    padding: 14px 32px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    transition: all 0.3s ease;
}

.btn-transforma:hover {
    background-color: var(--white-color);
    color: var(--primary-green);
    transform: scale(1.05);
}

/* =================================================================
   6. SEÇÃO FEATURES (BENEFÍCIOS)
   - Grade com os três principais benefícios da plataforma.
   ================================================================= */
#features {
    padding: 80px 0;
    background-color: var(--light-gray-bg);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.feature-item {
    background-color: var(--white-color);
    padding: 32px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.07);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background-color: var(--primary-green);
    border-radius: 50%;
    margin-bottom: 24px;
}

.feature-icon img {
    width: 32px;
    height: 32px;
    filter: brightness(0) invert(1);
}

.feature-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 8px;
}

.feature-description {
    font-size: 16px;
    line-height: 1.6;
}

/* =================================================================
   7. ESTILOS DO RODAPÉ (FOOTER)
   - Seção final da página.
   ================================================================= */
.footer {
    background-color: var(--dark-color);
    color: rgba(255, 255, 255, 0.7);
    /* ALTURA DO EIXO Y DIMINUÍDA */
    padding: 20px 0; 
}

.footer .container {
    display: flex;
    /* TEXTO CENTRALIZADO */
    justify-content: center; 
    align-items: center;
    text-align: center;
}

/* A classe .footer-social-links foi removida pois não é mais necessária */

/* =================================================================
   8. MODAL DE ONBOARDING
   - Estilos para o formulário pop-up.
   ================================================================= */
.onboarding-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(26, 26, 26, 0.8);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.onboarding-modal.active {
    display: flex;
    opacity: 1;
}

.onboarding-card {
    background-color: var(--white-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 38rem;
    transform: scale(0.95);
    transition: transform 0.3s ease-in-out;
}

.onboarding-modal.active .onboarding-card {
    transform: scale(1);
}

.onboarding-card-content {
    padding: 2rem;
}

.progress-bar {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}

.progress-bar-segment {
    height: 4px;
    flex: 1;
    border-radius: 9999px;
    background-color: var(--border-color);
    transition: background-color 0.4s ease;
}

.progress-bar-segment.active {
    background-color: var(--primary-green);
}

.step-counter-text {
    font-size: 0.875rem;
    text-align: right;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.step-content {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.step-content.active {
    display: block;
}

.step-title {
    text-align: left;
    margin-bottom: 8px;
}

.step-subtitle {
    text-align: left;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.options-grid {
    display: grid;
    gap: 0.75rem;
}

.grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-btn {
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: var(--white-color);
    color: var(--dark-color);
    cursor: pointer;
    text-align: center;
    font-weight: 600;
    transition: all 0.2s;
}

.option-btn:hover {
    background-color: var(--light-gray-bg);
}

.option-btn.selected {
    background-color: var(--primary-green);
    color: var(--white-color);
    border-color: var(--primary-green);
}

.form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 191, 99, 0.2);
}

.card-footer {
    margin-top: 2rem;
    display: flex;
    justify-content: flex-end;
}

.card-footer .btn {
    width: auto;
}

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

/* =================================================================
   9. RESPONSIVIDADE (MEDIA QUERIES)
   - Ajustes para dispositivos móveis (telas de até 768px).
   ================================================================= */
@media (max-width: 768px) {
    .section-title {
        font-size: 28px;
    }

    #hero {
        min-height: auto;
        padding: 40px 20px;
    }
    .hero-title {
        font-size: 36px;
    }
    .hero-subtitle {
        font-size: 16px;
    }

    #transforma {
        padding: 60px 20px;
    }
    .transforma-container {
        flex-direction: column;
        text-align: center;
    }
    .transforma-text h2 {
        font-size: 28px;
    }
    .transforma-text p {
        font-size: 22px;
    }
    .transforma-logo {
        width: 120px;
        height: 120px;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

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

    .options-grid.grid-cols-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
