/* Mobile-first landing — тільки мобільна версія */

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

html {
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: #0a0a0a;
  color: #fff;
}

/* Контейнер ленду — на весь екран */
.landing {
  position: relative;
  min-height: 100dvh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding: 0 20px  env(safe-area-inset-bottom, 24px) 20px;
  padding-bottom: max(env(safe-area-inset-bottom), 56px);
}

/* Фон на весь екран, не обрізається */
.landing__bg {
  position: fixed;
  inset: 0;
  background: #0a0a0a url("images/background.jpg") no-repeat center center;
  background-size: cover;
  -webkit-background-size: cover;
}

/* Кнопка трохи нижче — знизу з відступом */
.landing__btn {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 320px;
  margin-bottom: 12px;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  transition: transform 0.25s ease, opacity 0.2s ease, filter 0.25s ease;
  -webkit-tap-highlight-color: transparent;
}

.landing__btn:hover {
  transform: scale(1.05);
  filter: brightness(1.08);
}

.landing__btn:active {
  transform: scale(0.97);
  opacity: 0.9;
}

.landing__btn img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  pointer-events: none;
}

/* Підтримка safe area (вирізи, домашня смуга) */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .landing {
    padding-bottom: calc(56px + env(safe-area-inset-bottom));
  }
}

/* Десктоп: контент по центру, фон на довжину екрану */
@media (min-width: 768px) {
  .landing__bg {
    background-size: contain;
    -webkit-background-size: contain;
  }

  .landing {
    max-width: 420px;
    margin: 0 auto;
    padding-left: 24px;
    padding-right: 24px;
    padding-bottom: 48px;
  }

  .landing__btn {
    max-width: 360px;
    margin-bottom: 16px;
  }
}
