*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  background: linear-gradient(135deg, #edb4d0 0%, #e6c0dc 45%, #d9dff6 100%);
  background-attachment: fixed;
  color: #000000;
  font-family: Inter, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

a:hover {
  opacity: 0.7;
}

/* —— Top navigation —— */
.nav {
  position: relative;
  z-index: 10;
  flex-shrink: 0;
  width: 100%;
  padding: 36px 24px 0;
  display: flex;
  justify-content: center;
  background: transparent;
}

.nav__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  column-gap: 80px;
  row-gap: 12px;
  max-width: 920px;
}

.nav__links a {
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: #000000;
}

.nav__links a:hover {
  opacity: 0.7;
  text-decoration: none;
}

/* Mobile-only legal footer — hidden on desktop/tablet */
.site-footer {
  display: none;
}

/* —— Hero —— */
.hero {
  position: relative;
  z-index: 1;
  flex: 1;
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 48px 56px 40px;
  display: grid;
  grid-template-columns: minmax(0, 40%) minmax(0, 60%);
  align-items: center;
  gap: 64px;
  min-height: 0;
}

.hero__info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding-left: 32px;
  min-width: 0;
}

.app-icon-wrap {
  position: relative;
  width: 92px;
  height: 92px;
  margin-bottom: 20px;
}

.app-icon {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 22px;
  object-fit: contain;
  object-position: center;
}

.app-icon-fallback {
  display: none;
}

.app-name {
  margin: 0;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #000000;
}

.app-subtitle {
  margin: 7px 0 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #000000;
}

.app-store-link {
  display: inline-block;
  margin-top: 35px;
  text-decoration: none;
  line-height: 0;
}

.app-store-link:hover {
  opacity: 0.85;
}

.app-store-badge {
  display: block;
  width: 150px;
  max-width: 150px;
  height: auto;
}

.hero__preview {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  max-width: 540px;
  justify-self: end;
  margin: 0;
  min-width: 0;
}

.hero-image {
  display: block;
  width: 100%;
  max-width: 540px;
  max-height: calc(100vh - 180px);
  height: auto;
  object-fit: contain;
  object-position: center;
  user-select: none;
  pointer-events: none;
}

.hero-image-fallback {
  display: none;
  width: 100%;
  max-width: 540px;
  aspect-ratio: 11 / 9;
  align-items: center;
  justify-content: center;
  border: 1px dashed rgba(0, 0, 0, 0.25);
  border-radius: 16px;
  color: #444444;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
  padding: 24px;
}

.hero-image-fallback.is-visible {
  display: flex;
}

/* —— Tablet —— */
@media (max-width: 1000px) and (min-width: 768px) {
  .nav {
    padding-top: 28px;
  }

  .nav__links {
    column-gap: 40px;
    row-gap: 12px;
  }

  .hero {
    max-width: 960px;
    padding: 36px 32px 32px;
    gap: 40px;
    grid-template-columns: 42% 58%;
  }

  .hero__info {
    padding-left: 8px;
  }

  .hero__preview {
    max-width: 420px;
  }

  .hero-image,
  .hero-image-fallback {
    max-width: 420px;
    max-height: calc(100vh - 160px);
  }
}

/* —— Mobile —— */
@media (max-width: 767px) {
  body {
    min-height: 100vh;
  }

  .nav {
    padding: 28px 16px 0;
  }

  .nav__links {
    column-gap: 40px;
    row-gap: 0;
    max-width: none;
  }

  .nav__links a {
    font-size: 11px;
    color: #000000;
  }

  .nav__link--legal {
    display: none;
  }

  .hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    gap: 40px;
    min-height: auto;
    padding: 40px 20px 24px;
    max-width: 100%;
  }

  .hero__info {
    align-items: center;
    text-align: center;
    padding-left: 0;
    width: 100%;
  }

  .hero__preview {
    width: 90vw;
    max-width: 90vw;
    justify-self: center;
  }

  .hero-image,
  .hero-image-fallback {
    width: 90vw;
    max-width: 90vw;
    max-height: none;
  }

  .app-store-badge {
    width: 148px;
  }

  .site-footer {
    display: block;
    width: 100%;
    padding: 40px 20px 36px;
    text-align: center;
  }

  .site-footer__links {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 28px;
  }

  .site-footer__links a {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.3;
    color: #444444;
    text-decoration: none;
    white-space: nowrap;
  }

  .site-footer__links a:hover {
    opacity: 0.7;
    text-decoration: none;
  }
}

/* Desktop: keep content in first viewport without horizontal scroll */
@media (min-width: 1001px) {
  html,
  body {
    height: 100%;
    overflow-y: hidden;
  }

  .hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }
}

@media (min-width: 1440px) {
  .hero {
    max-width: 1240px;
    gap: 72px;
    padding-top: 48px;
  }

  .hero__preview {
    max-width: 550px;
  }

  .hero-image,
  .hero-image-fallback {
    max-width: 550px;
  }
}
