/* Reset simples */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #f2f6ff 0, #ffffff 45%, #f8fafc 100%);
  color: #111827;
  min-height: 100vh;
  line-height: 1.5;
}

/* Cabeçalho */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1.5rem;
  border-bottom: 1px solid #e5e7eb;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo {
  height: 32px;
  width: auto;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.04em;
  font-size: 1.1rem;
}

.top-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.95rem;
}

.top-menu a {
  text-decoration: none;
  color: #374151;
}

.top-menu a:hover {
  color: #111827;
}

.btn-outline {
  border: 1px solid #4f46e5;
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  color: #4f46e5;
  font-weight: 500;
}

.btn-outline:hover {
  background: #eef2ff;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1.5rem 2rem;
}

.hero-inner {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.tagline {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: #6366f1;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.hero-title {
  font-size: 2.3rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.hero-subtitle {
  font-size: 1rem;
  color: #4b5563;
  margin-bottom: 1.75rem;
}

/* Busca */
.search-form {
  margin-bottom: 1rem;
}

.search-box {
  display: flex;
  align-items: stretch;
  background: #ffffff;
  border-radius: 999px;
  padding: 0.3rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid #e5e7eb;
}

.search-box input {
  flex: 1;
  border: none;
  padding: 0.7rem 1rem;
  font-size: 0.98rem;
  border-radius: 999px 0 0 999px;
  outline: none;
}

.search-box input::placeholder {
  color: #9ca3af;
}

.search-button {
  border: none;
  padding: 0 1.4rem;
  border-radius: 999px;
  font-size: 0.98rem;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(135deg, #f97316, #ea580c);
  color: #ffffff;
  white-space: nowrap;
}

.search-button:hover {
  filter: brightness(1.05);
}

/* Botões rápidos */
.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.chip-btn {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 0.35rem 0.9rem;
  font-size: 0.85rem;
  cursor: pointer;
  color: #4b5563;
}

.chip-btn:hover {
  background: #eef2ff;
  border-color: #c7d2fe;
}

/* Caixa de resposta */
.response-box {
  margin: 0 auto;
  margin-top: 1.5rem;
  text-align: left;
  background: #ffffff;
  border-radius: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.response-box h2 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.response-content {
  font-size: 0.95rem;
  color: #374151;
  white-space: pre-wrap;
}

.hidden {
  display: none;
}

/* Seções */
.section {
  padding: 2.5rem 1.5rem;
}

.section-alt {
  background: #f9fafb;
}

.section-inner {
  max-width: 960px;
  margin: 0 auto;
}

.section-inner h2 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

.section-inner p {
  color: #4b5563;
  margin-bottom: 1.5rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: #ffffff;
  border-radius: 0.75rem;
  padding: 1rem;
  border: 1px solid #e5e7eb;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.card h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: #111827;
}

.card p {
  font-size: 0.93rem;
  margin: 0;
}

/* Rodapé */
.footer {
  border-top: 1px solid #e5e7eb;
  padding: 1rem 1.5rem;
  text-align: center;
  font-size: 0.85rem;
  color: #6b7280;
}

/* Acessibilidade */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Responsivo */
@media (max-width: 768px) {
  .top-menu {
    display: none; /* versão simples: esconde menu em tela pequena */
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .search-box {
    flex-direction: row;
  }

  .search-button {
    padding: 0 1rem;
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }
}
