/* ==========================================
   1. VARIÁVEIS, RESET E CONFIGURAÇÕES GERAIS
   ========================================== */
:root {
    --cyan: #00B2B2;
    --cyan-hover: #00C8B3;
    --cobalt: #254EDB;
    --cobalt-dark: #1E3A8A;
    --silver: #E5E7EB;
    --gray-muted: #9CA3AF;
    --bg-dark: #111720;
    --bg-card: #1B2430;
    --bg-card-hover: #232E3D;
    --font-main: 'Source Sans Pro', sans-serif;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-dark);
    color: var(--silver);
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5 {
    color: #FFFFFF;
    font-weight: 700;
}

a {
    color: var(--cyan);
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: var(--cyan-hover);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ==========================================
   2. BOTÕES E ELEMENTOS DE AÇÃO
   ========================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, var(--cobalt), var(--cyan));
    color: #FFFFFF;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 178, 178, 0.3);
    color: #FFFFFF;
}

.btn-secondary {
    background-color: transparent;
    border: 1px solid var(--cyan);
    color: var(--cyan);
}

.btn-secondary:hover {
    background-color: var(--cyan);
    color: var(--bg-dark);
}

.btn-outline {
    border: 1px solid rgba(229, 231, 235, 0.3);
    color: var(--silver);
}

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

.btn-full {
    width: 100%;
    justify-content: center;
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.mobile-menu-cta {
    display: none;
}

/* ==========================================
   3. CABEÇALHO GLOBAL (HEADER)
   ========================================== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: rgba(17, 23, 32, 0.95);
    backdrop-filter: blur(10px);
    z-index: 1000;
    border-bottom: 1px solid rgba(229, 231, 235, 0.1);
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.2rem;
    color: var(--silver);
}

.logo-icon {
    color: var(--cyan);
    font-size: 1.5rem;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-menu a {
    color: var(--silver);
    font-size: 0.95rem;
}

.nav-menu a:hover, .nav-menu a.active {
    color: var(--cyan);
}

.mobile-toggle {
    display: none;
}

/* ==========================================
   4. HERO SECTION
   ========================================== */
.hero {
    padding: 140px 0 60px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
    margin-bottom: 40px;
}

.hero-tag {
    display: inline-block;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--cyan);
    margin-bottom: 15px;
    font-weight: 600;
}

.hero-title {
    font-size: 2.8rem;
    line-height: 1.2;
    background: linear-gradient(180deg, #FFFFFF, var(--silver));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--gray-muted);
    margin-bottom: 25px;
}

.hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.hero-banner-container {
    background: linear-gradient(135deg, var(--bg-card), var(--bg-card-hover));
    padding: 30px;
    border-radius: 12px;
    border-left: 4px solid var(--cyan);
    border: 1px solid rgba(229, 231, 235, 0.05);
}

.hero-banner-content h3 {
    margin-bottom: 8px;
    font-size: 1.2rem;
}

.hero-banner-content p {
    color: var(--gray-muted);
    font-size: 0.95rem;
}

/* ==========================================
   5. BENTO GRID & PORTFÓLIO DE SERVIÇOS
   ========================================== */
.services, .differentials, .segments-section, .about, .contact {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-header p {
    color: var(--gray-muted);
}

.bento-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.bento-card {
    background-color: var(--bg-card);
    border-radius: 12px;
    padding: 30px;
    border: 1px solid rgba(229, 231, 235, 0.05);
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
}

.bento-card:hover {
    transform: translateY(-5px);
    background-color: var(--bg-card-hover);
}

.bento-large, .bento-full {
    grid-column: span 3;
}

.card-icon {
    font-size: 2rem;
    color: var(--cyan);
    margin-bottom: 15px;
}

.card-badge {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--cyan);
    background: rgba(0, 178, 178, 0.1);
    padding: 4px 10px;
    border-radius: 12px;
    margin-bottom: 10px;
    width: fit-content;
}

.bento-card h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
}

.bento-card p {
    color: var(--gray-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.sub-services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.sub-service-item {
    background: rgba(17, 23, 32, 0.5);
    padding: 15px;
    border-radius: 8px;
    border: 1px solid rgba(229, 231, 235, 0.05);
}

.sub-service-item h4 {
    font-size: 0.95rem;
    margin-bottom: 6px;
    color: var(--cyan);
}

.sub-service-item p {
    font-size: 0.85rem;
    color: var(--gray-muted);
}

.profiles-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.tag {
    background: rgba(37, 78, 219, 0.2);
    border: 1px solid var(--cobalt);
    color: var(--silver);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ==========================================
   6. ROADMAP (PREVIEW NA HOME)
   ========================================== */
.roadmap-preview-section {
    padding: 80px 0;
    background: linear-gradient(180deg, var(--bg-dark) 0%, rgba(0, 178, 178, 0.05) 50%, var(--bg-dark) 100%);
    border-top: 1px solid rgba(229, 231, 235, 0.05);
    border-bottom: 1px solid rgba(229, 231, 235, 0.05);
}

.roadmap-steps-preview {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    margin-bottom: 40px;
}

.preview-step-card {
    background: var(--bg-card);
    padding: 24px 18px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.08);
    position: relative;
    transition: transform 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}

.preview-step-card:hover {
    transform: translateY(-5px);
    border-color: var(--cyan);
    background: var(--bg-card-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.preview-step-card .step-num {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--cyan);
    margin-bottom: 10px;
    line-height: 1;
}

.preview-step-card h4 {
    font-size: 1.05rem;
    margin-bottom: 8px;
}

.preview-step-card p {
    font-size: 0.85rem;
    color: var(--gray-muted);
    line-height: 1.4;
}

.roadmap-cta-container {
    text-align: center;
}

/* ==========================================
   7. ROADMAP (PÁGINA DEDICADA INTERATIVA)
   ========================================== */
.roadmap-hero {
    padding: 120px 0 30px 0;
    text-align: center;
    background: radial-gradient(circle at top, rgba(0, 178, 178, 0.15) 0%, transparent 70%);
}

.roadmap-hero h1 {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.roadmap-hero p {
    max-width: 700px;
    margin: 0 auto 15px;
    color: var(--gray-muted);
    font-size: 0.95rem;
}

.instruction-banner {
    background: rgba(0, 178, 178, 0.12);
    border: 1px dashed var(--cyan);
    color: var(--cyan-hover);
    padding: 10px 16px;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 25px;
}

.filter-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.filter-btn {
    background: var(--bg-card);
    border: 1px solid rgba(229, 231, 235, 0.15);
    color: var(--silver);
    padding: 10px 18px;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-btn:hover, .filter-btn.active {
    background: linear-gradient(135deg, var(--cobalt), var(--cyan));
    color: #FFFFFF;
    border-color: transparent;
    box-shadow: 0 4px 12px rgba(0, 178, 178, 0.35);
}

.roadmap-timeline {
    position: relative;
    padding: 20px 0;
    margin-bottom: 40px;
}

.roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, var(--cyan), var(--cobalt));
    border-radius: 2px;
}

.roadmap-step {
    position: relative;
    margin-bottom: 25px;
    width: 100%;
    padding-left: 55px;
    cursor: pointer;
}

.step-node {
    position: absolute;
    left: 0;
    top: 0;
    width: 40px;
    height: 40px;
    background: var(--bg-dark);
    border: 3px solid var(--cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-weight: 700;
    z-index: 10;
    transition: all 0.3s ease;
}

.roadmap-step:hover .step-node, .roadmap-step.active .step-node {
    background: var(--cyan);
    box-shadow: 0 0 12px var(--cyan);
}

.step-card {
    background: var(--bg-card);
    padding: 20px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.08);
    transition: all 0.3s ease;
}

.roadmap-step:hover .step-card, .roadmap-step.active .step-card {
    border-color: var(--cyan);
    transform: translateY(-3px);
    background-color: var(--bg-card-hover);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.step-badge {
    display: inline-block;
    background: rgba(0, 178, 178, 0.15);
    color: var(--cyan-hover);
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: 15px;
    margin-bottom: 8px;
    font-weight: 600;
}

.click-action-trigger {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 178, 178, 0.1);
    color: var(--cyan-hover);
    font-size: 0.8rem;
    font-weight: 700;
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--cyan);
}

.details-panel {
    background: var(--bg-card);
    border: 2px solid var(--cyan);
    border-radius: 14px;
    padding: 24px;
    margin: 20px 0 60px;
    display: none;
    box-shadow: 0 10px 30px rgba(0, 178, 178, 0.2);
}

.details-panel.active {
    display: block;
}

.panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(229, 231, 235, 0.1);
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.panel-header h2 {
    color: var(--cyan-hover);
    font-size: 1.3rem;
}

.panel-close {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #FFFFFF;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    line-height: 1;
}

.deliverables-list {
    list-style: none;
}

.deliverables-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 10px;
    color: var(--silver);
    font-size: 0.92rem;
}

.deliverables-list li::before {
    content: '\f00c';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    left: 0;
    color: var(--cyan);
}

.cta-box {
    background: rgba(37, 78, 219, 0.15);
    border: 1px solid var(--cobalt);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
}

/* ==========================================
   8. DIFERENCIAIS, SEGMENTOS & CONTATO
   ========================================== */
.diff-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.diff-card {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid rgba(229, 231, 235, 0.05);
}

.diff-icon {
    font-size: 2.2rem;
    color: var(--cobalt);
    margin-bottom: 15px;
}

.segments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 15px;
}

.segment-item {
    background: var(--bg-card);
    padding: 18px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
    border: 1px solid rgba(229, 231, 235, 0.05);
}

.segment-item i {
    color: var(--cyan);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-form-container, .contact-info {
    background: var(--bg-card);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid rgba(229, 231, 235, 0.05);
}

.contact-form {
    margin-top: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.85rem;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid rgba(229, 231, 235, 0.2);
    background-color: var(--bg-dark);
    color: var(--silver);
    font-family: var(--font-main);
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    outline: none;
    border-color: var(--cyan);
}

.form-status {
    margin-top: 15px;
    font-size: 0.9rem;
    text-align: center;
}

.info-list {
    list-style: none;
    margin: 20px 0;
}

.info-list li {
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.info-list i {
    color: var(--cyan);
}

.contact-card-highlight {
    background: rgba(0, 178, 178, 0.1);
    border: 1px solid var(--cyan);
    padding: 15px;
    border-radius: 8px;
}

/* ==========================================
   9. RODAPÉ (FOOTER)
   ========================================== */
.footer {
    background-color: #0B0F15;
    padding: 50px 0 20px 0;
    border-top: 1px solid rgba(229, 231, 235, 0.05);
}

.footer-container {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 30px;
    margin-bottom: 30px;
}

.footer-info h4 {
    color: var(--cyan);
    margin-bottom: 10px;
}

.footer-info p {
    color: var(--gray-muted);
    font-size: 0.85rem;
}

.footer h5 {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.footer ul {
    list-style: none;
}

.footer ul li {
    margin-bottom: 8px;
}

.footer ul li a {
    color: var(--gray-muted);
    font-size: 0.85rem;
}

.footer ul li a:hover {
    color: var(--silver);
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icons a {
    font-size: 1.2rem;
    color: var(--silver);
}

.footer-bottom {
    text-align: center;
    font-size: 0.8rem;
    color: var(--gray-muted);
    border-top: 1px solid rgba(229, 231, 235, 0.05);
    padding-top: 20px;
}

/* ==========================================
   10. REVELAÇÃO E ANIMAÇÕES DE SCROLL
   ========================================== */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.5, 0, 0, 1), transform 0.6s cubic-bezier(0.5, 0, 0, 1);
}

.reveal.active, body:not(.js-loaded) .reveal {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

/* ==========================================
   11. ADAPTAÇÕES RESPONSIVAS & MOBILE-FIRST
   ========================================== */
@media (min-width: 769px) {
    .roadmap-timeline::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .roadmap-step {
        width: 50%;
        padding: 0 35px;
    }

    .roadmap-step.left {
        left: 0;
        text-align: right;
    }

    .roadmap-step.right {
        left: 50%;
        text-align: left;
    }

    .roadmap-step.left .step-node {
        right: -20px;
        left: auto;
    }

    .roadmap-step.right .step-node {
        left: -20px;
    }

    .panel-grid {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 25px;
        align-items: start;
    }
}

@media (max-width: 1024px) {
    .roadmap-steps-preview {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    /* Oculta botão fora do menu no mobile */
    .header-container > .nav-cta {
        display: none !important;
    }

    /* Estilização do Botão Hambúrguer Mobile */
    .mobile-toggle {
        display: flex !important;
        align-items: center;
        justify-content: center;
        background: transparent;
        border: 1px solid rgba(0, 178, 178, 0.4);
        color: var(--cyan);
        width: 42px;
        height: 42px;
        border-radius: 8px;
        font-size: 1.3rem;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .mobile-toggle:active {
        background: rgba(0, 178, 178, 0.2);
    }

    /* Gaveta de Navegação Mobile */
    .nav-menu {
        display: none;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background-color: #111720;
        flex-direction: column;
        align-items: stretch;
        padding: 20px 24px;
        gap: 12px;
        border-bottom: 2px solid var(--cyan);
        box-shadow: 0 12px 30px rgba(0, 0, 0, 0.7);
        z-index: 1000;
    }

    .nav-menu.active {
        display: flex !important;
    }

    .nav-menu a {
        padding: 10px 0;
        border-bottom: 1px solid rgba(229, 231, 235, 0.08);
        font-size: 1rem;
        color: var(--silver);
    }

    /* Botão CTA dentro do menu suspenso */
    .mobile-menu-cta {
        display: inline-flex !important;
        margin-top: 10px;
        width: 100%;
        justify-content: center;
        border-bottom: none !important;
    }

    /* Layouts de conteúdo no mobile */
    .hero-grid, .contact-grid, .footer-container {
        grid-template-columns: 1fr;
    }
    
    .bento-grid, .diff-grid {
        grid-template-columns: 1fr;
    }

    .bento-large, .bento-full {
        grid-column: span 1;
    }
}

@media (max-width: 640px) {
    .roadmap-steps-preview {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }
}
