:root {
  --white: #fefefe;
  --blue: #4ae8fe;
  --dark-blue: #000314;
  --gradient-color: linear-gradient(128deg, #8430df 0%, #27c6f2 100%);
  --font-family: "Inter", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}
body {
  font-family: var(--font-family);
  background-color: var(--dark-blue);
  color: var(--white);
  font-size: 20px;
  font-weight: 400;

  overflow: hidden;
}

@supports (-webkit-touch-callout: none) {
  body:has(.hero) {
    overflow: hidden;
  }
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 0;
}

p:last-child {
  margin-bottom: 0;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

a {
  font-family: inherit;
  color: currentColor;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  color: currentColor;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero__link,
.bonus-link,
.offer-link {
  position: relative;
  z-index: 999;
  display: block;
  border-radius: 30px;
  padding: 10px 54px;
  background: var(--gradient-color);

  font-weight: 700;
  font-size: 24px;
  text-align: center;
}

.hero__link {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.hero__link.visible {
  opacity: 1;
  transform: translateY(0);
}

.hidden {
  display: none;
}

/* HERO SECTION */
.hero {
  width: 100%;
  max-width: 768px;
  margin-inline: auto;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100dvh;
  min-height: 100vh;
  padding-top: clamp(32px, 6vh, 60px);
  padding-bottom: clamp(32px, 6vh, 62px);

  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  color: #fff;

  .hero__video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
  }

  .hero__title {
    width: 100%;
    max-width: 309px;
    text-align: center;
    font-weight: 600;
    font-size: 20px;
    span {
      color: var(--blue);
    }
  }

  .hero__link,
  .bonus-link,
  .offer-link {
    background: linear-gradient(90deg, #00d1ff, #b6ff2e);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 24px;
    padding: 16px 48px;
    transition: transform 0.3s;
    &:hover {
      transform: scale(1.05);
    }
  }
}

.is-ios .hero__link {
  margin-bottom: 40px;
}

.preloader {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at center, #050611, #000);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 999;
  overflow: hidden;
  animation: fadeOut 0.8s ease forwards;
  animation-delay: 3s;
}

@keyframes fadeOut {
  to {
    opacity: 0;
    visibility: hidden;
  }
}

.preloader p {
  color: #9defff;
  font-family: monospace;
  letter-spacing: 2px;
  margin-top: 16px;
  animation: blink 1.5s infinite alternate;
}

@keyframes blink {
  from {
    opacity: 0.5;
  }
  to {
    opacity: 1;
  }
}
.stars {
  position: absolute;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, #9defff 0 1px, transparent 1px),
    radial-gradient(circle, #b6ff2e 0 1px, transparent 1px);
  background-size: 50px 50px;
  animation: spinStars 6s linear infinite;
  filter: drop-shadow(0 0 6px #b6ff2e);
}

@keyframes spinStars {
  from {
    transform: rotate(0deg) scale(1);
  }
  to {
    transform: rotate(360deg) scale(1.1);
  }
}

.magic-egg {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100vh;
  padding-bottom: 76px;
  position: relative;

  .magic-egg__container {
    position: relative;
    width: 100%;
    max-width: 430px;
    margin: 0 auto;
    height: 554px;

    touch-action: none;
    user-select: none;
  }

  .magic-egg__wrapper {
    position: absolute;
    pointer-events: none;
    width: 100%;
    left: 50%;
    transform: translate(-50%);

    svg {
      width: 100%;
    }
  }
  .magic-egg__wrapper--top {
    top: -15px;
  }
  .magic-egg__wrapper--bottom {
    bottom: -70px;
  }

  .magic-egg__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 2;
  }

  .magic-egg__img--open {
    opacity: 0;
    transition: opacity 0.8s ease;
  }

  .magic-egg__img--closed {
    opacity: 1;
    transition: opacity 0.8s ease;
  }

  &.magic-egg--revealed {
    .magic-egg__img--open {
      opacity: 1;
    }
    .magic-egg__img--closed {
      opacity: 0;
    }
  }

  div {
    position: relative;
    z-index: 3;

    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 12px;
  }

  .magic-egg__text {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 4;
    text-align: center;
    width: 100%;

    p {
      font-size: 18px;
      line-height: 1.4;
    }
  }

  .magic-egg__reveal-btn {
    position: fixed !important;
    bottom: 80px !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 999 !important;

    display: block;
    width: auto;
    margin: 0 auto;

    background: linear-gradient(90deg, #00d1ff, #b6ff2e);
    color: #000;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 24px;
    padding: 16px 48px;
    font-size: 20px;
    white-space: nowrap;

    opacity: 1;
    animation: fadeInButton 0.6s ease forwards;

    &:hover {
      transform: translateX(-50%) scale(1.05) !important;
    }
  }
}

@keyframes fadeInButton {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}


.netflix {
  width: 100%;
  max-width: 430px;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  justify-content: end;
  height: 100vh;

  padding-bottom: 129px;

  background-image: url(/img/netflix-bg.jpg);
  background-repeat: no-repeat;
  background-size: contain;
  background-position: top;

  img {
    padding-inline: 32px;
  }

  .netflix__title {
    font-weight: 400;
    font-size: 32px;
    text-align: center;
  }

  .disclaimer {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.6);
    text-align: center;
    max-width: 350px;
    padding: 0 20px;
    line-height: 1.4;
  }
}

.footer {
  background: rgba(0, 3, 20, 0.8);
  padding: 20px;
  text-align: center;

  .footer__nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 10px;

    a {
      color: rgba(255, 255, 255, 0.7);
      font-size: 14px;
      transition: color 0.3s;

      &:hover {
        color: #00d1ff;
      }
    }
  }

  .footer__copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
  }
}
