:root {
    --bg: #020617;
    --bg-secondary: #0f172a;
    --card: #111827;
    --primary: #22c55e;
    --primary-dark: #16a34a;
    --text: #f8fafc;
    --text-muted: #94a3b8;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 20px;
    
    /* Força o Bootstrap a usar o nosso texto global */
    --bs-body-color: #f8fafc;
}

/* ================== RESET E BODY ================== */
html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: "Inter", "Segoe UI", sans-serif;
    overflow-x: hidden;
}

body {
    background: radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 30%),
                radial-gradient(circle at bottom left, rgba(15, 23, 42, 0.9), transparent 40%),
                var(--bg);
    min-height: 100vh;
}

/* ================== TIPOGRAFIA (Correção de Contraste) ================== */
h1, h2, h3, h4, h5, h6 {
    color: #ffffff;
    font-weight: 700;
}

p {
    color: var(--text-muted);
}

label, .form-label {
    color: #cbd5e1 !important; /* Força os labels do form a ficarem claros */
    font-weight: 500;
    margin-bottom: 0.5rem;
}

/* ================== NAVBAR ================== */
.motora-navbar {
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    padding: 15px 0;
}

/* ================== CARDS (Correção do "Ruim de ler" e "Oculto") ================== */
.card-tool, .card-result {
    background: var(--card) !important;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    color: var(--text);
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3); /* Dá destaque face ao fundo */
    position: relative; /* Mantém os elementos visíveis na stack */
    z-index: 2;
}

/* Títulos dentro dos cards */
.card-tool h4, .card-result h4 {
    color: var(--primary);
    margin-bottom: 15px;
}

.card-tool hr {
    border-color: var(--border);
    margin-bottom: 20px;
}

/* Estatísticas */
.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--primary);
}

.stat-label {
    color: var(--text-muted);
    font-size: 1.1rem;
    font-weight: 500;
}

/* Resultados da Calculadora */
.result-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
}

.result-value {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
}

/* ================== FORMULÁRIOS ================== */
.form-control {
    background: #0b1220 !important;
    border: 1px solid #334155 !important;
    color: #ffffff !important;
    min-height: 52px;
    border-radius: 12px;
    font-size: 1.1rem;
}

.form-control::placeholder {
    color: #475569 !important;
}

.form-control:focus {
    background: #0f172a !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2) !important;
    outline: none;
}

/* ================== BOTÕES ================== */
.btn-motora {
    background: var(--primary);
    color: #ffffff;
    font-weight: 600;
    border-radius: 12px;
    padding: 14px 20px;
    border: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-motora:hover, .btn-motora:focus {
    background: var(--primary-dark);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 197, 94, 0.3);
}

/* ================== GRÁFICOS (Correção da Opacidade/Escondido) ================== */
.chart-container {
    position: relative;
    height: 400px;
    width: 100%;
    margin-top: 20px;
    padding: 15px;
    background: rgba(2, 6, 23, 0.4); /* Fundo contrastante para o gráfico respirar */
    border-radius: 16px;
    border: 1px dashed var(--border);
    z-index: 5; /* Impede o chart de ir para trás do layout */
}

/* ================== FOOTER ================== */
.footer-motora {
    background: var(--bg-secondary);
    border-top: 1px solid var(--border);
    padding: 60px 0 30px;
    margin-top: 60px;
}
.footer-motora p, .footer-motora li {
    color: var(--text-muted);
}

/* ================== MELHORIA DOS CARDS (Calculadoras) ================== */
.interactive-card {
    background: linear-gradient(145deg, #111827, #0b1220) !important;
    border: 1px solid rgba(255, 255, 255, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    overflow: hidden;
    position: relative;
}

.interactive-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.interactive-card:hover {
    transform: translateY(-8px);
    border-color: rgba(34, 197, 94, 0.4);
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(34, 197, 94, 0.1);
}

.interactive-card:hover::before {
    transform: scaleX(1);
}

.interactive-card .card-icon {
    font-size: 3rem;
    color: var(--primary);
    margin-bottom: 20px;
    filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.3));
    transition: transform 0.4s ease;
}

.interactive-card:hover .card-icon {
    transform: scale(1.1);
    color: var(--primary-dark);
}

.interactive-card h4 {
    color: #f8fafc;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.interactive-card p {
    color: #94a3b8;
    font-size: 0.95rem;
}

/* ================== MELHORIA DO FAQ ================== */
.accordion-item {
    background: rgba(17, 24, 39, 0.6) !important;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    border-radius: 16px !important;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.accordion-item:hover {
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: rgba(17, 24, 39, 0.9) !important;
}

.accordion-button {
    background: transparent !important;
    color: #e2e8f0 !important;
    font-size: 1.15rem;
    font-weight: 600;
    box-shadow: none !important;
    padding: 20px 24px;
    border-radius: 16px !important;
}

.accordion-button:not(.collapsed) {
    color: var(--primary) !important;
}

/* Deixa a setinha do Bootstrap branca/verde no Dark Mode */
.accordion-button::after {
    filter: brightness(0) invert(1);
}
.accordion-button:not(.collapsed):after {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(90deg);
}

.accordion-body {
    color: #94a3b8;
    font-size: 1.05rem;
    line-height: 1.6;
    padding: 0 24px 24px 24px;
}

/* ================== ANIMAÇÃO COMEÇAR AGORA ================== */
.cta-anim-section {
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    border-top: 1px solid rgba(34, 197, 94, 0.1);
    border-bottom: 1px solid rgba(34, 197, 94, 0.1);
    padding: 100px 0;
    position: relative;
}

.anim-scene {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    height: 120px;
    z-index: 1;
    opacity: 0.3; /* Mantém a opacidade suave para focar no botão */
    pointer-events: none;
}

.anim-road {
    position: absolute;
    bottom: 0;
    width: 200%;
    height: 4px;
    background: repeating-linear-gradient(90deg, var(--primary) 0, var(--primary) 40px, transparent 40px, transparent 80px);
    animation: moveRoad 0.6s linear infinite;
}

.anim-car {
    position: absolute;
    bottom: 5px;
    left: 15%;
    font-size: 4rem;
    color: #f8fafc;
    animation: driveCar 0.4s alternate infinite cubic-bezier(0.4, 0, 0.2, 1);
}

.anim-money {
    position: absolute;
    bottom: 5px;
    right: 15%;
    font-size: 5rem;
    color: var(--primary);
    animation: glowMoney 2s alternate infinite ease-in-out;
}

.anim-money i.fa-coins {
    position: absolute;
    bottom: -10px;
    right: -20px;
    font-size: 2.5rem;
    color: #f59e0b;
}

@keyframes moveRoad {
    0% { transform: translateX(0); }
    100% { transform: translateX(-80px); }
}

@keyframes driveCar {
    0% { transform: translateY(0) rotate(-1deg); }
    100% { transform: translateY(-6px) rotate(1deg); }
}

@keyframes glowMoney {
    0% { filter: drop-shadow(0 0 10px rgba(34, 197, 94, 0.2)); transform: scale(1); }
    100% { filter: drop-shadow(0 0 35px rgba(34, 197, 94, 0.9)); transform: scale(1.08); }
}