.products-section {
  --product-radius: 0.5rem;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100vh;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow: visible;
  background: transparent;
}

@keyframes products-badge-pop {
  from {
    opacity: 0;
    transform: scale(0.72);
  }

  65% {
    transform: scale(1.01);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes products-slide-up {
  from {
    opacity: 0;
    transform: translateY(1.25rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.products-header-icon,
.products-header h2,
.products-header p,
.products-grid .product-card,
.free-trial-card {
  opacity: 0;
  transform: translateY(1.25rem);
}

.products-header-icon {
  transform: scale(0.72);
}

.products-section.is-in-view .products-header-icon {
  animation: products-badge-pop 0.5s cubic-bezier(0.34, 1.45, 0.64, 1) 0s both;
}

.products-section.is-in-view .products-header h2 {
  animation: products-slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.28s both;
}

.products-section.is-in-view .products-header p {
  animation: products-slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.52s both;
}

.products-section.is-in-view .products-grid .product-card:nth-child(1) {
  animation: products-slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.78s both;
}

.products-section.is-in-view .products-grid .product-card:nth-child(2) {
  animation: products-slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.94s both;
}

.products-section.is-in-view .products-grid .product-card:nth-child(3) {
  animation: products-slide-up 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1.1s both;
}

.products-section.is-in-view .free-trial-card {
  animation: products-slide-up 0.55s cubic-bezier(0.22, 1, 0.36, 1) 1.32s both;
}

.products-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 72rem;
  margin: 0;
  padding: 0;
}

.products-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin: 0;
  padding: 0;
}

.products-header-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 4rem;
  height: 4rem;
  margin: 0 0 1.25rem;
  border: 1px solid rgba(6, 182, 212, 0.35);
  border-radius: 9999px;
  background: rgba(6, 182, 212, 0.15);
  color: #06b6d4;
}

.products-header-icon svg {
  width: 2rem;
  height: 2rem;
}

.products-header h2 {
  margin: 0 0 1.25rem;
  font-size: 3rem;
  font-weight: 700;
  color: #fff;
}

.products-header p {
  margin: 0 0 3rem;
  max-width: 36rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #9ca3af;
}

.products-grid {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 1.25rem;
  width: 100%;
  margin: 0;
  margin-bottom: 2.5rem;
}

.product-card {
  position: relative;
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 0;
  border-radius: var(--product-radius);
}

.product-card-featured {
  z-index: 10;
}

.product-card-glow {
  position: absolute;
  inset: -0.125rem;
  border-radius: var(--product-radius);
  background: linear-gradient(to right, rgba(29, 78, 216, 0.25), rgba(56, 189, 248, 0.15));
  transition: transform 0.3s ease;
  filter: blur(50px);
  opacity: 0.7;
  pointer-events: none;
}

.product-card-panel {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  width: 100%;
  height: 100%;
  min-height: 23.125rem;
  margin: 0;
  padding: 1.5rem 1.5rem 1.5rem;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--product-radius);
  background: transparent;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.35),
    0 8px 30px rgba(56, 189, 248, 0.12);
  transition:
    border-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.3s ease;
}

.product-card-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}

.product-card-panel > * {
  position: relative;
  z-index: 1;
}

.product-card-featured .product-card-panel {
  overflow: visible;
  border-radius: var(--product-radius);
  border-color: rgba(56, 189, 248, 0.4);
}

.product-card:hover .product-card-panel {
  border-color: rgba(56, 189, 248, 0.45);
  transform: translateY(-2px);
}

.product-card-featured:hover .product-card-glow {
  transform: translateY(-2px);
}

.product-badge {
  position: absolute;
  z-index: 20;
  padding: 0.375rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.25rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #06b6d4;
  box-shadow:
    0 0 0 1px rgba(56, 189, 248, 0.5),
    0 14px 50px rgba(56, 189, 248, 0.3);
}

.product-badge-popular {
  top: calc(-0.5rem - 3px);
  right: -0.5rem;
  transform: rotate(12deg);
}

.product-badge-trial {
  top: -0.5rem;
  left: -0.5rem;
  transform: rotate(-12deg);
}

.product-icon-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1.5rem 0 1.5rem;
}

.product-icon-wrap::before {
  content: "";
  position: absolute;
  width: 12rem;
  height: 12rem;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(56, 189, 248, 0.28) 0%,
    rgba(29, 78, 216, 0.12) 45%,
    transparent 72%
  );
  pointer-events: none;
}

.product-icon {
  position: relative;
  z-index: 1;
  width: 11.25rem;
  height: 11.25rem;
  object-fit: contain;
  filter: drop-shadow(0 0 32px rgba(56, 189, 248, 0.35)) drop-shadow(0 0 64px rgba(29, 78, 216, 0.2));
}

.product-title {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
  text-align: center;
  letter-spacing: -0.02em;
  color: #fff;
}

.product-description {
  min-height: 2.2rem;
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.6;
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
}

.product-separator {
  width: 100%;
  height: 0;
  margin: 1.5rem 0;
  padding: 0;
  border: none;
  border-top: 1px solid rgba(56, 189, 248, 0.28);
}

.product-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin: 0;
}

.product-price {
  font-size: 2.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
}

.product-pricing .product-price {
  margin: 0;
}

.product-pricing {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  text-align: right;
}

.product-price-original {
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1;
  color: rgba(255, 255, 255, 0.4);
  text-decoration: line-through;
  text-decoration-color: rgba(248, 113, 113, 0.85);
}

.product-features {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.product-features li {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.45);
}

.product-features svg {
  width: 0.875rem;
  height: 0.875rem;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.25);
}

.product-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  margin: 0;
  min-height: 3.25rem;
  padding: 0.875rem 1rem;
  border: none;
  border-radius: 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}

.product-button-aviator {
  background: linear-gradient(to right, #1d4ed8, #38bdf8);
  box-shadow: 0 18px 60px rgba(56, 189, 248, 0.2);
}

.product-button-mines {
  background: #38bdf8;
  box-shadow: 0 24px 100px rgba(56, 189, 248, 0.32);
}

.product-button-dice {
  background: linear-gradient(to right, #38bdf8, #1d4ed8);
  box-shadow: 0 18px 60px rgba(56, 189, 248, 0.2);
}

.product-button svg {
  width: 1rem;
  height: 1rem;
}

.product-button:hover {
  filter: brightness(1.08);
}

.free-trial-card {
  width: 100%;
  margin: 0;
  padding: 0;
}

.free-trial-panel {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 1.5rem 2rem;
  overflow: visible;
  isolation: isolate;
  border: 1px solid rgba(56, 189, 248, 0.28);
  border-radius: var(--product-radius);
  background: transparent;
  box-shadow:
    0 40px 120px rgba(0, 0, 0, 0.35),
    0 8px 30px rgba(56, 189, 248, 0.12);
}

.free-trial-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: inherit;
  background: rgba(255, 255, 255, 0.06);
  pointer-events: none;
}

.free-trial-panel > * {
  z-index: 1;
}

.free-trial-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  margin: 0;
  padding: 0;
}

.free-trial-body h3 {
  margin: 0 0 0.5rem;
  font-size: 1.875rem;
  font-weight: 700;
  color: #fff;
}

.free-trial-body p {
  margin: 0;
  max-width: 42rem;
  font-size: 1.125rem;
  line-height: 1.5;
  color: #9ca3af;
}

.free-trial-action {
  display: flex;
  flex-shrink: 0;
  align-self: stretch;
  margin: 0 0 0 1.5rem;
  padding: 0;
}

.free-trial-button {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0 2.5rem;
  border: 2px solid #06b6d4;
  border-radius: 0.75rem;
  font-size: 1.125rem;
  font-weight: 700;
  color: #22d3ee;
  text-decoration: none;
  background: transparent;
  white-space: nowrap;
  transition:
    background 0.3s ease,
    border-color 0.3s ease;
}

.free-trial-button:hover {
  border-color: #22d3ee;
  background: rgba(6, 182, 212, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .products-header-icon,
  .products-header h2,
  .products-header p,
  .products-grid .product-card,
  .free-trial-card {
    opacity: 1;
    transform: none;
  }

  .products-section.is-in-view .products-header-icon,
  .products-section.is-in-view .products-header h2,
  .products-section.is-in-view .products-header p,
  .products-section.is-in-view .products-grid .product-card,
  .products-section.is-in-view .free-trial-card {
    animation: none;
  }
}

