/* ==========================================================================
   BLIOHUB - estilos compartilhados pela landing e pelo quiz
   ========================================================================== */

:root {
  --brand: #ff6b00;
  --brand-soft: #ff8c33;
  --brand-deep: #e25400;
  --bg: #07090d;
  --bg-2: #0b0e14;
  --card: #11151d;
  --card-2: #161b25;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e7e9ee;
  --muted: #9aa3b2;
  --dim: #6b7383;
  --green: #22c55e;
  --radius: 18px;
  --max: 1140px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: 20px;
}

section {
  padding-block: 68px;
}

@media (max-width: 640px) {
  section {
    padding-block: 48px;
  }
}

/* ---------- tipografia ---------- */

h1,
h2,
h3 {
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 900;
}

h1 {
  font-size: clamp(2rem, 6.2vw, 3.65rem);
}

h2 {
  font-size: clamp(1.6rem, 4.4vw, 2.5rem);
}

h3 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.orange {
  color: var(--brand);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
}

.lead {
  color: var(--muted);
  font-size: 1.02rem;
  max-width: 60ch;
}

.section-head {
  text-align: center;
  margin-bottom: 42px;
}

.section-head .lead {
  margin: 14px auto 0;
}

/* ---------- botoes ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 14px;
  padding: 17px 30px;
  font: inherit;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  text-align: center;
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
  box-shadow: 0 12px 32px -10px rgba(255, 107, 0, 0.65);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -10px rgba(255, 107, 0, 0.8);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

.btn-lg {
  width: 100%;
  padding: 20px 30px;
  font-size: 1.08rem;
}

.btn-sub {
  display: block;
  margin-top: 10px;
  font-size: 0.78rem;
  color: var(--dim);
  text-align: center;
}

/* Chamada principal pulsando de leve, sem virar pisca-pisca */
@keyframes pulse {
  0%,
  100% {
    box-shadow: 0 12px 32px -10px rgba(255, 107, 0, 0.6);
  }
  50% {
    box-shadow: 0 12px 46px -6px rgba(255, 107, 0, 0.95);
  }
}

.pulse {
  animation: pulse 2.6s ease-in-out infinite;
}

/* ---------- cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.grid {
  display: grid;
  gap: 18px;
}

.g-2 {
  grid-template-columns: repeat(2, 1fr);
}

.g-3 {
  grid-template-columns: repeat(3, 1fr);
}

.g-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 900px) {
  .g-3,
  .g-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {
  .g-2,
  .g-3,
  .g-4 {
    grid-template-columns: 1fr;
  }
}

/* ---------- utilitarios ---------- */

.center {
  text-align: center;
}

.stars {
  color: #fbbf24;
  letter-spacing: 2px;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.badge-brand {
  background: rgba(255, 107, 0, 0.14);
  color: var(--brand);
  border: 1px solid rgba(255, 107, 0, 0.3);
}

.badge-green {
  background: rgba(34, 197, 94, 0.12);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.28);
}

/* Fundo com grade tecnica - da o clima de "impressao 3D" sem imagem pesada */
.tech-bg {
  position: relative;
  isolation: isolate;
}

.tech-bg::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: linear-gradient(rgba(255, 107, 0, 0.32) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 107, 0, 0.32) 1px, transparent 1px);
  background-size: 54px 54px;
  opacity: 0.13;
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 15%, transparent 72%);
  mask-image: radial-gradient(ellipse 75% 65% at 50% 30%, #000 15%, transparent 72%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  z-index: -1;
  pointer-events: none;
}

/* Entrada suave conforme rola a pagina */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.on {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
