/* --- RESET E BASES --- */
:root {
    --bg-color: #050505;
    --card-bg: #0f0f0f;
    --text-main: #ffffff;
    --text-muted: #9e9e9e;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --accent-glow: rgba(255, 255, 255, 0.15);
    /* Footer: cores com contraste WCAG AA+ (≥4.5:1) */
    --footer-bg: #0a0a0a;
    --footer-card-bg: #111111;
    --footer-text: #c5c5c5;
    --footer-heading: #ffffff;
    --footer-border: rgba(255, 255, 255, 0.12);
    /* Cores do Sistema 360 */
    --metria-color: #8b5cf6;
    --mp5-color: #10b981;
    --visibox-color: #3b82f6;
    --vialicita-color: #f59e0b;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* H1UserAgentFontSizeInSection: forçar tamanho explícito (Desktop + Mobile) — não usar UA */
h1 { font-size: 2em !important; margin: 0 0 0.5em 0 !important; line-height: 1.2; font-weight: 700; }
section h1, article h1, aside h1, nav h1 { font-size: 2em !important; margin: 0 0 0.5em 0 !important; line-height: 1.2; font-weight: 700; }

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Instrument Sans', sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Foco visível (acessibilidade) */
:where(a, button, input, textarea):focus-visible {
    outline: 2px solid rgba(255,255,255,0.85);
    outline-offset: 3px;
    border-radius: 10px;
}

/* Utilitários SEO */
.visually-hidden {
    position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0, 0, 0, 0); border: 0;
}
.container { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

/* Labels de Seção */
.section-top { margin-bottom: 60px; border-bottom: 1px solid var(--border-subtle); padding-bottom: 20px; display: flex; justify-content: space-between; align-items: flex-end; }
.label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 10px; display: block; }
h2 { font-size: 2.25rem; font-weight: 500; letter-spacing: -0.02em; color: var(--text-main); }

/* --- HEADER --- */
header {
    position: fixed; top: 0; left: 0; width: 100%; padding: 25px 0;
    z-index: 1000;
    mix-blend-mode: difference; 
    color: #fff;
    background: transparent; 
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(5, 5, 5, 0.85);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    padding: 15px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    mix-blend-mode: normal;
}

.nav-container { display: flex; justify-content: space-between; align-items: center; }
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: -0.03em; color: #fff; position: relative; z-index: 1002; }
.logo-dot { color: var(--vialicita-color); }

/* Desktop Nav & Actions */
.desktop-nav .nav-links { display: flex; gap: 40px; }
.nav-links a { font-size: 0.9rem; font-weight: 500; opacity: 0.8; transition: opacity 0.3s; }
.nav-links a:hover { opacity: 1; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.social-icon { font-size: 1.1rem; opacity: 0.8; }
.social-icon:hover { opacity: 1; transform: translateY(-2px); }

.btn-outline-header {
    color: #fff;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(255,255,255,0.4);
    transition: all 0.2s;
}
.btn-outline-header:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.6); }

.btn-menu { 
    border: 1px solid #fff; background: #fff; color: #000;
    padding: 8px 24px; border-radius: 50px; font-size: 0.9rem; font-weight: 600;
    transition: transform 0.2s;
}
.btn-menu:hover { transform: scale(1.05); }

/* --- MOBILE MENU --- */
.mobile-toggle {
    display: none;
    cursor: pointer;
    z-index: 1002;
    background: transparent;
    border: 0;
    padding: 12px;
    border-radius: 12px;
}
.bar { width: 25px; height: 2px; background-color: #fff; margin: 6px 0; transition: 0.4s; }

.mobile-menu-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100vh;
    background: #000; display: flex; flex-direction: column;
    justify-content: center; align-items: center; z-index: 1001;
    transform: translateY(-100%); transition: transform 0.5s cubic-bezier(0.77, 0, 0.175, 1);
}
.mobile-menu-overlay.active { transform: translateY(0); }
.mobile-links { text-align: center; }
.m-link { font-size: 2rem; font-weight: 600; color: #fff; margin-bottom: 30px; display: block; padding: 10px 0; }
.highlight-link { color: var(--visibox-color); }
.mobile-socials { display: flex; gap: 30px; justify-content: center; margin-top: 40px; font-size: 1.5rem; }
.mobile-socials a { padding: 10px; border-radius: 12px; }

.mobile-toggle.active .bar:nth-child(1) { transform: rotate(-45deg) translate(-5px, 6px); }
.mobile-toggle.active .bar:nth-child(2) { transform: rotate(45deg) translate(-5px, -6px); }

/* --- HERO --- */
#hero {
    min-height: 100svh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 120px 0 80px;
}
.hero-glow {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 600px; height: 600px;
    background: radial-gradient(circle, rgba(255,255,255,0.06) 0%, rgba(0,0,0,0) 70%);
    border-radius: 50%; z-index: 0; pointer-events: none;
    animation: pulseGlow 8s infinite alternate;
}
@keyframes pulseGlow {
    0% { opacity: 0.5; transform: translate(-50%, -50%) scale(1); }
    100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1.2); }
}

.hero-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    position: relative;
    z-index: 1;
}

.hero-content {
    text-align: left;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.hero-badge {
    display: inline-block; border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 6px 16px; border-radius: 50px; font-size: 0.85rem;
    color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.1em;
    margin-bottom: 24px; background: rgba(255, 255, 255, 0.03);
}
.hero-display-title {
    font-size: 3.25rem; line-height: 1.15; font-weight: 500;
    letter-spacing: -0.02em; margin-bottom: 20px; color: #fff;
}
.highlight {
    color: transparent; -webkit-text-stroke: 0;
    background: linear-gradient(90deg, #fff, #888);
    -webkit-background-clip: text; background-clip: text; font-style: italic;
}
.hero-subtext {
    font-size: 1.1rem; color: var(--text-muted); max-width: 420px;
    line-height: 1.65; margin-bottom: 32px;
}
.hero-cta {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.4);
    color: #fff;
    padding: 14px 32px;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: all 0.3s ease;
}
.hero-cta:hover {
    background: #fff;
    color: #050505;
    border-color: #fff;
}

/* Hero: área de imagens */
.hero-images {
    position: relative;
    min-height: 320px;
}
.hero-img {
    position: absolute;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.08);
    background: var(--card-bg);
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}
.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-img-placeholder {
    position: absolute;
    inset: 0;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--text-muted);
    font-size: 0.85rem;
    background: rgba(15,15,15,0.9);
}
.hero-img-placeholder.show { display: flex; }
.hero-img-placeholder i { font-size: 2.5rem; opacity: 0.5; }

.hero-img-main {
    width: 75%;
    max-width: 380px;
    height: 220px;
    top: 0;
    right: 0;
}
.hero-img-secondary {
    width: 50%;
    max-width: 220px;
    height: 140px;
    bottom: 60px;
    left: 0;
}
.hero-img-tertiary {
    width: 45%;
    max-width: 180px;
    height: 120px;
    bottom: 0;
    right: 80px;
}

/* Botão descer */
.hero-scroll-down {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.05);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    animation: scrollDownBounce 2.5s ease-in-out infinite;
}
.hero-scroll-down:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}
@keyframes scrollDownBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(6px); }
}

#conteudo { scroll-margin-top: 0; }


/* --- FRASE DE MISSÃO (visual amigável) --- */
.mission-phrase-section { padding: 60px 0; background: #080808; }
.mission-phrase-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 48px;
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    background: rgba(255,255,255,0.02);
    position: relative;
}
.mission-phrase-block i {
    position: absolute;
    top: 24px;
    left: 32px;
    font-size: 2rem;
    color: var(--vialicita-color);
    opacity: 0.5;
}
.mission-phrase-text {
    font-size: 1.2rem;
    line-height: 1.75;
    color: var(--text-main);
    padding-left: 40px;
    margin: 0;
}

/* --- DADOS / RESULTADOS --- */
.stats-section { padding: 80px 0; }
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}
.stat-item {
    text-align: center;
    padding: 32px 20px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color 0.3s ease;
}
.stat-item:hover { border-color: rgba(255,255,255,0.12); }
.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}
.stat-suffix { font-size: 1.5rem; font-weight: 600; color: var(--vialicita-color); margin-left: 2px; }
.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-top: 8px;
    margin-bottom: 0;
}

/* --- CARROSSEL DE LOGOS (fade nas pontas = infinito) --- */
.clients-carousel-section { padding: 80px 0; background: #080808; overflow: hidden; }
.clients-carousel-phrase {
    text-align: center;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
    margin-bottom: 32px;
}
.clients-carousel-wrap { position: relative; }
.clients-carousel-mask {
    mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 8%, black 92%, transparent 100%);
    overflow: hidden;
}
.clients-carousel-track {
    display: flex;
    width: max-content;
    animation: carouselScroll 35s linear infinite;
    gap: 48px;
    padding: 0 24px;
}
.clients-carousel-track:hover { animation-play-state: paused; }
.client-logo {
    flex: 0 0 160px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.client-logo img {
    max-width: 140px;
    max-height: 56px;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: brightness(0) invert(0.7);
    transition: filter 0.3s ease;
}
.client-logo:hover img { filter: brightness(0) invert(1); }
.client-logo.placeholder {
    background: rgba(255,255,255,0.04);
    border: 1px dashed var(--border-subtle);
    border-radius: 8px;
}
.client-logo.placeholder img { display: none; }
.client-logo.placeholder::after {
    content: 'Logo';
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
@keyframes carouselScroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* --- DASHBOARD (imagem) --- */
.dashboard-section { padding: 100px 0; }
.dashboard-image-wrap {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    background: var(--card-bg);
}
.dashboard-image {
    width: 100%;
    height: auto;
    display: block;
    vertical-align: top;
}
.dashboard-placeholder {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: var(--text-muted);
    font-size: 0.9rem;
    padding: 48px;
}
.dashboard-placeholder i { font-size: 4rem; opacity: 0.4; }

/* --- DEPOIMENTOS --- */
.testimonials-section { padding: 100px 0; background: #080808; }
.testimonials-slider {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}
.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    padding: 40px;
    transition: border-color 0.3s ease;
}
.testimonial-card:hover { border-color: rgba(255,255,255,0.15); }
.testimonial-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: var(--text-main);
    margin-bottom: 28px;
    font-style: italic;
}
.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}
.testimonial-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
    background: rgba(255,255,255,0.06);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.testimonial-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.testimonial-author .avatar-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 1.5rem;
}
.testimonial-author strong { display: block; font-size: 0.95rem; margin-bottom: 4px; }
.testimonial-author span { font-size: 0.85rem; color: var(--text-muted); }

/* --- DECLARAÇÃO (Para quem) --- */
.statement-section { padding: 88px 0; background: #080808; }
.statement-block {
    max-width: 720px;
    margin: 0 auto;
    padding: 48px 0 0;
    border-top: 1px solid var(--border-subtle);
}
.statement-lead {
    font-size: 1.2rem;
    line-height: 1.8;
    color: var(--text-muted);
}
.statement-lead strong { color: var(--text-main); font-weight: 600; }

/* --- O DESAFIO --- */
.challenge-section { padding: 100px 0; }
.challenge-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
}
.challenge-item {
    padding: 40px 32px;
    background: var(--card-bg);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.challenge-item:hover {
    border-color: rgba(255,255,255,0.15);
    transform: translateY(-2px);
}
.challenge-number {
    display: block;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    margin-bottom: 16px;
}
.challenge-item h3 {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text-main);
}
.challenge-item p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* --- NOSSA SOLUÇÃO (fluxo) --- */
.solution-section { padding: 100px 0; background: #080808; }
.solution-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.solution-step {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 32px;
    padding: 40px 0;
    border-bottom: 1px solid var(--border-subtle);
    align-items: start;
}
.solution-step:last-child { border-bottom: 0; }
.step-num {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,0.06);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--vialicita-color);
    flex-shrink: 0;
}
.step-body { }
.solution-step h3 {
    font-size: 1.35rem;
    font-weight: 600;
    margin: 0 0 12px 0;
    color: var(--text-main);
}
.solution-step p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-muted);
    margin: 0;
}

/* --- DIFERENCIAL (comparação) --- */
.comparison-section { padding: 100px 0; }
.comparison-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.comp-card {
    padding: 40px 32px;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    transition: border-color 0.3s ease;
}
.comp-other {
    background: var(--card-bg);
}
.comp-other h3 { color: var(--text-muted); font-size: 1.1rem; font-weight: 500; margin-bottom: 20px; }
.comp-other ul { margin: 0; padding: 0; }
.comp-other li {
    font-size: 0.95rem;
    color: var(--text-muted);
    padding: 8px 0;
    border-bottom: 1px solid var(--border-subtle);
    list-style: none;
}
.comp-other li:last-child { border-bottom: 0; }
.comp-us {
    background: rgba(245, 158, 11, 0.06);
    border-color: rgba(245, 158, 11, 0.25);
}
.comp-us h3 { color: var(--vialicita-color); font-size: 1.25rem; font-weight: 600; margin-bottom: 20px; }
.comp-us ul { margin: 0; padding: 0; }
.comp-us li {
    font-size: 0.95rem;
    color: var(--text-main);
    padding: 8px 0;
    list-style: none;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.comp-us li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--vialicita-color);
    margin-top: 8px;
    flex-shrink: 0;
}

/* --- CTA --- */
.cta-section { padding: 100px 0; background: #080808; }
.cta-block {
    max-width: 560px;
    margin: 0 auto;
}
.cta-block h2 { margin-bottom: 16px; }
.cta-block > p {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 40px;
}
.cta-block .contact-form { margin-bottom: 0; }

/* --- PROJETOS --- */
#projetos { padding: 100px 0; }
.projects-gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.project-item { cursor: pointer; group: hover; }
.p-image {
    height: 400px; background: #1a1a1a; border-radius: 4px; margin-bottom: 20px;
    transition: transform 0.4s ease;
    background-image: radial-gradient(#333 1px, transparent 1px); background-size: 20px 20px;
}
.project-item:hover .p-image { transform: scale(0.98); opacity: 0.8; }
.p-info h3 { font-size: 1.2rem; font-weight: 500; }
.p-info p { color: var(--text-muted); font-size: 0.9rem; }

/* --- METRIKA 360 --- */
#system-360 { padding: 100px 0; background: #080808; }
.grid-360 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.card-360 {
    position: relative; background: var(--card-bg); border: 1px solid var(--border-subtle);
    padding: 60px; border-radius: 16px; overflow: hidden; transition: all 0.4s ease;
    display: flex; flex-direction: column; justify-content: space-between; min-height: 350px;
}
.card-360:hover { transform: translateY(-5px); border-color: rgba(255,255,255,0.2); }
.card-glow {
    position: absolute; top: 0; right: 0; bottom: 0; left: 0;
    background: radial-gradient(circle at top right, rgba(255,255,255,0.05), transparent 60%);
    opacity: 0; transition: opacity 0.4s ease; z-index: 0;
}
.card-360:hover .card-glow { opacity: 1; }
.metria:hover .card-glow { background: radial-gradient(circle at top right, rgba(139, 92, 246, 0.15), transparent 60%); }
.mp5:hover .card-glow { background: radial-gradient(circle at top right, rgba(16, 185, 129, 0.15), transparent 60%); }
.visibox:hover .card-glow { background: radial-gradient(circle at top right, rgba(59, 130, 246, 0.15), transparent 60%); }
.vialicita:hover .card-glow { background: radial-gradient(circle at top right, rgba(245, 158, 11, 0.15), transparent 60%); }

.card-content { position: relative; z-index: 1; height: 100%; display: flex; flex-direction: column; }

/* Estilo para a logo dentro do card (Visibox) */
.card-logo {
    max-width: 180px; height: auto; margin-bottom: 25px; display: block;
    /* Se sua logo for preta, descomente a linha abaixo para ficar branca */
    /* filter: brightness(0) invert(1); */
}

.card-360 h3 { font-size: 2rem; margin-bottom: 15px; letter-spacing: -0.02em; }
.card-360 p { color: var(--text-muted); font-size: 1rem; max-width: 400px; margin-bottom: 30px; flex-grow: 1; }
.link-arrow { font-size: 0.9rem; font-weight: 500; display: flex; align-items: center; gap: 10px; opacity: 0; transform: translateX(-10px); }
.card-360:hover .link-arrow { opacity: 1; transform: translateX(0); }

/* --- MÉTODO & EXPERTISE --- */
#abordagem, #expertise { padding: 100px 0; }
.method-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-top: 40px; }
.method-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0) 100%);
    border: 1px solid var(--border-subtle); border-radius: 12px; padding: 40px;
    transition: 0.3s ease; height: 100%;
}
.method-card:hover {
    border-color: rgba(255,255,255,0.2); transform: translateY(-5px);
    background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
}
.step-number {
    font-family: 'Instrument Sans', sans-serif; font-size: 3rem; font-weight: 700;
    color: rgba(255,255,255,0.1); margin-bottom: 20px;
}
.method-card:hover .step-number { color: rgba(255,255,255,0.3); }
.method-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.method-card p { color: var(--text-muted); font-size: 0.95rem; line-height: 1.6; }

.expertise-list { display: flex; flex-direction: column; }
.xp-item {
    display: flex; justify-content: space-between; align-items: baseline;
    padding: 30px 0; border-bottom: 1px solid var(--border-subtle);
    font-size: 2.5rem; font-weight: 400; letter-spacing: -0.03em; color: var(--text-muted);
}
.xp-item:hover { color: var(--text-main); padding-left: 20px; }
.xp-action { font-size: 1rem; opacity: 0; letter-spacing: normal; }
.xp-item:hover .xp-action { opacity: 1; }

/* --- FORMULÁRIO DE CONTATO --- */
.contact-form-wrapper { max-width: 640px; margin-bottom: 80px; }
.contact-form {
    display: flex; flex-direction: column; gap: 20px;
}
.contact-form .form-row {
    display: grid; grid-template-columns: 1fr 1fr; gap: 20px;
}
.contact-form input,
.contact-form textarea {
    width: 100%; padding: 18px 22px;
    background: var(--card-bg); color: var(--text-main);
    border: 1px solid var(--border-subtle); border-radius: 12px;
    font-family: 'Instrument Sans', sans-serif; font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}
.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: var(--text-muted);
}
.contact-form input:focus,
.contact-form textarea:focus {
    outline: none; border-color: rgba(255, 255, 255, 0.25);
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.05);
}
.contact-form textarea { resize: vertical; min-height: 120px; }
.btn-submit {
    align-self: flex-start;
    border: 1px solid #fff; background: #fff; color: #000;
    padding: 12px 28px; border-radius: 50px; font-size: 0.95rem; font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    cursor: pointer; display: inline-flex; align-items: center; gap: 10px;
    transition: transform 0.2s, opacity 0.3s;
}
.btn-submit:hover { transform: scale(1.05); }
.btn-submit:active { opacity: 0.9; }

/* --- FOOTER (contraste WCAG AA+ em todos os textos) --- */
footer {
    margin-top: 80px;
    padding: 80px 0 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
}

/* Seção Contato: títulos e labels com contraste garantido */
footer .section-top {
    border-bottom-color: var(--footer-border);
}
footer .section-top .label {
    color: var(--footer-text);
}
footer .section-top h2 {
    color: var(--footer-heading);
}

/* Formulário: placeholders e inputs legíveis */
footer .contact-form input,
footer .contact-form textarea {
    background: var(--footer-card-bg);
    color: var(--footer-heading);
    border-color: var(--footer-border);
}
footer .contact-form input::placeholder,
footer .contact-form textarea::placeholder {
    color: var(--footer-text);
}

/* Bloco Empresa */
.footer-info {
    background: var(--footer-card-bg);
    border-top: 1px solid var(--footer-border);
    padding: 50px 0 48px;
}
.footer-info-inner { padding-top: 0; }
.footer-info-header {
    margin-bottom: 36px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--footer-border);
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}
.footer-info-title {
    font-size: 1.75rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    margin: 0;
    color: var(--footer-heading);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 0;
}
.footer-brand { max-width: 400px; }
.footer-brand .legal-text,
.footer-brand .address-text {
    font-size: 0.9rem;
    line-height: 1.65;
    margin-bottom: 16px;
    color: var(--footer-text);
}
.footer-brand .legal-text strong {
    color: var(--footer-heading);
    font-weight: 600;
}
.social-links-footer {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}
.social-links-footer a {
    color: var(--footer-heading);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-underline-offset: 4px;
}
.social-links-footer a:hover { text-decoration: underline; }

.footer-nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.footer-nav a {
    color: var(--footer-text);
    font-size: 0.95rem;
    transition: color 0.2s;
}
.footer-nav a:hover {
    color: var(--footer-heading);
    transform: translateX(5px);
    display: inline-block;
}

/* Copyright e link Infraestrutura */
.footer-copyright-bar {
    padding: 28px 0 40px;
    border-top: 1px solid var(--footer-border);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.footer-copyright-bar .copyright-text {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin: 0;
}

/* --- FOOTER (novo) --- */
.footer {
    margin-top: 80px;
    padding: 60px 0 0;
    background: var(--footer-bg);
    border-top: 1px solid var(--footer-border);
    color: var(--footer-text);
}
.footer-inner { max-width: 1400px; margin: 0 auto; padding: 0 40px; }
.footer-top {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 60px;
    align-items: start;
    padding-bottom: 40px;
    border-bottom: 1px solid var(--footer-border);
}
.footer-brand .footer-logo {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--footer-heading);
    display: inline-block;
    margin-bottom: 12px;
}
.footer-brand .footer-logo:hover { color: var(--footer-heading); }
.footer-slogan {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--footer-text);
    max-width: 320px;
    margin: 0;
}
.footer-links-grid {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}
.footer-col h4 {
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--footer-heading);
    margin-bottom: 16px;
}
.footer-col a {
    display: block;
    font-size: 0.9rem;
    color: var(--footer-text);
    margin-bottom: 10px;
    transition: color 0.2s;
}
.footer-col a:hover { color: var(--footer-heading); }
.footer-social {
    display: flex;
    gap: 16px;
    padding: 24px 0;
}
.footer-social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--footer-border);
    color: var(--footer-text);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.2s;
}
.footer-social a:hover { color: var(--footer-heading); border-color: var(--footer-heading); }
.footer-bottom {
    padding: 24px 0 40px;
    border-top: 1px solid var(--footer-border);
}
.footer-bottom p {
    font-size: 0.9rem;
    color: var(--footer-text);
    margin: 0;
}

/* --- ANIMAÇÃO REVEAL --- */
.reveal, .reveal-text { opacity: 0; transform: translateY(30px); transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active, .reveal-text.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.1s; }
.delay-2 { transition-delay: 0.2s; }
.delay-3 { transition-delay: 0.3s; }


/* --- MEDIA QUERIES (RESPONSIVIDADE) --- */
@media (max-width: 1024px) {
    .container { padding: 0 25px; }
    .hero-display-title { font-size: 2.8rem; }
    .hero-wrapper { grid-template-columns: 1fr; text-align: center; }
    .hero-content { align-items: center; text-align: center; }
    .hero-subtext { margin-left: auto; margin-right: auto; }
    .hero-images { min-height: 260px; }
    .grid-360 { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
    html { scroll-padding-top: 75px; }

    /* Header */
    .desktop-nav, .desktop-only { display: none; }
    .mobile-toggle { display: block; }
    
    /* Hero */
    .hero-wrapper { grid-template-columns: 1fr; gap: 40px; text-align: center; }
    .hero-content { align-items: center; text-align: center; }
    .hero-subtext { max-width: 100%; font-size: 1rem; padding: 0 20px; }
    .hero-display-title { font-size: 2.2rem; }
    .hero-glow { width: 300px; height: 300px; }
    .hero-subtext .no-break { white-space: normal; }
    .hero-images { min-height: 200px; display: flex; justify-content: center; position: relative; }
    .hero-img-main { position: relative; top: auto; right: auto; width: 85%; max-width: 280px; height: 180px; }
    .hero-img-secondary, .hero-img-tertiary { display: none; }
    .hero-scroll-down { bottom: 20px; }

    /* Títulos e seção */
    .section-top { flex-direction: column; align-items: flex-start; gap: 10px; }
    h2 { font-size: 2rem; }
    
    /* Grids em Pilha */
    .projects-gallery, .method-grid { grid-template-columns: 1fr; }
    .challenge-grid { grid-template-columns: 1fr; }
    .comparison-cards { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px; }
    .testimonials-slider { grid-template-columns: 1fr; }
    .solution-step { grid-template-columns: 1fr; gap: 16px; padding: 28px 0; }
    .step-num { width: 40px; height: 40px; font-size: 1.1rem; }
    .p-image { height: 300px; }
    .mission-phrase-block { padding: 32px 24px; }
    .mission-phrase-block i { left: 20px; top: 20px; font-size: 1.5rem; }
    .mission-phrase-text { padding-left: 0; padding-top: 32px; font-size: 1.05rem; }
    .dashboard-placeholder { min-height: 280px; }
    .stat-value { font-size: 2rem; }
    
    /* Cards Mobile */
    .card-360 { padding: 40px 30px; min-height: auto; }
    .link-arrow { opacity: 1; transform: translateX(0); margin-top: 20px; }
    
    /* Expertise */
    .xp-item { font-size: 1.8rem; flex-direction: column; gap: 10px; }
    .xp-action { opacity: 1; font-size: 0.9rem; color: var(--visibox-color); }
    .xp-item:hover { padding-left: 0; }
    
    /* Formulário de contato */
    .contact-form .form-row { grid-template-columns: 1fr; }
    .contact-form-wrapper { margin-bottom: 50px; }

    /* Footer / Empresa */
    .footer-info { padding: 40px 0 36px; }
    .footer-info-header { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 28px; }
    .footer-info-title { font-size: 1.5rem; }
    .footer-content { flex-direction: column; gap: 30px; }

    /* Footer (novo) */
    .footer-top { grid-template-columns: 1fr; gap: 32px; }
    .footer-links-grid { flex-direction: column; gap: 28px; }
    .footer-inner { padding: 0 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}