/* C:\Projetos\wcontrol\static\css\landing_page.css */

/* --- 1. Variáveis Globais (Tokens de Design) --- */
:root {
    --primary: #0d6efd;
    --primary-dark: #0a58ca;
    --primary-light: #e7f1ff;
    --primary-ultralight: #f5f9ff;
    --ok: #28a745;
    --warn: #ffc107;
    --bad: #dc3545;
    
    --white: #ffffff;
    --light: #f8f9fa;
    --light-gray: #e9ecef;
    --medium-gray: #adb5bd;
    --dark-gray: #6c757d;
    --dark: #212529;
    
    --text-light: #212529;
    --text-dark: #f8f9fa;
    
    --radius: 16px;
    --radius-lg: 24px;
    --shadow: 0 10px 30px rgba(0,0,0,0.08);
    --shadow-lg: 0 15px 40px rgba(0,0,0,0.12);
    --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
    --container: 1200px;
    --font: 'Inter', system-ui, sans-serif;
    
    --transition: all 0.3s ease;
    --transition-slow: all 0.5s ease;
}

/* --- 2. Reset Básico e Estilos de Base --- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    line-height: 1.6;
    background: var(--white);
    color: var(--text-light);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.container {
    width: min(100% - 2rem, var(--container));
    margin-inline: auto;
}

section {
    padding: 6rem 0;
}

h1, h2, h3, h4 {
    line-height: 1.2;
    margin: 0 0 .6rem;
    font-weight: 700;
}

h1 { font-size: clamp(2.2rem, 4vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); }

p {
    margin: .75rem 0;
    max-width: 70ch;
}

/* --- 3. Componentes Reutilizáveis --- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    font-weight: 600;
    border: 1px solid transparent;
    border-radius: 50px;
    padding: .9rem 1.8rem;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    justify-content: center;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 8px 20px rgba(13,110,253,.25);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(13,110,253,.35);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-header > * {
    margin-inline: auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: .12em;
    font-size: .9rem;
    font-weight: 700;
    color: var(--primary);
    display: block;
    margin-bottom: 0.5rem;
}

.grid-auto {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: var(--transition);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

/* --- 4. Header e Navegação --- */
header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--light-gray);
    transition: var(--transition);
}

header.scrolled {
    box-shadow: 0 5px 20px rgba(0,0,0,0.08);
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-weight: 800;
    font-size: 1.6rem;
    color: var(--dark);
}

.brand-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary);
}

nav ul {
    display: flex;
    gap: 1.8rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

nav a {
    color: var(--dark);
    font-weight: 500;
    transition: color .2s ease;
    position: relative;
}

nav a:after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

nav a:hover { color: var(--primary); }
nav a:hover:after { width: 100%; }

.nav-toggle {
    display: none;
    color: var(--dark);
    font-size: 1.6rem;
    cursor: pointer;
    background: none;
    border: 0;
}

/* --- 5. Seções Específicas --- */

/* Hero */
#hero {
    background: linear-gradient(135deg, var(--primary-light) 0%, rgba(255,255,255,1) 100%);
    position: relative;
    overflow: hidden;
    padding: 8rem 0;
}

#hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(13, 110, 253, 0.08) 0%, transparent 70%);
    z-index: 0;
}

.hero-wrap {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 2rem 0;
}

#hero h1 {
    max-width: 22ch;
    margin-inline: auto;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--dark) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

#hero p {
    max-width: 60ch;
    margin-inline: auto;
    font-size: 1.2rem;
    color: var(--dark-gray);
    margin-bottom: 2rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 1.5rem;
}

/* Problemas */
#problemas {
    background: var(--light);
}

#problemas .card .icon {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    margin-bottom: 1.2rem;
    background: var(--primary-light);
    color: var(--primary);
}

#problemas .card h3 {
    color: var(--dark);
    margin-bottom: 0.8rem;
}

#problemas .card p {
    color: var(--dark-gray);
}

/* Solução */
#solucao {
    background: var(--primary-ultralight);
    position: relative;
}

#solucao::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 30% 70%, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.solution-highlight {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 3rem;
    padding: 2rem;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
}

.solution-highlight p {
    font-size: 1.1rem;
    color: var(--dark-gray);
}

.modules-container {
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.modules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.module-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 1.8rem;
    text-align: center;
    transition: var(--transition);
    cursor: pointer;
    box-shadow: var(--shadow);
}

.module-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.module-card.active {
    background: var(--primary-light);
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), var(--shadow);
}

.module-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    margin: 0 auto 1rem;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
    transition: var(--transition);
}

.module-card.active .module-icon {
    background: var(--primary);
    color: white;
}

.module-card h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.module-card p {
    font-size: 0.9rem;
    color: var(--dark-gray);
    margin: 0;
}

/* --- Bloco Modificado: Ajuste de Rolagem para o Conteúdo dos Módulos --- */
.module-content {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 2.5rem;
    margin-top: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--light-gray);
    /* Adicionado: Define uma margem superior para a rolagem automática, 
       evitando que o conteúdo fique escondido atrás do header fixo em dispositivos móveis. */
    scroll-margin-top: 80px; 
}

.module-panel { display: none; }
.module-panel.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.module-panel h3 {
    color: var(--dark);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.module-panel p {
    color: var(--dark-gray);
    margin-bottom: 1.5rem;
}

.module-features {
    list-style: none;
    margin: 1.5rem 0;
}

.module-features li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.8rem;
    color: var(--dark-gray);
}

.module-features li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--ok);
    font-weight: bold;
}

.module-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 2rem;
}

/* Semáforo */
#semaforo-destaque {
    background: var(--light);
    position: relative;
}

#semaforo-destaque::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 80% 20%, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.semaforo-container {
    position: relative;
    z-index: 1;
}

.semaforo-visual {
    margin-inline: auto;
    background: #0f1216;
    padding: 1.6rem 1rem;
    border-radius: 30px;
    border: 1px solid #2b323a;
    box-shadow: inset 0 -30px 30px rgba(0,0,0,.35), 0 8px 24px rgba(0,0,0,.35);
    display: flex;
    gap: 1.2rem;
    justify-content: center;
    max-width: 300px;
    margin-bottom: 3rem;
    position: relative;
}

.semaforo-visual:before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 20px;
    background: #2b323a;
    border-radius: 10px 10px 0 0;
}

.light {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 1px solid #2b323a;
    position: relative;
    z-index: 1;
}

.light.red { background: radial-gradient(circle at 35% 30%, #ff9a9a, var(--bad) 60%, #6b0f1a 100%); box-shadow: 0 0 26px rgba(220,53,69,.6); }
.light.yellow { background: radial-gradient(circle at 35% 30%, #ffe9a6, var(--warn) 60%, #6b5e12 100%); box-shadow: 0 0 26px rgba(255,193,7,.5); }
.light.green { background: radial-gradient(circle at 35% 30%, #b4ffb8, var(--ok) 60%, #0d3e1a 100%); box-shadow: 0 0 26px rgba(40,167,69,.55); }

.semaforo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.sema-card {
    background: var(--white);
    border: 1px solid var(--light-gray);
    border-radius: var(--radius);
    padding: 2rem;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.sema-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.sema-card h4 { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-bottom: 1rem; }
.sema-card h4:before { content: ''; display: block; width: 12px; height: 12px; border-radius: 50%; }
.sema-card.red h4:before { background-color: var(--bad); }
.sema-card.yellow h4:before { background-color: var(--warn); }
.sema-card.green h4:before { background-color: var(--ok); }
.sema-card p { color: var(--dark-gray); margin: 0; }

/* Depoimentos */
#depoimentos {
    background: var(--primary-ultralight);
    position: relative;
}

#depoimentos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.carousel {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
    z-index: 1;
}

.carousel-viewport { overflow: hidden; border-radius: var(--radius); }
.carousel-track { display: flex; transition: transform 0.5s ease; }
.carousel-slide { min-width: 100%; padding: 0; }
.testimonial { background: var(--white); border-radius: var(--radius); padding: 3rem; box-shadow: var(--shadow); text-align: center; border: 1px solid var(--light-gray); }
.testimonial .quote { font-size: 1.3rem; color: var(--dark); font-style: italic; margin-bottom: 1.5rem; line-height: 1.6; position: relative; }
.testimonial .quote:before { content: '"'; font-size: 4rem; color: var(--primary-light); position: absolute; top: -20px; left: -10px; line-height: 1; z-index: 0; }
.testimonial figcaption { color: var(--dark-gray); font-weight: 600; }
.testimonial a { color: var(--primary); font-weight: 600; }
.testimonial a:hover { text-decoration: underline; }
.carousel-nav { display: flex; justify-content: center; gap: 1rem; margin-top: 2rem; }
.carousel-nav button { background: var(--primary); color: white; border: none; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: var(--transition); box-shadow: var(--shadow); }
.carousel-nav button:hover { background: var(--primary-dark); transform: scale(1.05); }
.carousel-dots { display: flex; justify-content: center; gap: 0.5rem; margin-top: 1.5rem; }
.carousel-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--light-gray); border: none; cursor: pointer; transition: var(--transition); }
.carousel-dot.active { background: var(--primary); transform: scale(1.2); }

/* Preços */
#precos {
    background: var(--light);
    position: relative;
}

#precos::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 70% 30%, rgba(13, 110, 253, 0.03) 0%, transparent 70%);
    z-index: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto 2rem;
    position: relative;
    z-index: 1;
}

.price-card {
    position: relative;
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius);
    border: 1px solid var(--light-gray);
    background: var(--white);
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.price-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.price-card.pop { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); }
.ribbon { position: absolute; top: 15px; right: -35px; transform: rotate(45deg); background: var(--primary); color: #fff; font-weight: 700; padding: .3rem 2.5rem; border-radius: 4px; font-size: .8rem; }
.price-card h3 { font-size: 1.8rem; margin-bottom: 1rem; color: var(--dark); }
.price-card p { color: var(--dark-gray); margin-bottom: 1.5rem; }
.list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; color: var(--dark-gray); }
.list li { position: relative; padding-left: 1.5rem; }
.list li:before { content: '✓'; position: absolute; left: 0; color: var(--ok); font-weight: bold; }

/* CTA Final */
#contato {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

#contato::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.1) 0%, transparent 70%);
    z-index: 0;
}

#cta-final {
    max-width: 800px;
    width: 100%;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 3rem;
    position: relative;
    z-index: 1;
}

#cta-final h2, #cta-final p { color: #ffffff !important; }
#cta-final h2 { margin-bottom: 1rem; }
#cta-final p { margin-bottom: 2rem; font-size: 1.1rem; }
#cta-final .btn { background: #ffffff; color: var(--primary); font-weight: 700; padding: 1rem 2rem; font-size: 1.1rem; }
#cta-final .btn:hover { background: #f0f4ff; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(0,0,0,0.15); }

/* --- 6. Footer --- */
footer {
    background: var(--dark);
    color: var(--text-dark);
    padding: 3rem 0;
    text-align: center;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    list-style: none;
    padding: 0;
    margin: 1.5rem 0;
}

.footer-links a { color: var(--medium-gray); }
.footer-links a:hover { color: var(--primary); }
.copyright { color: var(--medium-gray); font-size: 0.9rem; }

/* --- 7. Responsividade --- */
@media (max-width: 900px) {
    .modules-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
    section { padding: 4rem 0; }
    nav ul { display: none; }
    .nav-toggle { display: block; }
    .hero-actions { flex-direction: column; align-items: center; }
    .hero-actions .btn { width: 100%; max-width: 280px; }
    .modules-grid { grid-template-columns: 1fr; }
    .module-actions { flex-direction: column; }
    .module-actions .btn { width: 100%; }
    .light { width: 60px; height: 60px; }
    .semaforo-visual { padding: 1.2rem 0.8rem; border-radius: 25px; gap: .9rem; max-width: 250px; }
    .pricing-grid { grid-template-columns: 1fr; }
    .testimonial { padding: 2rem 1.5rem; }
    .testimonial .quote { font-size: 1.1rem; }
}

@media (max-width: 480px) {
    .eyebrow { font-size: .85rem; }
    .testimonial .quote:before { font-size: 3rem; top: -15px; left: -5px; }
}