@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-semibold.ttf") format("truetype");
  font-style: normal;
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("assets/manrope-medium.ttf") format("truetype");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --viewport-height: 100svh;
  --page-fallback: #91c9f7;
  --browser-edge: var(--page-fallback);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-width: 0;
  min-height: 100%;
  margin: 0;
}

html {
  background: var(--browser-edge);
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  color: #000;
  background: var(--browser-edge);
  font-family: "Manrope", Arial, sans-serif;
  overflow-x: hidden;
  overflow-y: auto;
}

/* Keep the mobile browser status bar aligned with the sky background. */
.browser-top-edge {
  display: none;
}

@media (pointer: coarse) {
  .browser-top-edge {
    display: block;
    position: fixed;
    z-index: 3;
    top: 0;
    right: 0;
    left: 0;
    height: max(8px, env(safe-area-inset-top, 0px));
    background: var(--page-fallback);
    pointer-events: none;
  }
}

.landing {
  position: relative;
  width: 100%;
  height: var(--viewport-height);
  min-height: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--page-fallback);
}

.landing__sky {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  user-select: none;
}

.cloud-field {
  position: absolute;
  z-index: 1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-cloud {
  position: absolute;
  left: 0;
  display: block;
  height: auto;
  max-width: none;
  opacity: var(--cloud-opacity);
  filter: blur(var(--cloud-blur));
  user-select: none;
  will-change: transform;
  animation: cloud-drift var(--cloud-duration) linear var(--cloud-delay) infinite;
}

.floating-cloud--far {
  --cloud-opacity: 0.17;
  --cloud-blur: 1.6px;
  --cloud-duration: 68s;
  --cloud-delay: -47s;
  top: 13%;
  width: clamp(270px, 27vw, 430px);
}

.floating-cloud--middle {
  --cloud-opacity: 0.23;
  --cloud-blur: 0.8px;
  --cloud-duration: 54s;
  --cloud-delay: -16s;
  top: 48%;
  width: clamp(360px, 39vw, 620px);
}

.floating-cloud--near {
  --cloud-opacity: 0.28;
  --cloud-blur: 0.25px;
  --cloud-duration: 43s;
  --cloud-delay: -34s;
  top: 75%;
  width: clamp(440px, 48vw, 760px);
}

@keyframes cloud-drift {
  from {
    transform: translate3d(-110%, 0, 0);
  }

  to {
    transform: translate3d(calc(100vw + 10%), 0, 0);
  }
}

.landing__header {
  position: absolute;
  z-index: 2;
  top: max(4.59%, calc(env(safe-area-inset-top, 0px) + 16px));
  right: max(clamp(24px, 4vw, 48px), env(safe-area-inset-right, 0px));
  left: max(clamp(24px, 4vw, 48px), env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing__logo {
  display: block;
  width: 124px;
  height: auto;
}

.social-link {
  display: flex;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  align-items: center;
  justify-content: center;
  color: #000;
  border-radius: 50%;
  transition: background-color 160ms ease;
}

.social-link:hover {
  background: rgb(255 255 255 / 25%);
}

.social-link:focus-visible {
  outline: 2px solid #000;
  outline-offset: 3px;
}

.hero {
  position: absolute;
  z-index: 2;
  top: 38.96%;
  left: 50%;
  display: flex;
  width: min(100% - 40px, 560px);
  flex-direction: column;
  align-items: center;
  transform: translateX(-50%);
  text-align: center;
}

.hero h1 {
  width: 100%;
  margin: 0;
  color: #000;
  font-size: 48px;
  font-weight: 700;
  line-height: 58px;
  letter-spacing: 0;
}

.hero h1 span {
  display: block;
}

.coming-soon-button {
  display: inline-flex;
  min-height: 56px;
  margin-top: 54px;
  padding: 16px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 100px;
  font-family: inherit;
  opacity: 1;
  -webkit-text-fill-color: #fff;
  color: #fff;
  background: #000;
  font-size: 20px;
  font-weight: 600;
  line-height: 24px;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 160ms ease, background-color 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.coming-soon-button:hover {
  background: #171717;
}

.coming-soon-button:active {
  transform: scale(0.98);
}

.coming-soon-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.coming-soon-button img {
  display: block;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

.copyright {
  position: absolute;
  z-index: 2;
  bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  left: 24px;
  right: 24px;
  margin: 0;
  color: rgb(0 0 0 / 50%);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center;
}

@media (max-width: 640px) {
  .landing__header {
    top: max(clamp(20px, 4.59svh, 36px), calc(env(safe-area-inset-top, 0px) + 16px));
  }

  .landing__logo {
    width: 108px;
  }

  .floating-cloud--far {
    top: 16%;
    width: 280px;
  }

  .floating-cloud--middle {
    top: 52%;
    width: 390px;
  }

  .floating-cloud--near {
    top: 78%;
    width: 470px;
  }

  .hero {
    top: 36%;
    width: calc(100% - 24px);
  }

  .hero h1 {
    font-size: clamp(28px, 9.5vw, 42px);
    line-height: 1.16;
  }

  .coming-soon-button {
    min-height: clamp(48px, 6.4vh, 54px);
    margin-top: clamp(28px, 6vh, 44px);
    padding: 12px 14px;
    gap: 8px;
    font-size: clamp(15px, 4.7vw, 18px);
    line-height: 22px;
  }

  .coming-soon-button img {
    width: clamp(20px, 6vw, 24px);
    height: clamp(20px, 6vw, 24px);
    flex-basis: clamp(20px, 6vw, 24px);
  }

}

@media (max-width: 340px) {
  .hero {
    width: calc(100% - 20px);
  }

  .hero h1 {
    font-size: clamp(27px, 9.2vw, 31px);
  }

}

@media (max-height: 540px) and (orientation: portrait) {
  .landing__header {
    top: calc(12px + env(safe-area-inset-top, 0px));
  }

  .hero {
    top: 35%;
  }

  .coming-soon-button {
    margin-top: 26px;
  }
}

@media (max-height: 650px) and (orientation: landscape) {
  .landing__header {
    top: calc(8px + env(safe-area-inset-top, 0px));
  }

  .hero {
    top: 28%;
  }

  .hero h1 {
    font-size: clamp(28px, 6vw, 34px);
    line-height: 1.12;
  }

  .coming-soon-button {
    min-height: 46px;
    margin-top: 18px;
    padding-block: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .social-link,
  .coming-soon-button {
    transition: none;
  }

  .floating-cloud {
    animation: none;
  }

  .floating-cloud--far {
    transform: translateX(-20%);
  }

  .floating-cloud--middle {
    left: auto;
    right: -22%;
  }

  .floating-cloud--near {
    transform: translateX(28%);
  }
}
