/* solucoes.css — Página Soluções: hero, filtros, FAQ escuro, reveal */

/* Jornada da abelha — variante soluções (mais chats / módulos) */
.bee-journey--solucoes .bee-journey__stage {
  min-height: 24rem;
}

@media (min-width: 640px) {
  .bee-journey--solucoes .bee-journey__stage {
    min-height: 30rem;
  }
}

.bee-journey--solucoes .bee-journey__path-line {
  stroke: rgba(37, 99, 235, 0.22);
}

.bee-journey--solucoes .bee-chat {
  animation-delay: calc(var(--chat-i, 0) * -2.1s);
}

.bee-journey--solucoes .bee-chat--in .bee-chat__bubble,
.bee-journey--solucoes .bee-chat--system .bee-chat__bubble,
.bee-journey--solucoes .bee-chat--out .bee-chat__bubble {
  animation-delay: calc(var(--chat-i, 0) * -2.1s);
}

/* Hero sem scroll horizontal */
.hero-solucoes {
  overflow: hidden;
  isolation: isolate;
}

.hero-solucoes__orbs {
  z-index: 0;
}

.hero-solucoes__orb {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-solucoes__orb-blue {
  top: -8rem;
  right: -6rem;
  width: min(28rem, 90vw);
  height: min(28rem, 90vw);
}

.hero-solucoes__orb-gold {
  bottom: -5rem;
  left: -4rem;
  width: min(20rem, 70vw);
  height: min(20rem, 70vw);
}

@media (min-width: 1024px) {
  .hero-solucoes__orb-blue {
    top: -10rem;
    right: -4rem;
    width: 32rem;
    height: 32rem;
  }

  .hero-solucoes__orb-gold {
    bottom: -6rem;
    left: -3rem;
    width: 24rem;
    height: 24rem;
  }

  .hero-solucoes__mockup.animate-float {
    animation: float 5s ease-in-out infinite;
  }
}

.hero-solucoes__mockup-wrap {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 26rem;
  margin-inline: auto;
}

@media (min-width: 1024px) {
  .hero-solucoes__mockup-wrap {
    max-width: none;
    margin-inline: 0;
  }
}

@media (max-width: 1023px) {
  .hero-solucoes__mockup.animate-float {
    animation: none;
  }
}

.hero-solucoes__mockup {
  width: 100%;
  max-width: 100%;
}

/* Filtro sticky */
.solution-filter-bar {
  top: calc(4.25rem + env(safe-area-inset-top, 0px));
  scroll-margin-top: 6rem;
  transition: box-shadow 0.3s ease, background 0.3s ease;
}

@media (min-width: 640px) {
  .solution-filter-bar {
    top: 5rem;
  }
}

.solution-filter-bar.is-stuck {
  box-shadow: 0 8px 32px -8px rgba(15, 23, 42, 0.12);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* Cards de solução */
.solution-card {
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.solution-card.is-hidden {
  display: none;
}

.solution-card:hover {
  transform: translateY(-6px);
}

.solution-card:hover .solution-card-glow {
  opacity: 1;
}

.solution-card-glow {
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12), rgba(245, 158, 11, 0.08));
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: 0;
}

.solution-card-inner {
  position: relative;
  z-index: 1;
}

.solution-card-dark {
  transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.solution-card-dark:hover {
  transform: translateY(-6px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.35);
}

/* Spotlight shimmer */
.solution-spotlight {
  overflow: hidden;
}

.solution-spotlight::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.06) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: solution-shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

@keyframes solution-shimmer {
  0%, 100% { transform: translateX(-120%); }
  50% { transform: translateX(120%); }
}

/* Scroll reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s cubic-bezier(0.4, 0, 0.2, 1), transform 0.65s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-on-scroll.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

/* Marquee */
.solution-marquee-track {
  display: flex;
  width: max-content;
  animation: solution-marquee 40s linear infinite;
}

@keyframes solution-marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.solution-stat-value {
  font-variant-numeric: tabular-nums;
}

.solution-preview-dot {
  animation: solution-pulse-dot 2s ease-in-out infinite;
}

@keyframes solution-pulse-dot {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.15); }
}

/* FAQ — tema escuro */
.faq-section-dark .faq-item {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}

.faq-section-dark .faq-item summary {
  list-style: none;
  color: #f1f5f9;
}

.faq-section-dark .faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-section-dark .faq-item[open] {
  border-color: rgba(59, 130, 246, 0.4);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px -8px rgba(37, 99, 235, 0.25);
}

.faq-section-dark .faq-item[open] summary {
  color: var(--brand-sky);
}

.faq-section-dark .faq-item[open] .faq-chevron {
  transform: rotate(180deg);
  background-color: rgba(59, 130, 246, 0.2);
  color: var(--brand-sky);
}

.faq-section-dark .faq-chevron {
  background: rgba(255, 255, 255, 0.08);
  color: #94a3b8;
  transition: transform 0.3s ease, background 0.3s ease, color 0.3s ease;
}

/* Pills de recursos (headline) */
.solucoes-resource-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 52rem;
  margin-inline: auto;
  padding: 1rem 1.25rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  box-shadow: 0 12px 40px -24px rgba(37, 99, 235, 0.12);
}

.solucoes-resource-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  border-radius: 9999px;
  border: 1px solid #e2e8f0;
  background: #fff;
  padding: 0.4rem 0.75rem;
  font-size: 0.6875rem;
  font-weight: 600;
  color: #475569;
  transition: border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.solucoes-resource-pill:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #2563eb;
  box-shadow: 0 4px 12px -4px rgba(37, 99, 235, 0.2);
  transform: translateY(-1px);
}

.solucoes-resource-pill--gold {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(135deg, #fffbeb, #fff);
  color: #b45309;
}

.solucoes-resource-pill--gold:hover {
  border-color: rgba(245, 158, 11, 0.55);
  color: #d97706;
}

/* Índice numérico nos cards */
.solution-card__index {
  position: absolute;
  top: 1rem;
  right: 1rem;
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #cbd5e1;
  line-height: 1;
}

.solution-card__index--gold {
  color: rgba(180, 83, 9, 0.35);
}

.solution-card__index--dark {
  color: rgba(148, 163, 184, 0.35);
}

.solution-card.group:hover .solution-card__index {
  color: rgba(37, 99, 235, 0.45);
}

.solution-card-dark.group:hover .solution-card__index--dark {
  color: rgba(147, 197, 253, 0.5);
}

@media (prefers-reduced-motion: reduce) {
  .solution-marquee-track,
  .solution-spotlight::before,
  .solution-preview-dot,
  .hero-solucoes__mockup.animate-float {
    animation: none;
    opacity: 1;
  }

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

  .solution-card:hover,
  .solution-card-dark:hover {
    transform: none;
  }

  .solucoes-resource-pill:hover {
    transform: none;
  }
}
