/* Glassy Pricing — vanilla port of animated-glassy-pricing */

.pricing-section {
  padding: 100px 0;
  text-align: center;
}

.pricing-section h2 {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 12px;
}

.pricing-section .pricing-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 520px;
  margin: 0 auto 56px;
  line-height: 1.6;
}

/* Cards grid */
.pricing-cards {
  display: flex;
  gap: 24px;
  justify-content: center;
  align-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Single card */
.pricing-card {
  flex: 1;
  max-width: 300px;
  padding: 32px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  position: relative;
}

.pricing-card:hover {
  transform: translateY(-4px);
}

/* Popular card */
.pricing-card.popular {
  transform: scale(1.05);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-color: rgba(90, 140, 239, 0.25);
  box-shadow: 0 0 80px -20px rgba(90, 140, 239, 0.3);
}

.pricing-card.popular:hover {
  transform: scale(1.05) translateY(-4px);
}

/* Popular badge */
.popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 16px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 9999px;
  background: #5A8CEF;
  color: #ffffff;
  white-space: nowrap;
}

/* Plan name */
.pricing-card .plan-name {
  font-size: 28px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
  text-align: left;
}

/* Description */
.pricing-card .plan-desc {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.5);
  text-align: left;
  line-height: 1.5;
  margin-bottom: 24px;
}

/* Price */
.pricing-card .plan-price {
  text-align: left;
  margin-bottom: 24px;
}

.pricing-card .plan-price .amount {
  font-size: 44px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.04em;
  font-family: 'JetBrains Mono', monospace;
}

.pricing-card .plan-price .period {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.5);
  margin-left: 4px;
}

/* Divider */
.pricing-card .divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12) 50%, transparent);
  margin-bottom: 24px;
}

/* Features */
.pricing-card .features {
  list-style: none;
  padding: 0;
  margin: 0 0 28px;
  text-align: left;
}

.pricing-card .features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 0;
  border-bottom: none;
}

.pricing-card .features li::before {
  content: none;
}

/* Check icon — green on regular cards, blue on popular */
.pricing-card .features li svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  color: #4B7A63;
}
.pricing-card.popular .features li svg {
  color: #5A8CEF;
}

/* Button */
.pricing-card .pricing-btn {
  margin-top: auto;
  width: 100%;
  padding: 12px 0;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  text-decoration: none;
  display: block;
  border: none;
}

.pricing-btn.btn-white {
  background: #ffffff;
  color: #0c0c0e;
}

.pricing-btn.btn-white:hover {
  background: rgba(255, 255, 255, 0.9);
}

.pricing-btn.btn-outline {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.pricing-btn.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
}

/* Scroll-triggered animation */
.pricing-section .pricing-card {
  opacity: 0;
  transform: translateY(30px);
}

.pricing-section.visible .pricing-card {
  animation: pricing-card-in 0.5s ease forwards;
}

.pricing-section.visible .pricing-card:nth-child(1) { animation-delay: 0s; }
.pricing-section.visible .pricing-card:nth-child(2) { animation-delay: 0.15s; }
.pricing-section.visible .pricing-card:nth-child(3) { animation-delay: 0.3s; }

.pricing-section.visible .pricing-card.popular {
  animation: pricing-card-in-popular 0.5s ease forwards;
}

@keyframes pricing-card-in {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pricing-card-in-popular {
  from { opacity: 0; transform: scale(1.05) translateY(30px); }
  to { opacity: 1; transform: scale(1.05) translateY(0); }
}

/* Mobile */
@media (max-width: 768px) {
  .pricing-cards {
    flex-direction: column;
    align-items: center;
  }
  .pricing-card {
    max-width: 340px;
    width: 100%;
  }
  .pricing-card.popular {
    transform: none;
  }
  .pricing-card.popular:hover {
    transform: translateY(-4px);
  }
  .pricing-section.visible .pricing-card.popular {
    animation-name: pricing-card-in;
  }
  .pricing-section h2 {
    font-size: 28px;
  }
  .pricing-section .pricing-subtitle {
    font-size: 15px;
    padding: 0 8px;
  }
}
