/* ==========================================================================
   Products section — landing, Lourdin RPG, and SBAssistant pages.
   Reuses the shared design system (.container, .section, .section-header,
   .btn, .bg-gray-50) and adds product-specific components.
   ========================================================================== */

/* ----- Shared section heroes ----- */
.products-hero,
.lourdin-hero,
.sb-hero {
  color: #ffffff;
  padding: 120px 0 80px;
  position: relative;
  overflow: hidden;
}

.products-hero {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

/* Lourdin gets a fantasy-leaning indigo/violet palette while staying on-brand */
.lourdin-hero {
  background: linear-gradient(135deg, #1e1b4b 0%, #4338ca 55%, #6d28d9 100%);
}

.sb-hero {
  background: linear-gradient(135deg, #0e7490 0%, #2563eb 100%);
}

.products-hero .hero-content,
.lourdin-hero .hero-content,
.sb-hero .hero-content {
  position: relative;
  z-index: 1;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.products-hero .hero-title,
.lourdin-hero .hero-title,
.sb-hero .hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin: 16px 0 12px;
  color: #ffffff;
}

.lourdin-hero .hero-tagline,
.sb-hero .hero-tagline {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.92);
}

.products-hero .hero-subtitle p,
.lourdin-hero .hero-subtitle p,
.sb-hero .hero-subtitle p {
  font-size: 1.25rem;
  line-height: 1.7;
  margin: 0 auto;
  max-width: 720px;
  color: #ffffff;
  opacity: 0.95;
}

.lourdin-hero .hero-actions,
.sb-hero .hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  margin-top: 32px;
}

/* Hero breadcrumb */
.products-hero .breadcrumb,
.lourdin-hero .breadcrumb,
.sb-hero .breadcrumb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.85);
}

.lourdin-hero .breadcrumb a,
.sb-hero .breadcrumb a,
.products-hero .breadcrumb a {
  color: inherit;
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s ease;
}

.lourdin-hero .breadcrumb a:hover,
.sb-hero .breadcrumb a:hover {
  opacity: 1;
}

.lourdin-hero .breadcrumb-separator,
.sb-hero .breadcrumb-separator {
  opacity: 0.5;
}

/* ----- Status badges ----- */
.product-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.product-status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.product-status--live {
  background: rgba(16, 185, 129, 0.15);
  color: #059669;
}

/* On dark heroes, lift the live badge for contrast */
.lourdin-hero .product-status--live {
  background: rgba(52, 211, 153, 0.18);
  color: #6ee7b7;
}

.product-status--soon {
  background: rgba(245, 158, 11, 0.15);
  color: #b45309;
}

.sb-hero .product-status--soon {
  background: rgba(251, 191, 36, 0.2);
  color: #fde68a;
}

/* ----- Products landing: product grid ----- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 32px;
  margin-top: 48px;
}

.product-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -4px rgb(0 0 0 / 0.08);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.12), 0 8px 10px -6px rgb(0 0 0 / 0.1);
  border-color: #c7d2fe;
}

.product-card-header {
  padding: 32px 32px 20px;
  border-bottom: 1px solid #f1f5f9;
}

.product-card--released .product-card-header {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
}

.product-card--soon .product-card-header {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.product-name {
  font-size: 1.75rem;
  font-weight: 800;
  color: #0f172a;
  margin: 14px 0 4px;
}

.product-tagline {
  font-size: 1rem;
  color: #475569;
  margin: 0;
  font-weight: 500;
}

.product-card-body {
  padding: 24px 32px;
  flex: 1;
}

.product-description {
  color: #475569;
  line-height: 1.7;
  margin: 0 0 20px;
}

.product-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.product-meta li {
  padding: 5px 12px;
  background: #f1f5f9;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin: 0;
}

.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: 0 32px 32px;
}

/* ----- Button variants used in this section ----- */
.btn-ghost {
  background: transparent;
  color: var(--color-primary);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--color-primary-dark);
}

.btn-light {
  background: #ffffff;
  color: #1e293b;
  border-color: #ffffff;
}

.btn-light:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: #f1f5f9;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
}

.btn-outline-light {
  background: transparent;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.55);
}

.btn-outline-light:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: #ffffff;
}

/* ----- Lourdin: overview + story ----- */
.lourdin-story {
  max-width: 760px;
  margin: 8px auto 0;
  text-align: center;
}

.lourdin-story p {
  font-size: 1.125rem;
  line-height: 1.8;
  color: #475569;
  margin: 0;
}

/* ----- Feature grid (Lourdin) ----- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.feature-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 28px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 20px -8px rgba(79, 70, 229, 0.25);
  border-color: #c7d2fe;
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  color: #ffffff;
  margin-bottom: 18px;
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 8px;
}

.feature-text {
  color: #475569;
  line-height: 1.65;
  margin: 0;
  font-size: 0.975rem;
}

/* ----- "Play anywhere" strip ----- */
.lourdin-anywhere {
  background: #ffffff;
}

.anywhere-inner {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  padding: 36px 32px;
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  border: 1px solid #e0e7ff;
  border-radius: 16px;
}

.anywhere-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #312e81;
  margin: 0 0 8px;
}

.anywhere-text {
  color: #4338ca;
  line-height: 1.7;
  margin: 0;
}

/* ----- SBAssistant lineup ----- */
.sb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
  margin-top: 48px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.sb-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.06);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.sb-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 24px -8px rgba(14, 116, 144, 0.22);
  border-color: #a5f3fc;
}

.sb-card-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: #0f172a;
  margin: 14px 0 10px;
}

.sb-card-text {
  color: #475569;
  line-height: 1.7;
  margin: 0;
}

/* ----- CTA sections (scoped to avoid global collisions) ----- */
.products-cta-section,
.lourdin-cta-section,
.sb-cta-section {
  background: #f8fafc;
}

.products-cta-section .cta-content,
.lourdin-cta-section .cta-content,
.sb-cta-section .cta-content {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
}

.products-cta-section .cta-title,
.lourdin-cta-section .cta-title,
.sb-cta-section .cta-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 14px;
}

.products-cta-section .cta-subtitle,
.lourdin-cta-section .cta-subtitle,
.sb-cta-section .cta-subtitle {
  font-size: 1.125rem;
  color: #64748b;
  line-height: 1.7;
  margin: 0 0 28px;
}

.products-cta-section .cta-actions,
.lourdin-cta-section .cta-actions,
.sb-cta-section .cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

/* ----- Responsive ----- */
@media (max-width: 768px) {
  .products-hero,
  .lourdin-hero,
  .sb-hero {
    padding: 96px 0 56px;
  }

  .products-hero .hero-title,
  .lourdin-hero .hero-title,
  .sb-hero .hero-title {
    font-size: 2.5rem;
  }

  .lourdin-hero .hero-tagline,
  .sb-hero .hero-tagline {
    font-size: 1.25rem;
  }

  .products-hero .hero-subtitle p,
  .lourdin-hero .hero-subtitle p,
  .sb-hero .hero-subtitle p {
    font-size: 1.075rem;
  }
}
