/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Variáveis de cores (tema escuro) */
:root {
    /* Fundo e superfícies */
    --primary-color: #0f1115; /* fundo da página */
    --card-color: #171a20;    /* cartões/containers */

    /* Paleta do projeto */
    --secondary-color: #D7A146; /* Primária pedida (CTA) */
    --highlight-color: #F5EEE4; /* Secundária pedida (títulos/detalhes) */

    /* Tipografia */
    --text-dark: #e7e7ea;     /* texto principal claro */
    --text-light: #b0b3bb;    /* texto secundário */

    --white: #ffffff;
    --shadow: rgba(0, 0, 0, 0.35);
}

/* Estilos gerais */
body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--primary-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Suaviza a rolagem de âncoras */
html { scroll-behavior: smooth; }

/* Navbar */
.navbar {
    background-color: #0f1115;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(245, 238, 228, 0.06);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    transition: background-color 240ms ease, backdrop-filter 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

/* Estado ao rolar: ligeiramente mais claro e com sutil blur para requinte */
.navbar.scrolled {
    background-color: rgba(21, 24, 33, 0.72); /* leve transparência */
    border-bottom-color: rgba(245, 238, 228, 0.15);
    backdrop-filter: saturate(120%) blur(8px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); /* pouca sombra */
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo {
    height: 50px;
    width: auto;
}

/* Main content */
main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 2rem;
    padding: 2rem;
}

/* Landing page container */
.landing-container {
    text-align: center;
    max-width: 700px;
    width: 100%;
    background-color: var(--card-color);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(245, 238, 228, 0.06);
}

/* CTA principal */
.cta-container {
    margin-top: 1.5rem;
}

.primary-cta {
    display: inline-block;
    background-color: var(--secondary-color);
    color: #0b0b0b;
    padding: 0.9rem 1.5rem;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.3px;
    text-transform: uppercase;
    box-shadow: 0 6px 18px rgba(215, 161, 70, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.primary-cta:hover {
    background-color: #c49639;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(215, 161, 70, 0.45);
}

.primary-cta:active {
    transform: translateY(0);
}

/* Imagem do livro */
.book-image {
    max-width: 300px;
    width: 100%;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 10px;
}

/* Container responsivo para iframe do YouTube */
.landing-container iframe {
    max-width: 100%;
    width: 560px;
    height: 315px;
    margin-bottom: 2rem;
    border-radius: 12px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.45);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-container iframe:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.2);
}

/* Título e descrição */
.landing-title {
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--highlight-color);
    margin-bottom: 1rem;
    line-height: 1.3;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.landing-subtitle {
    font-size: 1rem;
    color: var(--text-light);
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    line-height: 1.5;
    max-width: 500px;
    letter-spacing: 0.3px;
    margin-left: auto;
    margin-right: auto;
    font-weight: 400;
}

/* Segunda seção - benefícios com cards */
.benefits-section {
    max-width: 1100px;
    width: 100%;
    margin: 2rem auto 0 auto;
    padding: 0 1rem 2rem 1rem;
}

.benefits-title {
    text-align: center;
    color: var(--highlight-color);
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.benefits-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1rem;
    margin-bottom: 1.5rem;
}

.typewriter,
.typewriter #tw-word {
    color: var(--secondary-color);
    text-shadow: 0 0 6px rgba(215, 161, 70, 0.6), 0 0 14px rgba(215, 161, 70, 0.35);
}

.typewriter {
    border-right: 2px solid var(--secondary-color);
    padding-right: 4px;
    white-space: nowrap;
    overflow: hidden;
    animation: caretBlink 1s step-end infinite, glowPulse 2.2s ease-in-out infinite;
}

@keyframes caretBlink {
    50% { border-color: transparent; }
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 6px rgba(215, 161, 70, 0.6), 0 0 14px rgba(215, 161, 70, 0.35);
    }
    50% {
        text-shadow: 0 0 10px rgba(215, 161, 70, 0.9), 0 0 22px rgba(215, 161, 70, 0.55);
    }
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.2rem;
    margin-top: 1rem;
}

.benefit-card {
    background: var(--card-color);
    border: 1px solid rgba(245, 238, 228, 0.06);
    border-radius: 16px;
    padding: 1.3rem 1.1rem;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.benefit-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5);
    border-color: rgba(215, 161, 70, 0.45);
}

.card-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.75rem auto;
    display: grid;
    place-items: center;
    background: radial-gradient( circle at 30% 30%, rgba(215,161,70,0.25), rgba(215,161,70,0.05) );
    color: var(--highlight-color);
    font-size: 1.35rem;
}

.card-title {
    color: var(--highlight-color);
    font-weight: 800;
    margin-bottom: 0.25rem;
}

.card-text {
    color: var(--text-light);
    font-size: 0.95rem;
}

/* Formulário */
.form-container {
    margin-top: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

/* Espaçamento especial para o último campo antes do botão */
.form-group:last-of-type {
    margin-bottom: 2.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: var(--white);
}

.form-input:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(215, 161, 70, 0.1);
}

.form-input::placeholder {
    color: #aaa;
}

/* Botão de submit */
.submit-btn {
    width: 100%;
    background-color: var(--secondary-color);
    color: var(--white);
    border: none;
    padding: 1.25rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(215, 161, 70, 0.3);
}

.submit-btn:hover {
    background-color: #c49639;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(215, 161, 70, 0.4);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Estado de sucesso do botão */
.submit-btn.success {
    background-color: #28a745 !important;
    cursor: default;
    transform: none !important;
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.4);
}

.submit-btn.success:hover {
    background-color: #28a745 !important;
    transform: none !important;
}

/* Micro-copy */
.micro-copy {
    font-size: 0.8rem;
    color: #888;
    margin-top: 0.75rem;
    text-align: center;
    line-height: 1.4;
    font-style: italic;
}

/* Lista de benefícios */
.benefits-list {
    text-align: left;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.benefit-item {
    font-size: 0.95rem;
    color: #444;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 0.25rem;
    padding: 0;
    background: none;
    border: none;
    border-radius: 0;
    transition: none;
}

.benefit-item:last-child {
    margin-bottom: 0;
}

.benefit-item:hover {
    background: none;
    transform: none;
    box-shadow: none;
}

/* Estilo para os ícones de check nos benefícios */
.benefit-item::before {
    content: "✓";
    color: var(--secondary-color);
    font-size: 0.9rem;
    margin-right: 0.5rem;
    font-weight: bold;
}

/* Selos de confiança */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 0.5rem;
    flex-wrap: wrap;
}

.trust-badge {
    font-size: 0.75rem;
    color: #666;
    background-color: #f8f9fa;
    padding: 0.25rem 0.5rem;
    border-radius: 15px;
    border: 1px solid #e9ecef;
}

/* Disclaimer sobre e-mail */
.email-disclaimer {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 1rem 0;
    padding: 1rem;
    background-color: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 10px;
    border-left: 4px solid #f39c12;
}

.disclaimer-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
    margin-top: 0.1rem;
}

.disclaimer-content {
    font-size: 0.85rem;
    color: #856404;
    line-height: 1.4;
}

.disclaimer-content strong {
    color: #6c5ce7;
    font-weight: 600;
}

/* Mensagem de sucesso */
.success-message {
    display: none;
    background-color: #d4edda;
    color: #155724;
    padding: 1rem;
    border-radius: 10px;
    margin-top: 1rem;
    border: 1px solid #c3e6cb;
}

.success-message.show {
    display: block;
}

/* Footer */
.footer {
    background-color: #0f1115;
    color: var(--text-dark);
    text-align: center;
    padding: 2rem 0;
    margin-top: auto;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.footer p {
    margin-bottom: 0.5rem;
    opacity: 0.8;
}

.footer-links {
    margin-top: 0.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: var(--white);
    text-decoration: none;
    font-size: 0.85rem;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.footer-link:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-separator {
    color: var(--white);
    opacity: 0.6;
    font-size: 0.8rem;
}

/* Responsividade */
@media (max-width: 768px) {
    .navbar-container {
        padding: 0 1rem;
    }
    
    main {
        padding: 1rem;
    }
    
    .landing-container {
        padding: 2rem 1.5rem;
        margin: 0 auto;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
    }
    
    .landing-title {
        font-size: 1.4rem;
        max-width: 100%;
    }
    
    .landing-subtitle {
        font-size: 0.9rem;
        max-width: 100%;
    }
    
    .book-image {
        max-width: 250px;
    }
    
    .landing-container iframe {
        width: 100%;
        height: 280px;
        margin-bottom: 1.5rem;
    }
    
    .micro-copy {
        font-size: 0.75rem;
        margin-top: 0.5rem;
    }
    
    .benefits-list {
        margin-bottom: 1.5rem;
        max-width: 100%;
    }
    
    .benefit-item {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
        line-height: 1.5;
    }
    
    .benefit-item::before {
        font-size: 0.75rem;
        margin-right: 0.3rem;
    }
    
    .trust-badges {
        gap: 0.3rem;
    }
    
    .trust-badge {
        font-size: 0.7rem;
        padding: 0.2rem 0.4rem;
    }
    
    .email-disclaimer {
        margin: 0.75rem 0;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .disclaimer-content {
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .landing-container {
        padding: 1.5rem 1rem;
    }
    
    .cards-grid {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }
    
    .landing-title {
        font-size: 1.25rem;
        line-height: 1.4;
    }
    
    .landing-subtitle {
        font-size: 0.85rem;
        line-height: 1.6;
    }
    
    .book-image {
        max-width: 200px;
    }
    
    .landing-container iframe {
        width: 100%;
        height: 220px;
        margin-bottom: 1rem;
        border-radius: 8px;
    }
    
    .micro-copy {
        font-size: 0.7rem;
        margin-top: 0.5rem;
    }
    
    .benefits-list {
        gap: 0.5rem;
        margin-bottom: 1.5rem;
    }
    
    .benefits-row {
        gap: 0.5rem;
        flex-direction: column;
        align-items: center;
    }
    
    .benefit-item {
        font-size: 0.85rem;
        padding: 0.3rem 0.6rem;
        white-space: normal;
        text-align: center;
    }
    
    .trust-badges {
        gap: 0.3rem;
    }
    
    .trust-badge {
        font-size: 0.65rem;
        padding: 0.15rem 0.3rem;
    }
    
    .email-disclaimer {
        margin: 0.5rem 0;
        padding: 0.6rem;
        gap: 0.4rem;
    }
    
    .disclaimer-content {
        font-size: 0.75rem;
        line-height: 1.3;
    }
    
    .disclaimer-icon {
        font-size: 1rem;
    }
}

/* Animações */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.landing-container {
    animation: fadeInUp 0.6s ease-out;
}

/* Revelação ao rolar */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.75s ease, transform 0.75s ease;
}

.reveal-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger helpers */
.stagger-1 { transition-delay: 0.08s; }
.stagger-2 { transition-delay: 0.16s; }
.stagger-3 { transition-delay: 0.24s; }
.stagger-4 { transition-delay: 0.32s; }
.stagger-5 { transition-delay: 0.40s; }

/* Respeitar usuários com redução de movimento */
@media (prefers-reduced-motion: reduce) {
    .landing-container,
    .reveal-on-scroll,
    .typewriter { 
        animation: none !important; 
        transition: none !important; 
        transform: none !important; 
        opacity: 1 !important; 
    }
}

/* Melhorar acessibilidade */
.form-input:focus,
.submit-btn:focus {
    outline: 3px solid var(--secondary-color);
    outline-offset: 2px;
}

/* Estados de loading */
.submit-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    pointer-events: none;
}

.submit-btn.loading::after {
    content: "...";
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0%, 33% { content: "."; }
    34%, 66% { content: ".."; }
    67%, 100% { content: "..."; }
}

/* Validação de campos e indicadores de erro */
.form-group {
    position: relative;
}

.error-indicator {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc3545;
    font-weight: bold;
    font-size: 1.2rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.form-input.error {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2);
}

.form-input.valid {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.1);
}

.form-input.valid:focus {
    border-color: #28a745;
    box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.2);
}

.error-indicator.show {
    opacity: 1;
}

/* Mensagens de erro */
.error-message {
    color: #dc3545;
    font-size: 0.8rem;
    margin-top: 0.25rem;
    display: none;
    animation: fadeIn 0.3s ease;
}

.error-message.show {
    display: block;
}

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

/* Melhorar acessibilidade para campos com erro */
.form-input.error:focus {
    outline: 3px solid #dc3545;
    outline-offset: 2px;
}

/* Estilo para campos obrigatórios */
.form-label.required::after {
    content: " *";
    color: #dc3545;
    font-weight: bold;
}
