:root {
  --bg-color: #202d41;
  --text-color: #ffffff;
  --primary-color: #dd883d;
  --secondary-color: #9ae8d6;
  --gray: #6b7280;
  --light-gray: #9ca3af;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.4;
  }
  50% {
    opacity: 0.8;
  }
}

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

body {
  height: 100vh;
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--text-color);
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: 72rem;
  margin: 0 auto;
  padding-inline: 32px;
}

h1 {
  font-size: 3.75rem;
  line-height: 1;

  @media screen and (max-width: 640px) {
    font-size: 2.5rem;
  }
}

p,
span {
  font-size: 1.25rem;
  line-height: 1.6;

  @media screen and (max-width: 640px) {
    font-size: 1rem;
  }
}

.highlighted-text {
  color: var(--primary-color);
}

header {
  display: flex;
  align-items: center;
  padding-block: 1rem;

  a {
    text-decoration: none;
    color: var(--text-color);
  }

  .logo-container {
    display: flex;
    align-items: center;
    gap: 12px;

    img {
      height: 40px;
      width: 40px;
    }

    span {
      font-weight: bold;
    }
  }

  @media screen and (max-width: 640px) {
    justify-content: center;
  }
}

main {
  flex: 1;
  display: flex;
  align-items: center;

  &.white-bg {
    background-color: var(--text-color);
  }
}

section {
  padding-block: 3rem;

  @media screen and (max-width: 640px) {
    padding-block: 3rem;
  }
}

.hero-section {
  padding-block: 0;
  max-width: 56rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;

  .hero-text {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;

    p {
      opacity: 0.8;
    }

    span {
      font-size: 3.75rem;
      line-height: 1;
    }
  }

  .hero-character {
    position: relative;
    width: 16rem;
    height: 16rem;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10;

    .hero-character-gradient {
      position: absolute;
      inset: 0;
      background: linear-gradient(
        to right,
        var(--primary-color),
        var(--secondary-color)
      );
      filter: blur(4rem);
      border-radius: 100%;
      animation: pulse-glow 2s ease-in-out infinite;
    }

    img {
      object-fit: contain;
      width: 100%;
      height: 100%;
      filter: drop-shadow(
        color-mix(in srgb, var(--primary-color) 30%, transparent) 0px 0px 20px
      );
      animation: float 3s ease-in-out infinite;
    }
  }

  .download-btns {
    display: flex;
    gap: 1rem;

    a {
      &:hover {
        cursor: pointer;
        transform: scale(1.05);
        transition: transform 0.2s;
      }

      img {
        height: 3.5rem;
      }
    }

    @media screen and (max-width: 640px) {
      flex-direction: column;
      align-items: center;
      gap: 0.75rem;

      a {
        img {
          height: 3rem;
          width: auto;
        }
      }
    }
  }

  @media screen and (max-width: 1024px) {
    .hero-character {
      width: 14rem;
      height: 14rem;
    }
  }

  @media screen and (max-width: 640px) {
    gap: 2rem;

    .hero-text span {
      font-size: 2.5rem;
    }

    .hero-character {
      width: 12rem;
      height: 12rem;
    }
  }
}

footer {
  & > div {
    padding-block: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;

    #copyright,
    #year {
      font-size: 0.75rem;
      color: var(--gray);

      @media screen and (max-width: 640px) {
        font-size: 0.625rem;
      }
    }

    @media screen and (max-width: 640px) {
      gap: 1rem;
    }
  }

  .footer-links {
    display: flex;
    width: fit-content;
    margin: 0 auto;
    gap: 1rem;

    a {
      font-size: 0.875rem;
      color: var(--light-gray);
    }

    @media screen and (max-width: 640px) {
      gap: 0.5rem;

      a {
        font-size: 0.75rem;
      }
    }
  }
}
