/* =============================================================
   PRODUCTS.CSS — "Products" page
   All rules are scoped under the .features-page parent class so
   this file can never leak into / collide with other pages.
   Sub-elements are prefixed products-page__ (BEM-style).
   ============================================================= */

.features-page__section {
  background: var(--color-bg);
  padding: var(--space-2xl) 0;
}

.features-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* ── Card ────────────────────────────────────────────────── */
.features-page__card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px 26px 26px;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              box-shadow 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              border-color 0.35s ease;
}

/* top accent bar that slides in on hover */
.features-page__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--color-primary), var(--color-cta));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.features-page__card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.features-page__card:hover::before {
  transform: scaleX(1);
}

.features-page__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.features-page__card-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1),
              background 0.35s ease;
}

.features-page__card:hover .features-page__card-icon {
  transform: scale(1.12) rotate(-6deg);
  background: var(--color-primary);
}

/* flip icon to look bright on the darker hover background — emoji glyphs
   don't recolor, so we lean on the icon box's background shift instead */

.features-page__card-tag {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--color-primary);
  background: #e2f3ff;
  padding: 5px 12px;
  border-radius: var(--radius-pill);
}
  

.features-page__card-name {
  font-size: 1.2rem;
  margin-bottom: 8px;
  color: var(--color-text);
  transition: color 0.3s ease;
}

.features-page__card:hover .features-page__card-name {
  color: var(--color-primary);
}

.features-page__card-desc {
  font-size: var(--text-sm);
  color: var(--color-text-light);
  margin-bottom: 18px;
  line-height: 1.6;
}

.features-page__card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 22px;
}

.features-page__chip {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--color-text-light);
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  padding: 5px 10px;
  border-radius: var(--radius-pill);
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.features-page__card:hover .features-page__chip {
  background: var(--color-primary-light);
  color: var(--color-primary);
  border-color: transparent;
}


/* ── Shared CTA row — identical treatment on both faces ─────── */
.features-page__card-btns {
  display: flex;
  gap: 10px;
  margin-top: auto;
  flex-wrap: wrap;
}

.features-page__btn-explore,
.features-page__btn-demo {
  flex: 1;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.features-page__btn-explore {
  color: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.features-page__btn-demo {
  color: var(--color-cta);
  border: 1px solid var(--color-cta);
}

.features-page__card:hover .features-page__btn-explore {
  color: #FFF;
  background: var(--color-primary);
  border: 1px solid var(--color-primary);
}

.features-page__card:hover .features-page__btn-demo {
  color: #FFF;
  background: var(--color-cta);
  border: 1px solid var(--color-cta);
}

.features-page__btn-explore:hover,
.features-page__btn-demo:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(var(--pc-accent-rgb), 0.25);
}


.features-page__card-cta {
  margin-top: auto;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-cta);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.features-page__card:hover .features-page__card-cta {
  opacity: 1;
  transform: translateX(0);
}


/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-page__grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .features-page__grid {
    grid-template-columns: 1fr;
  }
  .features-page__card:hover {
    transform: translateY(-4px);
  }
}
