@font-face {
  font-family: "Archivo";
  src: url("assets/landing/archivo.ttf") format("truetype");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --pink: #cc009e;
  --yellow: #fcee2a;
  --white: #ffffff;
  --focus: #5edfff;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
  background: #05050b;
}

body {
  overflow-x: hidden;
  font-family: "Archivo", Arial, sans-serif;
}

::selection {
  color: #08060d;
  background: var(--yellow);
}

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background-color: #05050b;
  background-image: url("assets/landing/figma/hero-background.jpg");
  background-repeat: no-repeat;
  background-position: center 43%;
  background-size: cover;
}

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(2, 3, 10, .88) 0%, rgba(2, 3, 10, .62) 31%, rgba(2, 3, 10, .06) 57%, rgba(2, 3, 10, .12) 100%),
    linear-gradient(180deg, rgba(2, 3, 10, .72) 0%, rgba(2, 3, 10, 0) 28%, rgba(2, 3, 10, .32) 100%);
}

.hero__canvas {
  position: relative;
  width: min(100vw, 1440px);
  min-height: max(720px, 100svh);
  margin: 0 auto;
}

.hero__logo,
.hero__benefits,
.hero__offer,
.hero__headline img,
.hero__store img {
  display: block;
  max-width: 100%;
  height: auto;
}

.hero__logo {
  position: absolute;
  top: 4.7%;
  left: 17.5%;
  width: 21.2%;
  filter: drop-shadow(0 8px 22px rgba(0, 0, 0, .55));
}

.hero__headline {
  position: absolute;
  top: 7.4%;
  left: 41.8%;
  width: 41.5%;
  height: 21%;
  margin: 0;
}

.hero__headline-download,
.hero__headline-order,
.hero__headline-hours {
  position: absolute;
}

.hero__headline-download {
  top: 18%;
  left: 0;
  width: 52.1%;
}

.hero__headline-order {
  top: 40%;
  left: 0;
  width: 51.8%;
}

.hero__headline-hours {
  top: 19%;
  left: 55.5%;
  width: 37.4%;
  filter: drop-shadow(0 0 10px rgba(204, 0, 158, .68));
}

.hero__benefits {
  position: absolute;
  top: 29.5%;
  left: 14.7%;
  width: 23.5%;
  height: 36%;
  object-fit: contain;
  object-position: left center;
}

.hero__registration {
  position: absolute;
  top: 69.8%;
  left: 19.7%;
  width: 31%;
  margin: 0;
  color: var(--white);
  font-size: clamp(24px, 2.63vw, 38px);
  font-weight: 600;
  line-height: 1.04;
  text-wrap: balance;
  text-shadow: 0 3px 10px rgba(0, 0, 0, .85);
}

.hero__registration strong {
  color: var(--yellow);
  font-weight: 700;
}

.hero__offer {
  position: absolute;
  top: 55.9%;
  left: 42.3%;
  width: 40.7%;
}

.hero__actions {
  position: absolute;
  top: 82.8%;
  left: 19.7%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 63.5%;
}

.hero__legal {
  position: absolute;
  bottom: 14px;
  left: 19.7%;
  width: 63.5%;
  margin: 0;
  color: rgba(255, 255, 255, .82);
  font-size: clamp(9px, .82vw, 12px);
  font-weight: 500;
  line-height: 1.35;
  text-shadow: 0 2px 7px rgba(0, 0, 0, .95);
}

.hero__downloads {
  display: flex;
  align-items: center;
  gap: clamp(8px, 1.1vw, 16px);
}

.hero__shop,
.hero__store {
  flex: 0 0 auto;
  transition: transform 180ms cubic-bezier(.16, 1, .3, 1), filter 180ms ease, background-color 180ms ease;
}

.hero__shop {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-width: 262px;
  min-height: 60px;
  padding: 12px 30px;
  border: 2px solid var(--pink);
  border-radius: 5px;
  color: var(--white);
  background: var(--pink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.hero__store {
  border-radius: 6px;
  text-decoration: none;
}

.hero__store--play {
  width: 203px;
}

.hero__store--apple {
  width: 180px;
}

.hero__store--apple img {
  width: 100%;
}

.hero__shop:hover,
.hero__store:hover {
  transform: translateY(-3px);
  filter: brightness(1.08);
}

.hero__shop:hover {
  color: var(--pink);
  background: var(--white);
}

.hero__shop:focus-visible,
.hero__store:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
}

@media (max-width: 960px) {
  .hero {
    min-height: 100svh;
    overflow: hidden;
    background-position: 60% top;
    background-size: auto 100svh;
  }

  .hero__shade {
    background:
      linear-gradient(180deg, rgba(2, 3, 10, .76) 0%, rgba(2, 3, 10, .2) 42%, rgba(2, 3, 10, .92) 78%, #05050b 100%),
      linear-gradient(90deg, rgba(2, 3, 10, .32), rgba(2, 3, 10, 0));
  }

  .hero__canvas {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    min-height: 100svh;
    padding: 18px 16px 34px;
  }

  .hero__logo {
    position: relative;
    top: auto;
    left: auto;
    width: min(46vw, 210px);
    transform: none;
  }

  .hero__headline {
    position: relative;
    top: auto;
    left: auto;
    width: min(86vw, 500px);
    height: min(30vw, 170px);
    margin-top: -10px;
    transform: none;
  }

  .hero__benefits {
    position: relative;
    top: auto;
    left: auto;
    width: min(48vw, 230px);
    height: auto;
    margin-top: 4px;
  }

  .hero__offer {
    position: relative;
    top: auto;
    left: auto;
    width: min(90vw, 540px);
    margin-top: 4px;
    transform: none;
  }

  .hero__registration {
    position: relative;
    top: auto;
    left: auto;
    width: min(88vw, 480px);
    margin: 12px 0 0;
    transform: none;
    font-size: clamp(24px, 7vw, 34px);
    text-align: center;
  }

  .hero__offer {
    order: 5;
  }

  .hero__registration {
    order: 4;
  }

  .hero__logo {
    order: 1;
  }

  .hero__headline {
    order: 2;
  }

  .hero__benefits {
    order: 3;
  }

  .hero__actions {
    position: relative;
    top: auto;
    left: auto;
    order: 6;
    flex-direction: column;
    justify-content: center;
    width: min(92vw, 620px);
    margin-top: 10px;
    transform: none;
  }

  .hero__legal {
    position: relative;
    inset: auto;
    order: 7;
    width: min(94vw, 620px);
    margin-top: 18px;
    font-size: 11px;
    text-align: center;
  }

  .hero__shop {
    width: min(88vw, 360px);
    min-width: 0;
    font-size: 22px;
  }

  .hero__downloads {
    justify-content: center;
    width: 100%;
    margin-top: 18px;
  }

  .hero__store--play,
  .hero__store--apple {
    width: min(42vw, 190px);
  }
}

@media (max-width: 520px) {
  .hero {
    background-position: 59% center;
  }

  .hero__canvas {
    min-height: 100svh;
    padding-inline: 12px;
  }

  .hero__logo {
    width: 174px;
  }

  .hero__headline {
    width: 92vw;
    height: 34vw;
  }

  .hero__benefits {
    width: 48vw;
  }

  .hero__offer {
    width: 94vw;
  }

  .hero__registration {
    width: 94vw;
  }
}

@media (min-width: 961px) and (max-height: 820px) {
  .hero__logo {
    top: 2%;
    width: 18.5%;
  }

  .hero__headline {
    top: 4.5%;
    width: 37%;
  }

  .hero__benefits {
    top: 31%;
    left: 18%;
    width: 15%;
  }

  .hero__registration {
    top: 70%;
    width: 28%;
    font-size: clamp(23px, 2.2vw, 31px);
  }

  .hero__offer {
    top: 59%;
    width: 37%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__shop,
  .hero__store {
    transition: none;
  }
}
