/* As Marcas IA - v2 (30/09/2026, ATIV#7208).
   Design system herdado do asmarcas.com.br (tokens --am-*, Fraunces + Inter, simbolo de nos, botao pilula).
   Tema escuro por desenho: o fundo e o espaco (nebulosa WebGL + rede neural em canvas, js/cosmos.js). */

@font-face { font-family: "Fraunces"; src: url("/fonts/fraunces.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: dark;
  --am-bg: #15171C;
  --am-espaco: #0B0D14;
  --am-superficie: #222428;
  --am-texto: #F2F2F2;
  --am-texto-fraco: #A6ACB8;
  --am-accent: #6C8CFF;
  --am-accent-forte: #8AA2FF;
  --am-borda: #34373F;
  --am-violeta: #A48BFF;
  --am-ciano: #6FD8FF;
  --am-radius: 14px;
  --am-fonte-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --am-fonte-corpo: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --am-fonte-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', Menlo, Consolas, monospace;
  --vidro: rgba(21, 23, 28, 0.52);
  --vidro-borda: rgba(166, 172, 184, 0.14);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
body {
  /* fallback sem WebGL: o espaco em gradientes */
  background:
    radial-gradient(1200px 700px at 50% 38%, rgba(108, 140, 255, 0.16), transparent 60%),
    radial-gradient(900px 600px at 80% 90%, rgba(164, 139, 255, 0.10), transparent 60%),
    var(--am-espaco);
  color: var(--am-texto);
  font-family: var(--am-fonte-corpo);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--am-fonte-display); font-weight: 600; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--am-accent); text-decoration: none; }
a:hover { color: var(--am-accent-forte); }
:focus-visible { outline: 2px solid var(--am-accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- camadas do espaco ---------- */
.camada-fundo { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; display: block; }
#nebula { z-index: -3; }
#cosmos { z-index: -2; }
.grao {
  position: fixed; inset: -50%; z-index: -1; pointer-events: none; opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.pular {
  position: absolute; left: -9999px; top: 0; z-index: 1000; background: var(--am-superficie); color: var(--am-texto);
  padding: 10px 16px; border-radius: 0 0 8px 0;
}
.pular:focus { left: 0; }

/* ---------- topo (como o asmarcas.com.br) ---------- */
.topo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; gap: 28px;
  padding: 16px clamp(16px, 4vw, 40px);
  transition: background .35s ease, border-color .35s ease, padding .35s ease;
  border-bottom: 1px solid transparent;
}
.topo.rolado {
  background: color-mix(in srgb, var(--am-espaco) 72%, transparent);
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--vidro-borda);
  padding-top: 12px; padding-bottom: 12px;
}
.marca { display: flex; align-items: center; gap: 9px; color: var(--am-texto); margin-right: auto; }
.marca:hover { color: var(--am-texto); }
.simbolo { color: var(--am-accent); filter: drop-shadow(0 0 8px rgba(108, 140, 255, 0.55)); }
.wordmark { font-family: var(--am-fonte-display); font-size: 21px; letter-spacing: -0.01em; font-weight: 500; }
.wordmark b { font-weight: 700; color: var(--am-accent); }
.nav { display: flex; gap: 26px; }
.nav a { color: var(--am-texto-fraco); font-size: 14.5px; letter-spacing: 0.01em; }
.nav a:hover { color: var(--am-texto); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px;
  background: var(--am-accent); color: #0B0C0F;
  box-shadow: 0 0 0 1px rgba(138, 162, 255, 0.35), 0 8px 30px -8px rgba(108, 140, 255, 0.7);
  transition: transform .15s ease, background .15s ease, box-shadow .25s ease;
}
.btn:hover { background: var(--am-accent-forte); color: #0B0C0F; transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(138, 162, 255, 0.5), 0 10px 40px -6px rgba(108, 140, 255, 0.9); }
.btn-sm { padding: 8px 18px; font-size: 14px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 110px 16px 90px;
}
.hero-titulo {
  font-size: clamp(2.9rem, 8.4vw, 6.4rem); font-weight: 600; letter-spacing: -0.035em;
  font-variation-settings: "opsz" 144;
  background: linear-gradient(180deg, #FFFFFF 10%, #C9D3F2 95%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 60px rgba(108, 140, 255, 0.18);
}
.hero-titulo .ia {
  background: linear-gradient(100deg, var(--am-accent-forte) 0%, var(--am-ciano) 45%, var(--am-violeta) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fluxo 9s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 22px rgba(111, 216, 255, 0.35));
}
.subtitle {
  margin-top: 18px; font-size: clamp(1.02rem, 2vw, 1.3rem); color: var(--am-texto-fraco);
  max-width: 34ch; text-wrap: balance;
}
@media (min-width: 700px) { .subtitle { max-width: none; } }

/* nucleo de energia: o canvas desenha a esfera neural e as orbitas em volta deste elemento */
.nucleo {
  position: relative; margin-top: clamp(76px, 12vh, 124px);
  width: min(440px, 86vw); aspect-ratio: 1 / 0.62;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.nucleo-rotulo {
  font-family: var(--am-fonte-mono); font-size: 12px; letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--am-accent-forte); padding-left: 0.42em; opacity: 0.9;
}
.ano {
  margin: 4px 0 2px; line-height: 0.95;
  font-family: var(--am-fonte-display); font-weight: 700; letter-spacing: -0.045em;
  font-size: clamp(5.2rem, 17vw, 10.5rem); font-variation-settings: "opsz" 144;
}
.ano span {
  display: inline-block;
  background: linear-gradient(105deg, #DCE4FF 0%, #FFFFFF 38%, var(--am-ciano) 47%, #FFFFFF 56%, #C4CEF5 100%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: varredura 7s cubic-bezier(.6, 0, .25, 1) infinite;
  filter: drop-shadow(0 0 28px rgba(108, 140, 255, 0.55)) drop-shadow(0 0 2px rgba(255, 255, 255, 0.4));
}
.contagem {
  font-family: var(--am-fonte-mono); font-size: 13px; color: var(--am-texto-fraco); letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums; min-height: 1.6em;
}
.contagem b { color: var(--am-texto); font-weight: 600; }

.rolar { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 24px; height: 58px; display: block; }
.rolar-linha {
  position: absolute; left: 50%; top: 0; bottom: 0; width: 1px;
  background: linear-gradient(to bottom, transparent, rgba(166, 172, 184, 0.35), transparent);
  overflow: hidden;
}
.rolar-linha::after {
  content: ""; position: absolute; left: -1px; width: 3px; height: 16px; border-radius: 3px;
  background: var(--am-ciano); box-shadow: 0 0 10px var(--am-ciano);
  animation: pulso-desce 2.6s cubic-bezier(.5, 0, .5, 1) infinite;
}

/* ---------- apresentacao ---------- */
.intro { max-width: 900px; margin: 0 auto; padding: clamp(56px, 9vh, 100px) 16px clamp(70px, 12vh, 130px); text-align: center; position: relative; }
.intro::before {
  content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: clamp(50px, 9vh, 90px);
  background: linear-gradient(to bottom, transparent, rgba(108, 140, 255, 0.55));
}
.intro-texto {
  font-family: var(--am-fonte-display); font-weight: 400; letter-spacing: -0.012em;
  font-size: clamp(1.45rem, 3.1vw, 2.35rem); line-height: 1.35; color: var(--am-texto);
  font-variation-settings: "opsz" 72; text-wrap: balance;
}
.intro-texto .p { display: inline-block; opacity: 0.12; filter: blur(3px); transform: translateY(8px); transition: opacity .9s ease, filter .9s ease, transform .9s ease, color .9s ease; }
.intro-texto.acesa .p { opacity: 1; filter: none; transform: none; }
.intro-texto .p.destaque { color: var(--am-accent-forte); }

/* ---------- produtos ---------- */
.produtos { max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 32px) clamp(90px, 14vh, 150px); }
.secao-titulo { text-align: center; margin-bottom: 44px; }
.sobretitulo {
  display: inline-block; font-family: var(--am-fonte-mono); font-size: 12px; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--am-accent-forte); margin-bottom: 14px; padding-left: 0.34em;
}
.secao-titulo h2 { font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -0.025em; }

.grade { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1020px) { .grade { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grade { grid-template-columns: 1fr; } }

.card {
  --mx: 50%; --my: 0%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; gap: 10px; min-height: 224px;
  padding: 26px 24px 28px; border-radius: 18px;
  background: linear-gradient(180deg, rgba(34, 36, 40, 0.62), rgba(21, 23, 28, 0.5));
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid var(--vidro-borda);
  transition: transform .35s cubic-bezier(.2, .7, .2, 1), border-color .35s ease, box-shadow .35s ease;
}
/* borda de energia que segue o ponteiro */
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; z-index: 1; pointer-events: none;
  background: radial-gradient(240px circle at var(--mx) var(--my), rgba(111, 216, 255, 0.95), rgba(108, 140, 255, 0.55) 35%, transparent 70%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .35s ease;
}
/* luz interna */
.card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(108, 140, 255, 0.16), transparent 60%);
  opacity: 0; transition: opacity .35s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 30px 60px -30px rgba(108, 140, 255, 0.55); }
.card:hover::before, .card:hover::after { opacity: 1; }
.card-topo { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 26px; }
.glifo {
  width: 44px; height: 44px; fill: none; stroke: var(--am-accent-forte); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(108, 140, 255, 0.5));
}
.glifo .brilho { stroke: var(--am-ciano); stroke-dasharray: 60; stroke-dashoffset: 0; }
.card:hover .glifo .brilho { animation: tracar 1.2s ease; }
.indice { font-family: var(--am-fonte-mono); font-size: 12px; color: var(--am-texto-fraco); letter-spacing: 0.12em; opacity: 0.8; }
.card h3 { font-size: 1.55rem; letter-spacing: -0.015em; }
.card p { color: var(--am-texto-fraco); font-size: 15px; line-height: 1.55; }

/* ---------- rodape (como o asmarcas.com.br) ---------- */
.rodape {
  position: relative; border-top: 1px solid var(--vidro-borda);
  background: linear-gradient(180deg, rgba(11, 13, 20, 0.55), rgba(11, 13, 20, 0.92));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: 56px clamp(16px, 4vw, 40px) 28px;
}
.rodape::before {
  content: ""; position: absolute; top: -1px; left: 50%; transform: translateX(-50%); width: min(520px, 70%); height: 1px;
  background: linear-gradient(90deg, transparent, var(--am-ciano), transparent); opacity: 0.7;
}
.rodape-grade { max-width: 1180px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1.2fr 1.2fr; gap: 32px; }
.rodape-grade > div { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; color: var(--am-texto-fraco); }
.rodape-grade strong { color: var(--am-texto-fraco); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600; margin-bottom: 4px; opacity: 0.8; }
.rodape-grade a { color: var(--am-texto-fraco); overflow-wrap: anywhere; }
.rodape-grade a:hover { color: var(--am-texto); }
.rodape-marca p { color: var(--am-texto-fraco); max-width: 34ch; }
.wordmark-rodape { font-size: 24px; color: var(--am-texto); }
.rodape-base {
  max-width: 1180px; margin: 40px auto 0; padding-top: 20px; border-top: 1px solid rgba(166, 172, 184, 0.08);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--am-texto-fraco); font-size: 12.5px; opacity: 0.85;
}
.rodape-2028 { font-family: var(--am-fonte-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--am-accent-forte); }

@media (max-width: 760px) {
  .rodape-grade { grid-template-columns: 1fr; }
  .nav { display: none; }
}
@media (max-width: 380px) {
  .wordmark { font-size: 19px; }
  .topo { gap: 12px; }
}

/* ---------- movimento ---------- */
@keyframes fluxo { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes varredura { 0%, 18% { background-position: 100% 0; } 62%, 100% { background-position: 0% 0; } }
@keyframes pulso-desce { 0% { top: -18px; opacity: 0; } 30% { opacity: 1; } 100% { top: 60px; opacity: 0; } }
@keyframes tracar { from { stroke-dashoffset: 60; } to { stroke-dashoffset: 0; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-titulo .ia, .ano span, .rolar-linha::after { animation: none; }
  .ano span { background-position: 50% 0; }
  .intro-texto .p { opacity: 1; filter: none; transform: none; transition: none; }
  .card, .btn { transition: none; }
  .card:hover, .btn:hover { transform: none; }
  .card:hover .glifo .brilho { animation: none; }
}

/* ---------- atualizacao 14/10/2026 (ATIV#7402): 9 produtos, servicos e novidades ---------- */
.secao-sub { max-width: 62ch; margin: 14px auto 0; color: var(--am-texto-fraco); font-size: 16px; line-height: 1.55; }
.secao-sub a { color: var(--am-accent-forte); text-decoration: underline; text-underline-offset: 3px; }
.grade-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1020px) { .grade-3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grade-3 { grid-template-columns: 1fr; } }
a.card { color: inherit; text-decoration: none; }
a.card:focus-visible { outline: 2px solid var(--am-ciano); outline-offset: 3px; }
.card p { flex: 1; }
.card-estado {
  margin-top: 6px; font-family: var(--am-fonte-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--am-texto-fraco); overflow-wrap: anywhere;
}
.card-estado::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 8px; vertical-align: 1px; background: var(--am-ciano); box-shadow: 0 0 8px var(--am-ciano); }
.card-estado.em-testes::before { background: #F3C96B; box-shadow: 0 0 8px rgba(243, 201, 107, 0.7); }

.servicos, .novidades { max-width: 1180px; margin: 0 auto; padding: 20px clamp(16px, 4vw, 32px) clamp(90px, 14vh, 150px); }
.servicos-lista { list-style: none; counter-reset: svc; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 24px; }
@media (max-width: 760px) { .servicos-lista { grid-template-columns: 1fr; } }
.servicos-lista li { counter-increment: svc; }
.servicos-lista a {
  display: grid; grid-template-columns: 36px 1fr; gap: 4px 12px; align-items: baseline;
  padding: 14px 16px; border-radius: 14px; border: 1px solid var(--vidro-borda);
  background: linear-gradient(180deg, rgba(34, 36, 40, 0.5), rgba(21, 23, 28, 0.4));
  color: inherit; text-decoration: none; transition: border-color .3s ease, transform .3s ease;
}
.servicos-lista a::before { content: counter(svc, decimal-leading-zero); grid-row: span 2; font-family: var(--am-fonte-mono); font-size: 12px; letter-spacing: 0.12em; color: var(--am-accent-forte); opacity: 0.9; }
.servicos-lista a:hover { border-color: rgba(108, 140, 255, 0.55); transform: translateY(-2px); }
.servicos-lista b { font-weight: 600; font-size: 16px; }
.servicos-lista span { grid-column: 2; color: var(--am-texto-fraco); font-size: 14px; line-height: 1.5; }
.servicos-cta { text-align: center; margin-top: 36px; }

.novidades-lista { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; display: grid; gap: 0; position: relative; }
.novidades-lista::before { content: ""; position: absolute; left: 58px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(to bottom, rgba(108, 140, 255, 0.5), rgba(108, 140, 255, 0.08)); }
.novidades-lista li { display: grid; grid-template-columns: 48px 1fr; gap: 24px; padding: 14px 0; position: relative; }
.novidades-lista li::after { content: ""; position: absolute; left: 55px; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--am-ciano); box-shadow: 0 0 8px var(--am-ciano); }
.novidades-lista time { font-family: var(--am-fonte-mono); font-size: 12.5px; letter-spacing: 0.08em; color: var(--am-accent-forte); padding-top: 3px; font-variant-numeric: tabular-nums; }
.novidades-lista div { color: var(--am-texto-fraco); font-size: 15.5px; line-height: 1.6; }
.novidades-lista b { color: var(--am-texto); font-weight: 600; }
.novidades-lista a { color: var(--am-accent-forte); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 560px) {
  .novidades-lista::before { left: 10px; }
  .novidades-lista li { grid-template-columns: 1fr; gap: 4px; padding-left: 26px; }
  .novidades-lista li::after { left: 7px; }
}
