
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 50% 0%, #291044, transparent 50%),
    #080610;
  color: #fff;
  font-family: Arial, sans-serif;
}

.app {
  max-width: 1100px;
  margin: auto;
  padding: 20px;
}

/* HEADER */

.header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 30px;
}

.logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: linear-gradient(135deg,#8d35ed,#d69aff);
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 0 25px #a34cff77;
}

.header h1 {
  margin: 0;
  letter-spacing: 3px;
}

.header p {
  color: #b58bd5;
  font-size: 11px;
  letter-spacing: 3px;
}

#language {
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid #8650b4;
  border-radius: 10px;
  color: white;
  background: #211432;
  cursor: pointer;
}

/* HERO */

.hero {
  position: relative;
  overflow: hidden;
  padding: 45px 25px;
  border: 1px solid #673a91;
  border-radius: 25px;
  background:
    radial-gradient(circle at 80% 30%,#7228a755,transparent 35%),
    linear-gradient(120deg,#241039,#090711);
  box-shadow: 0 15px 45px #0007;
}

.tag {
  color: #d6a5ff;
  letter-spacing: 3px;
  font-size: 11px;
}

.hero h2 {
  font-size: clamp(28px,6vw,46px);
}

.hero p {
  color: #c8b6d7;
}

.hero-art {
  margin-top: 25px;
  color: #d9aaff;
  font-size: clamp(32px,8vw,65px);
  font-weight: 900;
  letter-spacing: 8px;
  text-shadow: 0 0 35px #a34bff;
}

/* CATALOG */

.catalog {
  margin-top: 40px;
}

.catalog h2 {
  text-align: center;
  margin-bottom: 25px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(190px,1fr));
  gap: 20px;
}

/* CARDS */

.plan {
  position: relative;
  overflow: hidden;
  padding: 16px;
  border: 1px solid #54316f;
  border-radius: 20px;
  background: linear-gradient(155deg,#21132f,#0b0813);
  text-align: center;
  transition: .3s;
}

.plan:hover {
  transform: translateY(-8px);
  border-color: #d29aff;
  box-shadow: 0 0 35px #a34cff55;
}

/* VISUAL AREA */

.plan-image {
  position: relative;
  height: 180px;
  overflow: hidden;
  isolation: isolate;
  border-radius: 15px;
  margin-bottom: 18px;
  background: radial-gradient(circle,#361850,#090611 75%);
}

.plan-image::before,
.plan-image::after,
.visual-object::before,
.visual-object::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%,-50%);
}

/* SPACE STARS */

.plan-image::after {
  width: 100%;
  height: 100%;
  inset: 0;
  transform: none;
  background-image:
    radial-gradient(circle,#fff 1px,transparent 2px),
    radial-gradient(circle,#c78aff 1px,transparent 2px);
  background-size: 37px 41px,53px 47px;
  background-position: 5px 8px,22px 16px;
  opacity: .65;
  z-index: 3;
  pointer-events: none;
}

/* CRYSTAL */

.visual-crystal {
  background:
    radial-gradient(circle at center,#512276,#0a0612 75%);
}

.visual-crystal .visual-object {
  position: absolute;
  width: 75px;
  height: 105px;
  left: calc(50% - 37px);
  top: 38px;
  z-index: 2;
  clip-path: polygon(50% 0,100% 30%,80% 100%,20% 100%,0 30%);
  background: linear-gradient(135deg,#fff,#d8a0ff 30%,#7228bd 65%,#210d39);
  filter: drop-shadow(0 0 20px #bb65ff);
  animation: float 4s ease-in-out infinite;
}

.visual-crystal .visual-object::before {
  width: 2px;
  height: 85px;
  background: #fff;
  opacity: .65;
}

/* ORBIT */

.visual-orbit {
  background: radial-gradient(circle,#32144d,#080610 75%);
}

.visual-orbit .visual-object {
  position: absolute;
  width: 100px;
  height: 100px;
  left: calc(50% - 50px);
  top: 40px;
  z-index: 2;
  border: 4px solid #c77bff;
  border-radius: 50%;
  box-shadow: 0 0 15px #d7a4ff,inset 0 0 20px #9c3ce8;
  transform: rotateX(65deg) rotate(35deg);
}

.visual-orbit .visual-object::before {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%,white,#bb68ff 40%,#43116c);
  box-shadow: 0 0 25px #b64cff;
}

.visual-orbit .visual-object::after {
  width: 125px;
  height: 50px;
  border: 2px solid #8e43d3;
  border-radius: 50%;
  transform: translate(-50%,-50%) rotate(-35deg);
}

/* ENERGY */

.visual-energy {
  background: radial-gradient(circle,#4c1e70,#080610 75%);
}

.visual-energy .visual-object {
  position: absolute;
  width: 85px;
  height: 95px;
  left: calc(50% - 42px);
  top: 43px;
  z-index: 2;
  clip-path: polygon(50% 0,100% 35%,80% 100%,20% 100%,0 35%);
  background: linear-gradient(135deg,#fff,#d6a0ff 35%,#8135d0 70%,#240b40);
  filter: drop-shadow(0 0 20px #b85aff);
}

.visual-energy .visual-object::after {
  width: 135px;
  height: 135px;
  border: 1px solid #bd75ff;
  border-radius: 50%;
  box-shadow: 0 0 25px #9e3de8;
}

/* PORTAL */

.visual-portal {
  background: radial-gradient(circle,#42166e,#080610 75%);
}

.visual-portal .visual-object {
  position: absolute;
  width: 112px;
  height: 112px;
  left: calc(50% - 56px);
  top: 34px;
  z-index: 2;
  border: 9px solid #ca8aff;
  border-radius: 50%;
  background: radial-gradient(circle,#d9a2ff,#43116c 60%,#10091c);
  box-shadow: 0 0 15px #d6a1ff,0 0 40px #963bff,inset 0 0 25px #a14bff;
  animation: portal 12s linear infinite;
}

.visual-portal .visual-object::after {
  width: 140px;
  height: 140px;
  border: 1px solid #b36aff;
  border-radius: 50%;
  transform: translate(-50%,-50%) rotateX(65deg);
}

/* INFINITY */

.visual-infinity {
  background: radial-gradient(circle,#39204d,#080610 75%);
}

.visual-infinity .visual-object {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.visual-infinity .visual-object::before {
  content: "∞";
  color: #e4c1ff;
  font-size: 115px;
  font-weight: 300;
  text-shadow: 0 0 8px white,0 0 25px #b34cff,0 0 50px #7b2acb;
  animation: glow 3s ease-in-out infinite alternate;
}

/* TEXT AND BUTTONS */

.plan h3 {
  color: #e0b9ff;
  font-size: 23px;
}

.plan-description {
  color: #c9bfd5;
  min-height: 24px;
}

.plan-price {
  margin: 20px 0;
  font-size: 27px;
  font-weight: 900;
  text-shadow: 0 0 15px #a64cff;
}

.buy-button {
  width: 100%;
  padding: 14px;
  color: white;
  font-weight: bold;
  border: 1px solid #b76bff;
  border-radius: 12px;
  background: linear-gradient(90deg,#7025c5,#ad45ed);
  cursor: pointer;
  transition: .2s;
}

.buy-button:hover {
  filter: brightness(1.3);
  box-shadow: 0 0 20px #a34cff;
}

footer {
  margin-top: 40px;
  padding: 20px;
  color: #806b94;
  text-align: center;
  font-size: 12px;
}

/* ANIMATIONS */

@keyframes float {
  0%,100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(8deg); }
}

@keyframes portal {
  to { transform: rotate(360deg); }
}

@keyframes glow {
  from { opacity: .7; transform: scale(.95); }
  to { opacity: 1; transform: scale(1.08); }
}

/* MOBILE */

@media(max-width:480px) {
  .app { padding: 12px; }
  .plans {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
  }
  .plan { padding: 12px; }
  .plan-image { height: 135px; }
  .plan-price { font-size: 22px; }
}
