/*
 * Products directory grid + product detail page (SpinTrack CRM and any
 * future products added to config/products.php).
 */

/* ---------- Shared heading treatment ---------- */

/* Same gradient-text + soft glow device used site-wide for a hero's key
   phrase (see services.blade.php's "Technology", welcome's "Accelerate") —
   using the site's canonical teal/cyan brand gradient, matching every
   other section rather than a page-specific accent. */
.text-gradient-brand {
  background: linear-gradient(135deg, #2563eb, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  text-shadow: 0 2px 10px rgba(2, 132, 199, 0.3);
}

/* ---------- Product card (grid + reused wherever) ---------- */

.product-card {
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(15, 23, 42, 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px rgba(37, 99, 235, 0.15);
}

/* ---------- Product detail hero ---------- */

.product-hero {
  background: #ffffff;
}

.product-hero-pretitle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.03em;
  color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  padding: 0.5rem 1rem;
}

.product-hero-metric {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.product-hero-metric .metric-icon {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
}

/* ---------- Challenge / solution rows ---------- */

.challenge-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1.5rem;
  align-items: center;
}

.challenge-col,
.solution-col {
  border-radius: 16px;
  padding: 1.5rem;
  height: 100%;
}

.challenge-col {
  background: rgba(239, 68, 68, 0.05);
  border: 1px solid rgba(239, 68, 68, 0.12);
}

.solution-col {
  background: rgba(37, 99, 235, 0.06);
  border: 1px solid rgba(37, 99, 235, 0.15);
}

.challenge-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  flex-shrink: 0;
}

@media (max-width: 767.98px) {
  .challenge-row {
    grid-template-columns: 1fr;
  }

  .challenge-arrow {
    transform: rotate(90deg);
    margin: 0 auto;
  }
}

/* ---------- Feature modules ---------- */

.feature-module-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 16px;
  padding: 2rem;
  height: 100%;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-module-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.12);
}

.feature-module-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #0284c7);
  color: #fff;
  font-size: 22px;
  margin-bottom: 1.25rem;
}

/* ---------- Technical architecture ---------- */

.architecture-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.architecture-item:last-child {
  border-bottom: none;
}

.architecture-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(37, 99, 235, 0.1);
  color: #2563eb;
  font-size: 18px;
}
