.home-products {
  padding-block: clamp(4.5rem, 8vw, 7rem);
}

.home-products-heading {
  display: grid;
  max-width: 46rem;
  gap: var(--space-3);
  margin-bottom: clamp(2rem, 5vw, 3.5rem);
}

.home-products-heading > p {
  color: var(--accent);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.035em;
}

.home-products-heading h2 {
  font-size: clamp(2.5rem, 5vw, 4.25rem);
  letter-spacing: -0.045em;
}

.home-products-heading > span {
  color: var(--ink-secondary);
  font-size: clamp(1rem, 1.7vw, 1.2rem);
  line-height: 1.55;
}

.home-product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.home-product-card {
  position: relative;
  display: flex;
  min-height: 24rem;
  flex-direction: column;
  padding: clamp(2rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 111, 228, 0.07), transparent 15rem),
    var(--surface);
  transition:
    background var(--duration-base) ease,
    transform var(--duration-base) var(--ease-out);
}

.home-product-card:hover {
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 111, 228, 0.12), transparent 17rem),
    var(--surface);
}

.home-product-card:nth-child(even) {
  border-left: 1px solid var(--line);
}

.home-product-card:nth-child(n + 3) {
  border-top: 1px solid var(--line);
}

.home-product-card > div {
  display: grid;
  gap: var(--space-4);
}

.home-product-type {
  display: inline-flex;
  width: fit-content;
  min-height: 2.125rem;
  align-items: center;
  padding-inline: 0.8rem;
  border: 1px solid color-mix(in srgb, var(--accent) 18%, transparent);
  border-radius: var(--radius-pill);
  background: var(--accent-softer);
  color: var(--accent);
  font-size: var(--text-small);
  font-weight: 700;
  letter-spacing: 0.025em;
}

.home-product-card h3 {
  max-width: 15ch;
  font-size: clamp(1.65rem, 2.5vw, 2.25rem);
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.home-product-card > div > h3 + p {
  max-width: 34rem;
  color: var(--ink-secondary);
  font-size: 1.02rem;
  line-height: 1.7;
}

.home-product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 0.25rem 0 0;
  padding: 0;
  list-style: none;
}

.home-product-features li {
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius-pill);
  background: var(--canvas-raised);
  color: var(--ink-secondary);
  font-size: var(--text-small);
  font-weight: 620;
  line-height: 1;
}

.home-product-card > .text-link {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: auto;
  padding-top: var(--space-6);
  border-top: 1px solid var(--line);
  font-size: 1rem;
  text-decoration: none;
}

.home-product-card > .text-link span {
  font-size: 1.5rem;
  font-weight: 500;
  line-height: 1;
}

.home-product-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

@media (max-width: 52rem) {
  .home-product-grid {
    grid-template-columns: 1fr;
  }

  .home-product-card {
    min-height: 0;
    padding: clamp(1.75rem, 7vw, 2.5rem);
  }

  .home-product-card + .home-product-card {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .home-product-card:nth-child(even) {
    border-left: 0;
  }
}

@media (max-width: 30rem) {
  .home-product-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .home-product-actions .button {
    width: 100%;
  }
}
