/* ─── PACKAGES SECTION ──────────────────────────────────── */
#packages {
  padding: 8rem 2rem;
  background: var(--bg);
}

.packages-header {
  text-align: center;
  margin-bottom: 5rem;
}

/* ─── Cards Container ───────────────────────────────────── */
.cards {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 1300px;
  margin: 0 auto;
  justify-content: center;
}

/* ─── Card ──────────────────────────────────────────────── */
.card {
  --flow-space: 0.5em;
  --hsl: var(--hue), var(--saturation), var(--lightness);

  position: relative;
  flex: 1 1 14rem;
  max-width: 260px;
  padding: 1.75em 2em;
  display: grid;
  grid-template-rows: auto auto auto 1fr;
  align-items: start;
  gap: 1.25em;
  color: #eceff1;
  background-color: #1a1c22;
  border: 1px solid rgba(255, 207, 82, 0.2);
  border-radius: 15px;
  transition: all 0.3s ease-in-out;
}

/* Per-card gold-range hues */
.card:nth-child(1) { --hue: 48;  --saturation: 100%; --lightness: 64%; }
.card:nth-child(2) { --hue: 44;  --saturation: 100%; --lightness: 60%; }
.card:nth-child(3) { --hue: 52;  --saturation: 100%; --lightness: 66%; }
.card:nth-child(4) { --hue: 42;  --saturation: 96%;  --lightness: 62%; }
.card:nth-child(5) { --hue: 46;  --saturation: 100%; --lightness: 58%; }

/* ─── Featured badge ────────────────────────────────────── */
.card-badge {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--orange), var(--orange-dark));
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.28rem 0.9rem;
  border-radius: 100px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 207, 82, 0.5);
}

.card.featured {
  border-color: hsl(var(--hsl));
  box-shadow: 0 0 40px rgba(255, 207, 82, 0.12);
}

/* ─── Typography ────────────────────────────────────────── */
.card__heading {
  font-size: 1.1em;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card__price {
  font-size: 1.6em;
  font-weight: 800;
  color: hsl(var(--hsl));
  line-height: 1.2;
}

/* ─── Feature list ──────────────────────────────────────── */
.card__bullets {
  list-style: none;
  line-height: 1.4;
}

.card__bullets li {
  position: relative;
  padding-left: 1.3em;
  font-size: 0.86rem;
  color: rgba(240, 240, 240, 0.72);
}

.card__bullets li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: hsl(var(--hsl));
  font-size: 0.8em;
  top: 0.1em;
}

/* ─── Flow utility ──────────────────────────────────────── */
.flow > * + * {
  margin-top: var(--flow-space, 1.25em);
}

/* ─── CTA Button ────────────────────────────────────────── */
.cta {
  display: block;
  align-self: end;
  margin: 1em 0 0.5em 0;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: transparent;
  outline: 1px solid rgba(255, 255, 255, 0.5);
  padding: 0.7em;
  border-radius: 10px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: var(--font-main);
  transition: all 0.3s ease-in-out;
}

/* ─── Hover: gold neon glow ─────────────────────────────── */
.card:hover {
  background: rgba(255, 255, 255, 0.52);
  color: #111;
  outline: 1px solid #fff;
  box-shadow:
    inset 0 0 80px whitesmoke,
    inset 20px 0 80px rgba(255, 207, 82, 0.75),
    inset -20px 0 80px rgba(255, 241, 112, 0.75),
    inset 20px 0 300px rgba(255, 207, 82, 0.45),
    inset -20px 0 300px rgba(255, 241, 112, 0.45),
    0 0 50px #fff,
    -10px 0 80px rgba(255, 207, 82, 0.65),
    10px 0 80px rgba(255, 241, 112, 0.65);
}

.card:hover .card__heading { color: #111; }
.card:hover .card__price   { color: hsl(var(--hsl)); }
.card:hover .card__bullets li { color: rgba(0, 0, 0, 0.75); }
.card:hover .card__bullets li::before { color: hsl(var(--hsl)); }

.card:hover .cta {
  outline: none;
  background-color: #0d0d0d;
  color: #fff;
}
