/* Reset Básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

:root {
    --bg-color: #070414;
    --text-main: #f8fafc;
    --text-muted: #94a3b8;
    --gradient-kortex: linear-gradient(135deg, #7c3aed, #2563eb);
    --primary-solid: #7c3aed; 
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden; 
}

#particles-js {
    position: absolute;
    width: 100%;
    height: 100vh;
    background-color: transparent;
    z-index: 1; 
}

.content-wrapper {
    position: relative;
    z-index: 2; 
}

/* Navegação */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: rgba(7, 4, 20, 0.9);
    position: sticky;
    top: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    z-index: 100;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.logo span {
    color: var(--primary-solid);
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 24px;
}

.nav-links a {
    color: var(--text-main);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-solid);
}

.btn-outline {
    text-decoration: none;
    color: var(--text-main);
    border: 1px solid var(--text-main);
    padding: 8px 20px;
    border-radius: 999px;
    font-size: 0.9rem;
    transition: 0.3s;
}

.btn-outline:hover {
    background-color: var(--text-main);
    color: var(--bg-color);
}

/* Hero Section */
.hero {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 5%;
}

.hero-content {
    max-width: 800px;
}

.hero-kicker {
    margin-bottom: 25px;
}

.hero h1 {
    font-size: 3.8rem;
    font-weight: 800;
    line-height: 1.15;
    margin-bottom: 20px;
    letter-spacing: -0.01em;
}

.hero .highlight {
    background: var(--gradient-kortex);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 40px;
    padding: 0 20px;
}

.btn-primary {
    text-decoration: none;
    background: var(--gradient-kortex);
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.3s;
    display: inline-block;
    border: none;
    box-shadow: 0 4px 15px rgba(124, 58, 237, 0.4);
    cursor: pointer;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(124, 58, 237, 0.6);
}

/* Seções Gerais */
.services, .cases-section, .process, .contact, .team-section, .guarantee-section, .faq-section {
    padding: 100px 5%;
    position: relative;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.section-header p {
    color: var(--text-muted);
    font-size: 1.1rem;
    max-width: 700px;
    margin: 0 auto;
}

/* Grid Serviços */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 40px 30px;
    border-radius: 15px;
    transition: transform 0.3s, box-shadow 0.3s;
    backdrop-filter: blur(10px);
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: rgba(124, 58, 237, 0.5);
}

/* GRID DE CASES (PORTFÓLIO) */
.cases-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.case-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    overflow: hidden;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.wide-case {
    grid-column: span 2;
}

.case-images-triple {
    display: flex;
    height: 300px;
    gap: 5px;
    background-color: #000;
}

.case-images-triple img {
    width: 33.33%;
    object-fit: cover;
    object-position: top;
    transition: transform 0.5s;
    cursor: pointer;
}

.case-images-wrapper.single-img {
    height: 300px;
}

.case-images-wrapper.single-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.5s;
    cursor: pointer;
}

.case-card:hover img {
    transform: scale(1.03);
}

.case-content {
    padding: 30px;
}

.case-content .tag {
    background: rgba(124, 58, 237, 0.2);
    color: #a78bfa;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 15px;
}

.case-content h3 {
    margin-bottom: 15px;
}

.case-content p {
    color: var(--text-muted);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

/* POPUP DE IMAGEM */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(5, 3, 13, 0.95);
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(8px);
}

.modal-content {
    max-width: 90%;
    max-height: 85vh;
    border-radius: 8px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
    object-fit: contain;
    animation: zoomIn 0.2s ease-out;
}

.close-modal {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--text-main);
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.close-modal:hover { color: var(--primary-solid); }

@keyframes zoomIn {
    from { transform: scale(0.95); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* TIMELINE PROCESSO */
.process {
    background-color: rgba(255, 255, 255, 0.02);
}

.timeline-v2 {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
    padding: 50px 0;
}

.timeline-line-v2 {
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.05);
    transform: translateX(-50%);
    overflow: hidden;
}

.timeline-line-v2::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent, #7c3aed, #2563eb, transparent);
    animation: dropLaser 3s infinite linear;
}

@keyframes dropLaser {
    0% { transform: translateY(-100%); }
    100% { transform: translateY(100%); }
}

.timeline-step {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 80px;
    position: relative;
}

.timeline-step:last-child { margin-bottom: 0; }

.step-empty, .step-content { width: 40%; }
.step-content.left { text-align: right; }
.step-content.right { text-align: left; }

.step-node {
    width: 120px;
    height: 120px;
    background: var(--bg-color);
    border: 2px dashed rgba(124, 58, 237, 0.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    box-shadow: 0 0 30px rgba(124, 58, 237, 0.1);
    position: relative;
    transition: 0.3s;
}

.step-node i {
    font-size: 40px;
    color: #a78bfa;
    animation: floatIcon 3s ease-in-out infinite;
}

.step-node:hover {
    border-style: solid;
    border-color: var(--primary-solid);
    box-shadow: 0 0 40px rgba(124, 58, 237, 0.4);
    transform: scale(1.05);
}

@keyframes floatIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-5px); }
}

.step-content .phase {
    display: block;
    color: #7c3aed;
    font-weight: 800;
    letter-spacing: 2px;
    font-size: 0.85rem;
    margin-bottom: 5px;
}

.step-content h3 {
    font-size: 3rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.1;
    margin-bottom: 10px;
}

.step-content .time {
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* NOVO: GARANTIA E ESCALA ANIMADA */
.guarantee-section {
    display: flex;
    justify-content: center;
}

.guarantee-container {
    background: linear-gradient(145deg, #0d0a20, #070414);
    border: 1px solid rgba(124, 58, 237, 0.15);
    border-radius: 20px;
    max-width: 1200px;
    width: 100%;
    padding: 60px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), inset 0 0 40px rgba(124, 58, 237, 0.05);
}

.guarantee-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 50px;
    margin-bottom: 60px;
}

.guarantee-text {
    flex: 1;
}

.tag-glow {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #a78bfa;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 20px;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.guarantee-text h2 {
    font-size: 4rem;
    line-height: 1.1;
    font-weight: 800;
}

/* Gráfico Animado (Radar / Barras) */
.guarantee-visual {
    width: 350px;
    height: 350px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.radar-circle {
    width: 300px;
    height: 300px;
    border-radius: 50%;
    border: 1px dashed rgba(124, 58, 237, 0.3);
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 40px;
    background: radial-gradient(circle, rgba(124, 58, 237, 0.1) 0%, transparent 70%);
}

.radar-sweep {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150px;
    height: 150px;
    background: conic-gradient(from 0deg, transparent 70%, rgba(124, 58, 237, 0.4) 100%);
    border-radius: 100% 0 0 0;
    transform-origin: bottom right;
    animation: sweep 4s infinite linear;
}

@keyframes sweep {
    from { transform: translate(-100%, -100%) rotate(0deg); }
    to { transform: translate(-100%, -100%) rotate(360deg); }
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    gap: 10px;
    z-index: 2;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    padding-bottom: 5px;
}

.bar {
    width: 35px;
    background: var(--gradient-kortex);
    border-radius: 4px 4px 0 0;
    box-shadow: 0 0 15px rgba(124, 58, 237, 0.5);
}

.bar-1 { height: 40px; animation: growBar 3s infinite alternate ease-in-out; }
.bar-2 { height: 70px; animation: growBar 3.5s infinite alternate ease-in-out; }
.bar-3 { height: 100px; animation: growBar 2.5s infinite alternate ease-in-out; }
.bar-4 { height: 60px; animation: growBar 4s infinite alternate ease-in-out; }

@keyframes growBar {
    0% { transform: scaleY(0.8); transform-origin: bottom; }
    100% { transform: scaleY(1.2); transform-origin: bottom; }
}

.guarantee-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 40px;
}

.g-num {
    color: var(--primary-solid);
    font-family: monospace;
    font-weight: 800;
    font-size: 1.2rem;
    display: block;
    margin-bottom: 10px;
}

.guarantee-item h4 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.guarantee-item p {
    color: var(--text-muted);
    font-size: 0.95rem;
}

/* SEÇÃO DO FUNDADOR */
.team-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
}

.team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 30px;
    width: 100%;
    max-width: 1100px;
}

.team-card {
    display: flex;
    flex-direction: column;
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.02);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    transition: transform 0.3s, border-color 0.3s;
}

.team-card:hover {
    transform: translateY(-8px);
    border-color: rgba(124, 58, 237, 0.3);
}

.team-avatar {
    min-height: 280px;
    overflow: hidden;
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.95), rgba(37, 99, 235, 0.95));
}

.team-avatar img {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    object-position: top center;
    display: block;
    transition: transform 0.5s;
}

.team-card:hover .team-avatar img {
    transform: scale(1.04);
}

.team-info {
    padding: 30px;
    text-align: left;
}

.team-info h3 {
    color: #ffffff;
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 10px;
}

.team-info p {
    color: #cbd5e1;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 12px;
}

.team-info p:first-of-type {
    color: var(--text-main);
    font-weight: 700;
    margin-bottom: 10px;
}

/* NOVO: PERGUNTAS FREQUENTES (FAQ) */
.faq-section {
    background-color: rgba(255, 255, 255, 0.01);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
}

.faq-item summary {
    padding: 25px 30px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none; /* Remove seta padrão */
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--primary-solid);
    transition: transform 0.3s;
}

.faq-item[open] summary { border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.faq-item[open] summary::after { transform: rotate(45deg); }

.faq-content {
    padding: 25px 30px;
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.6;
    background: rgba(0, 0, 0, 0.2);
}

/* Contato */
.contact-container {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255, 255, 255, 0.03);
    padding: 50px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.contact-form input, .contact-form textarea {
    padding: 15px;
    background: #000;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    border-radius: 5px;
    outline: none;
    font-size: 1rem;
}

.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary-solid); }

.inline-link { color: #a78bfa; font-weight: 600; text-decoration: underline; }
.inline-link:hover { color: var(--primary-solid); }

/* WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 40px;
    right: 40px;
    background: #25d366;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3);
    z-index: 1000;
    transition: 0.3s;
}

.whatsapp-float:hover { transform: scale(1.1); }

footer {
    text-align: center;
    padding: 40px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
}

/* Responsividade (Ajustes para Celular) */
@media (max-width: 900px) {
    .cases-grid { grid-template-columns: 1fr; }
    .wide-case { grid-column: span 1; }
    .case-images-triple { height: 180px; }
    .hero h1 { font-size: 2.5rem; }
    .close-modal { top: 20px; right: 25px; font-size: 35px; }
    
    .timeline-line-v2 { left: 50px; }
    .timeline-step { flex-direction: row; justify-content: flex-start; gap: 30px; margin-bottom: 50px;}
    .step-empty { display: none; }
    .step-node { width: 80px; height: 80px; min-width: 80px; margin-left: 10px;}
    .step-node i { font-size: 25px; }
    .step-content { width: auto; text-align: left !important; }
    .step-content h3 { font-size: 2rem; }

    /* Ajustes Garantia Mobile */
    .guarantee-container { padding: 40px 20px; }
    .guarantee-top { flex-direction: column; text-align: center; }
    .guarantee-text h2 { font-size: 2.5rem; }
    .guarantee-bottom { grid-template-columns: 1fr; gap: 30px; }

    .nav-links { display: none; }
    .team-grid { grid-template-columns: 1fr; }
    .team-avatar, .team-avatar img { min-height: 220px; }
}