@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");

.products {
  padding: 120px 0 100px;
  background-color: var(--clr-900);
}

.products .heading-title {
  color: rgba(255, 255, 255, 0.35);
}

.products .section-heading {
  color: var(--clr-white);
  letter-spacing: -0.025em;
}

/* ---------------------------------------- Product List ---------------------------------------- */

.products-list {
  margin-top: 60px;
}

.product-item {
  display: block;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  text-decoration: none;
  transition: padding-left 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.product-item:last-child {
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}

.product-item:hover {
  padding-left: 20px;
}

.product-item__header {
  display: flex;
  align-items: baseline;
  gap: 20px;
  margin-bottom: 14px;
}

.product-item__num {
  font-size: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.2);
  letter-spacing: 0.08em;
  flex-shrink: 0;
}

.product-item__name {
  font-family: "Space Grotesk", "Inter", system-ui, sans-serif;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  color: var(--clr-white);
  letter-spacing: -0.025em;
  flex: 1;
  line-height: 1;
  transition: color 0.2s ease;
}

.product-item__arrow {
  font-size: 2.4rem;
  color: rgba(255, 255, 255, 0.2);
  transition: color 0.25s ease, transform 0.25s ease;
  display: inline-block;
  line-height: 1;
  flex-shrink: 0;
}

.product-item:hover .product-item__name {
  color: rgba(255, 255, 255, 0.85);
}

.product-item:hover .product-item__arrow {
  color: var(--clr-white);
  transform: translate(5px, -5px);
}

.product-item__desc {
  font-size: 1.6rem;
  color: rgba(255, 255, 255, 0.4);
  line-height: 1.6;
  margin-bottom: 10px;
  max-width: 600px;
}

.product-item__tech {
  font-size: 1.2rem;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.18);
  letter-spacing: 0.06em;
}

/* -========================================== MEDIA QUERY ======================================== */

@media only screen and (max-width: 720px) {
  .products {
    padding: 80px 0 72px;
  }

  .product-item {
    padding: 28px 0;
  }

  .product-item:hover {
    padding-left: 12px;
  }
}
