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

body {
    background-color: #02040a;
    color: #fff;
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

/* =========================================
   HEADER / MENU
   ========================================= */
.top-nav {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 80px;
    z-index: 1000;
    background: rgba(2, 4, 10, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    justify-content: center;
}

.nav-content-wrapper {
    width: 100%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
}

.nav-logo {
    height: 50px;
    width: auto;
    display: block;
    cursor: pointer;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-links a {
    text-decoration: none;
    color: #ccc;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s;
}

.nav-links a:not(.btn-highlight):hover {
    color: #fff;
}

.btn-highlight {
    background: transparent;
    border: 1px solid rgba(123, 109, 68, 0.5);
    padding: 10px 25px;
    border-radius: 4px;
    color: #fff !important;
    font-weight: 600;
}

.btn-highlight:hover {
    background: #7b6d44;
    border-color: #7b6d44;
    color: #fff;
    box-shadow: 0 0 15px rgba(123, 109, 68, 0.4);
}

@media (max-width: 1280px) {
    .nav-content-wrapper {
        padding: 0 20px;
    }
}

/* =========================================
   MESTRE & NEURAL PART
   ========================================= */
.master-ecosystem {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    padding-top: 90px !important;
    padding-bottom: 100px;
}

.neural-part {
    height: 800px !important;
    position: relative;
    z-index: 10;
}

.center-content {
    position: absolute;
    top: 0 !important;
    left: 0;
    width: 100%;
    text-align: center;
    z-index: 10;
    padding-top: 0 !important;
    margin-top: 20px !important;
}

.center-content h1 {
    font-size: 42px;
    margin-bottom: 10px;
    font-weight: 700;
    margin-top: 0 !important;
    padding-top: 0 !important;
    line-height: 1.2;
}

.highlight {
    color: #7b6d44;
}

.nodes-group {
    position: absolute;
    width: 260px;
    height: 100%;
    z-index: 20;
}

.left-group { left: 0; }
.right-group { right: 0; }

.node-pill-wrapper {
    position: absolute;
    width: 100%;
}

.pos-1 { top: 175px; }
.pos-2 { top: 290px; }
.pos-3 { top: 400px; }

.node-pill {
    background: #0a0c14;
    border: 1px solid #333;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 13px;
    color: #ccc;
    cursor: pointer;
    transition: 0.3s ease;
    display: block;
    text-align: center;
    position: relative;
    z-index: 20;
}

.node-pill:hover {
    border-color: #7b6d44;
    background: #7b6d44;
    color: #fff;
    box-shadow: 0 0 25px rgba(123, 109, 68, 0.6);
}

.tooltip {
    visibility: hidden;
    opacity: 0;
    background: #111;
    border: 1px solid #7b6d44;
    color: #ddd;
    padding: 12px;
    border-radius: 8px;
    position: absolute;
    top: 120%;
    left: 0;
    width: 100%;
    font-size: 12px;
    z-index: 100;
    transition: 0.2s;
    pointer-events: none;
}

.node-pill-wrapper:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* =========================================
   CARROSSEL
   ========================================= */
.carousel-part {
    position: relative;
    z-index: 10;
    margin-top: -60px;
}

.carousel-container-relative {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #000;
    border: 1px solid #333;
    color: #fff;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.nav-arrow:hover {
    border-color: #7b6d44;
    color: #7b6d44;
    box-shadow: 0 0 15px rgba(123, 109, 68, 0.3);
}

.left-arrow { left: -60px; }
.right-arrow { right: -60px; }

.carousel-wrapper {
    width: 100%;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    gap: 20px;
    transition: transform 0.5s ease-in-out;
}

.segment-card {
    min-width: 180px;
    height: 320px;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid #222;
}

.card-image {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(0.6);
    transition: 0.5s ease;
}

.segment-card:hover .card-image img {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.1);
}

.card-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 20%, transparent);
    z-index: 2;
}

.line-detail {
    display: block;
    width: 40px;
    height: 3px;
    background-color: #7b6d44;
    margin-bottom: 12px;
    transition: 0.3s;
}

.segment-card:hover .line-detail {
    width: 80px;
}

.card-content h3 {
    font-size: 11px;
    letter-spacing: 2px;
    color: #aaa;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.card-content p {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.segments-footer-title {
    text-align: center;
    margin-top: 60px;
}

.segments-footer-title h2 {
    font-size: 32px;
    color: #fff;
}

/* =========================================
   SVG E ANIMAÇÕES
   ========================================= */
svg.master-connections {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

.static-line {
    fill: none;
    stroke: rgba(123, 109, 68, 0.2) !important;
    stroke-width: 2;
    opacity: 1 !important;
}

.pulse-line {
    fill: none;
    stroke: url(#pulseGradient);
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 300 3000;
    stroke-dashoffset: 2300;
    opacity: 0;
}

.entry-pulse { animation: anime-entry 5s linear infinite; }
.exit-pulse { animation: anime-exit 5s linear infinite; }

.core-base {
    position: absolute;
    top: 450px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 15;
}

.core-circle {
    width: 130px;
    height: 130px;
    background: radial-gradient(circle, #7b6d44 20%, #423516 100%);
    border-radius: 50%;
    box-shadow: 0 0 60px rgba(123, 109, 68, 0.4);
    position: relative;
    z-index: 20;
    animation: anime-core 5s linear infinite;
}

@keyframes anime-entry {
    0% { stroke-dashoffset: 2300; opacity: 0; }
    5% { opacity: 1; }
    30% { stroke-dashoffset: 0; opacity: 1; }
    35% { stroke-dashoffset: -300; opacity: 0; }
    100% { opacity: 0; }
}

@keyframes anime-core {
    0%, 35% { transform: scale(1); box-shadow: 0 0 60px rgba(123, 109, 68, 0.4); filter: brightness(1); }
    40% { transform: scale(1.15); box-shadow: 0 0 120px rgba(123, 109, 68, 1); filter: brightness(1.5); }
    50%, 100% { transform: scale(1); box-shadow: 0 0 60px rgba(123, 109, 68, 0.4); filter: brightness(1); }
}

@keyframes anime-exit {
    0%, 30% { stroke-dashoffset: 2300; opacity: 0; }
    40% { opacity: 1; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    85% { stroke-dashoffset: -300; opacity: 0; }
    100% { opacity: 0; }
}

/* =========================================
   FAQ SECTION
   ========================================= */
.faq-section {
    background-color: #fff;
    color: #333;
    padding: 100px 0;
    width: 100%;
}

.faq-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    gap: 60px;
    padding: 0 20px;
}

.faq-list { flex: 1; }
.faq-item { border-bottom: 1px solid #eee; }

.faq-question {
    padding: 25px 0;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #555;
    transition: 0.3s;
}

.faq-question:hover { color: #000; }

.faq-icon {
    transform: rotate(180deg);
    transition: 0.3s;
    font-size: 12px;
}

.faq-item.active .faq-icon { transform: rotate(0deg); }
.faq-item.active .faq-question { color: #000; }

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.faq-answer p {
    padding-bottom: 25px;
    font-size: 14px;
    line-height: 1.6;
    color: #666;
}

.faq-item.active .faq-answer { max-height: 3000px; }

.faq-cta {
    width: 350px;
    flex-shrink: 0;
}

.faq-label {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #999;
    margin-bottom: 15px;
    border-left: 1px solid #ccc;
    padding-left: 10px;
}

.faq-cta h2 {
    font-size: 32px;
    font-weight: 600;
    color: #111;
    margin-bottom: 20px;
    line-height: 1.2;
}

.faq-cta p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
    margin-bottom: 30px;
}

.btn-faq-cta {
    display: inline-flex;
    align-items: center;
    background: #7b6d44;
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: 0.3s;
}

.btn-faq-cta span { margin-left: 10px; transition: 0.3s; }
.btn-faq-cta:hover { background: #000000; }
.btn-faq-cta:hover span { transform: translateX(5px); }

/* =========================================
   CONTACT SECTION
   ========================================= */
.contact-section {
    background-color: #02040a;
    color: #fff;
    padding: 100px 0;
    width: 100%;
}

.contact-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 100px;
    padding: 0 20px;
}

.contact-info { flex: 0 0 35%; }
.contact-info h2 {
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    color: #fff;
}
.contact-info .highlight { color: #7b6d44; }

.contact-form-wrapper { flex: 1; }
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.form-row { display: flex; gap: 30px; }
.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.form-group label {
    font-size: 14px;
    color: #fff;
    margin-bottom: 8px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    background: transparent !important;
    border: none !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5) !important;
    padding: 12px 0;
    color: #fff !important;
    font-size: 16px;
    outline: none;
    border-radius: 0;
    transition: 0.3s;
}

.form-group input:focus,
.form-group select:focus {
    border-bottom-color: #7b6d44 !important;
    box-shadow: none;
}

.form-group select {
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E');
    background-repeat: no-repeat;
    background-position: right 0 center;
    background-size: 10px;
    padding-right: 20px;
}

.form-group select option {
    background-color: #000;
    color: #fff;
    padding: 10px;
}

.form-group input::placeholder {
    color: #888;
    opacity: 1;
}

.form-checkbox { margin-top: 10px; }
.checkbox-container {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    margin-bottom: 10px;
}

.checkbox-container input { display: none; }
.checkmark {
    width: 20px;
    height: 20px;
    border: 1px solid #fff;
    background: transparent;
    display: inline-block;
    position: relative;
    transition: 0.2s;
}

.checkbox-container input:checked~.checkmark {
    background: #7b6d44;
    border-color: #7b6d44;
}

.privacy-text {
    font-size: 12px;
    color: #888;
    line-height: 1.5;
    margin-top: 10px;
}

.privacy-text a {
    color: #fff;
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    background: #fff;
    color: #000;
    padding: 18px;
    border: none;
    border-radius: 50px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    margin-top: 10px;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #ccc;
    transform: translateY(-2px);
}

/* GRÁFICO ANIMADO FAQ */
.chart-wrapper {
    margin: 30px 0;
    width: 100%;
    position: relative;
}

.growth-chart {
    width: 100%;
    height: auto;
    overflow: visible;
}

.line-flat {
    fill: none;
    stroke: #aaa;
    stroke-width: 3;
    stroke-dasharray: 300;
    stroke-dashoffset: 300;
    animation: drawLine 4s ease-out infinite;
    opacity: 0.6;
}

.line-growth {
    fill: none;
    stroke: #7b6d44;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 320;
    stroke-dashoffset: 320;
    animation: drawLine 4s ease-out infinite;
    filter: drop-shadow(0 4px 6px rgba(123, 109, 68, 0.4));
}

.dot-flat, .dot-growth {
    opacity: 0;
    animation: appearDot 4s ease-out infinite;
}

@keyframes drawLine {
    0% { stroke-dashoffset: 320; }
    40% { stroke-dashoffset: 0; }
    80% { stroke-dashoffset: 0; opacity: 1; }
    100% { stroke-dashoffset: 0; opacity: 0; }
}

@keyframes appearDot {
    0%, 35% { opacity: 0; transform: scale(0); transform-origin: center; }
    40% { opacity: 1; transform: scale(1.2); transform-origin: center; }
    45% { transform: scale(1); transform-origin: center; }
    80% { opacity: 1; }
    100% { opacity: 0; }
}

.chart-legend {
    display: flex;
    gap: 20px;
    margin-top: 10px;
    margin-bottom: 20px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.legend-item .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: block;
}

.legend-item .dot.growth {
    background-color: #7b6d44;
    box-shadow: 0 0 5px rgba(123, 109, 68, 0.6);
}

.legend-item .dot.flat { background-color: #aaa; }
.legend-item p {
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin: 0 !important;
    padding: 0 !important;
}

.chart-desc {
    font-size: 13px !important;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.5;
}

/* Correção Autocomplete */
input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 30px #02040a inset !important;
    -webkit-text-fill-color: #fff !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* =========================================
   RESPONSIVIDADE (MOBILE - até 900px)
   ========================================= */
@media (max-width: 900px) {

    .top-nav { height: auto; padding: 15px 0; }
    .nav-content-wrapper { flex-direction: column; gap: 15px; }
    .nav-links { gap: 20px; flex-wrap: wrap; justify-content: center; }
    .logo-area img { height: 40px; }
    .master-ecosystem { padding-top: 140px !important; }
    .neural-part { height: auto !important; display: flex; flex-direction: column; align-items: center; }
    .center-content { position: relative; margin-bottom: 40px; }
    .center-content h1 { font-size: 32px; padding: 0 20px; }
    .nodes-group { position: relative; width: 100%; height: auto; display: flex; flex-direction: column; align-items: center; gap: 15px; margin-bottom: 20px; }
    .node-pill-wrapper { position: relative; top: auto !important; width: 90%; }
    .node-pill { width: 100%; }
    .master-connections, .core-base { display: none; }
    .faq-container { flex-direction: column-reverse; padding: 0 20px; }
    .faq-cta { width: 100%; margin-top: 40px; }
    .contact-container { flex-direction: column; gap: 40px; }
    .contact-info { width: 100%; text-align: center; }
    .contact-info h2 { font-size: 32px; }
    .form-row { flex-direction: column; gap: 20px; }
    input, select, textarea { font-size: 16px !important; }
    .carousel-part { margin-top: 50px !important; padding-bottom: 50px; }
    .carousel-container-relative { width: 100%; overflow: hidden; }
    .carousel-wrapper { width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 20px; }
    .carousel-track { display: flex; gap: 15px; width: max-content; padding: 0 20px; transform: none !important; }
    .segment-card { min-width: 280px; margin: 0; }
    .nav-arrow { display: none !important; }
    .left-group { z-index: 30 !important; }
    .right-group { z-index: 20 !important; }

} /* <--- FIM DA REGRA MOBILE (AQUI ESTAVA O ERRO ANTES) */


/* =========================================
   RODAPÉ / FOOTER (FORA DE TUDO)
   ========================================= */
footer {
    background-color: #000 !important;
    padding: 30px 20px;
    border-top: 1px solid #1a1a1a;
    width: 100%;
    margin-top: 50px;
    position: relative;
    z-index: 10;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    
    /* A MUDANÇA ESTÁ AQUI: */
    justify-content: center; /* Centraliza o bloco todo */
    gap: 40px;               /* Dá um espaço bom entre o Copyright e o Link */
    
    align-items: center;
}

footer p {
    color: #666;
    margin: 0;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
}

.privacy-link {
    color: #fff;
    text-decoration: none;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    transition: color 0.3s;
}

.privacy-link:hover {
    color: #7b6d44;
}

/* Ajuste específico do rodapé para celular */
@media (max-width: 600px) {
    .footer-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}