/* ============================================================
   Products — dark theme
   Bento-style asymmetric grid: 1 wide feature card + 7
   standard cards. Avoids the "4 equal cards" generic pattern.
   ============================================================ */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: 28px 22px;
  text-align: left;
  transition:
    transform 260ms ease,
    border-color 260ms ease,
    box-shadow 260ms ease,
    background 260ms ease;
  cursor: pointer;
  overflow: hidden;
}
.product-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff8b4a);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 280ms ease;
}
.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--color-border);
  background: var(--color-surface-2);
  box-shadow: var(--shadow-md);
}
.product-card:hover::before {
  transform: scaleX(1);
}
.product-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--color-accent-soft);
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid var(--color-border-light);
  transition:
    background 280ms ease,
    color 280ms ease,
    border-color 280ms ease,
    transform 280ms ease;
}
.product-card-icon svg {
  width: 24px;
  height: 24px;
  transition: transform 280ms ease;
}
.product-card:hover .product-card-icon {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
  transform: rotate(-6deg) scale(1.05);
}
.product-card h4 {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.product-card p {
  font-size: 13px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.product-card-more {
  display: inline-block;
  margin-top: 14px;
  font: 600 12px/1 var(--font-mono);
  letter-spacing: 0.04em;
  color: var(--color-accent);
  opacity: 0;
  transform: translateY(4px);
  transition: all 240ms ease;
}
.product-card:hover .product-card-more {
  opacity: 1;
  transform: translateY(0);
}

/* Wide feature card — spans 2 columns, deeper surface */
.product-card.is-wide {
  grid-column: span 2;
  padding: 36px 32px;
  background: linear-gradient(
    135deg,
    var(--color-surface-2) 0%,
    var(--color-surface) 100%
  );
  border-color: var(--color-border);
}
.product-card.is-wide .product-card-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
}
.product-card.is-wide .product-card-icon svg {
  width: 30px;
  height: 30px;
}
.product-card.is-wide h4 {
  font-size: 26px;
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.product-card.is-wide p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 56ch;
  color: var(--color-text-secondary);
}
.product-card.is-wide::before {
  height: 3px;
  background: linear-gradient(90deg, var(--color-accent), #ff8b4a, transparent);
}

@media (max-width: 1024px) {
  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .product-card.is-wide {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .product-card.is-wide {
    grid-column: span 1;
    padding: 28px 22px;
  }
  .product-card.is-wide h4 {
    font-size: 20px;
  }
}
