/* gustavozart.com: página "em construção". Identidade da capa: Montserrat, azul + ciano, fundo claro. */

@font-face {
  font-family: "Montserrat";
  src: url("fontes/montserrat.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --fundo: #f4f7fc;
  --papel: #ffffff;
  --tinta: #0e1a33;
  --tinta-2: #4a5672;
  --tinta-3: #8792a8;
  --azul: #1f7ae8;
  --azul-escuro: #1662c4;
  --ciano: #1eb6f0;
  --linha: #dfe5ef;
  --planta: rgba(30, 182, 240, .5);   /* traço da "planta" antes de cada bloco ficar pronto */
  --amarelo: #ffc93c;                 /* fita de obra */
  --wa: #0f7d41;                     /* verde do WhatsApp escurecido: texto branco passa 4,5:1 */
  --wa-hover: #0c6835;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --sombra: 0 1px 2px rgba(14, 26, 51, .06), 0 12px 32px -8px rgba(14, 26, 51, .16);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  color: var(--tinta);
  font: 400 1rem/1.6 "Montserrat", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden; /* as fitas em X passam da largura da tela */
}
a { color: inherit; }
svg { display: block; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

/* fundo: grade de planta baixa que some nas bordas */
.pagina {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px);
  isolation: isolate;
}
.pagina::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(rgba(31, 122, 232, .07) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, rgba(31, 122, 232, .07) 1px, transparent 1px) 0 0 / 32px 32px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 70% 45%, #000 20%, transparent 75%);
}

/* ---------- topo ---------- */
.topo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px 0 0;
}
.marca { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; line-height: 1.1; }
.marca-nome { font-size: 1.3rem; font-weight: 500; letter-spacing: -.01em; }
.marca-sub { margin-top: 3px; font-size: .62rem; font-weight: 500; letter-spacing: .42em; text-transform: uppercase; color: var(--tinta-2); padding-left: .42em; }
.topo-ig {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .9rem; font-weight: 500; color: var(--tinta-2); text-decoration: none;
  padding: 8px 12px; border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.topo-ig svg { width: 18px; height: 18px; }
@media (hover: hover) and (pointer: fine) {
  .topo-ig:hover { color: var(--tinta); background: rgba(14, 26, 51, .05); }
}

/* ---------- palco: texto + cena ---------- */
.palco {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: clamp(32px, 6vw, 80px);
  padding: 48px 0;
}

.texto { position: relative; padding-left: 26px; max-width: 34rem; }
/* barra ciano da capa */
.texto::before {
  content: ""; position: absolute; left: 0; top: 46px; bottom: 96px;
  width: 5px; border-radius: 3px; background: linear-gradient(var(--ciano), var(--azul));
}

/* progresso geral da obra, acima do título */
.obra-geral { max-width: 21rem; margin: 0 0 26px; }
.status {
  display: flex; align-items: center; gap: 10px; margin: 0;
  font-size: .95rem; font-weight: 700; color: var(--tinta);
}
.status-pct { margin-left: auto; font-variant-numeric: tabular-nums; color: var(--azul-escuro); }
.obra-geral-trilho { height: 10px; margin-top: 10px; border-radius: 5px; background: #e3e9f3; overflow: hidden; box-shadow: inset 0 1px 2px rgba(14, 26, 51, .08); }
.obra-geral-barra {
  display: block; height: 100%; border-radius: 5px;
  background: linear-gradient(90deg, var(--ciano), var(--azul));
  transform-origin: left; transform: scaleX(.71);
  animation: crescer 1.8s var(--ease-out) .5s both;
}
@keyframes crescer { from { transform: scaleX(0); } }

/* fitas de obra: topo da página e um X atrás da janela */
.fita {
  position: relative; overflow: hidden;
  background: var(--amarelo); color: var(--tinta);
  font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; line-height: 1;
  padding: 14px 0;
  box-shadow: 0 6px 16px -6px rgba(14, 26, 51, .35);
}
.fita::before, .fita::after {
  content: ""; position: absolute; left: 0; right: 0; height: 5px;
  background: repeating-linear-gradient(-45deg, var(--tinta) 0 9px, var(--amarelo) 9px 18px);
}
.fita::before { top: 0; }
.fita::after { bottom: 0; }
.fita-trilho { display: flex; width: max-content; animation: fita-corre 40s linear infinite; }
.fita-trilho span { display: flex; align-items: center; white-space: nowrap; }
.fita-trilho span::after { content: ""; width: 7px; height: 7px; margin: 0 22px; background: var(--tinta); transform: rotate(45deg); }
@keyframes fita-corre { to { transform: translateX(-50%); } }

.fita-x {
  /* cruzadas na frente da janela durante a obra; caem quando o site vai ao ar */
  position: absolute; z-index: 2; left: -5%; right: -5%; top: 44%;
  font-size: .72rem; padding: 12px 0;
  transition: translate .8s cubic-bezier(0.77, 0, 0.175, 1), rotate .8s cubic-bezier(0.77, 0, 0.175, 1), opacity .5s ease .25s;
}
.fita-x1 { rotate: -12deg; }
.fita-x2 { rotate: 9deg; top: 50%; }
.cena.no-ar .fita-x1 { translate: -4% 260px; rotate: -26deg; opacity: 0; }
.cena.no-ar .fita-x2 { translate: 4% 240px; rotate: 22deg; opacity: 0; transition-delay: .12s, .12s, .37s; }
.fita-x2 .fita-trilho { animation-direction: reverse; animation-duration: 46s; }

/* entrada da página, em sequência */
.entra { animation: entrar .8s var(--ease-out) both; animation-delay: var(--d, 0s); }
.obra-geral.entra { --d: .05s; }
h1.entra { --d: .15s; }
.apoio.entra { --d: .28s; }
.acoes.entra { --d: .4s; }
.canais.entra { --d: .52s; }
.janela { animation: entrar-janela 1s var(--ease-out) .3s backwards; }
.fita-x { animation: entrar-fita .9s var(--ease-out) backwards; }
.fita-x1 { animation-delay: .55s; }
.fita-x2 { animation-delay: .7s; }
@keyframes entrar { from { opacity: 0; transform: translateY(18px); } }
@keyframes entrar-janela { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes entrar-fita { from { opacity: 0; } }

/* cursor que "constrói" cada bloco */
.cursor-obra {
  position: absolute; left: 0; top: 0; z-index: 3; width: 22px; height: 22px;
  opacity: 0; pointer-events: none;
  filter: drop-shadow(0 2px 3px rgba(14, 26, 51, .3));
  transition: translate .6s cubic-bezier(0.77, 0, 0.175, 1), scale .12s ease, opacity .3s ease;
}
.cena.construindo .cursor-obra { opacity: 1; }
.cursor-obra.clique { scale: .78; }
.status-ponto { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--ciano); }
.status-ponto::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ciano);
  animation: pulso 2s cubic-bezier(0.23, 1, 0.32, 1) infinite;
}
@keyframes pulso { from { transform: scale(1); opacity: .7; } to { transform: scale(3); opacity: 0; } }

h1 {
  margin: 0;
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  font-weight: 700;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.apoio {
  margin: 20px 0 0;
  max-width: 31rem;
  font-size: 1.06rem;
  line-height: 1.65;
  color: var(--tinta-2);
  text-wrap: pretty;
}

.acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 32px; }
.btn-wa {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 24px; border-radius: 12px;
  background: var(--wa); color: #fff; text-decoration: none;
  font-weight: 600; font-size: 1rem;
  box-shadow: 0 8px 20px -8px rgba(15, 125, 65, .6);
  transition: background-color .2s ease, transform .16s var(--ease-out);
}
.btn-wa svg { width: 22px; height: 22px; }
.btn-wa:active { transform: scale(.97); }
.btn-sec {
  font-weight: 600; font-size: .95rem; color: var(--tinta);
  text-decoration: underline; text-decoration-color: var(--linha); text-decoration-thickness: 2px; text-underline-offset: 6px;
  transition: text-decoration-color .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .btn-wa:hover { background: var(--wa-hover); }
  .btn-sec:hover { text-decoration-color: var(--azul); }
}

.canais { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 40px 0 0; padding: 0; list-style: none; font-size: .88rem; font-weight: 500; color: var(--tinta-2); }
.canais li { display: inline-flex; align-items: center; gap: 10px; }
.canal-icone {
  display: grid; place-items: center; width: 40px; height: 40px;
  background: var(--papel); border: 1px solid var(--linha); border-radius: 10px;
  box-shadow: 0 1px 2px rgba(14, 26, 51, .05);
}
.canal-icone svg { width: 20px; height: 20px; }
.canal-openai { color: #0e1a33; }

/* ---------- cena ---------- */
.cena { position: relative; isolation: isolate; padding: 24px 0 56px; }
.cena::before { /* brilho azul atrás da janela */
  content: ""; position: absolute; inset: 8% 6% 14%; z-index: -1;
  background: radial-gradient(closest-side, rgba(30, 182, 240, .22), transparent);
  filter: blur(8px);
}

.janela {
  position: relative;
  background: var(--papel);
  border-radius: 14px;
  box-shadow: var(--sombra);
  overflow: hidden;
  transition: opacity .5s ease;
}
.cena.saindo .tela, .cena.saindo .obra, .cena.saindo .flutua { opacity: 0; }
.tela, .obra { transition: opacity .5s ease; }

.janela-barra { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid #edf1f7; }
.pontos { display: flex; gap: 6px; }
.pontos i { width: 10px; height: 10px; border-radius: 50%; background: #e3e8f0; }
.endereco {
  flex: 1; display: flex; align-items: center; gap: 6px; max-width: 240px;
  padding: 5px 12px; border-radius: 999px; background: #f2f5fa;
  font-size: .72rem; font-weight: 500; color: var(--tinta-2);
}
.endereco svg { width: 11px; height: 11px; color: #34a853; }

/* barra de obra: progresso da construção */
.obra { display: flex; align-items: center; gap: 10px; padding: 8px 14px; background: #fafbfd; border-bottom: 1px solid #edf1f7; }
.obra-trilho { flex: 1; height: 4px; border-radius: 2px; background: #e8edf5; overflow: hidden; }
.obra-barra {
  height: 100%; border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--ciano) 0 6px, var(--azul) 6px 12px);
  transform-origin: left; transform: scaleX(0);
  transition: transform .5s var(--ease-out);
}
.obra-rotulo { position: relative; min-width: 44px; font-size: .68rem; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.obra-pct { color: var(--tinta-3); transition: opacity .2s ease; }
.obra-pronto {
  position: absolute; right: 0; top: 50%; color: #188038;
  opacity: 0; transform: translateY(-50%) scale(.9);
  transition: opacity .25s ease, transform .3s var(--ease-out);
}
.cena.no-ar .obra-pct { opacity: 0; }
.cena.no-ar .obra-pronto { opacity: 1; transform: translateY(-50%) scale(1); }

.tela { display: grid; gap: 10px; padding: 14px; }

/* cada bloco começa como planta tracejada e "fica pronto" */
.bloco {
  position: relative; border-radius: 8px;
  border: 1.5px dashed var(--planta);
  background: rgba(30, 182, 240, .03);
  transition: border-color .35s ease, background-color .35s ease;
}
.bloco .miolo {
  opacity: 0; transform: translateY(6px) scale(.98);
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.bloco.pronto { border-color: transparent; background: transparent; }
.bloco.pronto .miolo { opacity: 1; transform: none; }

.miolo { display: flex; align-items: center; gap: 8px; }
.l { display: block; height: 7px; width: 100%; border-radius: 4px; background: #e6ebf3; }
.l-curta { width: 28px; }
.l-grossa { height: 12px; background: #c9d6ea; }
.l-80 { width: 80%; }
.l-60 { width: 60%; }
.logo-ponto { width: 18px; height: 18px; border-radius: 6px; background: linear-gradient(135deg, var(--ciano), var(--azul)); margin-right: auto; }
.pilula { width: 54px; height: 18px; border-radius: 999px; background: var(--azul); }
.pilula-wa { background: #25d366; margin-top: 4px; width: 84px; height: 22px; }
.bola { width: 22px; height: 22px; border-radius: 50%; background: #dbe9fb; flex: none; }

.b-nav .miolo { padding: 8px 10px; }
.b-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 10px; }
.b-titulo .miolo { flex-direction: column; align-items: flex-start; gap: 8px; padding: 14px 12px; }
.b-foto { min-height: 104px; overflow: hidden; }
.b-foto .miolo { height: 100%; }
.b-foto svg { width: 100%; height: 100%; border-radius: 6px; }
.b-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.b-card .miolo { flex-direction: column; align-items: flex-start; gap: 7px; padding: 12px 10px; background: #f7f9fc; border-radius: 8px; }
.b-mapa .miolo { padding: 10px 12px; background: #f7f9fc; border-radius: 8px; gap: 10px; }
.pino { width: 18px; height: 18px; flex: none; }
.estrelas { color: #fbbc05; letter-spacing: 1px; font-size: .8rem; line-height: 1; white-space: nowrap; }

/* cartões que flutuam sobre a janela */
.flutua {
  position: absolute;
  background: var(--papel);
  border-radius: 14px;
  box-shadow: var(--sombra);
  opacity: 0;
  transform: translateY(14px) scale(.96);
  transition: opacity .4s ease, transform .6s var(--ease-out);
}
.flutua.visivel { opacity: 1; transform: none; }

.resultado {
  left: -36px; top: 46%;
  display: flex; align-items: center; gap: 12px;
  width: min(330px, 78%);
  padding: 12px 16px 12px 12px;
}
.resultado-pos {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ciano), var(--azul)); color: #fff;
  font-weight: 700; font-size: .95rem;
}
.resultado-corpo { display: grid; gap: 1px; min-width: 0; }
.resultado-fonte { display: flex; align-items: center; gap: 6px; font-size: .68rem; color: var(--tinta-2); }
.resultado-fonte svg { width: 12px; height: 12px; }
.resultado-titulo { font-size: .86rem; font-weight: 600; color: #1a0dab; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.resultado-meta { font-size: .7rem; color: var(--tinta-2); }
.resultado-meta .estrelas { font-size: .7rem; }

.ia {
  right: -28px; bottom: 0;
  width: min(300px, 74%);
  padding: 14px 16px 16px;
}
.ia-topo { display: flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 600; color: var(--tinta-3); }
.ia-icones { display: flex; gap: 4px; }
.ia-icones svg { width: 15px; height: 15px; }
.ia-openai { color: var(--tinta); }
.ia-pergunta {
  margin: 10px 0 0; margin-left: auto; width: fit-content; max-width: 100%;
  padding: 7px 12px; border-radius: 12px 12px 4px 12px;
  background: #eef3fb; font-size: .78rem; font-weight: 500; min-height: 1.6em;
}
.ia-cursor { display: inline-block; width: 1.5px; height: 1em; margin-left: 1px; vertical-align: -2px; background: var(--azul); animation: piscar 1s steps(1) infinite; }
@keyframes piscar { 50% { opacity: 0; } }
.ia-resposta, .ia-fonte {
  opacity: 0; transform: translateY(6px);
  transition: opacity .35s ease, transform .45s var(--ease-out);
}
.ia-resposta { margin: 10px 0 0; font-size: .8rem; line-height: 1.5; color: var(--tinta-2); }
.ia-resposta b { color: var(--tinta); }
.ia-fonte {
  display: inline-block; margin-top: 8px; padding: 3px 9px; border-radius: 999px;
  background: #eef3fb; font-size: .66rem; font-weight: 600; color: var(--azul-escuro);
  transition-delay: .08s;
}
.ia.respondida .ia-resposta, .ia.respondida .ia-fonte { opacity: 1; transform: none; }
.ia.respondida .ia-cursor { display: none; }

/* ---------- rodapé ---------- */
.rodape { padding: 0 0 28px; font-size: .8rem; color: var(--tinta-3); }
.rodape p { margin: 0; }

/* ---------- celular e tablet ---------- */
@media (max-width: 900px) {
  .palco { grid-template-columns: 1fr; padding: 36px 0 40px; gap: 48px; }
  .texto { max-width: 40rem; }
  .cena { max-width: 520px; width: 100%; margin: 0 auto; padding: 0 0 60px; }
  .resultado { left: -8px; }
  .ia { right: -8px; }
}
@media (max-width: 520px) {
  .fita-topo { font-size: .68rem; padding: 12px 0; }
  .topo { padding-top: 20px; }
  .topo-ig span { display: none; }
  .texto { padding-left: 18px; }
  .texto::before { width: 4px; }
  .acoes { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-wa { justify-content: center; }
  .btn-sec { align-self: center; }
  .canais { gap: 8px 14px; font-size: .78rem; margin-top: 32px; }
  .canais li { gap: 7px; }
  .canal-icone { width: 34px; height: 34px; border-radius: 9px; }
  .canal-icone svg { width: 17px; height: 17px; }
  .tela { padding: 10px; gap: 8px; }
  .b-foto { min-height: 80px; }
  .cena { padding-bottom: 96px; }
  .resultado { left: 0; top: 26%; width: 86%; }
  .resultado-titulo { white-space: normal; }
  .ia { right: 0; width: 82%; }
}

/* sem bloco de "reduzir movimento": decisão do Gustavo, a animação roda sempre */
