@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 working dark page canvas below the footer. Isolate only the top
   status-bar color on touch devices with a solid, viewport-attached sky edge.
   WebKit samples 4px inward with a 2px sample, so a 1px strip is insufficient. */
.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__logo {
  position: absolute;
  z-index: 2;
  top: max(4.59%, calc(env(safe-area-inset-top, 0px) + 16px));
  left: 50%;
  width: 82px;
  height: auto;
  filter: invert(1);
  transform: translateX(-50%);
}

.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;
}

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

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

.download-button:hover {
  background: #171717;
  transform: translateY(-2px);
}

.download-button:active {
  transform: translateY(0) scale(0.98);
}

.download-button:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px #000;
}

.site-footer {
  padding: clamp(48px, 6vw, 72px) max(clamp(24px, 5vw, 48px), env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) max(clamp(24px, 5vw, 48px), env(safe-area-inset-left, 0px));
  color: #fff;
  background: #0c0d0e;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: minmax(116px, 1fr) auto;
  max-width: 1280px;
  margin: 0 auto;
  gap: 48px 40px;
}

.site-footer__brand {
  align-self: start;
  justify-self: start;
  line-height: 0;
}

.site-footer__brand img {
  display: block;
  width: 116px;
  height: auto;
}

.site-footer__nav {
  display: grid;
  grid-template-columns: repeat(3, max-content);
  align-self: start;
  gap: clamp(36px, 6vw, 80px);
}

.footer-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 11px;
}

.footer-group h2 {
  margin: 0 0 3px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.footer-group a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  text-decoration: none;
  transition:
    color 160ms ease,
    opacity 160ms ease;
}

.footer-group a:hover {
  color: #fff;
}

.footer-group a:focus-visible,
.site-footer__brand:focus-visible {
  border-radius: 3px;
  outline: 2px solid #fff;
  outline-offset: 5px;
}

.site-footer__copyright {
  grid-column: 1 / -1;
  align-self: end;
  margin: 0;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

@media (min-width: 641px) and (max-width: 900px) {
  .site-footer__inner {
    grid-template-columns: minmax(116px, 1fr) auto;
    column-gap: 32px;
  }

  .site-footer__nav {
    gap: clamp(24px, 4vw, 36px);
  }
}

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

  .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;
  }

  .download-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;
  }

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

  .site-footer {
    padding: 40px max(22px, env(safe-area-inset-right, 0px)) calc(26px + env(safe-area-inset-bottom, 0px)) max(22px, env(safe-area-inset-left, 0px));
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    row-gap: 0;
  }

  .site-footer__brand img {
    width: 88px;
  }

  .site-footer__nav {
    grid-row: 2;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    margin-top: 26px;
    gap: 26px 24px;
  }

  .footer-group--company {
    grid-row: span 2;
  }

  .footer-group {
    gap: 11px;
  }

  .footer-group h2 {
    margin-bottom: 3px;
    font-size: 15px;
  }

  .footer-group a {
    font-size: 15px;
  }

  .site-footer__copyright {
    grid-row: 3;
    margin-top: 30px;
    font-size: 13px;
  }
}

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

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

  .site-footer {
    padding-inline: 20px;
  }

  .site-footer__nav {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-group--company {
    grid-row: auto;
  }
}

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

  .hero {
    top: 35%;
  }

  .download-button {
    margin-top: 26px;
  }
}

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

  .hero {
    top: 28%;
  }

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

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

@media (prefers-reduced-motion: reduce) {
  .download-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%);
  }
}
