/* Esenvo / Site em desenvolvimento
   Identidade 2.2: azul #1A20E4, grafite #282828, verde de sinal #BBFF3D (até 5%, só no escuro),
   SUSE + SUSE Mono, pattern A (fluxo) sobre fundo escuro, sem degradê. */

:root {
  --azul: #1A20E4;
  --azul-claro: #3C42FF;
  --grafite: #282828;
  --preto: #0E0E10;
  --verde: #BBFF3D;
  --branco: #FFFFFF;
  --texto-2: rgba(255, 255, 255, 0.64);
  --linha: rgba(255, 255, 255, 0.22);
  --card: rgba(255, 255, 255, 0.5);
  --sans: "SUSE", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "SUSE Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  background: var(--preto);
  color: var(--branco);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ---------- Pattern A / Fluxo ---------- */
.fluxo {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  /* abre espaço para o logotipo no centro */
  /* fade suave nas laterais */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  transition: transform 0.6s var(--ease);
}

.fluxo .f-linha {
  fill: none;
  stroke: var(--linha);
  stroke-width: 1.5;
  stroke-linecap: round;
}
.fluxo .f-linha.rota { stroke: rgba(255, 255, 255, 0.42); }

.fluxo .f-card rect { fill: var(--preto); stroke: var(--card); stroke-width: 1.5; }
.fluxo .f-card line { stroke: rgba(255, 255, 255, 0.8); stroke-width: 2; stroke-linecap: round; }
.fluxo .f-card.azul rect { fill: var(--azul); stroke: var(--azul); }
.fluxo .f-card.azul line { stroke: var(--branco); }

.fluxo .f-card,
.fluxo .f-solucao {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  transform: scale(0.6);
  transition: opacity 0.5s var(--ease), transform 0.6s var(--ease);
}
.fluxo .on { opacity: 1; transform: scale(1); }

.fluxo .f-solucao .anel { fill: none; stroke: var(--verde); stroke-width: 2; }
.fluxo .f-solucao .nucleo { fill: var(--verde); }
.fluxo .f-solucao .onda {
  fill: none;
  stroke: var(--verde);
  stroke-width: 1.5;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.fluxo .f-solucao.chegou .onda { animation: onda 1.4s var(--ease); }

.fluxo .pulso { fill: var(--branco); filter: drop-shadow(0 0 6px rgba(255, 255, 255, 0.9)); }

@keyframes onda {
  from { opacity: 0.9; transform: scale(1); }
  to   { opacity: 0;   transform: scale(4); }
}

/* ---------- Estrutura ---------- */
.pagina {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: clamp(16px, 3vw, 32px) clamp(16px, 4vw, 48px);
}

.topo {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--texto-2);
}
.topo .status { display: inline-flex; align-items: center; gap: 10px; }
.topo .status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--verde);
  animation: piscar 1.6s steps(2, jump-none) infinite;
}

/* ---------- Centro ---------- */
.centro {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 0;
}

.logo {
  width: min(520px, 76vw);
  height: auto;
  color: var(--branco);
  overflow: visible;
}
.logo path {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.9s var(--ease);
}
.logo.on path { opacity: 1; transform: none; }

.marca {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
}

.assinatura {
  margin: clamp(14px, 2vw, 22px) 0 0;
  font-family: var(--mono);
  font-size: clamp(12px, 1.4vw, 15px);
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--texto-2);
  min-height: 1.4em;
  /* compensa o espaçamento após a última letra, alinhando ao fim do logotipo */
  margin-right: -0.42em;
}
.assinatura .cursor {
  display: inline-block;
  color: var(--branco);
  animation: piscar 1s steps(2, jump-none) infinite;
}

.titulo {
  margin: clamp(48px, 8vh, 88px) 0 0;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  max-width: 22ch;
  margin-inline: auto;
  text-wrap: balance;
}
.titulo em { font-style: normal; color: var(--branco); position: relative; white-space: nowrap; }
.titulo em::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -0.08em;
  height: 2px;
  background: var(--azul-claro);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 1s 1.6s var(--ease);
}
.on-texto .titulo em::after { transform: scaleX(1); }

.texto {
  margin: 18px 0 0;
  max-width: 46ch;
  margin-inline: auto;
  text-wrap: balance;
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  color: var(--texto-2);
}

.acoes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: none;
  text-decoration: none;
  color: var(--branco);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  background: rgba(14, 14, 16, 0.6);
  backdrop-filter: blur(6px);
  transition: border-color 0.2s, background-color 0.2s, transform 0.2s var(--ease);
}
.btn:hover { border-color: var(--branco); transform: translateY(-2px); }
.btn:focus-visible { outline: 2px solid var(--verde); outline-offset: 3px; }
.btn.primario { background: var(--azul); border-color: var(--azul); }
.btn.primario:hover { background: var(--azul-claro); border-color: var(--azul-claro); }
.btn .seta { transition: transform 0.25s var(--ease); }
.btn:hover .seta { transform: translateX(4px); }

/* entrada do texto */
.revela { opacity: 0; transform: translateY(14px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.on-texto .revela { opacity: 1; transform: none; }
.on-texto .revela:nth-child(2) { transition-delay: 0.12s; }
.on-texto .revela:nth-child(3) { transition-delay: 0.24s; }

/* ---------- Trilha do método ---------- */
.trilha {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}
.trilha::before,
.trilha .progresso {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: calc(20% - 6px);
  height: 2px;
  background: rgba(255, 255, 255, 0.16);
}
.trilha .progresso {
  right: auto;
  width: 0;
  background: var(--branco);
  transition: width 1.8s 0.8s var(--ease);
}
.on-texto .trilha .progresso { width: 40%; }

.trilha li { position: relative; padding-top: 26px; padding-right: 12px; }
.trilha li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  background: var(--preto);
}
.trilha li.feito { color: var(--texto-2); }
.trilha li.feito::before { background: var(--branco); border-color: var(--branco); }
.trilha li.atual { color: var(--branco); }
.trilha li.atual::before { border-color: var(--verde); background: var(--verde); box-shadow: 0 0 0 0 rgba(187, 255, 61, 0.6); animation: radar 2s infinite; }
.trilha .num { display: block; margin-bottom: 4px; opacity: 0.6; }
.trilha li.atual .num { color: var(--verde); opacity: 1; }

.rodape {
  display: grid;
  gap: 22px;
}
.rodape small {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.38);
}

@keyframes piscar { 50% { opacity: 0; } }
@keyframes radar {
  0%   { box-shadow: 0 0 0 0 rgba(187, 255, 61, 0.55); }
  80%  { box-shadow: 0 0 0 10px rgba(187, 255, 61, 0); }
  100% { box-shadow: 0 0 0 0 rgba(187, 255, 61, 0); }
}

/* ---------- Celular ---------- */
@media (max-width: 680px) {
  .topo .codigo { display: none; }
  .topo { justify-content: center; }
  .trilha li { font-size: 10px; padding-right: 4px; }
  .trilha li:not(.atual) .nome { display: none; }
  .trilha li.atual { grid-column: span 1; white-space: nowrap; }
  .btn { flex: 1 1 100%; justify-content: center; }
  .acoes { width: 100%; max-width: 360px; }
  .centro { padding-bottom: 160px; }
  .titulo { margin-top: 56px; }
}

/* ---------- Movimento reduzido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .logo path, .revela, .fluxo .f-card, .fluxo .f-solucao { opacity: 1; transform: none; }
  .trilha .progresso { width: 40%; }
  .titulo em::after { transform: scaleX(1); }
}
