.section {
  padding: 6rem 0;
  background: linear-gradient(135deg, var(--rds-bg-alt) 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

.section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.section::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -15%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(34, 168, 75, 0.06) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.header {
  text-align: center;
  margin-bottom: 3.5rem;
  position: relative;
  z-index: 2;
}

.badge {
  display: inline-block;
  color: var(--rds-green);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  background: linear-gradient(90deg, rgba(34, 168, 75, 0.12), rgba(21, 101, 192, 0.12));
  padding: 0.4rem 1rem;
  border-radius: 999px;
  border: 1.5px solid var(--rds-green);
}

.title {
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  margin-bottom: 1rem;
  color: var(--rds-text);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.title span {
  background: linear-gradient(90deg, var(--rds-green), var(--rds-blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  color: var(--rds-muted);
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.7;
  font-size: 1.05rem;
}

.pricing-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.card {
  background: #ffffff;
  border-radius: 22px;
  padding: 28px;
  border: 1.5px solid rgba(19, 42, 24, 0.07);
  position: relative;
  min-height: 400px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #1D4E9E 0%, #9837d4 100%);
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-10px);
  border-color: transparent;
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.1);
}

.card:hover::before {
  opacity: 0;
}

.highlight {
  border-color: var(--rds-green);
  background: linear-gradient(135deg, var(--rds-card-bg) 0%, rgba(34, 168, 75, 0.04) 50%, rgba(21, 101, 192, 0.02) 100%);
  box-shadow: 0 16px 40px rgba(34, 168, 75, 0.2), 0 0px 20px rgba(21, 101, 192, 0.08);
  transform: scale(1.02);
}

.highlight:hover {
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 24px 56px rgba(34, 168, 75, 0.32), 0 0px 30px rgba(21, 101, 192, 0.15);
}

.pill {
  position: absolute;
  top: -12px;
  right: 1.2rem;
  font-size: 0.65rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--rds-green), var(--rds-blue));
  color: #fff;
  border-radius: 100px;
  padding: 5px 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(21, 101, 192, 0.32);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(34, 168, 75, 0.32);
  }
  50% {
    box-shadow: 0 4px 24px rgba(34, 168, 75, 0.48);
  }
}

.planTitle {
  font-size: 1.25rem;
  margin: 1rem 0 6px;
  color: var(--rds-text);
  font-weight: 800;
}

.planPrice {
  font-size: 2rem;
  font-weight: 900;
  background: linear-gradient(90deg, var(--rds-green-dark), var(--rds-blue-dark));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}

.planPrice span {
  font-size: 0.85rem;
  font-weight: 600;
  margin-left: 0.2rem;
}

.gst {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--rds-muted);
  margin-top: 2px;
  margin-bottom: 12px;
}

.planDescription {
  color: var(--rds-muted);
  margin-bottom: 16px;
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
}

.features {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
  flex: 1;
}

.featureItem {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  color: var(--rds-text);
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
  font-weight: 500;
  transition: all 0.2s ease;
  padding: 0.4rem 0;
}

.featureItem:hover {
  transform: translateX(4px);
  color: var(--rds-green-dark);
}

.icon {
  color: var(--rds-green);
  margin-top: 0.25rem;
  width: 12px;
  height: 12px;
  flex-shrink: 0;
  animation: fadeInScale 0.5s ease both;
}

.featureItem:nth-child(1) .icon { animation-delay: 0.1s; }
.featureItem:nth-child(2) .icon { animation-delay: 0.2s; }
.featureItem:nth-child(3) .icon { animation-delay: 0.3s; }
.featureItem:nth-child(4) .icon { animation-delay: 0.4s; }

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.cta {
  align-self: center;
  background: linear-gradient(135deg, var(--rds-green), var(--rds-blue));
  border: none;
  border-radius: 100px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 0.9rem;
  padding: 10px 20px;
  margin-top: 16px;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  box-shadow: 0 6px 20px rgba(34, 168, 75, 0.3), 0 0px 15px rgba(21, 101, 192, 0.2);
  position: relative;
  overflow: hidden;
}

.cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  transition: left 0.4s ease;
}

.cta:hover::before {
  left: 100%;
}

.cta:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(34, 168, 75, 0.45), 0 0px 25px rgba(21, 101, 192, 0.35);
  background: linear-gradient(135deg, var(--rds-green-dark), var(--rds-blue-dark));
}

.cta:active {
  transform: translateY(-1px);
}

/* Scroll Reveal Animations */
.pricing-reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1), transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.pricing-reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive Grid --- */
@media (max-width: 1024px) {
  .pricing-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .pricing-cards-grid {
    grid-template-columns: 1fr;
  }
}