/* Packages page */
.pg-page main {
  position: relative;
  z-index: 1;
}
.pg-hero {
  position: relative;
  padding: clamp(130px, 13vw, 190px) 20px 30px;
  text-align: center;
  color: #fff;
  font-family: Manrope, sans-serif;
}
.pg-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 50% at 50% 0, rgba(139, 92, 246, 0.45), transparent 70%);
}
.pg-word {
  position: relative;
  margin: 0;
  font:
    500 clamp(30px, 4vw, 60px)/1.1 Manrope,
    sans-serif;
  letter-spacing: 0.01em;
  color: #ddd3ff;
}
.pg-h1 {
  position: relative;
  margin: 0 0 20px;
  padding-bottom: 0.14em;
  font:
    800 clamp(56px, 9.5vw, 150px)/1.02 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
  background: linear-gradient(180deg, #fff 30%, #b9a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.pg-lead {
  position: relative;
  max-width: 46em;
  margin: 0 auto;
  font:
    500 clamp(15px, 1.25vw, 19px)/1.7 Manrope,
    sans-serif;
  color: #cbc1e3;
  text-wrap: balance;
}
.pg-tabs {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  width: fit-content;
  max-width: min(1240px, 100%);
  margin: clamp(34px, 4vw, 56px) auto 0;
  padding: 10px;
  border-radius: 34px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    0 24px 50px -24px rgba(8, 4, 30, 0.8);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.pg-tabs button {
  appearance: none;
  border: 0;
  cursor: pointer;
  padding: 14px 24px;
  border-radius: 99px;
  font:
    600 15px/1 Manrope,
    sans-serif;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  transition:
    background 0.3s,
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.3s;
}
.pg-tabs button:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.pg-tabs button[aria-selected="true"] {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
  box-shadow: 0 12px 26px -10px rgba(139, 92, 246, 0.95);
  font-weight: 700;
}
.pg-tabs button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}
.pg-sec {
  position: relative;
  width: min(1240px, calc(100vw - 40px));
  margin: clamp(34px, 4vw, 60px) auto clamp(60px, 7vw, 110px);
}
.pg-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.2vw, 32px);
  align-items: stretch;
  padding-top: 22px;
}
.pg-c {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(26px, 2.6vw, 40px);
  border-radius: 20px;
  font-family: Manrope, sans-serif;
  color: #0d0a24;
  background: linear-gradient(180deg, rgba(250, 249, 255, 0.97), rgba(238, 233, 255, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 34px 60px -30px rgba(8, 4, 30, 0.9);
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg))
    translateY(var(--ty, 0));
  transform-style: preserve-3d;
  isolation: isolate;
  transition:
    transform 0.3s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.4s;
}
.pg-c:hover {
  --ty: -8px;
  box-shadow:
    0 46px 70px -30px rgba(8, 4, 30, 0.95),
    0 0 0 2px rgba(167, 139, 250, 0.55);
}
.pg-c.pop {
  box-shadow:
    0 0 0 2px #8b5cf6,
    0 40px 70px -28px rgba(124, 58, 237, 0.8);
}
.pg-bd {
  position: absolute;
  top: -20px;
  right: 26px;
  padding: 12px 22px;
  border-radius: 99px;
  font:
    700 16px/1 Manrope,
    sans-serif;
  color: #fff;
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
  box-shadow: 0 14px 26px -10px rgba(124, 58, 237, 0.9);
}
.pg-hd {
  display: flex;
  align-items: center;
  gap: 14px;
}
.pg-hd img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}
.pg-hd h3 {
  margin: 0;
  font:
    800 clamp(26px, 2.4vw, 36px)/1 Manrope,
    sans-serif;
  letter-spacing: -0.02em;
  color: #0d0a24;
}
.pg-pr {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 8px;
  margin: clamp(22px, 2.4vw, 34px) 0 18px;
  line-height: 1;
  color: #0d0a24;
}
.pg-pr sup {
  font:
    800 clamp(24px, 2.4vw, 38px)/1 Manrope,
    sans-serif;
  margin-bottom: 0.28em;
}
.pg-pr b {
  font:
    800 clamp(44px, 4.6vw, 70px)/0.9 Manrope,
    sans-serif;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.pg-pr small {
  flex-basis: 100%;
  margin: 10px 0 0 !important;
  white-space: nowrap;
  font:
    700 clamp(14px, 1.2vw, 18px)/1 Manrope,
    sans-serif;
  color: #6b6585;
}
.pg-d {
  margin: 0 0 24px;
  min-height: 3.4em;
  font:
    500 clamp(15px, 1.15vw, 17px)/1.6 Manrope,
    sans-serif;
  color: #4a4468;
}
.pg-btn {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 17px 20px;
  border-radius: 14px;
  font:
    700 15px/1 Manrope,
    sans-serif;
  text-decoration: none;
  color: #fff;
  background: #0d0a24;
  transition:
    transform 0.3s,
    box-shadow 0.3s,
    background 0.3s;
}
.pg-c.pop .pg-btn {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
}
.pg-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -70%;
  width: 45%;
  height: 100%;
  transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transition: left 0.7s;
}
.pg-btn:hover::after {
  left: 130%;
}
.pg-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 28px -12px rgba(13, 10, 36, 0.7);
}
.pg-btn svg {
  width: 17px;
  height: 17px;
  transition: transform 0.3s;
}
.pg-btn:hover svg {
  transform: translateX(5px);
}
.pg-btn:focus-visible {
  outline: 2px solid #8b5cf6;
  outline-offset: 3px;
}
.pg-c ul {
  list-style: none;
  margin: 28px 0 0;
  padding: 26px 0 0;
  border-top: 1px solid rgba(13, 10, 36, 0.12);
  display: grid;
  gap: 15px;
}
.pg-c li {
  display: flex;
  align-items: center;
  gap: 12px;
  font:
    500 clamp(14px, 1.1vw, 16px)/1.4 Manrope,
    sans-serif;
  color: #1d1840;
}
.pg-ck {
  flex: none;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
  color: #fff;
}
.pg-ck svg {
  width: 12px;
  height: 12px;
}
.pg-more {
  max-width: 46em;
  margin: clamp(28px, 3vw, 44px) auto 0;
  text-align: center;
  font:
    500 14px/1.7 Manrope,
    sans-serif;
  color: #b3a8cc;
}
.pg-more a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 4px;
  color: #c4b5fd;
  font-weight: 700;
  text-decoration: none;
}
.pg-more a svg {
  width: 15px;
  height: 15px;
  transition: transform 0.3s;
}
.pg-more a:hover svg {
  transform: translateX(4px);
}
/* animation */
@keyframes pgRise {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes pgLi {
  from {
    opacity: 0;
    transform: translateX(-14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pg-grid.in .pg-c {
  animation: pgRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) backwards;
}
.pg-grid.in .pg-c li {
  animation: pgLi 0.5s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d, 0s) + 0.3s + var(--k) * 0.06s)
    backwards;
}
.pg-hero > * {
  animation: pgRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.pg-hero > *:nth-child(2) {
  animation-delay: 0.08s;
}
.pg-hero > *:nth-child(3) {
  animation-delay: 0.16s;
}
.pg-hero > *:nth-child(4) {
  animation-delay: 0.24s;
}
@media (max-width: 980px) {
  .pg-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin: 0 auto;
  }
}
@media (max-width: 700px) {
  .pg-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    width: auto;
    max-width: 100%;
    border-radius: 24px;
    scrollbar-width: none;
  }
  .pg-tabs::-webkit-scrollbar {
    display: none;
  }
  .pg-tabs button {
    flex: none;
    padding: 12px 18px;
    font-size: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .pg-hero > *,
  .pg-grid.in .pg-c,
  .pg-grid.in .pg-c li {
    animation: none;
  }
}

/* ---- extra card animation ---- */
@property --pga {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
/* gentle floating (uses 'translate' so it does not fight the tilt) */
.pg-grid.in .pg-c {
  animation:
    pgRise 0.8s cubic-bezier(0.22, 1, 0.36, 1) var(--d, 0s) backwards,
    pgFloat 6s ease-in-out calc(1.2s + var(--d, 0s)) infinite alternate;
}
@keyframes pgFloat {
  from {
    translate: 0 0;
  }
  to {
    translate: 0 -9px;
  }
}
.pg-c:hover {
  animation-play-state: running, paused;
}
/* spotlight that follows the cursor */
.pg-c::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s;
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 30%),
    rgba(139, 92, 246, 0.28),
    transparent 65%
  );
}
.pg-c:hover::before {
  opacity: 1;
}
/* travelling light on the popular card border */
.pg-c.pop::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  padding: 2px;
  pointer-events: none;
  background: conic-gradient(
    from var(--pga),
    transparent 0 60%,
    #c4b5fd 78%,
    #fff 85%,
    transparent 92%
  );
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask:
    linear-gradient(#000 0 0) content-box exclude,
    linear-gradient(#000 0 0);
  animation: pgSpin 4s linear infinite;
}
@keyframes pgSpin {
  to {
    --pga: 360deg;
  }
}
/* badge pulse + icon pop */
.pg-bd {
  animation: pgPulse 2.4s ease-in-out infinite;
}
@keyframes pgPulse {
  0%,
  100% {
    box-shadow:
      0 14px 26px -10px rgba(124, 58, 237, 0.9),
      0 0 0 0 rgba(167, 139, 250, 0.55);
  }
  50% {
    box-shadow:
      0 14px 26px -10px rgba(124, 58, 237, 0.9),
      0 0 0 10px rgba(167, 139, 250, 0);
  }
}
.pg-hd img {
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.4, 1);
}
.pg-c:hover .pg-hd img {
  transform: rotate(-12deg) scale(1.18);
}
.pg-grid.in .pg-hd img {
  animation: pgIcon 0.9s cubic-bezier(0.34, 1.56, 0.4, 1) calc(var(--d, 0s) + 0.25s) backwards;
}
@keyframes pgIcon {
  from {
    opacity: 0;
    transform: scale(0.3) rotate(-90deg);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.pg-grid.in .pg-pr {
  animation: pgLi 0.7s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--d, 0s) + 0.2s) backwards;
}
@media (prefers-reduced-motion: reduce) {
  .pg-grid.in .pg-c,
  .pg-c.pop::after,
  .pg-bd,
  .pg-grid.in .pg-hd img,
  .pg-grid.in .pg-pr {
    animation: none;
  }
  .pg-c {
    transform: none !important;
  }
}
@media (hover: none) {
  .pg-c {
    transform: none !important;
  }
}

/* ===== Glass morphism pricing (big heading sits behind frosted cards) ===== */
.pg-hero {
  padding-bottom: 0;
}
.pg-hero > *:nth-child(3) {
  animation-delay: 0.16s;
}
.pg-sec {
  margin-top: clamp(10px, 2vw, 30px);
}
.pg-h1 {
  position: relative;
  z-index: 0;
  margin: 0 0 -0.5em;
  padding-bottom: 0.14em;
  text-align: center;
  pointer-events: none;
  user-select: none;
  font:
    800 clamp(64px, 13vw, 210px)/1 Manrope,
    sans-serif;
  letter-spacing: -0.045em;
  background: linear-gradient(180deg, #fff 20%, #d9ccff 70%, #b9a4ff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: pgRise 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.1s backwards;
}
.pg-grid {
  position: relative;
  z-index: 1;
}
.pg-c {
  color: #fff;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14),
    rgba(255, 255, 255, 0.04) 45%,
    rgba(10, 8, 28, 0.38)
  );
  -webkit-backdrop-filter: blur(22px) saturate(1.5);
  backdrop-filter: blur(22px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.4),
    inset 0 0 40px rgba(255, 255, 255, 0.04),
    0 34px 60px -30px rgba(0, 0, 0, 0.9);
}
.pg-c:hover {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    inset 0 0 50px rgba(255, 255, 255, 0.06),
    0 46px 70px -30px rgba(0, 0, 0, 0.95),
    0 0 0 1px rgba(196, 181, 253, 0.55);
}
.pg-c.pop {
  background: linear-gradient(
    180deg,
    rgba(196, 181, 253, 0.26),
    rgba(139, 92, 246, 0.1) 45%,
    rgba(10, 8, 28, 0.4)
  );
  border-color: rgba(196, 181, 253, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.55),
    0 40px 70px -28px rgba(124, 58, 237, 0.85);
}
.pg-hd h3,
.pg-pr {
  color: #fff;
}
.pg-pr small {
  color: rgba(255, 255, 255, 0.62);
}
.pg-d {
  color: rgba(255, 255, 255, 0.74);
}
.pg-c ul {
  border-top-color: rgba(255, 255, 255, 0.16);
}
.pg-c li {
  color: rgba(255, 255, 255, 0.9);
}
.pg-ck {
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #fff;
}
.pg-btn {
  background: rgba(6, 4, 20, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}
.pg-c.pop .pg-btn {
  background: #fff;
  border-color: #fff;
  color: #0d0a24;
}
.pg-c::before {
  background: radial-gradient(
    340px circle at var(--mx, 50%) var(--my, 30%),
    rgba(255, 255, 255, 0.16),
    transparent 65%
  );
}
.pg-hd img {
  filter: drop-shadow(0 0 12px rgba(167, 139, 250, 0.7));
}
@media (max-width: 980px) {
  .pg-h1 {
    margin-bottom: -0.35em;
  }
}
