@import url('https://fonts.googleapis.com/css?family=Inter:400,500,600,700,800&display=swap');

body.digital-products-body {
  max-width: 1160px;
}

.digital-products-page {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.digital-products-hero {
  position: relative;
  overflow: hidden;
  padding: 2.75rem;
  border-radius: 28px;
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(145deg, #111827 0%, #1f2937 48%, #4b5563 100%);
  color: #f8fafc;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.24);
}

.digital-products-hero::after {
  content: '';
  position: absolute;
  inset: auto -10% -35% auto;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 208, 170, 0.42), rgba(244, 208, 170, 0));
  filter: blur(8px);
}

.digital-products-hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #f7d4ab;
}

.digital-products-hero__title {
  margin: 0;
  font-family: 'Inter', 'helvetica', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.8rem);
  line-height: 1.05;
}

.digital-products-hero__description {
  max-width: 620px;
  margin: 1rem 0 0;
  color: rgba(248, 250, 252, 0.82);
  font-size: 1.02rem;
  line-height: 1.8;
}

.digital-products-section-heading {
  margin-bottom: 1.25rem;
}

.digital-products-section-heading h2 {
  margin: 0;
  font-family: 'Inter', 'helvetica', sans-serif;
  font-size: 1.7rem;
  color: #172033;
}

.digital-products-section-heading p {
  margin: 0.5rem 0 0;
  color: #5b6475;
  line-height: 1.7;
}

.digital-products-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: minmax(320px, auto);
  gap: 1.4rem;
  align-items: stretch;
}

.digital-products-state {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: #475569;
}

.digital-product-card {
  --theme-1: #1f2937;
  --theme-2: #374151;
  --theme-3: #4b5563;
  --theme-4: #9ca3af;
  --card-image: none;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(145deg, rgba(10, 14, 23, 0.68), rgba(18, 24, 38, 0.3)),
    var(--card-image),
    linear-gradient(135deg, var(--theme-1) 0%, var(--theme-2) 36%, var(--theme-3) 72%, var(--theme-4) 100%);
  background-size: auto, auto, cover, cover;
  background-position: top left, center, center, center;
  background-repeat: no-repeat;
  background-blend-mode: screen, normal, soft-light, normal;
  box-shadow: 0 22px 48px rgba(15, 23, 42, 0.18);
  opacity: 0;
  transform: translateY(28px) scale(0.98);
  transition: transform 0.7s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.7s ease, box-shadow 0.35s ease;
}

.digital-product-card::before {
  content: '';
  position: absolute;
  inset: -10% auto auto -10%;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.24), rgba(255, 255, 255, 0));
  filter: blur(8px);
  opacity: 0.8;
}

.digital-product-card::after {
  content: '';
  position: absolute;
  inset: -45%;
  background: linear-gradient(115deg, transparent 42%, rgba(255, 255, 255, 0.26) 50%, transparent 58%);
  transform: translateX(-120%) rotate(14deg);
  animation: digitalCardShine 5.4s ease-in-out infinite;
  pointer-events: none;
}

.digital-product-card:hover,
.digital-product-card:focus-within {
  transform: translateY(-6px) scale(1.005);
  box-shadow: 0 30px 64px rgba(15, 23, 42, 0.26);
}

.digital-product-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.digital-product-card__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 1.6rem;
  padding: 1.85rem;
}

.digital-product-card__meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.digital-product-card__title {
  margin: 0;
  font-family: 'Inter', 'helvetica', sans-serif;
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  line-height: 1.08;
  color: #fffaf5;
}

.digital-product-card__description {
  margin: 0.95rem 0 0;
  max-width: 32rem;
  color: rgba(255, 248, 240, 0.84);
  line-height: 1.8;
}

.digital-product-card__footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 0;
}

.digital-product-card__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.2);
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.digital-product-card__cta:hover,
.digital-product-card__cta:focus-visible {
  background: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.26);
}

@keyframes digitalCardShine {
  0% {
    transform: translateX(-135%) rotate(14deg);
    opacity: 0;
  }

  12% {
    opacity: 1;
  }

  35% {
    transform: translateX(115%) rotate(14deg);
    opacity: 0.9;
  }

  100% {
    transform: translateX(115%) rotate(14deg);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  body.digital-products-body {
    max-width: 800px;
  }

  .digital-products-hero {
    padding: 2rem 1.35rem;
  }

  .digital-products-list {
    grid-template-columns: 1fr;
    grid-template-rows: none;
  }

  .digital-product-card {
    min-height: 360px;
    aspect-ratio: auto;
  }

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