/* Camada de vitrine — vidro, malha, demo, transições. */

@view-transition {
  navigation: auto;
}

::view-transition-old(root) {
  animation: vt-sai 280ms ease both;
}

::view-transition-new(root) {
  animation: vt-entra 380ms ease both;
}

@keyframes vt-sai {
  to {
    opacity: 0;
  }
}

@keyframes vt-entra {
  from {
    opacity: 0;
  }
}

.cabecalho {
  view-transition-name: cabecalho;
}

.malha,
.malha__grade,
.malha__ceu,
.malha__curvas,
.malha__fileiras,
.malha__horizonte,
.malha__polen,
.malha__vinheta {
  display: none;
}

main,
footer {
  position: relative;
  z-index: 1;
}

.cabecalho { z-index: 20; }
.intro { z-index: 90; }
.skip-link { z-index: 100; }

.cabecalho {
  background: #0c0c10;
  border-bottom-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: none;
}

.cabecalho--solido {
  background: rgba(5, 5, 8, 0.78);
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.idioma {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.08);
}

.idioma__btn[aria-pressed="true"] {
  background: rgba(215, 180, 138, 0.16);
  color: var(--cor-branco);
  box-shadow: inset 0 0 0 1px rgba(215, 180, 138, 0.45);
}

.hero h1 {
  text-shadow: none;
}

.hero--vitrine {
  text-align: left;
}

.hero--vitrine .hero__conteudo {
  max-width: 38rem;
  margin: 0;
  padding-left: 0;
}

.hero--vitrine .fila-botoes {
  justify-content: flex-start;
}

.hero--vitrine .hero__cena {
  display: none;
}

.vidro,
.card-servico,
.fluxo__item,
.painel,
.secao-servico,
.faixa-setores__item,
.bloco-mapa--painel,
.vitrine__visual,
.geo-item,
.canal,
.principio {
  background: var(--cor-vidro);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.geo-item {
  padding: var(--space-5);
}

.luz {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.luz::after,
.luz:hover::after,
.luz:focus-within::after {
  content: none;
}

.luz > * {
  position: relative;
  z-index: 1;
}

a.card-servico:hover,
.fluxo__item:hover,
.geo-item:hover {
  transform: none;
  border-color: #d7b48a;
  box-shadow: inset 3px 0 0 #d7b48a;
}

.card-servico__ico,
.fluxo__icone {
  width: auto;
  height: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  border: 0;
  background: none;
  color: #d7b48a;
  margin-bottom: 0.15rem;
}

.card-servico__ico svg,
.fluxo__icone svg {
  width: 1.1rem;
  height: 1.1rem;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.botao--secundario,
a.botao--secundario {
  backdrop-filter: none;
}

.nuvem span {
  background: transparent;
  backdrop-filter: none;
}

.campo input,
.campo select,
.campo textarea {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--raio-2);
  background: #0c0c10;
  backdrop-filter: none;
}

.campo input:focus,
.campo select:focus,
.campo textarea:focus {
  border-color: #d7b48a;
  box-shadow: none;
  outline: none;
}

.skip-link {
  color: var(--cor-botao-texto);
}

/* Hero vitrine + demo */

.hero-grade {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.fatos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-8);
}

.fato {
  padding: var(--space-4) 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.fato__n {
  display: block;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: var(--fw-semibold);
  letter-spacing: -0.03em;
  color: var(--cor-branco);
  text-shadow: none;
}

.fato__l {
  display: block;
  margin-top: 0.25rem;
  font-size: var(--fs-100);
  color: var(--cor-grafite-medio);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.demo {
  background: var(--cor-vidro);
  backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  overflow: hidden;
  box-shadow: var(--sombra-3);
  min-height: 22rem;
  display: flex;
  flex-direction: column;
}

.demo__barra {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-size: var(--fs-100);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cor-grafite-medio);
}

.demo__dot {
  display: none;
}

.demo__chat {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.15rem 1.15rem 1.3rem;
  flex: 1;
}

.demo__msg {
  max-width: 92%;
  padding: 0.8rem 1rem;
  border-radius: 0;
  font-size: var(--fs-100);
  line-height: 1.5;
}

.demo__msg--in {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: var(--cor-grafite);
}

.demo__msg--out {
  align-self: flex-end;
  background: rgba(167, 139, 250, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.28);
  color: var(--cor-branco);
}

.demo__msg[hidden] {
  display: none;
}

.demo__cursor {
  display: inline-block;
  width: 0.45em;
  height: 1em;
  margin-left: 0.1em;
  background: var(--cor-azul);
  vertical-align: -0.12em;
  animation: pisca 0.8s step-end infinite;
}

.demo__hint {
  margin: 0 1.15rem 1.1rem;
  font-size: 0.75rem;
  color: var(--cor-grafite-medio);
}

/* Intro */

.intro {
  background: #0c0c10;
}

.intro__canvas,
.intro__campo svg {
  width: min(22rem, 78vw);
  height: min(16rem, 52vw);
}

.intro__marca {
  min-height: 1.4em;
  text-shadow: none;
}

.intro__marca--pronta {
  opacity: 1;
  animation: none;
}

.cursor-glow {
  display: none;
}

.revela {
  opacity: 0;
  filter: none;
  transform: translateY(10px);
  transition:
    opacity 420ms ease var(--atraso, 0ms),
    transform 420ms ease var(--atraso, 0ms);
}

.revela.revela--visivel {
  opacity: 1;
  filter: none;
  transform: none;
}

@keyframes malha-anda {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(0, -18px, 0) scale(1.04); }
}

@keyframes pulso-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.7); }
}

@keyframes pisca {
  50% { opacity: 0; }
}

@media (min-width: 1024px) {
  .hero-grade {
    grid-template-columns: 1fr 1.05fr;
    gap: var(--space-10);
  }

  .hero--vitrine {
    padding-block: var(--space-11) var(--space-10);
  }
}

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

@media (prefers-reduced-motion: reduce) {
  .malha,
  .demo__dot,
  .demo__cursor,
  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none !important;
  }

  .revela {
    filter: none;
    opacity: 1;
    transform: none;
  }
}
