/* --- 1. CONFIGURAÇÕES GERAIS E VARIÁVEIS --- */
:root {
    --bg-dark: #020617;       /* Fundo principal (Azul Profundo) */
    --bg-card: #0f172a;       /* Fundo dos cards */
    --bg-card-hover: #1e293b; /* Fundo hover */
    
    --primary-blue: #3b82f6;  /* Azul tecnológico */
    --primary-green: #22c55e; /* Verde WhatsApp/Dinheiro */
    --accent-red: #ef4444;    /* Vermelho Alerta */
    
    --text-white: #f8fafc;    
    --text-gray: #94a3b8;     
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-white);
    line-height: 1.6;
    overflow-x: hidden;
    /* Espaço grande no topo para a Navbar não cobrir o título */
    padding-top: 180px; 
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* --- 2. LAYOUT & UTILITÁRIOS --- */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

.section {
    padding: 4rem 0;
}

.text-center { text-align: center; }

/* Gradiente no texto */
.text-gradient {
    background: linear-gradient(90deg, var(--primary-green), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.text-highlight { color: var(--primary-blue); }

/* --- 3. NAVBAR (LOGO GRANDE E CENTRALIZADA) --- */
.navbar {
    padding: 1rem 0;
    position: fixed; /* Fixa no topo */
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    
    /* Efeito de Vidro Escuro */
    background-color: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(10px); 
    border-bottom: 1px solid rgba(255,255,255,0.05);
    box-shadow: 0 4px 20px rgba(0,0,0,0.5);
}

.nav-container {
    display: flex;
    flex-direction: column; /* Empilha: Logo em cima, Botão embaixo */
    align-items: center;    /* Centraliza tudo */
    justify-content: center;
    gap: 15px;
}

.logo {
    height: 90px; /* AUMENTADO: Logo bem grande */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.3));
}

.btn-nav {
    padding: 0.5rem 1.2rem;
    font-size: 0.8rem;   /* Fonte menor que o texto normal */
    text-transform: uppercase;
    letter-spacing: 1px;
    background-color: transparent;
    border: 1px solid var(--primary-green);
    color: var(--primary-green);
    border-radius: 50px; /* Borda redonda mais moderna */
    transition: all 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.btn-nav:hover {
    background-color: var(--primary-green);
    color: #000;
    box-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
}

/* --- 4. BOTÕES GERAIS --- */
.btn {
    display: inline-block;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
    text-align: center;
}

.btn:hover { transform: translateY(-3px); }

/* Botão de Ação Principal (Verde) */
.btn-action {
    background: var(--primary-green);
    color: #020617;
    box-shadow: 0 4px 20px rgba(34, 197, 94, 0.25);
    width: 100%;
}

.btn-action:hover { box-shadow: 0 6px 25px rgba(34, 197, 94, 0.4); }

/* Botão Secundário (Outline) */
.btn-outline {
    background: transparent;
    border: 1px solid #334155;
    color: var(--text-white);
    width: 100%;
}

.btn-outline:hover {
    border-color: var(--primary-blue);
    color: var(--primary-blue);
}

@media (min-width: 768px) {
    .btn-action, .btn-outline { width: auto; }
}

/* --- 5. HERO SECTION --- */
.hero {
    padding: 2rem 0 4rem; /* Reduzi o padding superior pois o body já tem padding-top */
    text-align: center;
    position: relative;
}

.hero-glow {
    position: absolute;
    top: -50%;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, rgba(0,0,0,0) 70%);
    pointer-events: none;
    z-index: -1;
}

.hero h1 {
    font-size: 2.2rem;
    font-weight: 900;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.subtitle {
    font-size: 1.1rem;
    color: var(--text-gray);
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero h1 { font-size: 4rem; }
    .hero-buttons { flex-direction: row; justify-content: center; }
}

/* --- 6. CALCULADORA (ORGANIZADA) --- */
.calculator-container {
    margin: 2rem 0;
    display: flex;
    justify-content: center;
}

.calculator-box {
    background: linear-gradient(145deg, #1e293b, #0f172a);
    border: 1px solid rgba(59, 130, 246, 0.3); /* Borda azul sutil */
    padding: 2rem;
    border-radius: 16px;
    width: 100%;
    max-width: 500px;
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

.calculator-box h3 {
    color: var(--text-white);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.calc-inputs {
    display: flex;
    flex-direction: row; /* Coloca um ao lado do outro */
    gap: 15px;
    margin: 1.5rem 0;
}

/* Em telas muito pequenas, empilha os inputs */
@media (max-width: 400px) {
    .calc-inputs { flex-direction: column; }
}

.input-group {
    flex: 1; /* Divide o espaço igualmente */
    text-align: left;
}

.input-group label {
    font-size: 0.85rem;
    color: var(--text-gray);
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.input-group input {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #475569;
    background-color: #020617;
    color: white;
    font-size: 1.1rem;
    text-align: center;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

.btn-calc {
    background-color: var(--primary-blue);
    color: white;
    width: 100%;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-weight: 800;
    cursor: pointer;
    font-size: 1rem;
    transition: background 0.3s;
}

.btn-calc:hover { background-color: #2563eb; }

.result-box {
    margin-top: 1.5rem;
    padding: 1rem;
    border: 2px solid var(--accent-red);
    background-color: rgba(239, 68, 68, 0.1);
    border-radius: 10px;
    animation: fadeIn 0.5s ease;
}

.hidden { display: none; }

.loss-amount {
    display: block;
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--accent-red);
    margin: 0.5rem 0;
}

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

/* --- 7. SOLUÇÃO & LISTA (ORGANIZADA) --- */
.flex-row {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 768px) {
    .flex-row { flex-direction: row; align-items: flex-start; }
    .text-col, .visual-col { flex: 1; }
}

.badge-premium {
    display: inline-block;
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--primary-blue);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1rem;
    border: 1px solid rgba(59, 130, 246, 0.2);
}

/* LISTA MELHORADA */
.check-list {
    list-style: none;
    margin-top: 2rem;
}

.check-list li {
    margin-bottom: 2rem; /* Mais espaço entre itens */
    padding-left: 3rem;  /* Espaço para o ícone */
    position: relative;
    color: var(--text-gray);
    line-height: 1.5;
}

/* Ícone Check */
.check-list li::before {
    content: '✓';
    color: var(--primary-green);
    position: absolute;
    left: 0;
    top: 0;
    font-weight: 900;
    font-size: 1.5rem;
    background: rgba(34, 197, 94, 0.1);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.check-list strong {
    color: var(--text-white);
    font-size: 1.1rem;
    display: block; /* Quebra linha para o título ficar em cima */
    margin-bottom: 5px;
}

/* Terminal */
.terminal-window {
    background-color: #0f172a;
    border-radius: 12px;
    border: 1px solid #1e293b;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.6);
    font-family: 'Courier New', monospace;
    overflow: hidden;
}

.terminal-header {
    background-color: #1e293b;
    padding: 0.8rem;
    display: flex;
    gap: 8px;
}

.dot { width: 12px; height: 12px; border-radius: 50%; }
.red { background-color: #ef4444; }
.yellow { background-color: #eab308; }
.green { background-color: #22c55e; }

.terminal-body { padding: 1.5rem; }
.code-line { margin-bottom: 0.8rem; font-size: 0.9rem; }
.text-dim { color: #64748b; }
.text-blue { color: #60a5fa; }
.text-yellow { color: #facc15; }
.text-green { color: #4ade80; }

@keyframes blink { 50% { opacity: 0; } }
.code-line:last-child::after {
    content: '_';
    color: var(--primary-green);
    animation: blink 1s step-end infinite;
    font-weight: bold;
}

/* --- 8. CARDS & DEMOS --- */
.grid-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
}

@media (min-width: 768px) {
    .grid-cards { grid-template-columns: repeat(3, 1fr); }
}

.demos-grid-fix {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    .demos-grid-fix {
        grid-template-columns: 1fr 1fr;
        max-width: 900px;
        margin: 2rem auto;
    }
}

.card {
    background-color: var(--bg-card);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,0.05);
    transition: all 0.3s ease;
}

.card:hover {
    background-color: var(--bg-card-hover);
    border-color: rgba(59, 130, 246, 0.3);
    transform: translateY(-5px);
}

.demo-card {
    padding: 0;
    overflow: hidden;
}

.demo-image-container {
    width: 100%;
    height: 220px;
    background-color: #000;
}

.demo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
    transition: opacity 0.3s;
}

.demo-card:hover .demo-img { opacity: 1; transform: scale(1.05); }

.card-body { padding: 1.5rem; }
.card h3 { margin-bottom: 0.8rem; color: var(--text-white); }
.card p { color: var(--text-gray); font-size: 0.95rem; }

.btn-text {
    background: none;
    border: none;
    color: var(--primary-green);
    font-weight: bold;
    margin-top: 1rem;
    cursor: pointer;
    font-size: 0.95rem;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}
.btn-text:hover { text-decoration: underline; }

/* --- 9. FORMULÁRIO DE CONTATO --- */
.contact-section {
    background: linear-gradient(to top, #020617 0%, #0f172a 100%);
    text-align: center;
    border-top: 1px solid #1e293b;
    padding: 5rem 0;
}

.form-box {
    background-color: var(--bg-dark);
    padding: 2.5rem;
    border-radius: 16px;
    margin-top: 2.5rem;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
    text-align: left;
    border: 1px solid #334155;
    box-shadow: 0 0 40px rgba(0,0,0,0.3);
}

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

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

.form-group input {
    width: 100%;
    padding: 1rem;
    border-radius: 8px;
    background-color: #0f172a;
    border: 1px solid #334155;
    color: white;
    font-size: 1rem;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.2);
}

.full-width {
    width: 100%;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- 10. FOOTER --- */
footer {
    padding: 4rem 0 2rem;
    text-align: center;
    border-top: 1px solid #1e293b;
    background-color: #010409;
}

.footer-logo {
    height: 60px;
    width: auto;
    margin: 0 auto 1.5rem auto;
    opacity: 0.6;
    filter: grayscale(100%);
    transition: all 0.3s;
}

.footer-logo:hover { opacity: 1; filter: grayscale(0); }

footer p { font-style: italic; color: var(--text-gray); margin-bottom: 2rem; }
footer small { color: #475569; }

/* --- 11. BOTÃO FLUTUANTE WHATSAPP --- */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-green);
    color: #020617;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 4px 15px rgba(34, 197, 94, 0.4);
    z-index: 9999;
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.95rem;
}

.whatsapp-float:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.6);
}
