:root {
  --color-bg: rgb(9, 0, 20);
  --color-text: #dec4ff;
  --color-white: #ffffff;
  --color-black: #000000;

  --free-tier-bg: radial-gradient(
    ellipse at bottom,
    hsla(266, 100%, 73%, 0.425),
    hsla(0, 0%, 0%, 0.99)
  );

  --color-primary: hsl(266, 94%, 55%);
  --color-primary-light: hsl(266, 100%, 73%);
  --color-primary-border: hsla(266, 94%, 65%, 0.6);

  --color-glow: hsla(277, 87%, 53%, 0.5);

  --shadow-glow: 0px 0px 12px 4px var(--color-glow);
  --shadow-btn: 0 4px 5px hsla(277, 87%, 53%, 0.7);
  --shadow-btn-hover: 0 0px 12px 8px hsla(277, 87%, 53%, 0.5);

  --gradient-primary: radial-gradient(
    ellipse at bottom,
    var(--color-primary-light) 1%,
    var(--color-primary) 99%
  );

  --gradient-card:
    linear-gradient(#1c053a, #0b0019 24%),
    linear-gradient(#5c27a1, #36185f 32%, #2e174e);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family:
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Oxygen,
    Ubuntu,
    Cantarell,
    "Open Sans",
    "Helvetica Neue",
    sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  overflow-x: hidden;
  width: 100%;
}

section {
  text-align: center;
}

main {
  width: 100%;
}

h1 {
  font-size: 64px;
  font-weight: 600;
}

h2 {
  font-size: 56px;
  font-weight: 600;
}

h3 {
  font-size: 20px;
  font-weight: 600;
}

h4 {
  font-size: 18px;
  font-weight: 300;
}

#features {
  scroll-margin-top: clamp(100px, 10vw, 135px);
}

#HIW {
  scroll-margin-top: calc(142px - 10vw);
}

#pricing {
  scroll-margin-top: clamp(100px, 10vw, 135px);
}

#FAQ {
  scroll-margin-top: calc(130px - 6vw);
}

img {
  display: block;
  width: 100%;
}

header {
  display: grid;
  position: sticky;
  top: 0;
  height: 90px;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background-color: rgba(9, 0, 20, 0.35);
  backdrop-filter: blur(4px);
  justify-content: space-between;
  gap: clamp(1rem, 5vw, 3rem);
  z-index: 100;
  padding-inline: 6%;
  transition: background-color 0.3s ease 0.3s;
}

header.active {
  background-color: rgba(46, 23, 78, 1);
  transition: background-color 0.1s;
}

.header-right {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  justify-self: end;
}

.logo {
  align-items: center;
  font-size: clamp(1.2rem, 5vw, 2rem);
  text-align: center;
  color: var(--color-text);
  line-height: 1;
  justify-self: start;
  white-space: nowrap;
}

.logo img {
  height: 30px;
}

.navbar {
  display: flex;
  gap: clamp(1rem, 5vw, 5rem);
  justify-content: center;
  justify-self: center;
  height: 24px;
  text-align: center;
  white-space: nowrap;
}

a {
  text-decoration: none;
  line-height: 1.6;
}

.navbar a {
  color: var(--color-text);
  transition: color 0.2s;
  font-size: 1rem;
}

.menu-btn {
  display: none;
  cursor: pointer;
  height: 30px;
  width: 30px;
}

.menu-icon {
  height: 100%;
  width: 100%;
  fill: linear-gradient(0deg, var(--color-primary), var(--color-white));
}

.navbar a:hover {
  color: var(--color-white);
}

.btn {
  width: 200px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  line-height: 1.2;
  border-radius: 50px;
  color: var(--color-white);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: solid 1px hsla(0, 0%, 100%, 0.5);
  box-shadow: var(--shadow-btn);
  background: var(--gradient-primary);
  transition: 0.3s ease;
}

.btn:hover {
  box-shadow: var(--shadow-btn-hover);
  border-color: var(--color-primary-border);
}

.buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.discord-link {
  justify-self: end;
}

.discord-icon {
  height: 15px;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding-inline: 8%;
  padding-top: 8%;
}

.Hero__Text {
  font-size: clamp(32px, 8vw, 72px);
  font-weight: 600;
  max-width: 1100px;
  width: 100%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.Hero__Desc {
  font-size: clamp(16px, 4vw, 24px);
  font-weight: 400;
  max-width: 800px;
  width: 100%;
  opacity: 0.9;
  line-height: 1.6;
  padding-block: 2rem;
}

.text-gradient {
  background: linear-gradient(0deg, var(--color-primary), var(--color-white));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.PreviewScreenshot {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 5%;
  padding-bottom: 10%;
}

.PreviewScreenshot img {
  width: 350px;
}

.lean-back {
  width: 300px;
  transform: perspective(800px) rotateX(10deg);
  box-shadow: var(--shadow-glow);
}

.featuresList {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  justify-content: center;
}

.feature {
  padding: 3rem;
  display: flex;
  gap: 10rem;
  align-items: center;
  justify-content: center;
}

.feature.reverse {
  flex-direction: row-reverse;
}

.feature_text {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: left;
}

.features__Desc {
  max-width: 400px;
}

.imgBox {
  width: 350px;
}

.imgBox img {
  box-shadow: var(--shadow-glow);
  border-radius: 10px;
}

.HIW-wrap {
  padding: 10%;
}

.cardList {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
  padding: 3%;
}

.HIW__card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--color-glow);
  background-image: var(--gradient-card);
  width: 320px;
  height: 490px;
  text-align: left;
}

.HIW__card .imgBox {
  width: 100%;
  padding-bottom: 8%;
  opacity: 0.46;
}

.HIW__card h2 {
  font-size: 32px;
  font-weight: 600;
}

.stepButton {
  width: 76px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  border-radius: 2rem;
  background-color: #1a0e29;
  color: var(--color-text);
}

.pricing {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 4rem;
  padding-bottom: 15%;
}

.pricingList {
  align-self: center;
  justify-self: center;
  max-width: 950px;
  width: 100%;
  display: grid;
  place-items: center;
  grid-template-columns: repeat(2, 1fr);
}

.pricing__card {
  display: grid;
  gap: 1rem;
  padding: 32px;
  border-radius: 10px;
  border: 1px solid var(--color-glow);
  background-image: var(--gradient-card);
  max-width: 350px;
  width: 100%;
  height: 470px;
  text-align: center;
  grid-template-rows: 1fr 3fr;
}

.pricing__card--bottom {
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.btnBox {
  display: grid;
  justify-content: center;
  padding-block: 10%;
}

.btn#download-free-tier {
  background: var(--free-tier-bg);
}

.compare-tier-list {
  text-align: left;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

#FAQ {
  background-color: var(--color-black);
  color: var(--color-white);
  width: 100%;
  height: 100vh;
  padding: 6%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 80px;
}

.faq-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  text-align: left;
}

.faq-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#about {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 8% 10%;
  background: linear-gradient(
    135deg,
    rgba(28, 5, 58, 0.95),
    rgba(9, 0, 20, 0.95)
  );
  text-align: center;
  color: var(--color-text);
  position: relative;
  margin-bottom: 100px;
}

#about h1 {
  font-size: 64px;
  font-weight: 700;
  margin-bottom: 3rem;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #ffffff;
  position: relative;
  z-index: 1;
}

#about h4 {
  font-size: 20px;
  font-weight: 300;
  line-height: 1.8;
  max-width: 900px;
  margin: 1rem 0;
  opacity: 0.95;
  text-align: justify;
  position: relative;
  z-index: 1;
}

.discord-link.mobile-only {
  display: none;
}


@media (max-width: 1100px) {
  header {
    display: flex;
  }

  .navbar {
    position: fixed;
    top: 90px;
    left: 0;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    background: rgba(46, 23, 78, 1);
    padding-bottom: 2rem;
    gap: 0;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-20px);
    pointer-events: none;
    transition: 0.3s ease-in;
    border-bottom: 1px solid var(--color-primary-border);
  }

  .navbar.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
  }

  .navbar > a:not(.discord-link) {
    font-size: 1.25rem;
    text-align: left;
    padding: 1rem 6%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    width: 100%;
  }

  .menu-btn {
    display: block;
    pointer-events: auto;
  }

  .discord-link.desktop-only {
    display: none;
  }

  .discord-link.mobile-only {
    display: block;
    width: 100%;
    padding-top: 1.5rem;
    padding-inline: 6%;
  }

  .discord-link.mobile-only .btn {
    width: 100%;
  }

  .feature {
    gap: 4rem;
  }
}

@media (max-width: 768px) {
  .feature,
  .feature.reverse {
    flex-direction: column;
    gap: 2rem;
  }

  .feature_text {
    text-align: center;
    order: -1;
  }

  .PreviewScreenshot img {
    max-width: 350px;
  }

  .pricingList {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .cardList {
    align-items: center;
  }

  .HIW__card {
    height: auto;
    width: 100%;
    max-width: 450px;
  }

  #about h1 {
    font-size: 3rem;
  }

  #FAQ {
    height: auto;
  }

  h1 {
    font-size: 3rem;
  }

  h2 {
    font-size: 2.5rem;
  }

  .buttons {
    flex-wrap: nowrap;
  }
}

@media (max-width: 480px) {
  .buttons {
    max-width: 100%;
    /* flex-wrap: wrap; */
    gap: 0.75rem;

  }

  .features__Desc {
    font-size: 14px;
  }

  .PreviewScreenshot img {
    max-width: 310px;
    width: 100%;
  }
  .faq-container {
    grid-template-columns: 1fr;
  }

  #features {
    scroll-margin-top: 100px;
  }

  #HIW {
    scroll-margin-top: 70px;
  }

  #pricing {
    scroll-margin-top: 100px;
  }

  #FAQ {
    scroll-margin-top: 80px;
  }

  #about {
    scroll-margin-top: 80px;
  }
}
