@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans:ital,wght@0,100..700;1,100..700&family=Outfit:wght@100..900&display=swap');

html {
  height: 100%;
  width: 100%;
}

body {
  margin: 0;
  color: #f5f5f5;
  background: #08000a;
  font-family: 'IBM Plex Sans', sans-serif;
  overflow-x: hidden;
}

.bg {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: -2;
  overflow: hidden;
  pointer-events: none;
}

nav {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  position: fixed;
  top: 1rem;
  left: 12.5rem;
  right: 12.5rem;
  height: 2rem;
  padding: 1rem 1.75rem;
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  background: #13101d;
  z-index: 100;
}

nav div {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.logo {
  gap: 0 !important;
}

.logo b {
  font-size: 2rem;
  font-weight: 600;
}

nav img {
  width: 3.5rem;
  height: 3.5rem;
  padding: 0 !important;
  background: transparent !important;
  border: none !important;
  opacity: 1 !important
}

.login {
  color: #f5f5f5;
  background: #24202d;
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.signin {
  color: #f5f5f5;
  background: linear-gradient(90deg, #8a00b8, #9900cc);
  border: 1px solid #8a00b8;
  border-radius: 0.5rem;
  padding: 0.5rem 1rem;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

#hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  height: 90vh;
}

h1 {
  margin: 0;
  font-size: 5rem;
  font-weight: 600;
  text-shadow: 0 0 1rem #9900cc;
}

h2 {
  margin: 0;
  margin-bottom: 2rem;
  font-size: 3rem;
  font-weight: 600;
  text-shadow: 0 0 1rem #9900cc
}

#hero p {
  margin: 0;
  margin-bottom: 1rem;
  font-size: 1.5rem;
  font-weight: 500;
  opacity: 0.8;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: -1;
}

.hero-bg .glow {
  height: 30rem;
  width: 30rem;
  background: radial-gradient(circle, rgba(138, 0, 184, 0.5) 0%, rgba(0, 0, 0, 0) 70%);
  filter: blur(1rem);
  animation: glow 3s ease-in-out infinite;
}

@keyframes glow {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.2);
  }
  100% {
    transform: scale(1);
  }
}

.scroll {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%) rotate(180deg);
  height: 2rem;
  width: 2rem;
  padding: 2rem;
  background: radial-gradient(circle, rgba(138, 0, 184, 0.2) 0%, rgba(0, 0, 0, 0) 70%);
  animation: scroll 2s ease-in-out infinite;
}

@keyframes scroll {
  0% {
    transform: translateX(-50%) translateY(0) rotate(180deg);
  }
  50% {
    transform: translateX(-50%) translateY(-1rem) rotate(180deg);
  }
  100% {
    transform: translateX(-50%) translateY(0) rotate(180deg);
  }
}

#features {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 12.5rem;
  margin-top: 10rem;
}

.features {
  display: flex;
  flex-direction: row;
  justify-content: center;
}

.features b {
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
  font-weight: 600;
}

.features p {
  margin: 0;
  font-size: 1rem;
  font-weight: 400;
  text-align: center;
  opacity: 0.8;
}

.features-left {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem;
  border-right: 1px solid #34303daa;
}

.features-middle {
  poition: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fm-con {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  margin-top: 7rem;
}

.fm-con div {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 10rem;
}

.features-middle div span {
  height: 1rem;
  width: 1rem;
  background: #8a00b8;
  border-radius: 50%;
  box-shadow: 0 0 1rem #8a00b8
}

.features-right {
  display: flex;
  flex-direction: column;
  width: 100%;
  padding: 1rem;
  border-left: 1px solid #34303daa;
}

.features-left div, .features-right div {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: calc(100% - 6rem);
  height: 6rem;
  padding: 2rem 3rem;
}

.card {
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  background: #13101daa;
  transition: 0.3s ease-in-out;
}

.card:hover {
  box-shadow: inset 0 0 1rem #8a00b825;
  background: #13101d;
}

#pricing {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  margin: 0 12.5rem;
  margin-top: 10rem;
}

.pricing-slider {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 1rem;
  padding: 0.5rem;
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  background: #13101d;
}

.pricing-slider button {
  width: 15rem;
  padding: 0.5rem 1rem;
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  background: #24202d;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

.pricing-slider button.active {
  background: linear-gradient(90deg, #8a00b8, #9900cc);
  border: 1px solid #8a00b8;
  cursor: pointer;
}

#monthly, #yearly {
  display: none;
}

#monthly.active, #yearly.active {
  display: block;
}

.products {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 3rem;
  margin: 4rem 0;
}

.products b {
  font-size: 2rem;
  font-weight: 500;
  text-align: center;
}

.products a {
  display: flex;
  flex-direction: column;
  width: 17.5rem;
  height: 100%;
  padding: 1rem;
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  background: #13101d;
  opacity: 0.9;
  transition: 0.3s ease-in-out;
}

.products a button {
  margin-top: auto;
  padding: 0.5rem;
  border: 1px solid #34303d;
  border-radius: 0.5rem;
  background: #24202d;
  color: #f5f5f5;
  font-size: 1rem;
  font-weight: 500;
  font-family: 'IBM Plex Sans', system-ui, sans-serif;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}

del {
  margin-right: 0.5rem;
  opacity: 0.7;
  font-size: 0.9rem;
}

.premium {
  border: 1px solid #8a00b8aa !important;
  box-shadow: 0 0 1rem #8a00b850;
  transform: scale(1.05);
}

.premium button {
  background: linear-gradient(90deg, #8a00b850, #9900cc75) !important;
  border: 1px solid #8a00b8 !important;
  cursor: pointer;
}

.premiumplus {
  position: relative;
  background: linear-gradient(90deg, #8a00b875, #9900cc75) !important;
  border: 1px solid #8a00b8 !important;
  box-shadow: 0 0 2rem #8a00b875;
  transform: scale(1.2);
}

.premiumplus button {
  background: linear-gradient(90deg, #8a00b8, #9900cc) !important;
  border: 1px solid #8a00b8 !important;
  cursor: pointer;
}

/* Sparkle pseudo-elements */
.premiumplus::before,
.premiumplus::after,
.premiumplus .sparkle-extra1::before,
.premiumplus .sparkle-extra1::after,
.premiumplus .sparkle-extra2::before,
.premiumplus .sparkle-extra2::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: #cc87e3;
  border-radius: 50%; /* Circular sparkles */
  box-shadow: 0 0 0 0.35rem #cc87e3aa; /* Glow effect */
  animation: sparkle 2s infinite ease-in-out;
  opacity: 0; /* Start invisible */
}

/* Unique positions and delays for randomization */
.premiumplus::before {
  top: 10%;
  left: 15%;
  animation-delay: 0.3s;
}

.premiumplus::after {
  bottom: 20%;
  right: 10%;
  animation-delay: 1.1s;
}

.premiumplus .sparkle-extra1::before {
  top: 30%;
  left: 80%;
  animation-delay: 0.7s;
  animation-duration: 1.8s; /* Vary duration for more randomness */
}

.premiumplus .sparkle-extra1::after {
  bottom: 40%;
  left: 25%;
  animation-delay: 1.4s;
}

.premiumplus .sparkle-extra2::before {
  top: 60%;
  right: 30%;
  animation-delay: 0.9s;
  animation-duration: 2.2s;
}

.premiumplus .sparkle-extra2::after {
  bottom: 10%;
  left: 50%;
  animation-delay: 1.6s;
}

.mobile-features {
  display: none;
}

/* Keyframes for sparkle animation with slight movement */
@keyframes sparkle {
  0% {
    transform: scale(0) translate(0, 0) rotate(0deg);
    opacity: 0;
  }
  50% {
    transform: scale(1) translate(calc(10px * (var(--random-x, 1))), calc(10px * (var(--random-y, 1)))) rotate(45deg); /* Slight random movement */
    opacity: 1;
  }
  100% {
    transform: scale(0) translate(calc(10px * (var(--random-x, 1))), calc(10px * (var(--random-y, 1)))) rotate(90deg);
    opacity: 0;
  }
}

/* Optional: Add subtle variation to each sparkle */
.premiumplus::before {
  --random-x: 0.5;
  --random-y: -0.3;
}

.premiumplus::after {
  --random-x: -0.7;
  --random-y: 0.4;
}

.premiumplus .sparkle-extra1::before {
  --random-x: 0.2;
  --random-y: 0.8;
}

.premiumplus .sparkle-extra1::after {
  --random-x: -0.4;
  --random-y: -0.6;
}

.premiumplus .sparkle-extra2::before {
  --random-x: 0.9;
  --random-y: 0.1;
}

.premiumplus .sparkle-extra2::after {
  --random-x: -0.2;
  --random-y: 0.7;
}

@media screen and (max-width: 800px) {
  nav {
    left: 1rem;
    right: 1rem;
    padding: 1rem;
  }

  .logo b {
    font-size: 1.5rem;
  }

  .mobno {
    display: none;
  }

  .login, .signin {
    padding: 0.5rem 0.75rem;
  }

  #hero p {
    text-align: center;
  }

  #features, #pricing {
    margin: 0 1rem;
    margin-top: 10rem;
  }

  .features-left, .features-right, .features-middle {
    display: none;
  }

  .mobile-features {
    display: flex;
    flex-direction: column;
  }

  .card {
    margin-bottom: 1rem;
    padding: 1rem;
  }

  .pricing-slider button {
    width: 10rem;
  }
  
  .products {
    flex-direction: column;
    width: 100%;
    gap: 1rem;
  }
  
  .products a {
    height: calc(100% - 10rem);
  }

  .premiumplus {
    transform: scale(1);
  }

  .premium {
    transform: scale(1);
  }
}