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

html,
body {
  height: 100%;
  overflow: hidden;
}

body {
  font-family: Inter, system-ui, sans-serif;
  color: #fff;
  background: #000;
}

a {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
}

.backdrop {
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0, 0, 0, 0.48), rgba(0, 0, 0, 0.48)),
    url("images/bg.jpg") center / cover no-repeat;
  z-index: 0;
}

.hero,
.menu {
  position: relative;
  z-index: 1;
}

.top {
  display: none;
}

.logo {
  display: block;
  height: auto;
}

.logo--desktop {
  width: min(339px, 28vw);
  margin-bottom: 28px;
}

.logo--mobile {
  display: none;
  width: 219px;
}

.showcase {
  position: relative;
  z-index: 3;
  flex: 0 0 auto;
  align-self: stretch;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: max-content;
}

.nav {
  position: absolute;
  top: 40px;
  right: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  white-space: nowrap;
}

.phone {
  position: relative;
  height: min(807px, 78dvh);
  aspect-ratio: 879 / 1832;
  width: auto;
}

.nav__tg {
  display: flex;
  width: 30px;
  height: 30px;
}

.nav__tg img {
  width: 30px;
  height: 30px;
}

.menu-btn {
  display: none;
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  cursor: pointer;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 4px 3px;
}

.menu-btn span {
  display: block;
  height: 2px;
  width: 100%;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-btn.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-btn.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-btn.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.menu {
  display: none;
}

.hero {
  height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  padding: 0 56px;
}

.hero__inner {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: clamp(72px, 8vw, 160px);
  width: auto;
  max-width: 100%;
}

.copy {
  position: relative;
  max-width: 760px;
  flex: 0 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.copy h1 {
  font-size: 76px;
  font-weight: 800;
  letter-spacing: 0.55px;
  line-height: 1.05;
  margin-bottom: 28px;
}

.lead {
  font-size: 28px;
  font-weight: 400;
  line-height: 1.379;
  letter-spacing: 0.79px;
  max-width: 729px;
  margin-bottom: 50px;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  width: auto;
  padding: 20px 25px;
  border-radius: 16px;
  background: linear-gradient(-11.4deg, rgb(230, 28, 88) 0%, rgb(251, 53, 89) 100%);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 0.79px;
  line-height: 1.379;
  white-space: nowrap;
}

.cta:hover {
  filter: brightness(1.06);
}

.phone__frame {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  pointer-events: none;
}

.phone__screen {
  position: absolute;
  z-index: 1;
  top: 2.29%;
  left: 4.32%;
  width: 91.47%;
  height: 95.42%;
  overflow: hidden;
  background: #0a0a0a;
  border-radius: 15.5% / 7.6%;
}

.slides {
  display: flex;
  width: 100%;
  height: 100%;
}

.slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

@media (prefers-reduced-motion: reduce) {
  .slides {
    transition: none !important;
  }
}

@media (max-width: 1100px) {
  .hero {
    padding: 0 40px;
  }

  .copy {
    max-width: 560px;
  }

  .copy h1 {
    font-size: 52px;
  }

  .lead {
    font-size: 20px;
  }

  .cta {
    font-size: 22px;
    padding: 16px 22px;
  }

  .nav {
    gap: 24px;
  }
}

@media (max-width: 820px) {
  html,
  body {
    height: auto;
    min-height: 100%;
    overflow-x: hidden;
    overflow-y: auto;
  }

  .top {
    display: flex;
    position: absolute;
    z-index: 5;
    top: 0;
    left: 0;
    right: 0;
    align-items: center;
    justify-content: space-between;
    padding: 34px 24px 0;
  }

  .logo--desktop {
    display: none;
  }

  .logo--mobile {
    display: block;
    pointer-events: none;
  }

  .showcase .nav {
    display: none;
  }

  .menu-wrap {
    position: relative;
    flex: 0 0 auto;
  }

  .menu-btn {
    display: flex;
  }

  .menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    z-index: 6;
    min-width: 248px;
    padding: 8px 0;
    border-radius: 12px;
    background: #fff;
    color: #1a1a1e;
    box-shadow: 0 8px 24px rgba(20, 15, 42, 0.16);
    display: none;
    flex-direction: column;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.3;
  }

  .menu.is-open {
    display: flex;
  }

  .menu a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    color: #1a1a1e;
  }

  .menu a:hover,
  .menu a:active {
    background: #f0f0f3;
  }

  .menu__tg {
    gap: 12px;
  }

  .menu__tg img {
    width: 20px;
    height: 20px;
    filter: brightness(0);
  }

  .hero {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100dvh;
    padding: 0;
    overflow: visible;
  }

  .hero__inner {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    width: 100%;
    height: auto;
    min-height: 100dvh;
    overflow: visible;
    gap: 20px;
  }

  .showcase {
    display: contents;
  }

  .copy {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    width: auto;
    max-width: none;
    flex: 0 0 auto;
    padding: 108px 24px 0;
    z-index: 2;
  }

  .copy h1 {
    font-size: 31px;
    letter-spacing: 0.55px;
    margin-bottom: 14px;
  }

  .lead {
    font-size: 16px;
    letter-spacing: 0.79px;
    margin-bottom: 28px;
  }

  .lead__break-desktop {
    display: none;
  }

  .cta {
    font-size: 18px;
    font-weight: 700;
    padding: 10px 25px;
    border-radius: 10px;
  }

  .phone {
    position: relative;
    left: 50%;
    right: auto;
    top: auto;
    transform: translateX(-50%);
    width: 309px;
    height: 645px;
    max-height: none;
    aspect-ratio: auto;
    margin: 8px 0 32px;
    flex: 0 0 auto;
    z-index: 1;
  }
}

@media (max-width: 400px) {
  .copy {
    padding-left: 24px;
    padding-right: 24px;
  }

  .logo--mobile {
    width: 180px;
  }

  .phone {
    width: min(309px, 82vw);
    height: auto;
    aspect-ratio: 309 / 645;
  }
}
