@font-face {
  font-family: "DM Sans";
  src: url("fontes/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  --fundo: #05070f;
  --superficie: #0d1120;
  --linha: rgba(255, 255, 255, .1);
  --texto: #eef2ff;
  --apagado: #8a93ad;
  --destaque: #4d7cff;
  --brilho: #5ee7ff;
  --lado: clamp(1.25rem, 5vw, 4.5rem);
  --respiro: clamp(5rem, 11vw, 9rem);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 5rem; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--texto);
  font: 1.0625rem/1.6 "DM Sans", system-ui, sans-serif;
  overflow-x: hidden;
}
p, h1, h2, h3, ul, ol { margin: 0; }
h1, h2, h3 { font-weight: 800; letter-spacing: -.045em; line-height: .98; text-wrap: balance; }
h2 { font-size: clamp(2.4rem, 6vw, 4.8rem); max-width: 15ch; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--destaque); outline-offset: 3px; }
.apoio { margin-top: 1.25rem; max-width: 46ch; color: var(--apagado); font-size: 1.15rem; }
.para { color: var(--destaque); font-weight: 700; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 30; top: .5rem; left: .5rem; transform: translateY(-160%); background: var(--destaque); color: var(--fundo); padding: .65rem; }
.skip:focus { transform: none; }

.botao {
  display: inline-flex;
  align-items: center;
  padding: 1rem 1.6rem;
  border-radius: 999px;
  background: var(--destaque);
  color: var(--fundo);
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 0 0 0 rgba(77, 124, 255, .5);
  transition: box-shadow .25s, transform .25s;
}
.botao:hover { transform: translateY(-2px); box-shadow: 0 10px 40px -8px rgba(77, 124, 255, .6); }
.botao-vidro { background: rgba(255, 255, 255, .08); color: var(--texto); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(12px); }
.botao-vidro:hover { box-shadow: none; background: rgba(255, 255, 255, .14); }
.botao-pequeno { padding: .55rem 1.1rem; font-size: .95rem; }
.botao-depois { margin-top: 1.75rem; }

/* Topo fixo de vidro */
.topo {
  position: fixed;
  z-index: 20;
  inset: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .9rem var(--lado);
  background: rgba(5, 7, 15, .55);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--linha);
}
.marca { display: flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.6rem; letter-spacing: -.05em; line-height: 1; text-decoration: none; }
.menu { display: flex; align-items: center; gap: 1.6rem; font-weight: 600; white-space: nowrap; }
.menu > a:not(.botao) { text-decoration: none; color: var(--apagado); }
.menu > a:not(.botao):hover, .menu > a[aria-current] { color: var(--texto); }

/* Fundo líquido (canvas). Sem WebGL fica este gradiente. */
.fundo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background:
    radial-gradient(60% 50% at 70% 30%, rgba(77, 124, 255, .14), transparent 70%),
    radial-gradient(50% 60% at 20% 80%, rgba(77, 124, 255, .08), transparent 70%),
    var(--fundo);
}

/* Hero */
.hero { position: relative; min-height: 100svh; display: grid; place-items: center; overflow: hidden; text-align: center; padding: 7rem var(--lado) 4rem; }
.hero-conteudo { position: relative; display: grid; justify-items: center; }
/* Sombra atrás do texto para ele não brigar com os reflexos do fundo */
.hero-conteudo::before { content: ""; position: absolute; z-index: -1; inset: 10% -15% -10%; background: radial-gradient(closest-side, rgba(5, 7, 15, .75), transparent); }
/* O "m" da Montio se monta bloco a bloco; a peça ciano encaixa por último */
.hero-blocos { width: clamp(7rem, 15vw, 11rem); margin-bottom: clamp(2rem, 5vw, 3rem); overflow: visible; filter: drop-shadow(0 0 28px rgba(77, 124, 255, .5)); }
.hero-blocos rect { fill: var(--destaque); transform-box: fill-box; transform-origin: center; }
.hero-blocos .peca { fill: var(--brilho); }
.hero h1 { font-size: clamp(3rem, 9vw, 7.5rem); max-width: 12ch; }
.hero h1 span:last-child { color: var(--destaque); background: linear-gradient(90deg, var(--destaque), var(--brilho)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; padding-bottom: .08em; }
.hero-texto { margin-top: 1.5rem; max-width: 40ch; color: #c7cde0; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.acoes { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; margin-top: 2.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .hero-blocos rect { animation: bloco .6s cubic-bezier(.3, 1.4, .5, 1) both; }
  .hero-blocos rect:nth-child(1) { animation-delay: 0.00s; }
  .hero-blocos rect:nth-child(2) { animation-delay: 0.07s; }
  .hero-blocos rect:nth-child(3) { animation-delay: 0.14s; }
  .hero-blocos rect:nth-child(4) { animation-delay: 0.21s; }
  .hero-blocos rect:nth-child(5) { animation-delay: 0.28s; }
  .hero-blocos rect:nth-child(6) { animation-delay: 0.35s; }
  .hero-blocos rect:nth-child(7) { animation-delay: 0.42s; }
  .hero-blocos rect:nth-child(8) { animation-delay: 0.49s; }
  .hero-blocos rect:nth-child(9) { animation-delay: 0.56s; }
  .hero-blocos rect:nth-child(10) { animation-delay: 0.63s; }
  .hero-blocos .peca { animation: encaixa 1.2s 1s cubic-bezier(.4, 0, .2, 1) both, flutua 3.5s 2.2s ease-in-out infinite; }
  .hero h1 span { display: inline-block; animation: sobe 1s .3s cubic-bezier(.2, .8, .2, 1) both; }
  .hero h1 span:last-child { animation-delay: .45s; }
  .hero-texto, .acoes { animation: sobe 1s .65s cubic-bezier(.2, .8, .2, 1) both; }
}
@keyframes bloco { from { opacity: 0; transform: translateY(-60px) scale(.6); } }
@keyframes encaixa {
  0% { opacity: 0; transform: translateY(-120px) rotate(-25deg); }
  45% { opacity: 1; transform: translateY(9px) rotate(0); }
  60% { transform: translateY(9px); }
  100% { transform: translateY(0); }
}
@keyframes flutua { 50% { transform: translateY(-5px); } }
@keyframes sobe { from { opacity: 0; transform: translateY(2rem); filter: blur(8px); } }

/* Quem somos: frase que acende com a rolagem */
.sobre { padding: var(--respiro) var(--lado); }
.sobre h2 { font-size: 1.1rem; letter-spacing: 0; color: var(--destaque); }
.frase { margin-top: 1.5rem; max-width: 26ch; font-size: clamp(1.9rem, 4.6vw, 3.8rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.15; }
.acende-pronto [aria-hidden] span { color: rgba(238, 242, 255, .16); transition: color .35s; }
.acende-pronto [aria-hidden] span.acesa { color: var(--texto); }

/* Produtos: três cartões com a tela de cada produto */
.produtos-home { padding: 0 var(--lado) var(--respiro); }
.cabeca { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 3rem; }
.cabeca .apoio { margin-top: 0; max-width: 34ch; }
.vitrine { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; padding: 0; list-style: none; }
.produto-card a {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-radius: 1.5rem;
  border: 1px solid var(--linha);
  background: var(--superficie);
  text-decoration: none;
  transition: border-color .3s;
}
.produto-card a:hover { border-color: rgba(77, 124, 255, .55); }
/* A tela do produto aparece "saindo" de baixo, como um celular em pé */
.tela {
  position: relative;
  display: block;
  height: 17rem;
  margin: 2rem 2rem 0;
  overflow: hidden;
  border-radius: 1.25rem 1.25rem 0 0;
  border: 1px solid rgba(255, 255, 255, .14);
  border-bottom: 0;
  box-shadow: 0 0 60px -15px rgba(77, 124, 255, .45);
  transition: transform .5s cubic-bezier(.2, .8, .2, 1);
}
.produto-card a:hover .tela { transform: translateY(-.5rem); }
.tela.tela-foto img { height: 100%; object-fit: cover; object-position: left top; }
.tela img { width: 100%; height: auto; transition: transform 2.4s cubic-bezier(.3, .1, .2, 1); }
/* Ao passar o mouse, a tela "rola" e mostra o resto do sistema */
.produto-card a:hover .tela:not(.tela-foto) img { transform: translateY(calc(17rem - 100%)); }
/* Luz que acompanha o mouse (posição vem do site.js) */
.produto-card a { position: relative; }
.produto-card a::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(22rem circle at var(--x, 50%) var(--y, 30%), rgba(77, 124, 255, .18), transparent 60%);
  transition: opacity .3s;
}
.produto-card a:hover::before { opacity: 1; }
.produto-info { display: grid; gap: .35rem; padding: 1.5rem 1.75rem 1.75rem; border-top: 1px solid var(--linha); color: var(--apagado); }
.produto-info .nicho { color: var(--destaque); font-weight: 700; font-size: .9rem; }
.produto-info strong { color: var(--texto); font-size: 1.45rem; letter-spacing: -.03em; }
.clientes { margin-top: 2rem; color: var(--apagado); }
.clientes a { color: var(--texto); font-weight: 700; }

@media (max-width: 60rem) {
  /* No celular os cartões viram uma fileira que desliza para o lado */
  .vitrine { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(var(--lado) * -1); padding: 0 var(--lado) 1rem; scroll-padding-inline: var(--lado); scrollbar-width: none; }
  .vitrine::-webkit-scrollbar { display: none; }
  .produto-card { flex: 0 0 min(82vw, 21rem); scroll-snap-align: start; }
}

/* Dores que caem e se empilham */
.dor { padding: var(--respiro) var(--lado); border-top: 1px solid var(--linha); }
.dores {
  display: flex;
  flex-wrap: wrap;
  align-content: flex-end;
  justify-content: center;
  gap: .6rem;
  min-height: 22rem;
  margin-top: 3rem;
  padding: 1.5rem 0 0;
  list-style: none;
  overflow: hidden;
  border-bottom: 1px solid var(--linha);
}
.dores li { padding: .8rem 1.3rem; border-radius: 999px; background: var(--superficie); border: 1px solid var(--linha); font-weight: 700; font-size: clamp(.95rem, 1.8vw, 1.2rem); }
.dores li:nth-child(3n + 1) { background: var(--destaque); color: var(--fundo); border-color: var(--destaque); }
.dores.esperando li { transform: translateY(-60rem) rotate(var(--giro)); }
.dores.caiu li { animation: cai 1.1s var(--atraso) cubic-bezier(.3, 0, .3, 1) both; transform: rotate(var(--giro)); }
@keyframes cai {
  0% { transform: translateY(-60rem) rotate(calc(var(--giro) * 4)); }
  65% { transform: translateY(0) rotate(var(--giro)); }
  80% { transform: translateY(-1rem) rotate(var(--giro)); }
  100% { transform: translateY(0) rotate(var(--giro)); }
}

.como { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem 5rem; align-items: center; margin-top: 4rem; }
.como h3 { font-size: 1.6rem; letter-spacing: -.03em; }
/* Passos ligados por uma linha que se preenche quando a seção aparece */
.passos { position: relative; display: grid; gap: 2rem; margin: 2rem 0 2.5rem; padding: 0 0 0 4rem; list-style: none; counter-reset: passo; }
.passos::before, .passos::after { content: ""; position: absolute; left: 1.25rem; top: 1rem; bottom: 1rem; width: 2px; background: var(--linha); }
.passos::after { background: linear-gradient(var(--destaque), var(--brilho)); transform-origin: top; transform: scaleY(var(--feito, 1)); transition: transform 1.4s cubic-bezier(.3, .1, .2, 1); }
.passos.esperando { --feito: 0; }
.passos li { position: relative; counter-increment: passo; color: var(--apagado); }
.passos li::before { content: counter(passo); position: absolute; left: -4rem; top: -.2rem; z-index: 1; display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--destaque); background: var(--fundo); color: var(--destaque); font-weight: 800; }
.passos strong { display: block; margin-bottom: .3rem; color: var(--texto); font-size: 1.25rem; letter-spacing: -.02em; }
.caso { margin: 0; overflow: hidden; border-radius: 1.5rem; border: 1px solid var(--linha); background: var(--superficie); box-shadow: 0 0 80px -30px rgba(77, 124, 255, .5); }
.caso img { width: 100%; height: auto; border-bottom: 1px solid var(--linha); }
.caso figcaption { display: grid; gap: .8rem; padding: 1.5rem 1.75rem 1.75rem; color: var(--apagado); }
.caso-nome { color: var(--texto); font-weight: 800; font-size: 1.2rem; }
.caso-linha b { display: inline-block; min-width: 4.2rem; color: var(--texto); }
.caso-linha:nth-child(3) b { color: var(--brilho); }
.caso-nota { padding-top: .8rem; border-top: 1px solid var(--linha); color: var(--destaque); font-weight: 700; }
@media (max-width: 52rem) {
  .como { grid-template-columns: 1fr; }
}

/* Chamada final: painel com o mesmo fundo animado do topo */
.final { padding: var(--respiro) var(--lado); border-top: 1px solid var(--linha); }
.final-painel { position: relative; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 3rem; align-items: center; overflow: hidden; padding: clamp(2rem, 6vw, 5rem); border-radius: 2rem; border: 1px solid rgba(77, 124, 255, .3); }
.final-texto, .conversa { position: relative; }
.final h2 { font-size: clamp(3rem, 8vw, 6.5rem); max-width: none; }
.final .apoio { color: #c7cde0; }
.final .botao { margin-top: 2rem; font-size: 1.1rem; }
/* Prévia da conversa no WhatsApp: mostra o que acontece ao clicar */
.conversa { display: grid; gap: .75rem; padding: 1.25rem; border-radius: 1.5rem; background: rgba(5, 7, 15, .55); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(12px); }
.balao { max-width: 85%; padding: .75rem 1rem; border-radius: 1rem 1rem 1rem .25rem; background: var(--superficie); border: 1px solid var(--linha); }
.balao-meu { justify-self: end; border-radius: 1rem 1rem .25rem 1rem; background: var(--destaque); border-color: var(--destaque); color: var(--fundo); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .conversa.esperando .balao { opacity: 0; transform: translateY(1rem); }
  .balao { transition: opacity .5s, transform .5s cubic-bezier(.2, .8, .2, 1); }
  .balao:nth-child(2) { transition-delay: .9s; }
}

/* Rodapé */
.rodape { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2.5rem 4rem; padding: 4rem var(--lado) 2rem; border-top: 1px solid var(--linha); color: var(--apagado); }
.rodape-marca p { margin-top: .75rem; }
.rodape-links { display: flex; flex-wrap: wrap; gap: 2.5rem 5rem; }
.rodape-links div { display: grid; gap: .6rem; align-content: start; }
.rodape-links h2 { font-size: .95rem; letter-spacing: 0; color: var(--texto); }
.rodape-links a { color: var(--apagado); text-decoration: none; }
.rodape-links a:hover { color: var(--texto); }
.rodape-fim { grid-column: 1 / -1; padding-top: 1.5rem; border-top: 1px solid var(--linha); font-size: .9rem; }
@media (max-width: 52rem) {
  .final-painel, .rodape { grid-template-columns: 1fr; }
}

/* Página Produtos */
.pagina-topo { position: relative; overflow: hidden; padding: 10rem var(--lado) 6rem; }
.pagina-topo h1, .pagina-topo p { position: relative; }
.pagina-topo h1 { font-size: clamp(4rem, 14vw, 11rem); }
.pagina-topo p { margin-top: 1.25rem; max-width: 44ch; color: #c7cde0; font-size: 1.2rem; }
.atalhos { position: relative; display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.atalhos a { display: grid; padding: .8rem 1.2rem; border-radius: 1rem; border: 1px solid rgba(255, 255, 255, .16); background: rgba(5, 7, 15, .5); backdrop-filter: blur(12px); color: var(--texto); font-weight: 700; text-decoration: none; transition: border-color .3s, transform .3s; }
.atalhos a:hover { border-color: var(--destaque); transform: translateY(-2px); }
.atalhos span { color: var(--apagado); font-weight: 500; font-size: .85rem; }
.produto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem 5rem; align-items: center; padding: var(--respiro) var(--lado); border-top: 1px solid var(--linha); }
.produto-invertido { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.produto-invertido .produto-texto { order: 2; }
.produto h2 { margin-top: .6rem; }
.produto .apoio { color: #c7cde0; }
/* Recursos com um sinal de feito no lugar da bolinha */
.recursos { display: grid; gap: .75rem; margin: 1.75rem 0 2.25rem; padding: 0; list-style: none; max-width: 52ch; color: var(--apagado); }
.recursos li { position: relative; padding-left: 2rem; }
.recursos li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: rgba(77, 124, 255, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%235ee7ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / .8rem no-repeat; }
.produto-acoes { display: flex; flex-wrap: wrap; gap: .9rem; }
.exemplos { margin-top: 1.5rem; color: var(--apagado); }
.exemplos a { color: var(--destaque); font-weight: 700; }
/* Tela do produto em moldura; ao passar o mouse, a tela rola */
.vitrine-tela { justify-self: center; overflow: hidden; border-radius: 1.75rem; border: 1px solid rgba(255, 255, 255, .16); background: var(--superficie); box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .9), 0 0 80px -20px rgba(77, 124, 255, .4); transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.vitrine-tela:hover { transform: translateY(-.5rem); }
.vitrine-tela img { width: 100%; height: auto; }
.celular { width: min(100%, 20rem); height: 30rem; padding: .5rem; }
.celular img { border-radius: 1.3rem; transition: transform 3s cubic-bezier(.3, .1, .2, 1); }
.celular:hover img { transform: translateY(calc(29rem - 100%)); }
.tablet { width: 100%; padding: .5rem; }
.tablet img { border-radius: 1.3rem; }
@media (prefers-reduced-motion: reduce) {
  .vitrine-tela, .celular img { transition: none; }
  .vitrine-tela:hover, .celular:hover img { transform: none; }
}

@media (max-width: 52rem) {
  .produto, .produto-invertido { grid-template-columns: 1fr; }
  .produto-invertido .produto-texto { order: 0; }
  .celular { height: 26rem; }
  .celular:hover img { transform: none; }
  .menu { gap: 1rem; }
  .menu > a[href$="sob-medida"] { display: none; }
  .marca { font-size: 1.4rem; }
  .dores { min-height: 26rem; }
}
@media (max-width: 30rem) {
  .menu > a:not(.botao) { display: none; }
}

/* Privacidade e 404 */
.pagina-curta { padding-bottom: 3rem; }
.pagina-curta h1 { font-size: clamp(3rem, 10vw, 7rem); }
.texto-legal { max-width: 68ch; padding: 2rem var(--lado) var(--respiro); color: #c7cde0; }
.texto-legal h2 { margin: 2.5rem 0 .75rem; font-size: 1.5rem; letter-spacing: -.02em; color: var(--texto); max-width: none; }
.texto-legal p + p { margin-top: .9rem; }
.texto-legal a { color: var(--destaque); font-weight: 700; }
.pagina-erro { min-height: 80svh; display: grid; align-content: center; }
.pagina-erro h1 { font-size: clamp(3rem, 10vw, 7rem); }
.pagina-erro .acoes { position: relative; justify-content: flex-start; }

@media (prefers-reduced-motion: reduce) {
  .tela, .tela img, .passos::after { transition: none; }
  .produto-card a:hover .tela, .produto-card a:hover .tela img { transform: none; }
}
