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

:root {
  --bg: #f8f7f4;
  --text: #72716f;
  --text-muted: rgba(114, 113, 111, 0.7);
  --headline: #058dff;
  --badge-border: #02b7ff;
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 1125px;
  margin: 0 auto;
  padding: 60px 24px 0;
}

.logo {
  display: block;
  width: 180px;
  height: auto;
  flex-shrink: 0;
  overflow: visible;
  animation: fade-up 0.7s ease both;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 100%;
  padding: 40px 0 0;
  overflow: clip;
}

.copy {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 720px;
  text-align: center;
  letter-spacing: -0.4224px;
  animation: fade-up 0.7s ease 0.1s both;
}

h1 {
  font-size: 28px;
  font-weight: 500;
  line-height: normal;
  color: var(--headline);
}

h1 strong {
  font-weight: 700;
}

.lede {
  font-size: 18px;
  font-weight: 500;
  line-height: 28px;
  color: var(--text-muted);
}

.app-store {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 248px;
  height: 73px;
  padding: 0 20px 0 24px;
  background: #000;
  border: 3px solid var(--badge-border);
  border-radius: 18px;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  animation: fade-up 0.7s ease 0.2s both;
}

.app-store:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 183, 255, 0.25);
}

.app-store:focus-visible {
  outline: 2px solid var(--badge-border);
  outline-offset: 3px;
}

.app-store__icon {
  display: block;
  width: 38px;
  height: 47px;
  flex-shrink: 0;
}

.app-store__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 0;
}

.app-store__caption {
  display: block;
  width: 143px;
  height: auto;
}

.app-store__title {
  display: block;
  width: 147px;
  height: auto;
}

.phone {
  position: relative;
  width: 428px;
  max-width: 100%;
  height: 750px;
  overflow: hidden;
  flex-shrink: 0;
  animation: fade-up 0.9s ease 0.3s both;
}

.phone__image {
  position: absolute;
  left: 50%;
  top: calc(50% - 1.5px);
  width: 893px;
  height: 893px;
  max-width: none;
  transform: translate(-50%, -50%);
  object-fit: cover;
  pointer-events: none;
  user-select: none;
  animation: float 6s ease-in-out 1s infinite;
}

@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes float {
  0%,
  100% {
    transform: translate(-50%, -50%);
  }
  50% {
    transform: translate(-50%, calc(-50% - 8px));
  }
}

@media (max-width: 720px) {
  .page {
    padding: 40px 20px 0;
  }

  h1 {
    font-size: 22px;
  }

  .lede {
    font-size: 16px;
  }

  .phone {
    width: min(100%, 360px);
    height: 630px;
  }

  .phone__image {
    width: 750px;
    height: 750px;
  }
}

@media (max-width: 420px) {
  .logo {
    width: 150px;
  }

  .app-store {
    width: 220px;
    height: 64px;
    gap: 12px;
    padding: 0 16px 0 18px;
  }

  .app-store__icon {
    width: 32px;
    height: 40px;
  }

  .app-store__caption {
    width: 120px;
  }

  .app-store__title {
    width: 124px;
  }

  .phone {
    height: 560px;
  }

  .phone__image {
    width: 670px;
    height: 670px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .copy,
  .app-store,
  .phone,
  .phone__image {
    animation: none;
  }

  .app-store:hover {
    transform: none;
  }
}
