/* ==========================================================================
   1. CONFIGURAÇÕES GLOBAIS (Variáveis, Reset, Base)
   ========================================================================== */

:root {
    /* --- Paleta de Cores Principal --- */
    --color-background: #0A192F;      /* Azul-marinho quase preto */
    --color-card-bg: #112240;         /* Fundo de cards/seções levemente mais claro */
    --color-text-primary: #CCD6F6;    /* Texto principal (Branco/Cinza claro) */
    --color-text-secondary: #8892B0;  /* Texto secundário (Cinza azulado) */
    
    /* --- Cores de Ação/Destaque --- */
    --azul-marca: #2084c6;
    --color-accent: var(--azul-marca); /* Cor principal dos botões e links */
    
    /* --- Cores Específicas (FAQ/Target) --- */
    --faq-bg-color: #0a0a0a;          /* Fundo ultra-dark para seções de destaque */
    --faq-card-bg: #171717;           /* Cards nessas seções */
    --faq-accent: #3b82f6;            /* Azul um pouco mais vivo para interações */
    --faq-text-muted: #a1a1aa;

    /* --- Tipografia --- */
    --font-family-headings: 'Playfair Display', serif;
    --font-family-body: 'Inter', sans-serif;

    /* --- Layout & Espaçamento --- */
    --spacing-md: 1.5rem;
    --spacing-lg: 3rem;
    --header-height: 80px;
    --faq-border-radius: 8px;

    /* --- Animações --- */
    --transition-speed: 300ms;
}

/* Reset Básico */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 100%; /* 16px base */
}

body {
    background-color: var(--color-background);
    color: var(--color-text-primary);
    font-family: var(--font-family-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased; /* Fontes mais nítidas no Mac/iOS */
    overflow-x: hidden; /* Evita scroll horizontal indesejado */
}

/* Utilitários de Mídia */
img {
    max-width: 100%;
    display: block;
}

a {
    color: var(--color-accent);
    text-decoration: none;
    transition: color var(--transition-speed) ease;
}

a:hover {
    color: white;
}

ul {
    list-style: none;
}

/* Bloqueio de scroll (usado pelo menu mobile) */
body.no-scroll {
    overflow: hidden;
}


/* ==========================================================================
   2. COMPONENTES E UTILITÁRIOS (Botões, Títulos, Containers)
   ========================================================================== */

/* Container Responsivo Global */
.container, 
.msky-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
    width: 100%;
}

/* Títulos de Seção */
.section-title,
.msky-target-header h2,
.msky-faq-header h2 {
    font-family: var(--font-family-headings);
    font-size: clamp(2rem, 5vw, 3rem); /* Responsivo: min 2rem, ideal 5vw, max 3rem */
    color: var(--color-text-primary);
    text-align: center;
    margin-bottom: var(--spacing-md);
    font-weight: 700;
}

/* Subtítulos e Textos de Apoio */
.section-subtitle {
    font-size: 1.25rem;
    color: var(--color-accent);
    text-align: center;
    margin-bottom: var(--spacing-lg);
    font-family: var(--font-family-body);
}

.section-text,
.msky-target-header p,
.msky-faq-header p {
    font-size: 1.125rem;
    max-width: 650px;
    margin: 0 auto;
    color: var(--color-text-secondary); /* Usa var(--faq-text-muted) se preferir mais escuro */
    text-align: center;
    line-height: 1.6;
}

/* Botões */
.button {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: 1px solid var(--color-accent);
    border-radius: 4px;
    font-family: var(--font-family-body);
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
}

.button--primary {
    background-color: transparent;
    color: var(--color-accent);
}

.button--primary:hover {
    background-color: rgba(100, 255, 218, 0.1); /* Efeito glow sutil */
    color: var(--color-accent);
}

/* Padrão de Seção */
section {
    padding: 6rem 0; /* Padronizado */
}


/* ==========================================================================
   3. HEADER E NAVEGAÇÃO
   ========================================================================== */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: var(--header-height);
    background-color: transparent;
    backdrop-filter: blur(0px);
    z-index: 100;
    transition: top var(--transition-speed) ease-in-out,
                background-color var(--transition-speed) ease-in-out,
                backdrop-filter var(--transition-speed) ease-in-out;
}

.header.header--scrolled {
    background-color: rgba(10, 25, 47, 0.85);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px -10px rgba(2, 12, 27, 0.7);
}

.header__container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.header__logo {
    font-weight: bold;
    font-size: 1.5rem;
}

.header__logo img {
    width: 120px;
    height: auto;
}

.header__nav ul {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
}

.header__nav-link--cta {
    border: 1px solid var(--color-accent);
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.header__nav-link--cta:hover {
    background-color: rgba(100, 255, 218, 0.1);
}

/* Menu Mobile (Hambúrguer) */
.header__mobile-toggle {
    display: none; /* Desktop first: oculto */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 101;
}

.hamburger {
    display: block;
    position: relative;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.25s ease-in-out;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background-color: var(--color-text-primary);
    transition: all 0.25s ease-in-out;
}

.hamburger::before { transform: translateY(-8px); }
.hamburger::after { transform: translateY(8px); }


/* ==========================================================================
   4. SEÇÃO HERO (Vídeo Background)
   ========================================================================== */

.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-height);
    position: relative;
    overflow: hidden;
}

.hero__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero__video-container::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 25, 47, 0.7); /* Overlay escuro */
}

.hero__video-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.hero__container {
    text-align: center;
    max-width: 800px;
    position: relative;
    z-index: 1;
}

.hero__title {
    font-family: var(--font-family-headings);
    font-size: clamp(3rem, 7vw, 4.5rem);
    line-height: 1.1;
    margin-bottom: var(--spacing-md);
}

.hero__subtitle {
    font-size: 1.25rem;
    color: var(--color-text-secondary);
    margin-bottom: var(--spacing-lg);
}

.hero__microcopy {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}


/* ==========================================================================
   5. SEÇÕES DE CONTEÚDO (Solution, Deliverable, Projects)
   ========================================================================== */

/* Seção A Solução */
.solution__container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-lg);
}

.solution__content {
    max-width: 550px;
    text-align: left;
}

.solution__content .section-title,
.solution__content .section-text {
    text-align: left;
}

.solution__content .section-text { margin: 0; }

.solution__visual {
    width: 250px;
    height: 250px;
}

.abstract-shape img {
    width: 100%;
    height: 100%;
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    opacity: 0.5;
}

/* Seção Entregáveis (Deliverables) */
.deliverable__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
    margin-top: var(--spacing-lg);
}

.deliverable__item {
    background-color: var(--color-card-bg);
    padding: var(--spacing-md);
    border-radius: 4px;
    border-left: 3px solid var(--color-accent);
}

.deliverable__item-title {
    font-family: var(--font-family-body);
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-text-primary);
}

.deliverable__item p { color: var(--color-text-secondary); }

/* Seção Projetos (Grid de Imagens) */
.projects__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--spacing-md);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    display: block;
}

.project-card__image {
    width: 100%;
    height: auto;
    transition: transform 400ms ease;
}

.project-card__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(10, 25, 47, 0.95), rgba(10, 25, 47, 0.2));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: var(--spacing-md);
    opacity: 1;
    transition: opacity var(--transition-speed) ease;
}

.project-card:hover .project-card__image { transform: scale(1.05); }

.project-card__title,
.project-card__link {
    font-size: 1.5rem;
    color: var(--color-text-primary);
    transform: translateY(20px);
    opacity: 0;
    transition: all var(--transition-speed) ease;
}

.project-card__link {
    font-size: 1rem;
    color: var(--color-accent);
    transition-delay: 100ms;
}

.project-card:hover .project-card__title,
.project-card:hover .project-card__link {
    transform: translateY(0);
    opacity: 1;
}


/* ==========================================================================
   6. SEÇÃO PROCESSO (Timeline)
   ========================================================================== */

.process__timeline {
    position: relative;
    max-width: 400px;
    margin: 4rem auto 0;
}

.process__timeline::after {
    content: '';
    position: absolute;
    width: 2px;
    background-color: var(--color-card-bg);
    top: 0;
    bottom: 0;
    left: 20px;
    z-index: -1;
}

.process__step {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.process__step-number {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: grid;
    place-items: center;
    background-color: var(--color-card-bg);
    color: var(--color-accent);
    border: 2px solid var(--color-accent);
    border-radius: 50%;
    font-weight: bold;
    z-index: 1;
}

.process__step-title {
    font-family: var(--font-family-body);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.process__step-content p { color: var(--color-text-secondary); }


/* ==========================================================================
   7. SEÇÕES NOVAS (Público-Alvo, Investimento & FAQ)
   ========================================================================== */

/* Estilo Base para as seções extras */
.msky-target-section,
.msky-faq-section {
    padding: 80px 20px;
    background-color: var(--faq-bg-color);
}

.msky-target-header,
.msky-faq-header {
    margin-bottom: 60px;
}

/* Público-Alvo (Cards) */
.msky-target-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.target-card {
    background-color: var(--faq-card-bg);
    padding: 32px 24px;
    border-radius: var(--faq-border-radius);
    border: 1px solid #333;
    transition: transform 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.target-card:hover {
    transform: translateY(-5px);
    border-color: var(--faq-accent);
}

.card-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 20px;
    color: var(--faq-accent);
}

.target-card h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--color-text-primary);
}

.target-card p {
    font-size: 0.95rem;
    color: var(--faq-text-muted);
    line-height: 1.5;
}

/* Investimento (Preço) */
.investment-card {
    background-color: var(--color-card-bg);
    padding: var(--spacing-lg);
    border-radius: 8px;
    max-width: 500px;
    margin: 0 auto;
    text-align: center;
    border: 1px solid #1d335a;
}

.investment-card__name {
    font-size: 1.5rem;
    color: var(--color-accent);
    margin: 1rem 0;
}

.investment-card__price {
    font-size: 2.5rem;
    font-weight: bold;
    font-family: var(--font-family-headings);
    margin-bottom: var(--spacing-md);
}

.investment-card__features {
    text-align: left;
    max-width: 300px;
    margin: 0 auto var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

/* Seção CTA */
.cta__container {
    text-align: center;
}

/* FAQ (Accordion) */
.msky-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background-color: var(--faq-card-bg);
    border-radius: var(--faq-border-radius);
    overflow: hidden;
    border: 1px solid #333;
    transition: border-color 0.3s ease;
}

.faq-item:hover { border-color: var(--faq-accent); }

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 20px 24px;
    text-align: left;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    color: var(--color-text-primary); /* Ajustado para usar variável global */
    font-size: 1.1rem;
    font-weight: 500;
    transition: color 0.3s ease;
}

.faq-question:hover { color: var(--faq-accent); }

.faq-icon {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
    line-height: 1;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
    color: var(--faq-accent);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    padding: 0 24px;
}

.faq-answer p {
    padding-bottom: 24px;
    color: var(--faq-text-muted);
    line-height: 1.6;
    margin: 0;
}


/* ==========================================================================
   8. FOOTER
   ========================================================================== */

.footer {
    padding: var(--spacing-md) 0;
    text-align: center;
}

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

.footer__social {
    display: flex;
    gap: 1.5rem;
}

.footer__copy {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
}


/* ==========================================================================
   9. MEDIA QUERIES (Responsividade)
   ========================================================================== */

/* --- TABLET E DESKTOP (min-width: 768px) --- */
@media (min-width: 768px) {
    /* Grids de duas colunas */
    .solution__container {
        flex-direction: row;
        justify-content: space-between;
    }

    .deliverable__grid,
    .projects__grid,
    .msky-target-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    /* Processo Horizontal */
    .process__timeline {
        display: flex;
        justify-content: space-between;
        max-width: 100%;
    }

    .process__timeline::after {
        width: 100%;
        height: 2px;
        top: 20px;
        left: 0;
        bottom: auto;
    }

    .process__step {
        flex-direction: column;
        align-items: center;
        text-align: center;
        margin-bottom: 0;
        max-width: 200px;
    }

    .process__step-content { margin-top: var(--spacing-md); }
}

/* --- DESKTOP LARGE (min-width: 1024px) --- */
@media (min-width: 1024px) {
    .msky-target-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 colunas para cards */
    }
}

/* --- MOBILE ONLY (max-width: 768px) --- */
@media (max-width: 768px) {
    /* Menu Lateral */
    .header__nav {
        position: fixed;
        top: 0;
        right: 0;
        width: min(75vw, 400px);
        height: 100vh;
        background-color: var(--color-card-bg);
        transform: translateX(100%);
        transition: transform var(--transition-speed) ease-in-out;
        z-index: 99;
        box-shadow: -10px 0px 30px -15px rgba(2, 12, 27, 0.7);
    }

    .header__nav.is-open { transform: translateX(0); }

    .header__nav ul {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        gap: var(--spacing-lg);
    }

    .header__nav-link { font-size: 1.25rem; }

    /* Botão Hambúrguer visível */
    .header__mobile-toggle { display: block; }

    /* Animação do "X" */
    .header__mobile-toggle[aria-expanded="true"] .hamburger { background-color: transparent; }
    .header__mobile-toggle[aria-expanded="true"] .hamburger::before { transform: rotate(45deg); }
    .header__mobile-toggle[aria-expanded="true"] .hamburger::after { transform: rotate(-45deg); }

    /* Container de projetos e outros grids viram 1 coluna (padrão do CSS base, mas reforçado) */
    .msky-target-grid { grid-template-columns: 1fr; }
}