/* ================== SOLUTIONS PAGE ================== */
.step,
.service-card,
.workflow-item,
.tech-card,
.differential-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(var(--glass-blur));
  box-shadow: var(--shadow-sm);
  transition:
    transform 0.35s var(--easing),
    box-shadow 0.35s var(--easing),
    border-color 0.35s var(--easing);
}

#contato {
  scroll-margin-top: 90px; /* ajuste conforme altura do header */
}

.wrap {
  overflow-x: visible;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ================== HERO ================== */

.solutions-hero {
  position: relative;
  padding: 160px 0 100px;
  text-align: center;
  overflow: hidden;
  background: var(--bg-gradient-primary);
  display: flex;
  justify-content: center;
  align-items: center;
}

.solutions-hero .wrap {
  max-width: var(--maxw);
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0 20px;
}

.solutions-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;

  background:
    radial-gradient(
      circle at top right,
      rgba(59, 130, 246, 0.15),
      transparent 50%
    ),
    radial-gradient(
      circle at bottom left,
      rgba(94, 234, 212, 0.08),
      transparent 45%
    );
}

.hero-content {
  max-width: 820px;
  width: 100%;
  margin: 0 auto;

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 18px;
}

.hero-content h1 {
  margin: 10px 0;
  font-size: clamp(2.4rem, 5vw, 4.6rem);
  line-height: 1.1;
  color: var(--text);
  letter-spacing: -0.02em;
}

.hero-content h1 span {
  display: block;
  color: var(--primary);
  text-shadow: 0 0 20px rgba(59, 130, 246, 0.25);
}

.hero-content p {
  max-width: 680px;
  color: var(--muted);
  line-height: 1.8;
  font-size: 1.05rem;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 10px;
}

.hero-buttons .btn,
.hero-buttons .btn-outline {
  min-width: 180px;
  justify-content: center;
}

/* ================== PROCESSO ================== */

.development-process {
  text-align: center;
}

.process-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;

  gap: 22px;
  flex-wrap: wrap;

  margin-top: 80px;
}

.step {
  position: relative;
  flex: 1 1 220px;
  max-width: 260px;

  padding: 38px 28px;
  border-radius: 22px;

  background: var(--card);
  border: 1px solid var(--border);

  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;

  gap: 10px;

  transition: 0.35s var(--easing);
}

.step::before {
  content: "";
  position: absolute;
  inset: 0;

  border-radius: 22px;

  background: radial-gradient(
    circle at top,
    rgba(59, 130, 246, 0.08),
    transparent 60%
  );

  opacity: 0;
  transition: 0.35s;
}

.step:hover {
  transform: translateY(-10px) scale(1.02);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: var(--shadow-lg);
}

.step-number {
  width: 62px;
  height: 62px;

  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 50%;

  font-size: 1.1rem;
  font-weight: 700;

  color: var(--primary);

  background: linear-gradient(
    135deg,
    rgba(59, 130, 246, 0.15),
    rgba(94, 234, 212, 0.08)
  );

  border: 1px solid rgba(59, 130, 246, 0.25);

  box-shadow: 0 0 0 6px rgba(59, 130, 246, 0.05);
}

.step h3 {
  margin-bottom: 15px;
}

.step p {
  color: var(--muted);

  line-height: 1.7;
}

.step-arrow {
  font-size: 1.8rem;
  opacity: 0.25;
  color: var(--primary);

  display: flex;
  align-items: center;

  user-select: none;
}

/* ================== SERVIÇOS ================== */

.solutions-services {
  text-align: center;
}

.solution-card {
  position: relative;

  overflow: hidden;

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.solution-card::before {
  content: "";

  position: absolute;

  inset: 0;

  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);

  opacity: 0;

  transition: 0.35s;
}

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

  border-color: var(--primary);

  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

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

.service-icon {
  width: 70px;

  height: 70px;

  margin: 0 auto 24px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 18px;

  background: var(--hero-bg-grad);

  border: 1px solid var(--border);
}

.service-icon i {
  font-size: 1.5rem;

  color: var(--primary);
}

.solution-card h3 {
  margin-bottom: 15px;

  text-align: center;
}

.solution-card p {
  color: var(--muted);

  line-height: 1.8;

  text-align: center;
}

.service-card {
  will-change: transform;
  transition: 0.35s ease;
}

.service-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
}

/* ================== ANIMAÇÃO ================== */

.solution-card,
.step {
  will-change: transform;
}

.solution-card:hover .service-icon {
  transform: rotate(-6deg) scale(1.06);
}

.service-icon {
  transition: 0.35s;
}

/* ================== WORKFLOW ================== */

.workflow-section {
  text-align: center;
}

.workflow {
  display: flex;

  align-items: center;

  justify-content: center;

  gap: 18px;

  margin-top: 70px;

  flex-wrap: wrap;
}

.workflow-item {
  width: 190px;

  padding: 28px 22px;

  border: 1px solid var(--border);

  border-radius: 20px;

  background: var(--card);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.workflow-item:hover {
  transform: translateY(-8px);

  border-color: var(--primary);

  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.workflow-icon {
  width: 65px;

  height: 65px;

  margin: 0 auto 22px;

  display: flex;

  align-items: center;

  justify-content: center;

  border-radius: 18px;

  background: var(--hero-bg-grad);

  border: 1px solid var(--border);

  transition: 0.35s;
}

.workflow-item:hover .workflow-icon {
  transform: scale(1.08);
}

.workflow-icon i {
  font-size: 1.45rem;

  color: var(--primary);
}

.workflow-item h3 {
  margin-bottom: 14px;
}

.workflow-item p {
  color: var(--muted);

  line-height: 1.7;
}

.workflow-line {
  width: 70px;

  height: 2px;

  background: linear-gradient(
    to right,
    transparent,
    var(--primary),
    transparent
  );

  opacity: 0.45;
}

/* ================== TECNOLOGIAS ================== */

.tech-section {
  text-align: center;
}

.tech-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin-top: 70px;
}

.tech-card {
  flex: 1 1 170px;
  max-width: 220px;

  padding: 34px 20px;

  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--card);

  transition:
    transform 0.35s ease,
    border-color 0.35s ease;
}

.tech-card:hover {
  transform: translateY(-8px);

  border-color: var(--primary);
}

.tech-card i {
  font-size: 2.2rem;

  color: var(--primary);

  margin-bottom: 20px;
}

.tech-card span {
  display: block;

  font-weight: 600;

  letter-spacing: 0.02em;
}

/* ================== DIFERENCIAIS ================== */

.solutions-differentials {
  text-align: center;
}

.differentials-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  margin-top: 70px;
}

.differential-card {
  flex: 1 1 260px;
  max-width: 340px;

  padding: 40px 28px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--card);
  transition:
    transform 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.differential-card:hover {
  transform: translateY(-10px);
  border-color: var(--primary);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.18);
}

.differential-icon {
  width: 68px;
  height: 68px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 18px;
  background: var(--hero-bg-grad);
  border: 1px solid var(--border);
}

.differential-icon i {
  font-size: 1.5rem;
  color: var(--primary);
}

.differential-card h3 {
  margin-bottom: 14px;
}

.differential-card p {
  color: var(--muted);
  line-height: 1.8;
}

/* ================== MICROINTERAÇÕES ================== */

.solution-card,
.tech-card,
.workflow-item,
.step,
.differential-card {
  will-change: transform;
}

.solution-card:hover .service-icon,
.workflow-item:hover .workflow-icon,
.differential-card:hover .differential-icon,
.tech-card:hover i {
  transform: scale(1.08);
}

.service-icon,
.workflow-icon,
.differential-icon,
.tech-card i {
  transition: 0.35s;
}

/* ================== RESPONSIVO ================== */

@media (max-width: 1200px) {
  .hero-content p {
    margin-inline: auto;
  }

  .hero-buttons {
    justify-content: center;
  }
}

@media (max-width: 992px) {
  .process-grid {
    flex-wrap: wrap;
  }

  .step {
    flex: 1 1 calc(50% - 20px);
  }

  .step-arrow {
    display: none;
  }

  .workflow {
    gap: 24px;
  }

  .workflow-line {
    display: none;
  }

  .workflow-item {
    width: calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .solutions-hero {
    padding-top: 150px;
  }

  .hero-content h1 {
    font-size: 2.8rem;
  }

  .cta-box {
    padding: 60px 30px;
  }

  .projects-grid,
  .tech-grid,
  .differentials-grid {
    grid-template-columns: 1fr;
  }

  .workflow-item,
  .step {
    width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 576px) {
  .hero-content h1 {
    font-size: 2.2rem;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-outline,
  .cta-buttons .btn,
  .cta-buttons .btn-outline {
    width: 100%;
  }

  .project-content {
    padding: 22px;
  }

  .cta-box {
    padding: 45px 24px;
  }
}

@media (max-width: 768px) {
  .solutions-hero {
    padding: 140px 0 80px;
  }

  .hero-content {
    padding: 0 10px;
  }

  .hero-content p {
    font-size: 0.98rem;
  }

  .hero-buttons {
    flex-direction: column;
    width: 100%;
  }

  .hero-buttons .btn,
  .hero-buttons .btn-outline {
    width: 100%;
  }
}

@media (max-width: 992px) {
  .step-arrow {
    display: none;
  }

  .step {
    flex: 1 1 calc(50% - 20px);
  }
}

@media (max-width: 768px) {
  .step {
    flex: 1 1 100%;
  }
}
