:root {
  --marca: #1d4ed8;
  --marca-clara: #dbeafe;
  --fundo: #f4f0ff;
  --superficie: #ffffff;
  --texto: #111827;
  --texto-fraco: #4b5563;
  --borda: #e5e7eb;
  --intro-fundo: #0f172a;
  --intro-texto: #f8fafc;
  --peca-azul: #1d4ed8;
  --peca-vermelho: #dc2626;
  --peca-amarelo: #a16207;
  --peca-verde: #15803d;
  --espaco-xs: 4px;
  --espaco-sm: 8px;
  --espaco-md: 16px;
  --espaco-lg: 24px;
  --espaco-xl: 32px;
  --raio-sm: 8px;
  --raio-md: 16px;
  --raio-lg: 28px;
  --alvo: 48px;
  --titulo: 24px;
  --secao: 18px;
  --corpo: 16px;
  --legenda: 13px;
  --largura: 1080px;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  min-height: 100%;
  color: var(--texto);
  font-size: var(--corpo);
  line-height: 1.55;
  letter-spacing: -0.011em;
}

body {
  background:
    radial-gradient(900px 520px at 8% -10%, rgb(29 78 216 / 22%), transparent 55%),
    radial-gradient(720px 480px at 108% 8%, rgb(220 38 38 / 14%), transparent 50%),
    radial-gradient(640px 420px at 70% 110%, rgb(21 128 61 / 14%), transparent 52%),
    linear-gradient(180deg, #efe9ff 0%, var(--fundo) 38%, #eef4ff 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(circle at 18% 22%, rgb(29 78 216 / 16%), transparent 18%),
    radial-gradient(circle at 82% 18%, rgb(220 38 38 / 12%), transparent 16%),
    radial-gradient(circle at 74% 78%, rgb(21 128 61 / 12%), transparent 18%);
  animation: fundo-vivo 18s ease-in-out infinite alternate;
}

#pagina {
  position: relative;
  z-index: 1;
}

html[data-intro="pendente"] body {
  background: var(--intro-fundo);
}

html[data-intro="pendente"] #pagina {
  visibility: hidden;
}

a {
  color: var(--marca);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--marca);
  outline-offset: 3px;
}

.pular-conteudo {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 1100;
  min-height: var(--alvo);
  padding: 0 16px;
  background: var(--superficie);
  color: var(--texto);
  border: 2px solid var(--marca);
  border-radius: var(--raio-sm);
  font-weight: 700;
  text-decoration: none;
  transform: translateY(-140%);
}

.pular-conteudo:focus {
  transform: none;
}

.cabecalho {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgb(255 255 255 / 72%);
  border-bottom: 1px solid rgb(255 255 255 / 50%);
  box-shadow: 0 12px 40px rgb(15 23 42 / 6%);
  backdrop-filter: blur(18px);
}

.cabecalho-interno {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.marca-link {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--texto);
  text-decoration: none;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: -0.03em;
  min-height: var(--alvo);
}

.marca-link:hover {
  color: var(--marca);
}

.marca-link .quebra svg {
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}

.marca-link:hover .quebra svg:nth-child(1) {
  transform: rotate(-8deg) scale(1.08);
}

.marca-link:hover .quebra svg:nth-child(2) {
  transform: rotate(98deg) scale(1.08);
}

.marca-link:hover .quebra svg:nth-child(3) {
  transform: rotate(172deg) scale(1.08);
}

.marca-link:hover .quebra svg:nth-child(4) {
  transform: rotate(262deg) scale(1.08);
}

.nav-site {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
}

.nav-sep {
  display: none;
}

.nav-site a {
  display: inline-flex;
  align-items: center;
  min-height: var(--alvo);
  padding: 0 14px;
  border-radius: 999px;
  text-decoration: none;
  color: var(--texto);
  font-weight: 600;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.nav-site a:hover {
  background: var(--marca-clara);
  transform: translateY(-1px);
}

.nav-site a[aria-current="page"] {
  color: var(--marca);
  background: var(--marca-clara);
  box-shadow: inset 0 -3px 0 var(--marca);
}

.conteudo {
  max-width: var(--largura);
  margin: 0 auto;
  padding: 48px 24px 96px;
}

.conteudo:focus {
  outline: none;
}

.hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr);
  gap: 40px;
  align-items: center;
  background: rgb(255 255 255 / 70%);
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 36px;
  padding: 48px 44px;
  margin-bottom: 28px;
  box-shadow:
    0 1px 0 rgb(255 255 255 / 80%) inset,
    0 28px 80px rgb(29 78 216 / 12%);
  animation: entrar 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.hero-selo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0 0 16px;
  padding: 0 14px 0 10px;
  border-radius: 999px;
  background: rgb(219 234 254 / 80%);
  color: var(--marca);
  font-size: var(--legenda);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.selo-ponto {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--peca-verde);
  box-shadow: 0 0 0 0 rgb(21 128 61 / 55%);
  animation: pulso 2.2s ease-out infinite;
}

.hero h1,
.pagina-texto h1 {
  margin: 0 0 16px;
  font-size: clamp(44px, 7vw, 76px);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: -0.05em;
}

.titulo-marca {
  color: #1e3a8a;
  background: linear-gradient(120deg, #1e3a8a 0%, var(--marca) 42%, #7c3aed 78%, var(--peca-vermelho) 100%);
  background-size: 180% 180%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: brilho 8s ease-in-out infinite;
}

.hero-visual {
  position: relative;
  justify-self: center;
  width: min(100%, 320px);
  height: 320px;
  display: grid;
  place-items: center;
}

.orbe {
  position: absolute;
  width: 230px;
  height: 230px;
  border-radius: 50%;
  background:
    conic-gradient(
      from 80deg,
      rgb(29 78 216 / 55%),
      rgb(220 38 38 / 40%),
      rgb(161 98 7 / 40%),
      rgb(21 128 61 / 50%),
      rgb(29 78 216 / 55%)
    );
  filter: blur(2px);
  animation: girar 16s linear infinite;
  opacity: 0.85;
}

.anel {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgb(29 78 216 / 28%);
}

.anel-1 {
  width: 270px;
  height: 270px;
  animation: girar 22s linear infinite reverse;
}

.anel-2 {
  width: 310px;
  height: 310px;
  border-color: rgb(220 38 38 / 18%);
  animation: girar 28s linear infinite;
}

.quebra-hero {
  position: relative;
  z-index: 1;
  padding: 28px;
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 32px;
  box-shadow: 0 24px 50px rgb(15 23 42 / 14%);
  animation: flutuar 4.5s ease-in-out infinite;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.lead {
  color: var(--texto-fraco);
  font-size: 1.125rem;
  max-width: 38rem;
  margin: 0 0 28px;
}

.hero-acoes {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.botao-principal,
.botao-secundario {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: var(--alvo);
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.botao-principal {
  background: var(--marca);
  color: #ffffff;
  box-shadow: 0 12px 28px rgb(29 78 216 / 28%);
}

.botao-principal:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgb(29 78 216 / 36%);
}

.botao-secundario {
  background: rgb(255 255 255 / 80%);
  color: var(--texto);
  border: 1px solid var(--borda);
}

.botao-secundario:hover {
  transform: translateY(-2px);
  background: var(--superficie);
}

.funcoes {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 0 56px;
}

.secao-titulo {
  margin: 48px 0 20px;
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.04em;
}

.cartao {
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 24px;
  padding: 24px 22px 22px;
  box-shadow: 0 16px 40px rgb(15 23 42 / 6%);
  transform: translateY(12px);
  animation: subir 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.funcoes .cartao:nth-child(1) {
  animation-delay: 0.05s;
}

.funcoes .cartao:nth-child(2) {
  animation-delay: 0.16s;
}

.funcoes .cartao:nth-child(3) {
  animation-delay: 0.27s;
}

.cartao:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 50px rgb(15 23 42 / 12%);
}

.cartao h2,
.cartao h3 {
  margin: 10px 0 8px;
  font-size: 1.25rem;
  letter-spacing: -0.03em;
}

.cartao p {
  margin: 0;
  color: var(--texto-fraco);
}

.cartao-rotulo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--legenda);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.cartao-icone {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 800;
}

.cartao-monitorar {
  border-top: 6px solid var(--peca-azul);
}

.cartao-monitorar .cartao-icone {
  background: var(--peca-azul);
}

.cartao-monitorar .cartao-rotulo {
  color: var(--peca-azul);
}

.cartao-alertar {
  border-top: 6px solid var(--peca-vermelho);
}

.cartao-alertar .cartao-icone {
  background: var(--peca-vermelho);
}

.cartao-alertar .cartao-rotulo {
  color: var(--peca-vermelho);
}

.cartao-registrar {
  border-top: 6px solid var(--peca-verde);
}

.cartao-registrar .cartao-icone {
  background: var(--peca-verde);
}

.cartao-registrar .cartao-rotulo {
  color: var(--peca-verde);
}

.aviso {
  background: rgb(219 234 254 / 75%);
  border: 1px solid transparent;
  border-left: 6px solid var(--marca);
  border-radius: 16px;
  padding: 18px 22px;
  color: var(--texto);
  margin: 0 0 8px;
  animation: entrar 0.7s ease 0.15s both;
}

.passos {
  display: grid;
  gap: 16px;
  list-style: none;
  padding: 0;
  margin: 0;
  position: relative;
}

.passo {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 16px;
  align-items: start;
  background: rgb(255 255 255 / 82%);
  border: 1px solid rgb(255 255 255 / 90%);
  border-radius: 22px;
  padding: 22px;
  box-shadow: 0 14px 36px rgb(15 23 42 / 6%);
  animation: subir 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.25s ease;
}

.passo:nth-child(1) {
  animation-delay: 0.08s;
}

.passo:nth-child(2) {
  animation-delay: 0.18s;
}

.passo:nth-child(3) {
  animation-delay: 0.28s;
}

.passo:hover {
  transform: translateX(6px);
}

.passo h3 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
}

.passo p {
  margin: 0;
  color: var(--texto-fraco);
}

.numero {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--marca);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  box-shadow: 0 10px 20px rgb(29 78 216 / 25%);
}

.passo:nth-child(1) .numero {
  background: var(--peca-azul);
}

.passo:nth-child(2) .numero {
  background: var(--peca-vermelho);
}

.passo:nth-child(3) .numero {
  background: var(--peca-verde);
}

.rodape {
  border-top: 1px solid rgb(255 255 255 / 60%);
  background: rgb(255 255 255 / 55%);
  backdrop-filter: blur(14px);
  padding: 28px 24px 48px;
}

.rodape-interno {
  max-width: var(--largura);
  margin: 0 auto;
  color: var(--texto-fraco);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
}

.rodape a {
  min-height: var(--alvo);
  display: inline-flex;
  align-items: center;
  padding: 0 6px;
  font-weight: 600;
  text-decoration: none;
}

.rodape a:hover {
  text-decoration: underline;
}

.quebra {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  flex-shrink: 0;
}

.quebra svg {
  display: block;
}

.pagina-texto {
  background: rgb(255 255 255 / 72%);
  border: 1px solid rgb(255 255 255 / 80%);
  border-radius: 28px;
  padding: 40px 36px 48px;
  box-shadow: 0 20px 50px rgb(15 23 42 / 6%);
  animation: entrar 0.6s ease both;
}

.pagina-texto p,
.pagina-texto li {
  max-width: 48rem;
}

.pagina-texto h2 {
  font-size: var(--titulo);
  margin-top: 32px;
  letter-spacing: -0.03em;
}

@media (max-width: 800px) {
  .hero {
    grid-template-columns: 1fr;
    padding: 28px 22px;
  }

  .hero-visual {
    order: -1;
    height: 260px;
  }

  .funcoes {
    grid-template-columns: 1fr;
  }

  .pagina-texto {
    padding: 28px 20px;
  }
}

@keyframes fundo-vivo {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(-2%, 3%, 0) scale(1.08);
  }
}

@keyframes girar {
  to {
    transform: rotate(360deg);
  }
}

@keyframes flutuar {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulso {
  0% {
    box-shadow: 0 0 0 0 rgb(21 128 61 / 50%);
  }
  70% {
    box-shadow: 0 0 0 10px rgb(21 128 61 / 0%);
  }
  100% {
    box-shadow: 0 0 0 0 rgb(21 128 61 / 0%);
  }
}

@keyframes brilho {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes entrar {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes subir {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.intro {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 42%, #1e3a8a 0%, var(--intro-fundo) 58%);
  color: var(--intro-texto);
  text-align: center;
  padding: 72px 24px 48px;
  animation: intro-sumir 0.8s ease 3.4s forwards;
}

.intro-reduzida {
  animation: none;
}

.intro-pular {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  min-height: var(--alvo);
  min-width: var(--alvo);
  padding: 0 16px;
  border: 2px solid var(--intro-texto);
  border-radius: var(--raio-sm);
  background: rgb(15 23 42 / 55%);
  color: var(--intro-texto);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.intro-pular:focus-visible {
  outline: 3px solid #93c5fd;
  outline-offset: 3px;
}

.intro-palco {
  position: absolute;
  width: min(78vw, 520px);
  height: min(78vw, 520px);
  pointer-events: none;
}

.intro-peca {
  position: absolute;
  width: 64px;
  height: 64px;
  border-radius: 18px 18px 28px 18px;
  opacity: 0;
  animation: intro-peca 2.4s ease forwards;
}

.intro-peca-azul {
  background: var(--peca-azul);
  top: 6%;
  left: 10%;
  animation-delay: 0.2s;
}

.intro-peca-vermelho {
  background: var(--peca-vermelho);
  top: 8%;
  right: 8%;
  animation-delay: 0.35s;
}

.intro-peca-amarelo {
  background: var(--peca-amarelo);
  bottom: 12%;
  left: 14%;
  animation-delay: 0.5s;
}

.intro-peca-verde {
  background: var(--peca-verde);
  bottom: 10%;
  right: 12%;
  animation-delay: 0.65s;
}

.intro-slogan {
  position: relative;
  z-index: 1;
  margin: 0 0 8px;
  font-size: clamp(14px, 2.4vw, 20px);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 700;
  opacity: 0;
  animation: intro-frase 1s ease 0.1s forwards;
}

.intro-nome {
  position: relative;
  z-index: 1;
  margin: 0;
  font-size: clamp(64px, 18vw, 140px);
  font-weight: 800;
  letter-spacing: 0.06em;
  line-height: 0.9;
  transform: scale(0.22);
  opacity: 0;
  filter: blur(12px);
  text-shadow: 0 0 48px rgb(29 78 216 / 70%);
  animation: intro-logo 2.4s cubic-bezier(0.16, 0.84, 0.32, 1) 0.45s forwards;
}

.intro-marca {
  position: relative;
  z-index: 1;
  margin-top: 28px;
  opacity: 0;
  animation: intro-frase 0.8s ease 1.5s forwards;
}

.intro-apoio {
  position: relative;
  z-index: 1;
  margin: 16px 0 0;
  color: #cbd5e1;
  font-size: 16px;
  opacity: 0;
  animation: intro-frase 0.8s ease 1.7s forwards;
}

@keyframes intro-frase {
  to {
    opacity: 1;
  }
}

@keyframes intro-logo {
  0% {
    transform: scale(0.22);
    opacity: 0;
    filter: blur(12px);
  }
  40% {
    opacity: 1;
    filter: blur(0);
  }
  72% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes intro-peca {
  0% {
    opacity: 0;
    transform: scale(0.35) rotate(-12deg);
  }
  100% {
    opacity: 0.92;
    transform: scale(1) rotate(0deg);
  }
}

@keyframes intro-sumir {
  to {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body::before,
  .orbe,
  .anel,
  .quebra-hero,
  .selo-ponto,
  .titulo-marca {
    animation: none !important;
  }

  .intro,
  .intro-slogan,
  .intro-nome,
  .intro-apoio,
  .intro-marca,
  .intro-peca {
    animation: none !important;
    opacity: 1;
    transform: none;
    filter: none;
    visibility: visible;
  }
}
