/* ==========================================================================
   DESIGN SYSTEM & CUSTOM PROPERTIES (BovCria)
   ========================================================================== */
:root {
    /* Cores extraídas e inspiradas no logo BovCria */
    --c-primary-dark: #032013;   /* Verde escuro profundo do texto e logo */
    --c-primary: #0A5C36;        /* Verde esmeralda médio */
    --c-primary-light: #16a34a;  /* Verde folha vibrante */
    --c-accent: #0f8f4f;         /* Verde para destaques */
    --c-accent-hover: #0d7541;   /* Hover do destaque */
    --c-accent-soft: rgba(22, 163, 74, 0.08);
    
    /* Cores de fundo e estruturais (Light Theme Premium) */
    --c-bg-1: #f7faf8;           /* Fundo principal off-white com toque verde */
    --c-bg-2: #e9f0eb;           /* Fundo secundário suave */
    --c-card: #ffffff;           /* Fundo do card */
    
    /* Neutros e Tipografia */
    --c-text-title: #032013;
    --c-text-body: #34483e;
    --c-text-muted: #62786d;
    --c-border: #d4e0d9;
    --c-border-focus: #16a34a;
    
    /* Sombras refinadas */
    --shadow-sm: 0 2px 8px rgba(3, 32, 19, 0.04);
    --shadow-md: 0 12px 30px rgba(3, 32, 19, 0.06);
    --shadow-lg: 0 24px 64px rgba(3, 32, 19, 0.08);
    
    /* Fontes */
    --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    
    /* Raio de Borda */
    --radius-sm: 8px;
    --radius-md: 16px;
    --radius-lg: 24px;
    --radius-full: 9999px;
    
    /* Transições */
    --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   RESET & CONFIGURAÇÕES BÁSICAS
   ========================================================================== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-sans);
    background-color: var(--c-bg-1);
    color: var(--c-text-body);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

/* ==========================================================================
   ELEMENTOS DE DECORAÇÃO DE FUNDO (AMBIENTAÇÃO PREMIUM)
   ========================================================================== */
.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    overflow: hidden;
}

/* Efeito de iluminação radial suave em tons verdes */
.glow-1 {
    position: absolute;
    top: -10%;
    right: -10%;
    width: 60vw;
    height: 60vw;
    background: radial-gradient(circle, rgba(22, 163, 74, 0.12) 0%, rgba(22, 163, 74, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
}

.glow-2 {
    position: absolute;
    bottom: -10%;
    left: -10%;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(10, 92, 54, 0.08) 0%, rgba(10, 92, 54, 0) 70%);
    filter: blur(80px);
    border-radius: 50%;
}

/* Grade sutil para dar ar tecnológico */
.grid-overlay {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(10, 92, 54, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(10, 92, 54, 0.015) 1px, transparent 1px);
    background-size: 60px 60px;
    background-position: center top;
}

/* ==========================================================================
   LAYOUT E ESTRUTURA PRINCIPAL
   ========================================================================== */
.main-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 2.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
    justify-content: space-between;
}

/* Cabeçalho */
.header {
    width: 100%;
    display: flex;
    justify-content: center;
    margin-bottom: 2rem;
}

.logo-container {
    background: var(--c-card);
    padding: 1.25rem 2.5rem;
    border-radius: var(--radius-md); /* Mudado para radius-md para combinar melhor com a forma da logo */
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(10, 92, 54, 0.08);
    display: inline-flex;
    justify-content: center;
    align-items: center;
    transition: var(--transition-smooth);
}

.logo-container:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.brand-logo {
    height: 95px; /* Altura aumentada para melhor leitura e visualização dos detalhes */
    width: auto;
    display: block;
}

/* ==========================================================================
   SEÇÃO HERO (CONTEÚDO PRINCIPAL)
   ========================================================================== */
.hero-section {
    width: 100%;
    max-width: 800px;
    text-align: center;
    margin: 1rem 0 2rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Badge indicativo de status */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background-color: var(--c-card);
    color: var(--c-primary);
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 16px;
    border-radius: var(--radius-full);
    border: 1px solid var(--c-border);
    box-shadow: var(--shadow-sm);
    margin-bottom: 1.5rem;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.badge-dot {
    width: 8px;
    height: 8px;
    background-color: var(--c-primary-light);
    border-radius: 50%;
    position: relative;
}

.badge-dot::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: var(--c-primary-light);
    animation: pulse 2s infinite;
    top: 0;
    left: 0;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 0.8;
    }
    100% {
        transform: scale(2.2);
        opacity: 0;
    }
}

/* Título de Destaque */
.main-title {
    font-family: var(--font-sans);
    font-size: clamp(1.8rem, 4.5vw, 2.75rem); /* Tamanho reduzido para maior elegância */
    font-weight: 800;
    line-height: 1.2;
    color: var(--c-text-title);
    letter-spacing: -1px;
    margin-bottom: 1rem;
}

/* Gradiente bonito no texto secundário */
.highlight-text {
    background: linear-gradient(135deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    display: inline-block;
}

.highlight-text::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
    height: 4px;
    background-color: rgba(22, 163, 74, 0.15);
    border-radius: 2px;
    z-index: -1;
}

/* Descrição Principal */
.description {
    font-size: clamp(0.925rem, 1.5vw, 1.05rem); /* Fonte reduzida para melhorar a leitura e o equilíbrio visual */
    color: var(--c-text-body);
    max-width: 640px;
    margin-bottom: 1.75rem;
    font-weight: 400;
}

/* ==========================================================================
   BARRA DE PROGRESSO & STATUS
   ========================================================================== */
.progress-box {
    background: var(--c-card);
    width: 100%;
    max-width: 550px;
    padding: 1.5rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(10, 92, 54, 0.05);
    margin-bottom: 2.5rem;
    text-align: left;
}

.progress-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--c-text-title);
    margin-bottom: 0.75rem;
}

.progress-percentage {
    color: var(--c-primary-light);
    font-size: 1rem;
    font-weight: 700;
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background-color: var(--c-bg-2);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: 0.75rem;
}

.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary) 0%, var(--c-primary-light) 100%);
    border-radius: var(--radius-full);
    position: relative;
    overflow: hidden;
}

.progress-bar-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.25) 50%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: shimmer 2.5s infinite linear;
}

@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.progress-status {
    font-size: 0.825rem;
    color: var(--c-text-muted);
    font-weight: 500;
}

/* ==========================================================================
   FORMULÁRIO DE INSCRIÇÃO VIP
   ========================================================================== */
.form-container {
    width: 100%;
    max-width: 550px;
    text-align: center;
}

.form-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--c-text-title);
    margin-bottom: 0.75rem;
}

.subscribe-form {
    position: relative;
    width: 100%;
}

.input-group {
    display: flex;
    background: var(--c-card);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-full);
    padding: 6px;
    box-shadow: var(--shadow-md);
    transition: var(--transition-smooth);
    align-items: center;
    position: relative;
}

.input-group:focus-within {
    border-color: var(--c-border-focus);
    box-shadow: 0 0 0 4px rgba(22, 163, 74, 0.12), var(--shadow-md);
}

.input-icon {
    font-size: 1.1rem;
    color: var(--c-text-muted);
    margin-left: 1.25rem;
    margin-right: 0.5rem;
}

.subscribe-form input[type="email"] {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    padding: 0.75rem 0.5rem;
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--c-text-title);
    font-weight: 500;
    width: 100%;
}

.subscribe-form input[type="email"]::placeholder {
    color: var(--c-text-muted);
    font-weight: 400;
}

.btn-submit {
    background: var(--c-primary-dark);
    color: #ffffff;
    border: none;
    outline: none;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition-smooth);
    white-space: nowrap;
}

.btn-submit:hover {
    background: var(--c-primary);
    transform: translateX(2px);
}

.btn-icon {
    font-size: 0.85rem;
    transition: transform 0.3s ease;
}

.btn-submit:hover .btn-icon {
    transform: translateX(4px);
}

/* Mensagem de Erro */
.error-msg {
    display: block;
    color: #dc2626;
    font-size: 0.825rem;
    font-weight: 500;
    text-align: left;
    margin-top: 0.5rem;
    margin-left: 1.5rem;
    opacity: 0;
    transform: translateY(-5px);
    transition: all 0.3s ease;
    pointer-events: none;
}

.error-msg.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   CARDS DE DIFERENCIAIS
   ========================================================================== */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    width: 100%;
    margin-bottom: 4rem;
}

.feature-card {
    background: var(--c-card);
    border-radius: var(--radius-md);
    padding: 2.25rem 2rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(10, 92, 54, 0.04);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background-color: var(--c-primary);
    opacity: 0;
    transition: var(--transition-smooth);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: rgba(10, 92, 54, 0.08);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-sm);
    background-color: var(--c-accent-soft);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1.5rem;
    transition: var(--transition-smooth);
}

.feature-card:hover .feature-icon {
    background-color: var(--c-primary);
    color: #ffffff;
    transform: scale(1.05);
}

.feature-card h3 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--c-text-title);
    margin-bottom: 0.75rem;
}

.feature-card p {
    font-size: 0.925rem;
    color: var(--c-text-muted);
    line-height: 1.6;
}

/* ==========================================================================
   RODAPÉ
   ========================================================================== */
.footer {
    width: 100%;
    border-top: 1px solid var(--c-border);
    padding-top: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.copyright {
    font-size: 0.875rem;
    color: var(--c-text-muted);
    font-weight: 500;
}

.social-links {
    display: flex;
    gap: 1.25rem;
}

.social-links a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--c-border);
    color: var(--c-text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: var(--transition-smooth);
    font-size: 0.95rem;
}

.social-links a:hover {
    background-color: var(--c-primary);
    color: #ffffff;
    border-color: var(--c-primary);
    transform: translateY(-2px);
}

/* ==========================================================================
   NOTIFICAÇÃO FLUTUANTE (TOAST)
   ========================================================================== */
.toast {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: var(--c-primary-dark);
    color: #ffffff;
    border-radius: var(--radius-md);
    padding: 1.25rem 1.5rem;
    box-shadow: 0 20px 40px rgba(3, 32, 19, 0.25);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    z-index: 1000;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    max-width: 420px;
    width: calc(100vw - 4rem);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.toast.show {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toast-icon {
    font-size: 1.5rem;
    color: var(--c-primary-light);
}

.toast-text {
    display: flex;
    flex-direction: column;
}

.toast-title {
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.2px;
}

.toast-desc {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    margin-top: 2px;
}

.toast-close-btn {
    background: transparent;
    border: none;
    outline: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    padding: 4px;
}

.toast-close-btn:hover {
    color: #ffffff;
}

/* ==========================================================================
   ANIMAÇÕES DE ENTRADA
   ========================================================================== */
.animate-fade-in {
    opacity: 0;
    animation: fadeIn 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.animate-slide-up {
    opacity: 0;
    transform: translateY(24px);
    animation: slideUp 1s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

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

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

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-container {
        padding: 1.5rem 1rem;
    }
    .logo-container {
        padding: 0.85rem 1.75rem;
    }
    .brand-logo {
        height: 70px; /* Reduz a altura da logo no mobile para manter a proporção */
    }
    .hero-section {
        margin-bottom: 2rem;
    }
    .footer {
        flex-direction: column;
        align-items: center;
        text-align: center;
        padding-bottom: 1.5rem;
    }
    .input-group {
        flex-direction: column;
        border-radius: var(--radius-md);
        padding: 8px;
        gap: 8px;
    }
    .input-icon {
        display: none; /* Oculta ícone no mobile para economizar espaço */
    }
    .subscribe-form input[type="email"] {
        padding: 0.75rem 1rem;
        text-align: center;
    }
    .btn-submit {
        width: 100%;
        justify-content: center;
        padding: 0.875rem;
    }
    .error-msg {
        text-align: center;
        margin-left: 0;
    }
    .toast {
        bottom: 1rem;
        right: 1rem;
        width: calc(100vw - 2rem);
        padding: 1rem;
        gap: 1rem;
    }
}
