/* ============================================
   Home  -  Our Products (reference-matched)
   ============================================ */

.products-section {
  --pg-navy: #0a1d37;
  --pg-blue: #1d4ed8;
  --pg-royal: #2563eb;
  --pg-cyan: #0ea5e9;
  --pg-muted: #5a6b7d;
  background:
    linear-gradient(180deg, #eef5fc 0%, #f5f9fd 48%, #eef4fb 100%);
  padding: clamp(64px, 7vw, 100px) 0;
}

.products-section__bg::after {
  display: none;
}

.products-section__head {
  margin-bottom: clamp(36px, 4.5vw, 48px);
}

.products-section__title {
  font-weight: 800;
}

.products-section .products-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 22px);
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 100%;
  padding: 26px 26px 22px;
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f3f8ff 100%);
  border: 1px solid rgba(125, 211, 252, 0.55);
  box-shadow:
    0 8px 20px rgba(15, 55, 120, 0.05),
    0 1px 4px rgba(15, 55, 120, 0.03);
  overflow: hidden;
  isolation: isolate;
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.product-card.is-visible {
  opacity: 1;
  transform: none;
}

.product-card:nth-child(1) { transition-delay: 0.04s; }
.product-card:nth-child(2) { transition-delay: 0.1s; }
.product-card:nth-child(3) { transition-delay: 0.16s; }
.product-card:nth-child(4) { transition-delay: 0.22s; }

/* Distinctive curved top-right corner accent */
.product-card__accent {
  position: absolute;
  top: 0;
  right: 0;
  width: min(42%, 168px);
  height: 112px;
  z-index: 0;
  pointer-events: none;
}

.product-card__accent svg {
  display: block;
  width: 100%;
  height: 100%;
}

.product-card:hover {
  border-color: rgba(56, 189, 248, 0.55);
  box-shadow:
    0 12px 26px rgba(15, 55, 120, 0.08),
    0 2px 6px rgba(15, 55, 120, 0.04);
}

.product-card.is-visible:hover {
  transform: translateY(-5px);
}

.product-card__body {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
  padding-right: clamp(48px, 12%, 96px);
}

.product-card__icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: linear-gradient(145deg, #38bdf8 0%, #0ea5e9 40%, #2563eb 100%);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    0 6px 14px rgba(29, 78, 216, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.product-card__icon svg {
  width: 34px;
  height: 34px;
  display: block;
  overflow: visible;
}

.product-card__copy {
  min-width: 0;
  flex: 1 1 auto;
}

.product-card__eyebrow {
  margin: 0 0 5px;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #2563eb;
}

.product-card__name {
  margin: 0 0 8px;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: clamp(1.28rem, 1.1rem + 0.55vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: var(--pg-navy);
}

.product-card__desc {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  font-weight: 500;
  color: var(--pg-muted);
}

.product-card__foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
}

.product-card__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
  min-width: 0;
}

.product-card__features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.84rem;
  font-weight: 600;
  line-height: 1.35;
  color: #1e293b;
}

.product-card__check {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  margin-top: 1px;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(145deg, #38bdf8 0%, #2563eb 100%);
  box-shadow: none;
}

.product-card__check svg {
  width: 9px;
  height: 9px;
  display: block;
}

.product-card__cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 10px;
  font-family: var(--font-display, "Poppins", sans-serif);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
  color: #fff;
  white-space: nowrap;
  background: linear-gradient(105deg, #38bdf8 0%, #0ea5e9 30%, #2563eb 75%, #1d4ed8 100%);
  box-shadow: 0 4px 12px rgba(29, 78, 216, 0.16);
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s ease;
}

.product-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(29, 78, 216, 0.2);
}

.product-card__cta span {
  transition: transform 0.3s ease;
}

.product-card__cta:hover span {
  transform: translateX(3px);
}

@media (max-width: 980px) {
  .product-card {
    padding: 22px 20px 18px;
  }

  .product-card__body {
    padding-right: 56px;
    gap: 14px;
  }

  .product-card__icon {
    width: 58px;
    height: 58px;
    border-radius: 15px;
  }

  .product-card__icon svg {
    width: 30px;
    height: 30px;
  }

  .product-card__foot {
    flex-direction: column;
    align-items: stretch;
  }

  .product-card__cta {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .products-section .products-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .product-card__accent {
    width: 132px;
    height: 88px;
  }

  .product-card__body {
    padding-right: 44px;
  }

  .product-card__icon {
    width: 56px;
    height: 56px;
  }

  .product-card__icon svg {
    width: 30px;
    height: 30px;
  }

  .product-card__features {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card {
    transition: none;
    opacity: 1;
    transform: none;
  }

  .product-card.is-visible:hover,
  .product-card__cta:hover {
    transform: none;
  }
}
