/* ============================================
   VARIÁVEIS DE CORES - EMERALD FLAME
   ============================================ */
:root {
    --verde-principal: #00D98E;
    --verde-escuro: #00A86B;
    --verde-claro: #00F5A0;
    --azul-escuro: #0A192F;
    --azul-medio: #1a3a52;
    --branco: #FFFFFF;
    --cinza-claro: #F5F5F5;
    --cinza-medio: #E0E0E0;
    --cinza-escuro: #333333;
    --preto: #000000;
    --sombra: rgba(0, 0, 0, 0.1);
}

/* ============================================
   RESET E ESTILOS GLOBAIS
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.6;
    color: var(--cinza-escuro);
    background-color: var(--branco);
}

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

/* ============================================
   MODAL E FORMULÁRIO
   ============================================ */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: var(--branco);
    padding: 40px;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

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

.close {
    color: var(--cinza-escuro);
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover {
    color: var(--verde-principal);
}

.modal-content h2 {
    color: var(--azul-escuro);
    margin-bottom: 10px;
    font-size: 1.8rem;
    font-weight: 800;
}

.modal-content > p {
    color: var(--cinza-escuro);
    margin-bottom: 30px;
    font-size: 0.95rem;
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--azul-escuro);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--cinza-medio);
    border-radius: 8px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus {
    outline: none;
    border-color: var(--verde-principal);
    box-shadow: 0 0 0 3px rgba(0, 217, 142, 0.1);
}

.form-group input::placeholder {
    color: var(--cinza-medio);
}

.error-message {
    display: block;
    color: #e74c3c;
    font-size: 0.85rem;
    margin-top: 5px;
    min-height: 18px;
}

.form-button {
    width: 100%;
    padding: 15px;
    background-color: var(--verde-principal);
    color: var(--azul-escuro);
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    box-shadow: 0 8px 20px rgba(0, 217, 142, 0.3);
}

.form-button:hover {
    background-color: var(--verde-claro);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 217, 142, 0.4);
}

.form-button:active {
    transform: translateY(0);
}

.form-footer {
    text-align: center;
    color: var(--cinza-medio);
    font-size: 0.85rem;
    margin-top: 15px;
}

/* ============================================
   SEÇÃO 1: HERO
   ============================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
    padding: 60px 20px;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    right: 0;
    width: 500px;
    height: 500px;
    background: url('assets/images/hero-devices2.png') no-repeat center;
    background-size: contain;
    opacity: 0.15;
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    margin: 0 auto;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--branco);
    margin-bottom: 20px;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
    font-size: 1.3rem;
    color: var(--cinza-claro);
    margin-bottom: 50px;
    font-weight: 400;
}

/* Vídeo Demonstrativo */
.video-container {
    margin: 40px 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    background: var(--cinza-claro);
}

.demo-video {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 12px;
}

.video-caption {
    color: var(--cinza-claro);
    font-size: 0.95rem;
    margin-top: 15px;
    font-style: italic;
    text-align: center;
    padding: 0 20px 20px;
}

/* CTA Buttons */
.cta-button {
    padding: 15px 40px;
    font-size: 1.1rem;
    font-weight: 600;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
    text-align: center;
    font-family: 'Montserrat', sans-serif;
}

.cta-primary {
    background-color: var(--verde-principal);
    color: var(--azul-escuro);
    box-shadow: 0 8px 20px rgba(0, 217, 142, 0.3);
}

.cta-primary:hover {
    background-color: var(--verde-claro);
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 217, 142, 0.4);
}

.cta-secondary {
    background-color: transparent;
    color: var(--verde-principal);
    border: 2px solid var(--verde-principal);
}

.cta-secondary:hover {
    background-color: var(--verde-principal);
    color: var(--azul-escuro);
    transform: translateY(-2px);
}

.cta-outline {
    background-color: transparent;
    color: var(--verde-principal);
    border: 2px solid var(--verde-principal);
}

.cta-outline:hover {
    background-color: var(--verde-principal);
    color: var(--azul-escuro);
}

.cta-button.large {
    padding: 18px 50px;
    font-size: 1.2rem;
}

/* ============================================
   SEÇÃO 2: BENEFÍCIOS
   ============================================ */
.benefits {
    padding: 100px 20px;
    background-color: var(--cinza-claro);
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--azul-escuro);
    text-align: center;
    margin-bottom: 60px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.benefit-card {
    background: var(--branco);
    padding: 40px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px var(--sombra);
    transition: all 0.3s ease;
    border-top: 4px solid var(--verde-principal);
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 30px rgba(0, 217, 142, 0.2);
}

.benefit-icon {
    font-size: 3rem;
    margin-bottom: 20px;
}

.benefit-card h3 {
    font-size: 1.5rem;
    color: var(--azul-escuro);
    margin-bottom: 15px;
    font-weight: 700;
}

.benefit-card p {
    color: var(--cinza-escuro);
    line-height: 1.8;
    font-size: 1rem;
}

/* ============================================
   SEÇÃO 3: COMO FUNCIONA
   ============================================ */
.how-it-works {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
    color: var(--branco);
}

.how-it-works .section-title {
    color: var(--branco);
    margin-bottom: 60px;
}

.steps-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    flex: 1;
    min-width: 250px;
    text-align: center;
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: var(--verde-principal);
    color: var(--azul-escuro);
    border-radius: 50%;
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 20px;
}

.step h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.step p {
    color: var(--cinza-claro);
    line-height: 1.8;
}

.step-arrow {
    font-size: 2rem;
    color: var(--verde-principal);
    display: none;
}

@media (min-width: 768px) {
    .step-arrow {
        display: block;
    }
}

/* ============================================
   BOTÃO CTA EM CADA SEÇÃO
   ============================================ */
.section-cta {
    text-align: center;
    margin-top: 60px;
    padding-top: 40px;
    border-top: 2px solid var(--cinza-medio);
}

.benefits .section-cta {
    border-top-color: var(--cinza-medio);
}

.how-it-works .section-cta {
    border-top-color: rgba(255, 255, 255, 0.2);
}

/* ============================================
   SEÇÃO 4: CTA FINAL
   ============================================ */
.final-cta {
    padding: 100px 20px;
    background: linear-gradient(135deg, var(--azul-escuro) 0%, var(--azul-medio) 100%);
    color: var(--branco);
    text-align: center;
}

.final-cta .section-title {
    color: var(--branco);
    margin-bottom: 20px;
}

.cta-subtitle {
    font-size: 1.2rem;
    color: var(--cinza-claro);
    margin-bottom: 40px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons-group {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.cta-footer {
    color: var(--cinza-claro);
    font-size: 0.95rem;
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background-color: var(--azul-escuro);
    color: var(--cinza-claro);
    padding: 40px 20px;
    text-align: center;
    border-top: 3px solid var(--verde-principal);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-links {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

.footer-links a {
    color: var(--verde-principal);
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.footer-links a:hover {
    color: var(--verde-claro);
    text-decoration: underline;
}

/* ============================================
   RESPONSIVIDADE
   ============================================ */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

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

    .section-title {
        font-size: 2rem;
    }

    .benefits-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .steps-container {
        flex-direction: column;
        gap: 20px;
    }

    .cta-buttons-group {
        flex-direction: column;
    }

    .cta-button {
        width: 100%;
    }

    .hero-background {
        width: 300px;
        height: 300px;
    }

    .modal-content {
        width: 95%;
        padding: 30px;
    }

    .modal-content h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .cta-button {
        padding: 12px 30px;
        font-size: 1rem;
    }

    .cta-button.large {
        padding: 15px 40px;
        font-size: 1rem;
    }

    .hero {
        min-height: auto;
        padding: 40px 20px;
    }

    .modal-content {
        width: 95%;
        padding: 20px;
    }

    .modal-content h2 {
        font-size: 1.3rem;
        margin-bottom: 10px;
    }

    .form-group input {
        padding: 10px 12px;
        font-size: 16px;
    }

    .form-button {
        padding: 12px;
        font-size: 1rem;
    }
}

/* ============================================
   ANIMAÇÕES
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.benefit-card,
.step {
    animation: fadeInUp 0.6s ease forwards;
}

.benefit-card:nth-child(1) { animation-delay: 0.1s; }
.benefit-card:nth-child(2) { animation-delay: 0.2s; }
.benefit-card:nth-child(3) { animation-delay: 0.3s; }

/* ============================================
   ACESSIBILIDADE
   ============================================ */
.cta-button:focus {
    outline: 3px solid var(--verde-principal);
    outline-offset: 2px;
}

a:focus {
    outline: 3px solid var(--verde-principal);
    outline-offset: 2px;
}
