# Serviços

- Endereço: https://ativeconecta.com.br/servicos/
- Atualizado em: 15/11/2026
- Publicado por: ATIVE CONECTA

# Sua empresa inteira no digital. Com segurança e rapidez.

**Serviços de TI** completos: site, loja virtual, sistema, atendimento no WhatsApp, chatbot com IA, automações, servidores e marketing. Uma equipe só cria, liga e cuida de tudo. Você não precisa contratar vários fornecedores nem entender de tecnologia. Backup, segurança e suporte já vêm no plano.

[Ver Serviços](https://ativeconecta.com.br/servicos/)

Solicitar Diagnóstico

## Entrega Ágil

Etapas curtas, prazos combinados e entregas que você aprova.

## Suporte e Operação

Suporte técnico e monitoramento contínuo.

- Infraestrutura e monitoramento

Ambientes isolados, criptografia e monitoramento 24/7 para total proteção dos seus dados.

- Edge Node & IA Local

Sistema e IA funcionando dentro da sua empresa, até sem internet.

## Tudo o que a sua empresa precisa no digital

### Desenvolvimento

Criamos o site, a landing page, a loja virtual ou o sistema da sua empresa. Você vê um modelo antes, aprova cada etapa e recebe tudo funcionando, com treinamento. **Na loja, cuidamos de catálogo, pagamentos e pedidos. No sistema, de painéis e relatórios que acabam com o trabalho manual.**

### Marketing Digital

Fazemos a sua empresa ser encontrada: Google, anúncios no Google, Instagram, Facebook e TikTok, conteúdo para as redes e mensagens automáticas por e-mail e WhatsApp para quem demonstrou interesse. Todo mês você recebe um relatório do que foi feito.

### Design & Marca

Criamos a identidade da sua marca (logo, cores e padrões) e as telas dos seus sites e sistemas: fáceis de usar, acessíveis a todos e com a mesma cara em todo lugar. Assim a sua empresa passa confiança.

### Soluções em TI & Infra

Cuidamos dos servidores, da rede e da segurança da sua empresa: firewall, monitoramento 24 horas, detecção de invasão, backup e um plano para voltar a funcionar rápido se algo der errado. Também fazemos a manutenção do dia a dia.

### Automação & IA

Colocamos a tecnologia para trabalhar por você: chatbot que atende a qualquer hora, WhatsApp, Instagram e Facebook numa tela só e automações que fazem as tarefas repetidas. Com a **IA Privada**, a IA roda nos servidores da própria Ative.

## Consultoria Inicial

Conversa gratuita para entender a sua empresa, com plano de ação e estimativa por escrito.

## Projetos Sob Medida

Escopo claro, entregas e prazos combinados. O sistema é entregue por partes, para você começar a usar mais cedo.

## Integrações & APIs

Ligamos o sistema de gestão, os pagamentos, o atendimento e os marketplaces para os dados passarem sozinhos.

## Suporte e prazos de atendimento

Atendimento em horário comercial, monitoramento 24/7 e plantão para incidentes críticos.

## Entrega & Treinamento

Treinamento da equipe e um manual simples para usar tudo sem depender de ninguém.

### Como trabalhamos — processo resumido

Primeiro entendemos o seu negócio. Depois mostramos um modelo, combinamos entregas e prazos e desenvolvemos por etapas, com testes e a sua aprovação. Depois da entrega, seguimos com suporte e monitoramento.

### Garantias e segurança

Tudo fica guardado com histórico de versões, é testado e revisado antes de ir ao ar. Nos servidores, backup, criptografia e controle de acesso. Prazos de atendimento e suporte ficam no contrato.

### Resultados que entregamos

Menos trabalho repetido, sites que trazem mais contatos e sistemas que não param. Todo mês você recebe um relatório do que foi feito.

Por que a Ative

## Sua empresa tem coisa melhor para fazer do que juntar fornecedores.

Site, sistema, design, atendimento no WhatsApp, automações, servidores e marketing: com a Ative é **uma equipe só**, que cria, liga e cuida de tudo. Você fala com um lugar só e não precisa entender de tecnologia.

SiteLoja virtualSistemaIntegraçõesMarketingDesignAtendimentoChatbot com IAAutomaçõesServidoresInfraestruturaIA & Edge Node

1 equipe

para tudo

01 · Equipe

### 1

equipe para site, sistema, design, atendimento, servidores e marketing

02 · Segurança

### 24/7

monitoramento, com plantão para incidentes críticos

03 · Rapidez

### 20

dias úteis para o seu site no ar, depois de receber o conteúdo

04 · Garantia

### R$ 0

para corrigir erro nosso, enquanto o plano estiver ativo

## Planos Oficiais

Cada serviço abaixo é um plano separado, com mensalidade e implantação conforme o projeto. Os opcionais aparecem em destaque.

## Landing Page

## R$ 300 / mês

WordPress + Elementor

Layout em até 10 dias úteis · site completo em até 20, após receber conteúdo e acessos

Fica na sua hospedagem

✨Obs.: a mensalidade pode variar para mais, conforme o projeto

✨+ Valor da implantação (conforme projeto)

✨1 microajuste por mês incluso · extra R$ 75 (até 30 min)

✨Funcionalidade extra Simples — R$ 250 a R$ 400

✨Média — R$ 500 a R$ 1.500

✨Avançada — a partir de R$ 2.000

Contratar plano

land page

## Website Profissional

## R$ 400 / mês

WordPress + Elementor + recursos dinâmicos

✨Por mês: 1 microajuste + 1 página nova simples · extra R$ 75

Sites

## Sistema Personalizado

## a partir de R$ 500 / mês

**Web na infraestrutura Ative** — R$ 700/mês

**Web na sua hospedagem** (PHP/Laravel) — R$ 500/mês

**Web, celular e computador** (Flutter) — R$ 1.000/mês

Você aprova o modelo antes e recebe por partes

✨Alteração pós-entrega — R$ 300 (até 2 h)

✨Funcionalidade extra Simples — R$ 400 a R$ 800

✨Média — R$ 1.000 a R$ 2.500

✨Avançada — a partir de R$ 3.000

✨Integrações / APIs — conforme orçamento

✨Opcionais: Edge Node a partir de +R$ 500/mês · IA Privada +R$ 500/mês

Sistemas

## Automações Inteligentes

## R$ 700 / mês

Tarefas feitas sozinhas, sob medida

Até 10.000 execuções por mês

1 agente de IA personalizado, com IA inclusa na franquia

✨+10.000 execuções — R$ 50/mês

✨Uso de IA acima da franquia — pago pelo cliente, com aviso antes ⓘ

✨Dashboard das automações — +R$ 300/mês

✨Integrações fora do escopo — conforme orçamento

✨Edge Node / IA Local — a partir de +R$ 500/mês

✨IA Privada Ative — +R$ 500/mês · seus dados não saem para IA externa

Automação

## Central de Atendimento Omnichannel

Painel AtiveChat com até 5 operadores

1 WhatsApp + Instagram + Facebook + Webchat

Filas e etiquetas por equipe

✨Operador ou canal adicional — +R$ 100/mês cada

✨WhatsApp API Oficial — +R$ 150/mês · tarifas da Meta por sua conta

✨WhatsApp não oficial — sem tarifa da Meta · risco de bloqueio bem menor com a estrutura da Ative (não é zero)

✨Chatbot — a partir de +R$ 200/mês (até 2.000 conversas) · IA acima da franquia paga pelo cliente ⓘ

✨Painel / Relatórios — +R$ 300/mês

Central

## Chatbot

Criamos e cuidamos das conversas

IA grátis: ~350 respostas por dia

Suporte e manutenção da solução

✨+1.000 conversas — R$ 120/mês · IA acima da franquia paga pelo cliente ⓘ

✨Alteração personalizada — R$ 300 (até 2 h)

✨Integrações avançadas — conforme orçamento

✨IA Privada Ative — +R$ 500/mês

Chatbot

## Loja Virtual / E-commerce

Catálogo, carrinho e pagamentos

Painel de pedidos e relatórios

Taxas de pagamento e frete por sua conta

✨Microajuste (até 30 min) — R$ 75

✨Funcionalidade extra Simples — R$ 300 a R$ 600

✨Média — R$ 700 a R$ 2.000

✨Avançada — a partir de R$ 2.500

Loja

## Servidores & Infraestrutura

Gestão de até 3 equipamentos e 10 máquinas virtuais

Monitoramento 24/7 e detecção de invasão

Atendimento em horário comercial · plantão para incidentes críticos

✨Equipamento adicional — +R$ 350/mês

✨Máquina virtual extra — +R$ 30/mês

✨Backup avançado / recuperação de desastres — conforme projeto

✨Visita presencial — R$ 150/h + deslocamento

Infra

## Design

## R$ 800 / mês

Artes, posts e materiais da sua marca, prontos para usar

Até 12 artes por mês · 1 rodada de ajuste por arte

✨Arte extra — a partir de R$ 50

✨Ajuste extra — R$ 150/hora

Design

## Marketing Digital

## R$ 1.000 / mês

Sua empresa nas redes, com metas e relatório

Até 12 publicações por mês em até 2 redes · planejamento e relatório

✨Publicação extra — a partir de R$ 80

✨Verba de anúncios paga por você direto na plataforma

MKT

IA Privada Ative

## A IA da própria Ative. Preço fixo e dados protegidos.

### R$ 500

por mês, fixo · até **500 respostas por dia**, cerca de 15.000 por mês

#### Sem conta surpresa

Na IA paga por uso, a conta sobe com o movimento. Aqui o valor não muda.

#### Mais IA pelo mesmo valor

As 500 respostas do dia vêm antes da franquia grátis. Em horário de pico, podem demorar um pouco mais.

#### Dados sensíveis em casa

Clientes, saúde, finanças e contratos processados na IA da Ative.

#### LGPD mais simples

Menos empresas tratando os dados dos seus clientes: menos risco e mais controle.

Quero a IA Privada

ia-privada · ao vivo

Seu cliente

IA da Ative

IA de fora

› mensagem do cliente recebida

› processada na IA da Ative ✓

› envio para IA de fora: bloqueado ✕

› resposta enviada ao cliente

› dados continuam com a Ative

Vale para os planos de Sistema, Automações, Central de Atendimento e Chatbot.

Nos planos de tecnologia

## O que a mensalidade inclui

A operação do dia a dia fica com a nossa equipe. Você recebe o serviço pronto e funcionando, sem precisar montar ou operar nada.

01

### Backup diário

Cópias todos os dias, guardadas fora do servidor principal.

02

### Segurança e firewall

Proteção contra ataques e acessos indevidos, sempre ativa.

03

### Monitoramento 24/7

Acompanhamento automático, dia e noite, para agir rápido.

04

### Atualizações

Sistema, plugins e componentes sempre em dia.

05

### Correção de bugs sem custo

Enquanto o plano estiver ativo, erro nosso é corrigido sem cobrança.

06

### Atendimento pelo ATIVE SUPORTE

Segunda a sexta, das 8h às 17h30, exceto feriados.

07

### Plantão para incidentes críticos

Fora do horário, fins de semana e feriados.

08

### Relatório mensal

O que foi feito no mês: atualizações, backups e atendimentos.

Fidelidade de 12 mesesImplantação conforme o projetoBackup, segurança e monitoramento nos planos de sites, sistemas, atendimento e infraestrutura

✦ Do primeiro contato ao dia a dia

## Como trabalhamos

Etapas claras, prazos combinados e regras simples, iguais às do seu contrato.

**Escopo por escrito** Tudo o que será entregue, definido antes de começar.

**Prazos combinados** Cada etapa com data e aprovação sua.

**Treinamento e manual** Sua equipe pronta para usar no dia a dia.

**Atendimento contínuo** Pelo ATIVE SUPORTE, em horário comercial.

**Briefing** Você envia conteúdo, acessos e identidade visual.

**Layout da página inicial** Até 3 rodadas de ajuste.

**Páginas e funcionalidades** Até 2 rodadas de ajuste.

**Homologação e aceite** 1 rodada de ajuste.

**Publicação** Com treinamento e manual.

01 — Regras

### Regras do projeto

Combinadas desde o início e iguais às do seu contrato, para não haver surpresa em nenhuma etapa.

#### 5 dias úteis para aprovar

Você tem 5 dias úteis para aprovar cada etapa ou pedir ajustes. Sem resposta, a etapa é considerada aprovada.

5 dias

#### Ajustes no escopo

São **gratuitos**, dentro das rodadas. Rodada extra: R$ 150/hora.

#### Prazo pausado

Enquanto aguardamos você: aprovação, conteúdo, acessos ou pagamento.

#### Escopo novo

O que não está no escopo aprovado tem **orçamento e prazo próprios**, mesmo durante o desenvolvimento.

#### Depois da entrega

Alteração com **orçamento por escrito antes**, na fatura seguinte. Avançada: 50% antes e 50% na entrega.

02 — Custos

### Bug, ajuste ou coisa nova?

Toque em cada item para ver os detalhes.

Erro causado pela Ative (bug)Sem custo

Bug é o que não funciona conforme o escopo aprovado e entregue. A correção não é cobrada.

MicroajusteR$ 75

Texto, imagem ou cor, com até 30 minutos de trabalho, por solicitação.

Página nova simples1 por mês no Website

No modelo de página que já existe e com o seu conteúdo. Não acumula para o mês seguinte.

Alteração em algo já entregueConforme o nível

Depois de aprovado, o que for mudado é orçado pelo nível do plano (Simples, Média ou Avançada), antes de começar.

Funcionalidade ou módulo novoConforme o nível

Recebe orçamento e prazo próprios. O manual e o treinamento da alteração já entram nesse orçamento.

Garantia

90 dias

de correção de bugs **sem custo** após o aceite final. Com o plano mensal ativo, a correção é sem custo **durante todo o contrato**.

Não é bug: problema causado por atualização de WordPress, plugin ou serviço de terceiros, pela sua hospedagem, por alteração feita por você ou por outro fornecedor, ou por uso diferente do treinado. Com plano mensal, corrigimos incompatibilidades de atualização de terceiros até 2 horas por mês sem custo.

03 — Atendimento

### Atendimento e prazos de resposta

Segunda a sexta, das 8h às 17h30 (exceto feriados), pelo ATIVE SUPORTE. Fora desse horário, só incidente crítico, pelo plantão.

Resposta é o início do atendimento e do diagnóstico, não a solução final. **Incidente crítico**: sistema ou site fora do ar para todos, invasão ou ataque em andamento, perda ou vazamento de dados, ou função principal travada (login, pagamento, atendimento pelo WhatsApp oficial). Plantão acionado sem incidente crítico: R$ 225 por hora (mínimo 1 hora).

Crítica

até 2 hfora do horário: até 4 h

Alta

até 8 h úteisfora do horário: próximo dia útil

Normal

até 3 dias úteisfora do horário: próximo dia útil

Solicitação

orçamento em até 3 dias úteisfora do horário: próximo dia útil

04 — Capacitação

### Treinamento e manual

Ao final de cada projeto, a sua equipe recebe o material necessário para usar o sistema com autonomia. O conhecimento fica com a sua empresa.

- **Aulas gravadas** Treinamento em vários dias, por perfil de usuário. As aulas ficam com você.
- **Manual interativo** De cada sistema e perfil, atualizado a cada mudança.
- **Dúvidas de uso** Respondidas pelo manual e pelas aulas gravadas.
- **Uma pessoa por perfil** Treina os novos funcionários e abre as solicitações com a Ative.
- **Equipe nova** Novo treinamento pela Ative por R$ 150/hora (mínimo 2 horas).

[Fale com a gente](/contato/)

## Antes de falar com a Ative

### Dúvidas que quase todo mundo tem

### A reunião tem custo?

Não. A reunião e o diagnóstico são gratuitos e sem compromisso de contratação.

### Preciso saber exatamente o que quero?

Não. Conte o problema ou o objetivo da sua empresa. A equipe ajuda a encontrar o melhor caminho e explica as opções em linguagem simples.

### Vocês atendem a minha cidade?

Sim. Atendemos empresas de todo o Brasil, com reuniões por vídeo. Na região de Salto e Itu (SP), a reunião também pode ser presencial.

### Quanto custa?

Os planos começam em R$ 300 por mês, e a implantação depende do projeto. Antes de começar, você recebe escopo, prazo e valor por escrito. Os valores de cada plano estão na [lista de planos](https://ativeconecta.com.br/#planos).

### Quanto tempo leva?

Em sites, o layout fica pronto em até 10 dias úteis e o site completo em até 20, depois de recebermos o conteúdo e os acessos. Em sistemas e automações, o prazo de cada etapa é combinado no escopo.

### Tem fidelidade?

Sim, de 12 meses em todos os planos. Fica tudo escrito no contrato, antes de começar.

### O que acontece depois da entrega?

A mensalidade inclui backup diário, segurança, monitoramento 24 horas, atualizações e atendimento pelo ATIVE SUPORTE, de segunda a sexta, das 8h às 17h30, com plantão para incidentes críticos.

### Já sou cliente. Onde peço ajuda?

Abra um chamado no [ATIVE SUPORTE](https://ativemember.ativeconecta.com.br/). Assim o pedido fica registrado e você acompanha cada resposta.

**Sua dúvida não está aqui?** Pergunte direto para a equipe, em horário comercial.

[Perguntar no WhatsApp](https://wa.me/5511957839802)

### Pronto para colocar a sua empresa inteira no digital?

Conte o que a sua empresa precisa. Fazemos um diagnóstico e enviamos uma proposta com escopo, prazos e valores.

[Pedir um diagnóstico](https://ativeconecta.com.br/agendamento/)

[Entrar em contato](https://ativeconecta.com.br/contato)

⚙ ATIVE · 3D de Serviços (código CSS/JS). Clique para editar.

'; }); box.innerHTML = html + '

'; anchor.appendChild(box); hero.classList.add('as3d-hero-top'); var ls = box.firstChild; setTimeout(function(){ ls.classList.add('float'); }, 1700); var out = false, tk = 0; function onScroll(){ if (tk) return; tk = requestAnimationFrame(function(){ tk = 0; var r = (useStageRef(window.innerWidth)? box: hero).getBoundingClientRect(), d = diveTarget(r.top, r.height, false); ls.style.setProperty('--g', (58 + d*70).toFixed(1) + 'px'); box.style.opacity = String(Math.max(0, 1 - d*1.6)); if (d > 0.45) out = true; else if (out && d < 0.3){ out = false; // voltou ao hero: monta de novo var n = ls.cloneNode(true); n.classList.remove('float'); ls.parentNode.replaceChild(n, ls); ls = n; setTimeout(function(){ ls.classList.add('float'); }, 1700); } }); } window.addEventListener('scroll', onScroll, { passive: true }); window.__ativeServ3DApi = { mode: 'lite' }; } function boot(){ (window.__as3dT = window.__as3dT || {}).boot = performance.now(); var anchor = document.querySelector(CFG.anchor), hero = document.querySelector(CFG.hero); if (!anchor || !hero) return; if (liteTouch || !webglOK() || softGL()){ lite(anchor, hero); return; } import(CFG.three).then(function(THREE){ start(THREE, anchor, hero); }) .catch(function(){ lite(anchor, hero); }); } function start(THREE, anchor, hero){ window.__as3dT.start = performance.now(); /* ---------- palco ---------- */ var host = anchor.parentElement; host.classList.add('as3d-host'); var stage = document.createElement('div'); stage.className = 'as3d-stage'; stage.setAttribute('role', 'img'); stage.setAttribute('aria-label', 'Ilustração 3D das camadas de serviços: Soluções em TI, Desenvolvimento, Design e Marketing Digital'); host.appendChild(stage); function place(){ var hr = host.getBoundingClientRect(), ir = anchor.getBoundingClientRect(); var size = Math.max(ir.width, ir.height) * (mobile? 1.15: 1.04); size = Math.min(size, mobile? window.innerWidth * 0.98: 640); var cx = ir.left - hr.left + ir.width/2 - (window.innerWidth >= 1025? size*0.05: 0), cy = ir.top - hr.top + ir.height/2 - (window.innerWidth >= 1025? size*0.1: 0); stage.style.width = size + 'px'; stage.style.height = size + 'px'; stage.style.left = (cx - size/2) + 'px'; stage.style.top = (cy - size/2) + 'px'; return size; } var S = place(); var renderer; try { renderer = new THREE.WebGLRenderer({ antialias: !mobile, alpha: true, powerPreference: 'high-performance' }); } catch(e){ stage.remove(); lite(anchor, hero); return; } renderer.setPixelRatio(Math.min(window.devicePixelRatio || 1, isTouchDev? 1: (mobile? 1.25: 1.5))); renderer.setSize(S, S, false); renderer.outputColorSpace = THREE.SRGBColorSpace; renderer.toneMapping = THREE.ACESFilmicToneMapping; renderer.toneMappingExposure = 1.15; stage.appendChild(renderer.domElement); var scene = new THREE.Scene(); var LOOK = new THREE.Vector3(0, 0.95, -0.4); var camera = new THREE.PerspectiveCamera(30, 1, 0.05, 60); var CAM = new THREE.Vector3(0, 4.95, 7.9); camera.position.copy(CAM); camera.lookAt(LOOK); /* ambiente procedural para os reflexos do vidro (sem HDR externo) */ var pmrem = new THREE.PMREMGenerator(renderer); var envScene = new THREE.Scene(); envScene.background = new THREE.Color(0x04051a); [[0x7C3AED,[-4,2,3],6],[0x2F6BFF,[4,-1,2],5],[0xffffff,[0,5,-1],3.4],[0xB804FF,[2,3,5],3],[0x00A0FF,[-3,-3,4],3]].forEach(function(p){ var m = new THREE.Mesh(new THREE.PlaneGeometry(p[2], p[2]), new THREE.MeshBasicMaterial({ color: p[0], side: THREE.DoubleSide })); m.position.set(p[1][0], p[1][1], p[1][2]); m.lookAt(0,0,0); envScene.add(m); }); var envRT = pmrem.fromScene(envScene, 0.04); scene.environment = envRT.texture; var key = new THREE.DirectionalLight(0xffffff, 1.0); key.position.set(-2, 5, 4); scene.add(key); var cursorLight = new THREE.PointLight(0xc9a8ff, 0, 8, 1.6); cursorLight.position.set(0, 2.4, 2); scene.add(cursorLight); var root = new THREE.Group(); scene.add(root); // gira com o mouse var stack = new THREE.Group(); root.add(stack); stack.position.set(-0.28, 0, 0.3); // pilha isométrica var BASE_RY = -0.62; stack.rotation.y = BASE_RY; /* ---------- FX em GLSL (mesmo vocabulário do 3D da página inicial): formação por partículas, revelação com borda quente, brilho varrendo o vidro, dissolução no scroll ---------- */ var FXN = 'float fx_h(vec3 p){ p = fract(p*0.3183099+.1); p *= 17.0; return fract(p.x*p.y*p.z*(p.x+p.y+p.z)); }\n' + 'float fx_n(vec3 x){ vec3 i = floor(x), f = fract(x); f = f*f*(3.-2.*f); return mix(mix(mix(fx_h(i),fx_h(i+vec3(1,0,0)),f.x),mix(fx_h(i+vec3(0,1,0)),fx_h(i+vec3(1,1,0)),f.x),f.y),mix(mix(fx_h(i+vec3(0,0,1)),fx_h(i+vec3(1,0,1)),f.x),mix(fx_h(i+vec3(0,1,1)),fx_h(i+vec3(1,1,1)),f.x),f.y),f.z); }\n'; function fxGlass(m, hot, x0, x1, dir){ // injeta no material PBR (onBeforeCompile) sem trocar o material var U = { uRev: { value: 0 }, uDiss: { value: 0 }, uSheen: { value: -9 }, uHot: { value: new THREE.Color(hot) }, uTime: { value: 0 }, uX0: { value: x0 }, uX1: { value: x1 }, uDir: { value: dir } }; m.onBeforeCompile = function(sh){ Object.assign(sh.uniforms, U); sh.vertexShader = sh.vertexShader.replace('#include ', '#include \nvarying vec3 vLP;').replace('#include ', '#include \nvLP = position;'); sh.fragmentShader = sh.fragmentShader .replace('#include ', '#include \nuniform float uRev; uniform float uDiss; uniform float uSheen; uniform vec3 uHot; uniform float uTime; uniform float uX0; uniform float uX1; uniform float uDir; varying vec3 vLP;\n' + FXN) .replace('#include ', '#include \nfloat fxT = clamp((vLP.x - uX0)/(uX1 - uX0), 0., 1.); fxT = uDir > 0.? fxT: 1. - fxT; float fxE = uRev*1.08 - fxT; if (fxE <= 0.0) discard;\nfloat fxN = fx_n(vLP*7.0 + vec3(0.,0.,uTime*.3))*.62 + fx_n(vLP*23.0)*.18 + fxT*.2; if (uDiss > 0.0 && fxN < uDiss) discard;') .replace('#include ', '#include \n' + 'totalEmissiveRadiance += uHot * smoothstep(0.1, 0.0, fxE) * 2.4 * step(uRev, .999);\n' + 'float fxB = exp(-pow((vLP.x*.8 + vLP.y*.6 - vLP.z*.4) - uSheen, 2.0) * 5.0); totalEmissiveRadiance += mix(uHot, vec3(1.), .5) * fxB * .75;\n' + 'if (uDiss > 0.0) totalEmissiveRadiance += mix(uHot, vec3(1.), .4) * smoothstep(uDiss + .04, uDiss, fxN) * 4.0;'); }; return U; } function fxForm(sample, col, n){ // nuvem de luz que converge para a forma (como o "A" da home) var tgt = new Float32Array(n*3), st0 = new Float32Array(n*3), aT = new Float32Array(n), rnd = new Float32Array(n), v = new THREE.Vector3(); for (var i = 0; i < n; i++){ sample(v); tgt[i*3] = v.x; tgt[i*3+1] = v.y; tgt[i*3+2] = v.z; aT[i] = Math.random(); rnd[i] = Math.random(); var th = Math.random()*Math.PI*2, ph = Math.acos(2*Math.random()-1), R = 1.6 + Math.random()*1.6; st0[i*3] = v.x + R*Math.sin(ph)*Math.cos(th); st0[i*3+1] = v.y + R*Math.cos(ph)*0.7; st0[i*3+2] = v.z + R*Math.sin(ph)*Math.sin(th); } var g = new THREE.BufferGeometry(); g.setAttribute('position', new THREE.BufferAttribute(tgt, 3)); g.setAttribute('aStart', new THREE.BufferAttribute(st0, 3)); g.setAttribute('aT', new THREE.BufferAttribute(aT, 1)); g.setAttribute('aRnd', new THREE.BufferAttribute(rnd, 1)); var U = { uForm: { value: 0 }, uFade: { value: 0 }, uTime: { value: 0 }, uPx: { value: renderer.getPixelRatio() }, uC: { value: new THREE.Color(col) } }; var m = new THREE.ShaderMaterial({ uniforms: U, transparent: true, blending: THREE.AdditiveBlending, depthWrite: false, vertexShader: 'attribute vec3 aStart; attribute float aT; attribute float aRnd; uniform float uForm; uniform float uFade; uniform float uTime; uniform float uPx; varying float vA; varying float vHot;' + 'void main(){ float f = clamp(uForm*1.7 - (aT*.45 + aRnd*.25), 0., 1.); f = 1. - pow(1. - f, 3.); vec3 p = mix(aStart, position, f); float ang = (1. - f)*(2.2 + aRnd*2.); float c = cos(ang), s = sin(ang); p.xz = mat2(c, -s, s, c)*(p.xz - position.xz) + position.xz;' + ' p += vec3(sin(uTime*2.1 + aRnd*40.), cos(uTime*1.7 + aRnd*25.), 0.)*.008*f; vHot = smoothstep(.85, 1., f)*(1. - uFade); vA = f*(.3 + .7*f)*(1. - uFade);' + ' vec4 mv = modelViewMatrix*vec4(p, 1.); gl_PointSize = (1.2 + aRnd*1.8)*(1. + (1. - f)*1.3)*uPx*(28./-mv.z); gl_Position = projectionMatrix*mv; }', fragmentShader: 'uniform vec3 uC; varying float vA; varying float vHot; void main(){ float d = length(gl_PointCoord - .5); gl_FragColor = vec4(mix(uC, vec3(1.), .25 + vHot*.5), smoothstep(.5, 0., d)*vA); }' }); var P = new THREE.Points(g, m); P.frustumCulled = false; return { pts: P, U: U }; } function fxSheen(it){ if (reduce) return -9; var k = it - 2.6; if (k < 0) return -9; k = k % 7; return k < 1.4? -3.2 + k/1.4*6.4: -9; } // varre o vidro a cada 7 s /* ---------- texturas utilitárias ---------- */ function radialTex(stops){ var c = document.createElement('canvas'); c.width = c.height = 256; var g = c.getContext('2d'); var r = g.createRadialGradient(128,128,0,128,128,128); stops.forEach(function(s){ r.addColorStop(s[0], s[1]); }); g.fillStyle = r; g.fillRect(0,0,256,256); var t = new THREE.CanvasTexture(c); t.colorSpace = THREE.SRGBColorSpace; return t; } function sprite(tex, sc, op, col){ var s = new THREE.Sprite(new THREE.SpriteMaterial({ map: tex, color: col || 0xffffff, transparent: true, blending: THREE.AdditiveBlending, depthWrite: false, opacity: op })); s.scale.set(sc, sc, 1); return s; } var texGlow = radialTex([[0,'rgba(255,255,255,1)'],[.25,'rgba(255,255,255,.45)'],[.6,'rgba(255,255,255,.1)'],[1,'rgba(0,0,0,0)']]); var texHalo = radialTex([[0,'rgba(0,102,255,.5)'],[.45,'rgba(123,44,255,.28)'],[1,'rgba(0,0,0,0)']]); var texRing = (function(){ var c = document.createElement('canvas'); c.width = c.height = 256; var g = c.getContext('2d'); var r = g.createRadialGradient(128,128,70,128,128,128); r.addColorStop(0,'rgba(0,0,0,0)'); r.addColorStop(.7,'rgba(255,255,255,.95)'); r.addColorStop(.8,'rgba(255,255,255,.35)'); r.addColorStop(1,'rgba(0,0,0,0)'); g.fillStyle = r; g.fillRect(0,0,256,256); var t = new THREE.CanvasTexture(c); t.colorSpace = THREE.SRGBColorSpace; return t; })(); var halo = sprite(texHalo, 7.2, 0); halo.position.set(0, 0.9, -1.6); root.add(halo); /* ---------- rótulo (ícone + nome) desenhado em canvas ---------- */ var TW = 1024, TH = 696; // ícones Lucide (ISC) desenhados como Path2D: os mesmos dos cards da página principal var ICONS = { cloud: ['M12 13v8', 'm8 17 4-4 4 4', 'M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242'], code: ['m16 18 6-6-6-6', 'm8 6-6 6 6 6'], pen: ['M15.707 21.293a1 1 0 0 1-1.414 0l-1.586-1.586a1 1 0 0 1 0-1.414l5.586-5.586a1 1 0 0 1 1.414 0l1.586 1.586a1 1 0 0 1 0 1.414z', 'm18 13-1.375-6.874a1 1 0 0 0-.746-.776L3.235 2.028a1 1 0 0 0-1.207 1.207L5.35 15.879a1 1 0 0 0 .776.746L13 18', 'm2.3 2.3 7.286 7.286', 'M13 11a2 2 0 1 1-4 0a2 2 0 1 1 4 0'], mega: ['m3 11 18-5v12L3 14v-3z', 'M11.6 16.8a3 3 0 1 1-5.8-1.6'] }; function drawIcon(g, kind, x, y, s, col){ g.save(); g.translate(x, y); g.scale(s/24, s/24); g.strokeStyle = col; g.lineWidth = 1.7; g.lineCap = 'round'; g.lineJoin = 'round'; (ICONS[kind] || []).forEach(function(d){ try { g.stroke(new Path2D(d)); } catch(e){} }); g.restore(); } function labelCanvas(L){ var c = document.createElement('canvas'); c.width = TW; c.height = TH; var g = c.getContext('2d'); function paint(){ g.clearRect(0,0,TW,TH); // moldura interna fina g.strokeStyle = 'rgba(255,255,255,.14)'; g.lineWidth = 3; g.beginPath(); if (g.roundRect) g.roundRect(46,46,TW-92,TH-92,44); else g.rect(46,46,TW-92,TH-92); g.stroke(); // "chip" do ícone g.fillStyle = 'rgba(255,255,255,.08)'; g.beginPath(); if (g.roundRect) g.roundRect(60,372,210,210,50); else g.rect(60,372,210,210); g.fill(); g.shadowColor = L.e; g.shadowBlur = 26; drawIcon(g, L.icon, 95, 407, 140, '#ffffff'); g.shadowBlur = 0; g.fillStyle = '#ffffff'; g.font = '800 92px Montserrat, Roboto, Arial, sans-serif'; g.textBaseline = 'alphabetic'; var nm = L.name, fs = 92; while (g.measureText(nm).width > 580 && fs > 44){ fs -= 4; g.font = '800 ' + fs + 'px Montserrat, Roboto, Arial, sans-serif'; } g.shadowColor = L.e; g.shadowBlur = 18; g.fillText(nm, 300, 480); g.shadowBlur = 0; g.fillStyle = 'rgba(225,220,255,.82)'; g.font = '500 44px Roboto, Arial, sans-serif'; g.fillText(L.sub, 302, 548); } paint(); return { canvas: c, paint: paint }; } /* ---------- placas de vidro ---------- */ var PW = 2.8, PD = 1.9, PT = 0.1, GAP = 0.58, SH = 0.26, CXO = 0.98, CZO = -0.5; // SH: cada camada recua um pouco (escada) para os rótulos aparecerem function rr(w, h, r){ var s = new THREE.Shape(), x = -w/2, y = -h/2; s.moveTo(x + r, y); s.lineTo(x + w - r, y); s.quadraticCurveTo(x + w, y, x + w, y + r); s.lineTo(x + w, y + h - r); s.quadraticCurveTo(x + w, y + h, x + w - r, y + h); s.lineTo(x + r, y + h); s.quadraticCurveTo(x, y + h, x, y + h - r); s.lineTo(x, y + r); s.quadraticCurveTo(x, y, x + r, y); return s; } var shape = rr(PW, PD, 0.22); var slabGeo = new THREE.ExtrudeGeometry(shape, { depth: PT, bevelEnabled: true, bevelThickness: 0.03, bevelSize: 0.03, bevelSegments: mobile? 2: 4, curveSegments: mobile? 8: 14 }); slabGeo.rotateX(-Math.PI/2); slabGeo.translate(0, -PT/2, 0); var outline = shape.getPoints(mobile? 10: 18).map(function(p){ return new THREE.Vector3(p.x, 0, -p.y); }); var edgeCurve = new THREE.CatmullRomCurve3(outline, true, 'catmullrom', 0.05); var edgeGeo = new THREE.TubeGeometry(edgeCurve, mobile? 140: 260, 0.012, 6, true); var labelGeo = new THREE.PlaneGeometry(PW * 0.96, PD * 0.96); labelGeo.rotateX(-Math.PI/2); var fontsReady = document.fonts && document.fonts.load? Promise.all([document.fonts.load('800 80px Montserrat'), document.fonts.load('500 40px Roboto')]): Promise.resolve(); var P = LAYERS.map(function(L, i){ var g = new THREE.Group(); stack.add(g); var col = new THREE.Color(L.c), ecol = new THREE.Color(L.e); var mat = mobile? new THREE.MeshStandardMaterial({ color: col.clone().lerp(new THREE.Color(0x0a0c22), 0.45), metalness: 0.3, roughness: 0.18, transparent: true, opacity: 0, emissive: col, emissiveIntensity: 0.28, envMapIntensity: 1.3, depthWrite: false }): new THREE.MeshPhysicalMaterial({ color: col.clone().lerp(new THREE.Color(0x0a0c22), 0.4), metalness: 0.12, roughness: 0.08, clearcoat: 1, clearcoatRoughness: 0.04, iridescence: 0.55, iridescenceIOR: 1.35, transparent: true, opacity: 0, emissive: col, emissiveIntensity: 0.3, envMapIntensity: 1.5, depthWrite: false }); var slab = new THREE.Mesh(slabGeo, mat); slab.renderOrder = i*4; g.add(slab); var em = new THREE.ShaderMaterial({ uniforms: { uDraw: { value: 0 }, uA: { value: 0 }, uTime: { value: 0 }, uC: { value: ecol }, uScan: { value: 0 } }, vertexShader: 'varying vec2 vUv; void main(){ vUv = uv; gl_Position = projectionMatrix*modelViewMatrix*vec4(position,1.); }', fragmentShader: 'uniform float uDraw; uniform float uA; uniform float uTime; uniform vec3 uC; uniform float uScan; varying vec2 vUv; void main(){ if (vUv.x > uDraw) discard; float tip = smoothstep(.05,0.,uDraw - vUv.x)*step(uDraw,.999); float run = pow(.5+.5*sin(vUv.x*37.7 - uTime*2.6),8.); gl_FragColor = vec4(uC*(1.2 + tip*2.5 + run*.8 + uScan*2.), uA*(.75 + tip*.25 + run*.25)); }', transparent: true, blending: THREE.AdditiveBlending, depthWrite: false }); var edge = new THREE.Mesh(edgeGeo, em); edge.position.y = PT/2 + 0.03; edge.renderOrder = i*4 + 1; g.add(edge); var edgeB = new THREE.Mesh(edgeGeo, em); edgeB.position.y = -PT/2 - 0.03; edgeB.scale.set(1, 1, 1); edgeB.renderOrder = i*4 + 1; g.add(edgeB); var lc = labelCanvas(L), ltex = new THREE.CanvasTexture(lc.canvas); ltex.colorSpace = THREE.SRGBColorSpace; ltex.anisotropy = Math.min(8, renderer.capabilities.getMaxAnisotropy()); fontsReady.then(function(){ lc.paint(); ltex.needsUpdate = true; }, function(){}); var lmat = new THREE.MeshBasicMaterial({ map: ltex, transparent: true, opacity: 0, depthWrite: false, toneMapped: false }); var label = new THREE.Mesh(labelGeo, lmat); label.position.y = PT/2 + 0.036; label.renderOrder = i*4 + 2; g.add(label); var glow = sprite(texGlow, 1.9, 0, col); glow.position.set(0, -0.05, 0.2); glow.renderOrder = i*4 + 3; g.add(glow); var node = sprite(texRing, 0.34, 0, ecol); node.position.set(CXO, PT/2 + 0.05, CZO); node.renderOrder = i*4 + 3; g.add(node); var fx = fxGlass(mat, L.e, -PW/2 - 0.05, PW/2 + 0.05, 1); var fm = fxForm(function(v){ if (Math.random() < .45){ var q = edgeCurve.getPoint(Math.random()); v.set(q.x, PT/2 + 0.03, q.z); } else v.set((Math.random()-.5)*PW*.92, PT/2 + 0.02, (Math.random()-.5)*PD*.9); }, L.e, mobile? 80: 220); fm.pts.renderOrder = i*4 + 3; g.add(fm.pts); return { g: g, slab: slab, mat: mat, em: em, label: label, lmat: lmat, glow: glow, node: node, lift: 0, liftT: 0, hot: 0, fx: fx, fm: fm.U }; }); /* ---------- coluna de dados: pacotes de luz sobem conectando as camadas ---------- */ var COL_H = 3 * GAP + 1.1; var colMat = new THREE.ShaderMaterial({ uniforms: { uTime: { value: 0 }, uGrow: { value: 0 }, uA: { value: new THREE.Color(0x3d8bff) }, uB: { value: new THREE.Color(0xd08bff) } }, vertexShader: 'varying vec2 vUv; void main(){ vUv = uv; gl_Position = projectionMatrix*modelViewMatrix*vec4(position,1.); }', fragmentShader: 'uniform float uTime; uniform float uGrow; uniform vec3 uA; uniform vec3 uB; varying vec2 vUv; void main(){ if (vUv.y > uGrow) discard; float p = pow(.5+.5*sin(vUv.y*28. - uTime*5.),10.); float tip = smoothstep(.08,0.,uGrow - vUv.y)*step(uGrow,.999); vec3 c = mix(uA,uB,vUv.y); float edge = 1.-abs(vUv.x-.5)*2.; gl_FragColor = vec4(c*(1.+p*2.+tip*3.), (.35+p*.65+tip)*(.25+.75*edge)*smoothstep(0.,.08,vUv.y)*smoothstep(1.,.9,vUv.y)); }', transparent: true, blending: THREE.AdditiveBlending, depthWrite: false, side: THREE.DoubleSide }); var cA = new THREE.Vector3(), cB = new THREE.Vector3(), cD = new THREE.Vector3(), UP = new THREE.Vector3(0,1,0); var column = new THREE.Mesh(new THREE.CylinderGeometry(0.028, 0.028, 1, 12, 1, true), colMat); column.renderOrder = 30; stack.add(column); var KN = mobile? 14: 28, kPos = new Float32Array(KN*3), kPh = new Float32Array(KN), kA = new Float32Array(KN); for (var k = 0; k < KN; k++) kPh[k] = Math.random(); var kGeo = new THREE.BufferGeometry(); kGeo.setAttribute('position', new THREE.BufferAttribute(kPos, 3)); kGeo.setAttribute('aA', new THREE.BufferAttribute(kA, 1)); var kMat = new THREE.ShaderMaterial({ uniforms: { uPx: { value: renderer.getPixelRatio() } }, vertexShader: 'attribute float aA; uniform float uPx; varying float vA; void main(){ vA = aA; vec4 mv = modelViewMatrix*vec4(position,1.); gl_PointSize = (2.+aA*3.)*uPx*(26./-mv.z); gl_Position = projectionMatrix*mv; }', fragmentShader: 'varying float vA; void main(){ float d = length(gl_PointCoord-.5); gl_FragColor = vec4(mix(vec3(.55,.75,1.),vec3(1.),vA), smoothstep(.5,0.,d)*vA); }', transparent: true, blending: THREE.AdditiveBlending, depthWrite: false }); var packets = new THREE.Points(kGeo, kMat); packets.frustumCulled = false; packets.renderOrder = 31; stack.add(packets); /* ---------- poeira de luz ao redor ---------- */ var N = mobile? 160: 520, dPos = new Float32Array(N*3), dSz = new Float32Array(N), dMx = new Float32Array(N), dSp = new Float32Array(N); for (var i = 0; i < N; i++){ var a = Math.random()*Math.PI*2, r = 1.2 + Math.pow(Math.random(), 0.8)*2.4; dPos[i*3] = Math.cos(a)*r; dPos[i*3+1] = Math.random()*3.6 - 0.8; dPos[i*3+2] = Math.sin(a)*r; dSz[i] = 0.5 + Math.random()*1.6; dMx[i] = Math.random(); dSp[i] = 0.05 + Math.random()*0.15; } var dGeo = new THREE.BufferGeometry(); dGeo.setAttribute('position', new THREE.BufferAttribute(dPos, 3)); dGeo.setAttribute('aSize', new THREE.BufferAttribute(dSz, 1)); dGeo.setAttribute('aMix', new THREE.BufferAttribute(dMx, 1)); dGeo.setAttribute('aSpd', new THREE.BufferAttribute(dSp, 1)); var dMat = new THREE.ShaderMaterial({ uniforms: { uPx: { value: renderer.getPixelRatio() }, uTime: { value: 0 }, uAlpha: { value: 0 }, uSpread: { value: 0 }, uA: { value: new THREE.Color(0xA99BFF) }, uB: { value: new THREE.Color(0x3d8bff) } }, vertexShader: 'attribute float aSize; attribute float aMix; attribute float aSpd; uniform float uPx; uniform float uTime; uniform float uSpread; varying float vMix; varying float vF; void main(){ vMix = aMix; vec3 p = position; p.y = mod(p.y + 0.8 + uTime*aSpd, 3.6) - 0.8; float a = uTime*aSpd*.6; p.xz = mat2(cos(a),-sin(a),sin(a),cos(a))*p.xz*(1.+uSpread*.6); vF = smoothstep(-.8,-.4,p.y)*smoothstep(2.8,2.2,p.y); vec4 mv = modelViewMatrix*vec4(p,1.); gl_PointSize = aSize*uPx*(26./-mv.z); gl_Position = projectionMatrix*mv; }', fragmentShader: 'uniform float uAlpha; uniform vec3 uA; uniform vec3 uB; varying float vMix; varying float vF; void main(){ float d = length(gl_PointCoord-.5); gl_FragColor = vec4(mix(uA,uB,vMix), smoothstep(.5,0.,d)*uAlpha*vF); }', transparent: true, blending: THREE.AdditiveBlending, depthWrite: false }); var dust = new THREE.Points(dGeo, dMat); dust.frustumCulled = false; root.add(dust); /* ---------- interação ---------- */ var mouse = { x: 0, y: 0, tx: 0, ty: 0, inside: false }; var ray = new THREE.Raycaster(), ndc = new THREE.Vector2(), hitIdx = -1; function onMove(e){ var r = hero.getBoundingClientRect(); mouse.tx = ((e.clientX - r.left) / r.width) * 2 - 1; mouse.ty = ((e.clientY - r.top) / r.height) * 2 - 1; var cr = renderer.domElement.getBoundingClientRect(); ndc.set(((e.clientX - cr.left)/cr.width)*2-1, -((e.clientY - cr.top)/cr.height)*2+1); mouse.inside = e.clientX >= cr.left && e.clientX <= cr.right && e.clientY >= cr.top && e.clientY <= cr.bottom; } if (!mobile) hero.addEventListener('pointermove', onMove, { passive: true }); // toque (celular/tablet): tocar numa peça acende e levanta ela por 1,6 s — o mesmo destaque do hover do mouse var tapIdx = -1, tapUntil = 0, TAPS = P.map(function(p){ return p.slab; }); function onTap(e){ if (e.pointerType === 'mouse') return; var cr = renderer.domElement.getBoundingClientRect(); ndc.set(((e.clientX - cr.left)/cr.width)*2-1, -((e.clientY - cr.top)/cr.height)*2+1); ray.setFromCamera(ndc, camera); var th = ray.intersectObjects(TAPS, false); tapIdx = -1; if (th.length) for (var q = 0; q < TAPS.length; q++) if (TAPS[q] === th[0].object){ tapIdx = q; break; } tapUntil = clock.getElapsedTime() + 1.6; lastDraw = 0; } renderer.domElement.addEventListener('pointerup', onTap, { passive: true }); /* ---------- feixes até os cards flutuantes (card de infra ← base; Edge/IA ← software) ---------- */ var cards = Array.prototype.slice.call(document.querySelectorAll(CFG.cards)); var beams = null, bctx = null, hot = [], anyHot = 0, cardLayer = []; cards.forEach(function(c, k){ cardLayer[k] = c.classList.contains('card-flout-rotate-negative')? 0: 1; hot[k] = 0; c.addEventListener('mouseenter', function(){ c.__asHot = 1; }); c.addEventListener('mouseleave', function(){ c.__asHot = 0; }); }); if (!mobile && cards.length){ beams = document.createElement('canvas'); beams.className = 'as3d-beams'; getComputedStyle(hero).position === 'static' && (hero.style.position = 'relative'); hero.appendChild(beams); bctx = beams.getContext('2d'); } var wp = new THREE.Vector3(); function drawBeams(t, fade){ anyHot = 0; cards.forEach(function(c, k){ hot[k] += ((c.__asHot || 0) - hot[k]) * 0.12; anyHot = Math.max(anyHot, hot[k]); }); if (!bctx) return; var hr = hero.getBoundingClientRect(), W = Math.round(hr.width), H = Math.round(hr.height); if (beams.width !== W || beams.height !== H){ beams.width = W; beams.height = H; } bctx.clearRect(0,0,W,H); if (fade <= 0.01) return; var cr = renderer.domElement.getBoundingClientRect(); cards.forEach(function(c, k){ var b = c.getBoundingClientRect(); if (!b.width) return; P[cardLayer[k]].node.getWorldPosition(wp); wp.project(camera); var ox = cr.left - hr.left + (wp.x*.5+.5)*cr.width, oy = cr.top - hr.top + (-wp.y*.5+.5)*cr.height; var tx = b.left - hr.left + b.width/2, ty = b.top - hr.top + b.height/2; var dx = ox - tx, dy = oy - ty, kk = Math.min((b.width/2) / Math.abs(dx || 1), (b.height/2) / Math.abs(dy || 1), 1); var ex = tx + dx*kk, ey = ty + dy*kk, mx = (ox+ex)/2 + (oy-ey)*0.16, my = (oy+ey)/2 - (ox-ex)*0.16; var h = hot[k], a = (0.26 + h*0.6) * fade, L = LAYERS[cardLayer[k]]; var grad = bctx.createLinearGradient(ox,oy,ex,ey); grad.addColorStop(0, L.e); grad.addColorStop(1, 'rgba(169,155,255,.9)'); bctx.lineCap = 'round'; bctx.strokeStyle = grad; bctx.beginPath(); bctx.moveTo(ox,oy); bctx.quadraticCurveTo(mx,my,ex,ey); bctx.globalAlpha = 0.2*a; bctx.lineWidth = 6 + h*7; bctx.stroke(); bctx.globalAlpha = a; bctx.lineWidth = 1.2 + h*1.8; bctx.stroke(); bctx.globalAlpha = 1; for (var j = 0; j < 3; j++){ var u = ((t*(0.35 + h*0.5) + j/3 + k*0.17) % 1), iu = 1-u, px = iu*iu*ox + 2*iu*u*mx + u*u*ex, py = iu*iu*oy + 2*iu*u*my + u*u*ey; bctx.fillStyle = 'rgba(225,210,255,' + ((0.55+h*0.45)*fade*Math.sin(u*Math.PI)) + ')'; bctx.beginPath(); bctx.arc(px, py, 1.6 + h*1.6, 0, Math.PI*2); bctx.fill(); } }); } /* ---------- coreografia de entrada (~2,5 s): contorno neon → vidro pousa → rótulo → coluna de dados → varredura ---------- */ function seg(x, a, b){ return Math.min(1, Math.max(0, (x - a) / (b - a))); } function eO3(x){ return 1 - Math.pow(1 - x, 3); } function eBack(x){ var c1 = 1.4, c3 = c1 + 1; return 1 + c3*Math.pow(x - 1, 3) + c1*Math.pow(x - 1, 2); } function eIO(x){ return x < .5? 4*x*x*x: 1 - Math.pow(-2*x + 2, 3) / 2; } function sm(a, b, x){ x = Math.min(1, Math.max(0, (x - a) / (b - a))); return x*x*(3-2*x); } var st = { amb: 0, col: 0, fin: 0, scan: -1, L: [0,0,0,0].map(function(){ return { draw: 0, body: 0, label: 0, form: 0, rev: 0, settle: 0 }; }) }; function intro(T){ st.amb = eO3(seg(T, 0, 0.8)); for (var i = 0; i < 4; i++){ var s = 0.1 + i*0.32; st.L[i].draw = eIO(seg(T, s, s + 0.6)); st.L[i].body = seg(T, s + 0.25, s + 0.85); st.L[i].label = eO3(seg(T, s + 0.55, s + 0.95)); st.L[i].form = seg(T, Math.max(0, s - 0.1), s + 0.55); st.L[i].rev = eIO(seg(T, s + 0.2, s + 0.8)); st.L[i].settle = seg(T, s + 0.55, s + 1.0); } st.col = eIO(seg(T, 1.2, 2.0)); st.fin = eO3(seg(T, 1.9, 2.6)); st.scan = T > 1.95 && T < 2.6? seg(T, 1.95, 2.55): -1; } var IT = 0, ready = false, wasOut = false; function finalState(){ IT = 99; intro(IT); } if (reduce) finalState(); /* ---------- loop ---------- */ var dprS = [], lastS = 0, clock = new THREE.Clock(), lastDraw = 0, running = true, visible = true, raf = 0, lastT = 0, dive = 0; function frame(){ raf = requestAnimationFrame(frame); if (!running || !visible || !ready) return; var now = performance.now(); if (st.fin >= 1 && !mouse.inside && dive < 0.001 && anyHot < 0.01 && now - lastDraw < 32) return; lastDraw = now; // ocioso: 30fps if (dprS && st.fin < 1){ var nowS = performance.now(); if (lastS) dprS.push(nowS - lastS); lastS = nowS; // qualidade adaptativa: mede a entrada e, se estiver pesada, baixa a resolução uma vez if (dprS.length >= 40){ var nd = nextDpr(dprS, renderer.getPixelRatio()); dprS = null; if (nd !== renderer.getPixelRatio()){ renderer.setPixelRatio(nd); scene.traverse(function(o){ var u = o.material && o.material.uniforms; if (u && u.uPx) u.uPx.value = nd; }); onResize(); } } } var t = clock.getElapsedTime(), dt = Math.min(0.05, t - lastT); lastT = t; var hrc = (useStageRef(window.innerWidth)? stage: hero).getBoundingClientRect(), tgt = diveTarget(hrc.top, hrc.height, reduce); dive += (tgt - dive) * 0.14; if (Math.abs(tgt - dive) < 0.0005) dive = tgt; if (!reduce){ IT += dt; intro(IT); } var d = dive, fin = st.fin; if (d > 0.45) wasOut = true; else if (wasOut && d < 0.3){ wasOut = false; IT = 0; } // voltou ao hero: monta a pilha de novo mouse.x += (mouse.tx - mouse.x) * 0.05; mouse.y += (mouse.ty - mouse.y) * 0.05; // hover: a camada sob o cursor sobe e acende (o card ligado a ela também acende a camada) hitIdx = -1; if (mouse.inside && fin > 0.5){ ray.setFromCamera(ndc, camera); var hits = ray.intersectObjects(P.map(function(p){ return p.slab; }), false); if (hits.length) for (var q = 0; q < 4; q++) if (P[q].slab === hits[0].object){ hitIdx = q; break; } } if (tapIdx >= 0 && fin > 0.5 && tapActive(t, tapUntil)) hitIdx = tapIdx; var ex = sm(0, 0.7, d), gap = GAP + ex*0.95; for (var i = 0; i < 4; i++){ var p = P[i], L = st.L[i], cardHot = 0; cards.forEach(function(c, k){ if (cardLayer[k] === i) cardHot = Math.max(cardHot, hot[k]); }); p.liftT = (hitIdx === i? 0.2: 0) + cardHot*0.16; p.lift += (p.liftT - p.lift) * 0.1; p.hot += ((hitIdx === i? 1: cardHot) - p.hot) * 0.1; var bob = Math.sin(t*0.9 + i*0.8) * 0.035 * fin; var drop = (1 - eBack(L.body)) * 0.9; p.g.position.y = i*gap + drop + bob + p.lift + ex*i*0.12; p.g.position.z = -i*SH; p.g.rotation.y = ex*(i - 1.5)*0.12; var vis = L.body > 0? Math.min(1, L.body*1.6): 0; p.mat.opacity = 0.6 * vis * (1 - sm(0.55, 0.85, d)); p.mat.emissiveIntensity = (i === 3? 0.16: 0.22) + p.hot*0.35 + 0.05*Math.sin(t*1.4 + i); p.em.uniforms.uDraw.value = L.draw; p.em.uniforms.uTime.value = t; var scanHit = st.scan >= 0? Math.max(0, 1 - Math.abs(st.scan*3.6 - i)*1.4): 0; p.em.uniforms.uScan.value = scanHit + p.hot*0.6; p.em.uniforms.uA.value = (0.55 + p.hot*0.45) * (L.draw > 0? 1: 0) * (1 - sm(0.6, 0.9, d)); p.lmat.opacity = L.label * (0.92 + p.hot*0.08) * (1 - sm(0.45, 0.75, d)); p.fx.uRev.value = L.rev; p.fx.uTime.value = t; p.fx.uDiss.value = sm(0.12, 0.55, d) * 1.05; p.fx.uSheen.value = fxSheen(IT) - i*0.6; p.fm.uForm.value = L.form; p.fm.uFade.value = Math.max(L.settle, sm(0.1, 0.4, d)); p.fm.uTime.value = t; p.fm.uPx.value = renderer.getPixelRatio(); p.glow.material.opacity = vis * (0.22 + p.hot*0.3 + scanHit*0.5) * (1 - sm(0.5, 0.8, d)); p.node.material.opacity = st.col * (0.55 + 0.35*Math.sin(t*3 - i) + scanHit) * (1 - sm(0.5, 0.8, d)); p.node.scale.setScalar(0.3 + scanHit*0.35 + p.hot*0.12); } // coluna e pacotes var topY = 3*gap + 0.55; cA.set(CXO, -0.55, CZO + 0.55*SH/gap); cB.set(CXO, topY, CZO - 3*SH - 0.55*SH/gap); cD.subVectors(cB, cA); column.scale.set(1, cD.length(), 1); column.position.addVectors(cA, cB).multiplyScalar(0.5); column.quaternion.setFromUnitVectors(UP, cD.clone().normalize()); colMat.uniforms.uTime.value = t; colMat.uniforms.uGrow.value = st.col * (1 - sm(0.6, 0.9, d)); for (var k = 0; k < KN; k++){ var ph = (kPh[k] + t*0.22) % 1; kPos[k*3] = cA.x + cD.x*ph; kPos[k*3+1] = cA.y + cD.y*ph; kPos[k*3+2] = cA.z + cD.z*ph; kA[k] = st.col * Math.sin(ph*Math.PI) * (ph < st.col? 1: 0) * (1 - sm(0.6, 0.9, d)); } kGeo.attributes.position.needsUpdate = true; kGeo.attributes.aA.needsUpdate = true; // atmosfera halo.material.opacity = (0.35 + 0.3*st.amb + fin*0.15) * (1 - sm(0.5, 0.85, d)); dMat.uniforms.uTime.value = t; dMat.uniforms.uAlpha.value = 0.8 * st.amb * (1 - d*0.7); dMat.uniforms.uSpread.value = ex; // câmera/pilha: mouse + respiração; no scroll a pilha abre e a câmera sobe root.rotation.y = fin*(mouse.x*0.28 + Math.sin(t*0.3)*0.06); root.rotation.x = fin*(mouse.y*0.08); stack.rotation.y = BASE_RY + ex*0.35; camera.position.set(CAM.x, CAM.y + ex*0.9, CAM.z + ex*0.6); LOOK.y = 0.95 + ex*0.9; camera.lookAt(LOOK); stage.style.opacity = String(1 - sm(0.6, 0.9, d)); cursorLight.intensity += ((mouse.inside? 7: 3) * fin - cursorLight.intensity) * 0.05; cursorLight.position.set(mouse.x*2.4, 2.6, 1.8 - mouse.y*1.2); cards.forEach(function(c){ c.style.opacity = String(1 - Math.min(1, d*1.8)); c.style.visibility = d > 0.56? 'hidden': ''; }); renderer.render(scene, camera); drawBeams(t, fin * (1 - Math.min(1, d*3))); } /* ---------- ciclo de vida ---------- */ var io = new IntersectionObserver(function(en){ visible = en[0].isIntersecting; }, { rootMargin: '100px' }); io.observe(stage); function onVis(){ running = document.visibilityState === 'visible'; } document.addEventListener('visibilitychange', onVis); function onResize(){ var s = place(); renderer.setSize(s, s, false); } var rt = 0; function onWinResize(){ clearTimeout(rt); rt = setTimeout(onResize, 150); } window.addEventListener('resize', onWinResize, { passive: true }); var ro = window.ResizeObserver? new ResizeObserver(onWinResize): null; if (ro){ ro.observe(host); ro.observe(anchor); } window.__as3dT.built = performance.now(); function go(){ if (ready) return; ready = true; window.__as3dT.ready = performance.now(); clock.start(); lastT = 0; hero.classList.add('as3d-hero-top'); stage.classList.add('is-ready'); if (reduce){ frame(); cancelAnimationFrame(raf); running = false; lastDraw = 0; renderer.render(scene, camera); drawBeams(0, 1); } } try { (renderer.compileAsync? renderer.compileAsync(scene, camera): Promise.resolve(renderer.compile(scene, camera))).then(go, go); } catch(e){ go(); } setTimeout(go, 2500); frame(); window.__ativeServ3DApi = { state: st, P: P, pause: function(){ running = false; }, resume: function(){ running = document.visibilityState === 'visible'; lastDraw = 0; }, destroy: function(){ cancelAnimationFrame(raf); io.disconnect(); document.removeEventListener('visibilitychange', onVis); hero.removeEventListener('pointermove', onMove); renderer.domElement.removeEventListener('pointerup', onTap); window.removeEventListener('resize', onWinResize); ro && ro.disconnect(); scene.traverse(function(o){ if (o.geometry) o.geometry.dispose(); if (o.material){ (Array.isArray(o.material)?o.material:[o.material]).forEach(function(m){ m.map && m.map.dispose(); m.dispose(); }); } }); [texGlow, texHalo, texRing].forEach(function(x){ x.dispose(); }); envRT.dispose(); pmrem.dispose(); renderer.dispose(); stage.remove(); beams && beams.remove(); hero.classList.remove('as3d-hero-top'); window.__ativeServ3D = false; } }; } // começa já na leitura do script (o widget fica dentro do hero) whenCalm(boot); })();

⚙ ATIVE · Planos, scroll horizontal (código CSS/JS). Clique para editar.

'; document.body.appendChild(modal); modal.addEventListener('click',function(e){if(e.target===modal||e.target.closest('.apc-ia-fechar')){modal.close();}}); modal.addEventListener('close',function(){if(volta){volta.focus();}}); } function abrir(el){if(!modal){montar();}volta=el;if(modal.open){return;}var t=TX[el.getAttribute('data-apc-ia')]||TX.geral;modal.querySelector('#apc-ia-tit').textContent=t[0];modal.querySelector('.apc-ia-corpo').innerHTML=t[1]+FIM;if(modal.showModal){modal.showModal();}else{modal.setAttribute('open','');}modal.querySelector('.apc-ia-fechar').focus();} // o trecho do aviso vem gravado no item como …ⓘ; aqui vira botão acessível function marcar(){ var hs=document.querySelectorAll('.apc-ia-info:not([role])'); for(var i=0;i
