:root {
    --primary: #f97316; /* Laranja Mekaflow */
    --primary-dark: #ea580c;
    --dark: #111827;
    --light: #f9fafb;
    --gray: #6b7280;
    --success: #22c55e;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body { background-color: #fff; color: var(--dark); overflow-x: hidden; }

a { text-decoration: none; transition: 0.3s; }
ul { list-style: none; }

/* UTILS */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; position: relative; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 12px 24px; border-radius: 8px; font-weight: 700; cursor: pointer; transition: 0.3s; border: none; font-size: 1rem; }
.btn-primary { background-color: var(--primary); color: white; box-shadow: 0 4px 14px 0 rgba(249, 115, 22, 0.39); }
.btn-primary:hover { background-color: var(--primary-dark); transform: translateY(-2px); }
.btn-outline { border: 2px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: white; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.text-primary { color: var(--primary); }

/* NAVBAR */
nav { display: flex; justify-content: space-between; align-items: center; padding: 20px 0; height: 80px; position: absolute; top: 0; left: 0; right: 0; z-index: 10; width: 100%; max-width: 1200px; margin: 0 auto; }
.logo { font-size: 24px; font-weight: 900; letter-spacing: -1px; }
.logo span { color: var(--primary); }

/* HERO SECTION */
.hero { 
    min-height: 100vh;
    background: linear-gradient(180deg, #fff 0%, #fff7ed 100%); 
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    padding-top: 80px;
    padding-bottom: 100px;
}

.hero-badge {
    background: #fff7ed;
    color: var(--primary);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 20px;
    display: inline-block;
}

.hero h1 { font-size: 3.5rem; line-height: 1.1; font-weight: 900; margin-bottom: 20px; color: var(--dark); }
.hero p { font-size: 1.25rem; color: var(--gray); max-width: 600px; margin: 0 auto 40px; }

.hero-form { display: flex; gap: 10px; justify-content: center; max-width: 500px; margin: 0 auto; flex-wrap: wrap; }
.hero-form input { flex: 1; padding: 16px; border: 2px solid #e5e7eb; border-radius: 8px; font-size: 1rem; min-width: 280px; }
.hero-form input:focus { outline: none; border-color: var(--primary); }
.hero-disclaimer { margin-top: 15px; font-size: 0.875rem; color: var(--gray); display: flex; align-items: center; justify-content: center; gap: 5px; margin-bottom: 40px; }

/* VIDEO OVERLAP */
.video-wrapper {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 5;
    margin-bottom: -180px; /* Sobreposição */
}

.video-card {
    background: white;
    padding: 10px;
    border-radius: 20px;
    box-shadow: 0 30px 60px -10px rgba(0, 0, 0, 0.2);
    border: 1px solid #e5e7eb;
}

.video-card video { width: 100%; border-radius: 12px; display: block; background: #000; }

/* TRUSTED BY SECTION */
.trusted-section {
    background-color: #fff;
    padding: 220px 0 60px; /* Padding alto para compensar o vídeo */
    text-align: center;
    border-bottom: 1px solid #f3f4f6;
}

.trusted-label {
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--gray);
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.trusted-logo-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    opacity: 0.8;
    transition: 0.3s;
}

.trusted-logo-container:hover { opacity: 1; transform: scale(1.02); }

.mekabim-logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    color: #1f2937;
    display: flex;
    align-items: center;
    letter-spacing: -1px;
}

.mekabim-logo-text span { color: var(--primary); }

.trusted-sub {
    font-size: 1rem;
    color: #4b5563;
    font-style: italic;
    max-width: 600px;
    margin: 0 auto;
}

/* FEATURES */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; margin-top: 60px; }
.feature-card { padding: 30px; border-radius: 16px; background: white; border: 1px solid #f3f4f6; transition: 0.3s; }
.feature-card:hover { transform: translateY(-5px); box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); border-color: var(--primary); }
.icon-box { width: 50px; height: 50px; background: #fff7ed; border-radius: 12px; display: flex; align-items: center; justify-content: center; color: var(--primary); margin-bottom: 20px; }
.feature-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--gray); line-height: 1.6; }

/* COMPARISON */
.comparison-section { background-color: var(--dark); color: white; }
.comparison-table { width: 100%; border-collapse: collapse; margin-top: 50px; background: #1f2937; border-radius: 16px; overflow: hidden; }
.comparison-table th, .comparison-table td { padding: 20px; text-align: left; border-bottom: 1px solid #374151; }
.comparison-table th { background: #111827; font-size: 1.1rem; }
.comparison-table .check { color: var(--success); }
.comparison-table .x { color: #ef4444; }
.highlight-col { background: rgba(249, 115, 22, 0.1); border-left: 2px solid var(--primary); border-right: 2px solid var(--primary); }
.highlight-header { background: var(--primary) !important; color: white; border-top: 2px solid var(--primary); }

/* PRICING */
.pricing-toggle { display: flex; align-items: center; justify-content: center; gap: 15px; margin: 40px 0; }
.toggle-switch { position: relative; width: 60px; height: 34px; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.slider { position: absolute; cursor: pointer; top: 0; left: 0; right: 0; bottom: 0; background-color: #ccc; transition: .4s; border-radius: 34px; }
.slider:before { position: absolute; content: ""; height: 26px; width: 26px; left: 4px; bottom: 4px; background-color: white; transition: .4s; border-radius: 50%; }
input:checked + .slider { background-color: var(--primary); }
input:checked + .slider:before { transform: translateX(26px); }
.save-badge { background: #dcfce7; color: #166534; padding: 4px 12px; border-radius: 20px; font-size: 0.75rem; font-weight: 700; text-transform: uppercase; }

.price-card { background: white; border: 2px solid #f3f4f6; border-radius: 24px; padding: 40px; text-align: center; max-width: 500px; margin: 0 auto; position: relative; overflow: hidden; }
.price-card.featured { border-color: var(--primary); box-shadow: 0 25px 50px -12px rgba(249, 115, 22, 0.25); }
.popular-badge { background: var(--primary); color: white; padding: 5px 15px; position: absolute; top: 20px; right: -35px; transform: rotate(45deg); width: 150px; font-size: 0.8rem; font-weight: 700; }
.price-amount { font-size: 3.5rem; font-weight: 900; color: var(--dark); margin: 20px 0 5px; }
.price-period { color: var(--gray); font-size: 1rem; }
.price-annual-total { font-size: 0.875rem; color: var(--primary); font-weight: 600; margin-bottom: 30px; height: 20px; }
.price-features { margin-bottom: 30px; text-align: left; }
.price-features li { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; }

/* FAQ */
.faq-item { background: white; border: 1px solid #e5e7eb; margin-bottom: 15px; border-radius: 12px; overflow: hidden; transition: all 0.3s; }
.faq-item:hover { border-color: var(--primary); }
.faq-question { padding: 20px; font-weight: 600; color: var(--dark); cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: white; user-select: none; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease-out, padding 0.3s ease; background-color: #fff7ed; color: #4b5563; line-height: 1.6; }
.faq-answer p { padding: 0 20px 20px 20px; margin: 0; }
.faq-item.active .faq-answer { max-height: 200px; }
.faq-item.active .faq-icon { transform: rotate(180deg); color: var(--primary); }
.faq-icon { transition: transform 0.3s; color: var(--gray); }

/* FOOTER */
footer { background: var(--dark); color: #9ca3af; padding: 60px 0 20px; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; margin-bottom: 40px; }
.footer-logo { color: white; font-size: 1.5rem; font-weight: 900; margin-bottom: 10px; display: block; }

/* MODAL */
.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.7); backdrop-filter: blur(5px); z-index: 999; display: none; opacity: 0; transition: opacity 0.3s; }
.modal-overlay.active { display: flex; opacity: 1; align-items: center; justify-content: center; }
.modal { background: white; padding: 40px; border-radius: 16px; width: 100%; max-width: 500px; position: relative; transform: translateY(20px); transition: transform 0.3s; box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1); }
.modal-overlay.active .modal { transform: translateY(0); }
.close-modal { position: absolute; top: 20px; right: 20px; cursor: pointer; color: var(--gray); }
.modal h2 { font-size: 1.5rem; margin-bottom: 10px; }
.modal-form label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 0.875rem; color: #374151; }
.modal-form input, .modal-form select { width: 100%; padding: 12px; margin-bottom: 15px; border: 1px solid #d1d5db; border-radius: 6px; }
.negative-cta { display: block; text-align: center; margin-top: 15px; font-size: 0.875rem; color: var(--gray); text-decoration: underline; cursor: pointer; }
.negative-cta:hover { color: #ef4444; }

/* RESPONSIVO */
@media (max-width: 768px) {
    .hero h1 { font-size: 2.2rem; }
    nav { padding: 0 20px; }
    .comparison-table { font-size: 0.8rem; }
    .comparison-table th, .comparison-table td { padding: 10px; }
    
    .video-wrapper { margin-bottom: -80px; }
    .trusted-section { padding-top: 120px; }
    .mekabim-logo-text { font-size: 1.8rem; }
}

/* Efeito de carregamento atrás do vídeo */
.loading-skeleton {
    background: linear-gradient(90deg, #e2e8f0 25%, #f8fafc 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: pulseSkeleton 1.5s infinite linear;
    position: relative;
    overflow: hidden;
}

@keyframes pulseSkeleton {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Esconde o vídeo inicialmente */
#hero-video {
    opacity: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.8s ease-in-out; /* Efeito de fade-in */
}

/* Classe adicionada via JS quando o vídeo carrega */
#hero-video.video-ready {
    opacity: 1;
}
/* 1. Adicione isso no topo do seu CSS, para ativar o deslize suave na página toda */
html {
    scroll-behavior: smooth;
}

/* 2. Adicione os estilos da nova Navbar */
.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-links a {
    color: var(--gray);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.nav-links a:hover {
    color: var(--primary);
}

/* Efeito sublinhado animado no hover (opcional, mas dá um toque premium) */
.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

/* 3. Atualize o seu @media atual para ocultar os links no mobile e evitar quebrar o layout */
@media (max-width: 768px) {
    .nav-links {
        display: none; /* Esconde os links centrais no mobile. Idealmente, no futuro, você pode colocar um ícone de menu hambúrguer aqui */
    }
    
    .hero h1 { font-size: 2.2rem; }
    nav { padding: 0 20px; }
    /* ... resto do seu código responsivo ... */
}