/* ══════════════════════════════════════════
   HERO FORNECEDOR — redesign centrado
   (carregado por último: sobrescreve components.css)
══════════════════════════════════════════ */

.section--hero {
  padding-top: calc(var(--navbar-height) + clamp(48px, 6vw, 80px));
  padding-bottom: clamp(64px, 8vw, 104px);
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(48px, 6vw, 72px);
}

/* ── Conteúdo central ── */
.hero__content {
  align-items: center;
  text-align: center;
  max-width: 860px;
}

.hero__title {
  font-size: clamp(40px, 6vw, 80px);
  letter-spacing: -2px;
}

.hero__subtitle {
  max-width: 640px;
  margin: 0 auto;
}

/* Badge com pulso */
.badge__pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ADE80;
  margin-right: 8px;
  box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55);
  animation: badge-pulse 2s ease-out infinite;
}

@keyframes badge-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.55); }
  70%  { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
  100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0); }
}

/* ── CTAs ── */
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-4);
}

.btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 16px 32px;
  font-size: var(--text-lg);
  border-radius: var(--radius-lg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
}

.btn--ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.36);
  transform: translateY(-1px);
}

/* ── Prova social ── */
.hero__proof {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 32px);
  margin-top: var(--space-2);
}

.hero__proof-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.hero__proof-item strong {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-white);
  line-height: 1.2;
}

.hero__proof-item span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.62);
}

.hero__proof-divider {
  width: 1px;
  height: 36px;
  background: rgba(255, 255, 255, 0.18);
}

/* ── Visual: painel dashboard ── */
.hero__visual {
  position: relative;
  width: 100%;
  max-width: 880px;
}

.hero__panel {
  background: rgba(15, 18, 32, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-xl);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow:
    0 40px 90px rgba(10, 8, 40, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);
  padding: clamp(20px, 3vw, 32px);
  display: flex;
  flex-direction: column;
  gap: clamp(18px, 2.5vw, 28px);
}

.hero__panel-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.hero__panel-dots {
  display: flex;
  gap: 6px;
}

.hero__panel-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
}

.hero__panel-dots span:first-child { background: rgba(239, 68, 68, 0.65); }
.hero__panel-dots span:nth-child(2) { background: rgba(245, 158, 11, 0.65); }
.hero__panel-dots span:last-child  { background: rgba(16, 185, 129, 0.65); }

.hero__panel-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: rgba(255, 255, 255, 0.85);
}

.hero__panel-chip {
  margin-left: auto;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-medium);
  color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--radius-full);
  padding: 4px 12px;
  white-space: nowrap;
}

/* KPIs */
.hero__panel-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.hero__kpi {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero__kpi-label {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.58);
}

.hero__kpi-value {
  font-family: var(--font-display);
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: var(--font-weight-bold);
  color: var(--color-text-white);
  line-height: 1.15;
}

.hero__kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: var(--text-xs);
  font-weight: var(--font-weight-semibold);
  width: fit-content;
}

.hero__kpi-delta--up { color: #4ADE80; }

/* Gráfico de barras */
.hero__panel-chart {
  display: flex;
  align-items: flex-end;
  gap: clamp(6px, 1vw, 12px);
  height: clamp(90px, 12vw, 140px);
  padding-top: var(--space-2);
}

.hero__panel-chart span {
  flex: 1;
  height: var(--h);
  border-radius: 6px 6px 2px 2px;
  background: linear-gradient(180deg, #A855F7 0%, rgba(139, 69, 255, 0.35) 100%);
  min-height: 8px;
  transform-origin: bottom;
  animation: bar-grow 900ms cubic-bezier(0.16, 1, 0.3, 1) backwards;
}

.hero__panel-chart span:nth-child(2n)  { animation-delay: 80ms; }
.hero__panel-chart span:nth-child(3n)  { animation-delay: 160ms; }
.hero__panel-chart span:nth-child(4n)  { animation-delay: 240ms; }
.hero__panel-chart span:last-child {
  background: linear-gradient(180deg, #C084FC 0%, #8B45FF 100%);
  box-shadow: 0 0 18px rgba(168, 85, 247, 0.45);
}

@keyframes bar-grow {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}

/* ── Cards flutuantes ── */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: rgba(15, 18, 32, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 48px rgba(10, 8, 40, 0.40);
  padding: 12px 16px;
  z-index: 2;
}

.hero__float--quote {
  top: -24px;
  left: clamp(-32px, -2vw, -12px);
  animation: float-a 5.5s ease-in-out infinite;
}

.hero__float--accept {
  bottom: 32px;
  right: clamp(-32px, -2vw, -12px);
  animation: float-b 6.5s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

@keyframes float-b {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(10px); }
}

.hero__float-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero__float-icon--wa {
  background: rgba(37, 211, 102, 0.16);
  border: 1px solid rgba(37, 211, 102, 0.30);
}

.hero__float-icon--ok {
  background: rgba(74, 222, 128, 0.14);
  border: 1px solid rgba(74, 222, 128, 0.28);
  color: #4ADE80;
}

.hero__float-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hero__float-body strong {
  font-size: var(--text-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-white);
  line-height: 1.3;
}

.hero__float-body span {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.60);
}

/* ── Responsivo ── */
@media (max-width: 1100px) {
  .hero__float--quote { left: 8px; }
  .hero__float--accept { right: 8px; }
}

@media (max-width: 768px) {
  .hero__panel-kpis {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero__kpi:last-child {
    grid-column: span 2;
  }

  .hero__panel-chip { display: none; }

  .hero__float--quote {
    top: -20px;
    left: 4px;
  }

  .hero__float--accept {
    bottom: -20px;
    right: 4px;
  }

  .hero__proof-divider { display: none; }

  .hero__proof {
    gap: var(--space-5);
  }
}

@media (max-width: 480px) {
  .hero__actions .btn--lg {
    width: 100%;
    justify-content: center;
  }
}

/* ── Acessibilidade: reduz movimento ── */
@media (prefers-reduced-motion: reduce) {
  .badge__pulse,
  .hero__float--quote,
  .hero__float--accept,
  .hero__panel-chart span {
    animation: none;
  }
}
