:root{
  --brand: #0b66c3;
  --brand-dark: #094f97;
  --bg: #f2f6fb;
  --card: #ffffff;
  --text: #16202a;
  --muted: #667085;
  --stroke: rgba(15, 23, 42, 0.08);
  --shadow-sm: 0 8px 24px rgba(11, 102, 195, 0.08);
  --shadow-md: 0 18px 45px rgba(11, 102, 195, 0.14);
  --radius: 22px;
}

*{
  box-sizing: border-box;
}

html, body{
  margin: 0;
  padding: 0;
  font-family: Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(11,102,195,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(11,102,195,0.03) 1px, transparent 1px);
  background-size: 28px 28px;
  opacity: .45;
}

.topo{
  background: var(--brand);
  padding: 22px 18px 82px;
  position: relative;
  overflow: hidden;
}

.topo::after{
  content: "";
  position: absolute;
  inset: auto -60px -80px auto;
  width: 220px;
  height: 220px;
  background: rgba(255,255,255,.08);
  border-radius: 50%;
  filter: blur(10px);
}

.topo__conteudo{
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: center;
}

.topo__conteudo--center{
  justify-items: center;
}

.topo__titulo{
  color: #fff;
  text-align: center;
}

.topo__titulo h1{
  margin: 4px 0 0;
  font-size: clamp(28px, 4vw, 38px);
}

.topo__subtitulo{
  margin: 0;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
  opacity: .9;
}

.pagina{
  max-width: 1200px;
  margin: -54px auto 0;
  padding: 0 18px 30px;
  position: relative;
  z-index: 2;
}

.hero{
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border: 1px solid var(--stroke);
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  padding: 24px;
  display: grid;
  grid-template-columns: 1.4fr .8fr;
  gap: 18px;
  margin-bottom: 26px;
}

.hero__texto h2{
  margin: 0 0 8px;
  font-size: 26px;
}

.hero__texto p{
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.hero__acoes{
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.campo-busca{
  width: 100%;
  max-width: 340px;
}

.campo-busca input{
  width: 100%;
  height: 52px;
  border: 1px solid rgba(11,102,195,.15);
  border-radius: 16px;
  padding: 0 16px;
  font-size: 15px;
  outline: none;
  background: #fff;
  color: var(--text);
  box-shadow: inset 0 1px 2px rgba(0,0,0,.03);
}

.campo-busca input:focus{
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(11,102,195,.10);
}

.lista-downloads{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}

.card-download{
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 18px;
  display: flex;
  flex-direction: column;
  min-height: 280px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.card-download:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(11,102,195,.18);
}

.card-download__topo{
  display: flex;
  justify-content: flex-end;
  margin-bottom: 8px;
}

.badge-categoria{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(11,102,195,.10);
  color: var(--brand);
  font-size: 12px;
  font-weight: bold;
}

.card-download__icone{
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 96px;
  margin-bottom: 8px;
}

.card-download__icone img{
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 16px;
}

.card-download__conteudo{
  flex: 1;
  text-align: center;
}

.card-download__conteudo h3{
  margin: 10px 0 8px;
  font-size: 18px;
  line-height: 1.3;
}

.card-download__conteudo p{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.card-download__rodape{
  margin-top: 18px;
}

.btn-download{
  display: inline-flex;
  width: 100%;
  justify-content: center;
  align-items: center;
  min-height: 46px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: .2s ease;
}

.btn-download:hover{
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.rodape{
  margin-top: 34px;
  padding: 18px;
  text-align: center;
  color: #5f6b7a;
  font-size: 14px;
}

.sem-resultado{
  margin-top: 20px;
  padding: 18px;
  text-align: center;
  border-radius: 16px;
  border: 1px dashed rgba(11,102,195,.25);
  background: #fff;
  color: var(--muted);
}

@media (max-width: 820px){
  .topo__conteudo{
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .topo__titulo{
    text-align: center;
  }

  .hero{
    grid-template-columns: 1fr;
  }

  .hero__acoes{
    justify-content: stretch;
  }

  .campo-busca{
    max-width: 100%;
  }
}

@media (max-width: 520px){
  .topo{
    padding-bottom: 70px;
  }

  .pagina{
    margin-top: -42px;
  }

  .hero{
    padding: 18px;
    border-radius: 22px;
  }

  .card-download{
    min-height: unset;
  }
}