.plans-section {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  padding: 8rem 0 7rem;
  color: #fff;
  background:
    radial-gradient(circle at 50% 35%, rgba(0, 153, 255, 0.13), transparent 32rem),
    linear-gradient(160deg, #071522 0%, #020910 56%, #061a2b 100%);
}

.plans-section::before {
  z-index: 0;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  width: auto;
  height: auto;
  border: 0;
  background-image:
    linear-gradient(rgba(42, 174, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(42, 174, 255, 0.035) 1px, transparent 1px);
  background-size: 4rem 4rem;
  content: "";
  transform: none;
}

.plans-section::after {
  z-index: 0;
  right: -14rem;
  bottom: -16rem;
  width: 24rem;
  height: 24rem;
  border: 1px solid rgba(0, 157, 255, 0.16);
  content: "";
  pointer-events: none;
  transform: rotate(45deg);
}

.plans-heading,
.plans-grid,
.plans-footer {
  position: relative;
  z-index: 1;
}

.plans-eyebrow,
.plan-number {
  color: #2aaeff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.2rem;
  text-transform: uppercase;
}

.plans-eyebrow {
  margin-bottom: 0.75rem;
}

.plans-heading h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  text-transform: uppercase;
}

.plans-intro {
  max-width: 38rem;
  margin: 0 auto 3.5rem;
  color: rgba(255, 255, 255, 0.68);
}

.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem 1.5rem 1.5rem;
  border: 1px solid rgba(42, 174, 255, 0.42);
  border-radius: 0.85rem;
  background: rgba(2, 13, 24, 0.82);
  box-shadow: 0 1.25rem 3rem rgba(0, 0, 0, 0.2);
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.plan-card:hover {
  border-color: rgba(42, 174, 255, 0.9);
  box-shadow: 0 1.25rem 3rem rgba(0, 139, 255, 0.15);
  transform: translateY(-0.4rem);
}

.plan-card-featured {
  border-color: #159dff;
  box-shadow: 0 0 1.5rem rgba(0, 157, 255, 0.28);
}

.plan-badge {
  position: absolute;
  top: -0.75rem;
  left: 50%;
  padding: 0.35rem 1.2rem;
  border-radius: 2rem;
  color: #02101e;
  background: #20a9ff;
  box-shadow: 0 0 1rem rgba(32, 169, 255, 0.55);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.13rem;
  text-transform: uppercase;
  transform: translateX(-50%);
  white-space: nowrap;
}

.plan-card-header {
  text-align: center;
}

.plan-number {
  display: block;
  min-height: 2.2rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.6rem;
}

.plan-icon {
  display: block;
  margin: 1rem auto 0.7rem;
  color: #6dc9ff;
  font-size: 2rem;
}

.plan-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.45rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-card-header p {
  min-height: 1.6rem;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.7);
}

.plan-price {
  margin: 1rem 0 0.75rem;
  color: #fff;
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  line-height: 1;
  text-align: center;
}

.plan-price span {
  font-size: 1.35rem;
  vertical-align: 0.5em;
}

.plan-description {
  min-height: 4.5rem;
  margin-bottom: 1.2rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.88rem;
  line-height: 1.55;
  text-align: center;
}

.plan-features {
  flex: 1;
  margin: 0 0 1.5rem;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding: 0.3rem 0 0.3rem 1.45rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.79rem;
  line-height: 1.35;
}

.plan-features li::before {
  position: absolute;
  top: 0.42rem;
  left: 0;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: 50%;
  color: #02101e;
  background: #20a9ff;
  content: "✓";
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 0.85rem;
  text-align: center;
}

.plan-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  padding: 0.8rem 1rem;
  border: 1px solid #159dff;
  border-radius: 2rem;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.plan-button:hover,
.plan-card-featured .plan-button {
  color: #02101e;
  background: #159dff;
}

.plan-button span,
.plans-footer a span {
  font-size: 1.2rem;
  line-height: 0.8;
}

.plans-footer {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 48rem;
  margin: 4rem auto 0;
  padding-top: 2rem;
  border-top: 1px solid rgba(42, 174, 255, 0.35);
  text-align: left;
}

.plans-footer > i {
  display: grid;
  flex: 0 0 3.2rem;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border: 1px solid #159dff;
  border-radius: 50%;
  color: #159dff;
  font-size: 1.25rem;
}

.plans-footer strong,
.plans-footer span {
  display: block;
}

.plans-footer strong {
  font-size: 1.05rem;
}

.plans-footer div span {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.85rem;
}

.plans-footer a {
  margin-left: auto;
  color: #2aaeff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.plans-footer a:hover {
  color: #fff;
}

@media (max-width: 991.98px) {
  .plans-grid {
    grid-template-columns: 1fr;
    max-width: 34rem;
    margin: 0 auto;
  }

  .plan-card-featured {
    order: -1;
  }

  .plan-description {
    min-height: 0;
  }
}

@media (max-width: 575.98px) {
  .plans-section {
    padding: 6rem 0 5rem;
  }

  .plans-intro {
    margin-bottom: 2.5rem;
  }

  .plan-card {
    padding: 1.75rem 1.2rem 1.2rem;
  }

  .plans-footer {
    align-items: flex-start;
    flex-wrap: wrap;
    text-align: left;
  }

  .plans-footer a {
    width: 100%;
    margin-left: 4.2rem;
  }
}
