/* Why Xacto page-specific styles extracted from inline blocks. */

.xacto-why-main {
  padding: 110px 20px 70px;
  background:
    radial-gradient(circle at top, rgba(59, 130, 246, 0.12), transparent 55%),
    radial-gradient(circle at bottom, rgba(16, 185, 129, 0.12), transparent 60%);
  font-family: 'Poppins', sans-serif;
}

.why-header {
  max-width: 850px;
  margin: auto;
  text-align: center;
}

.why-sub {
  font-size: 12px;
  letter-spacing: 4px;
  font-weight: 700;
  text-transform: uppercase;
  color: #0284c7;
}

.why-title {
  margin-top: 10px;
  font-size: 42px;
  font-weight: 700;
  color: #0f172a;
}

.highlight {
  background: linear-gradient(90deg, #0ea5e9, #10b981, #6366f1);
  -webkit-background-clip: text;
  color: transparent;
  background-size: 200%;
  animation: gradientMove 6s linear infinite;
}

.why-desc {
  margin-top: 12px;
  font-size: 16px;
  color: #475569;
}

.why-grid {
  max-width: 1300px;
  margin: 60px auto 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.why-card {
  background: white;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
  text-align: center;
}

.why-card:hover {
  transform: translateY(-8px) scale(1.04);
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.15);
}

.why-card h3 {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  color: #0f172a;
}

.why-card p {
  margin-top: 6px;
  font-size: 13px;
  color: #475569;
  line-height: 1.4;
}

.why-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto;
  font-weight: 700;
  color: white;
  font-size: 18px;
  animation: floatIcon 3s ease-in-out infinite;
}

.blue {
  background: linear-gradient(45deg, #0ea5e9, #3b82f6);
}
.green {
  background: linear-gradient(45deg, #10b981, #34d399);
}
.purple {
  background: linear-gradient(45deg, #6366f1, #a855f7);
}
.orange {
  background: linear-gradient(45deg, #fb923c, #f97316);
}

@keyframes floatIcon {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes gradientMove {
  0% {
    background-position: 0%;
  }
  100% {
    background-position: 200%;
  }
}

@media (max-width: 1000px) {
  .why-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 600px) {
  .why-grid {
    grid-template-columns: 1fr;
  }

  .why-title {
    font-size: 30px;
  }
}

/* Floating bubbles */
.bubble {
  position: absolute;
  bottom: -100px;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: float 10s infinite;
}

.bubble:nth-child(2) {
  left: 20%;
  animation-duration: 8s;
}
.bubble:nth-child(3) {
  left: 40%;
  animation-duration: 12s;
}
.bubble:nth-child(4) {
  left: 60%;
  animation-duration: 7s;
}
.bubble:nth-child(5) {
  left: 80%;
  animation-duration: 11s;
}

@keyframes float {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-800px);
  }
}

/* Info cards */
.card {
  background: white;
  padding: 30px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  transition: 0.35s;
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.card h3 {
  font-weight: 600;
  margin-bottom: 8px;
}

/* Particles */
.particleContainer {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 12px;
  height: 12px;
  background: white;
  border-radius: 50%;
  opacity: 0.7;
  animation: particleMove linear infinite;
}

@keyframes particleMove {
  0% {
    transform: translateY(100vh) scale(0.5);
  }
  100% {
    transform: translateY(-20vh) scale(1.2);
  }
}

