:root {
  color-scheme: light dark;
  --ink: #161616;
  --muted: rgba(22, 22, 22, 0.66);
  --button-bg: #111111;
  --button-ink: #f7f7f3;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #f7f7f3;
    --muted: rgba(247, 247, 243, 0.72);
    --button-bg: #f7f7f3;
    --button-ink: #151515;
  }
}

* {
  box-sizing: border-box;
}

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

body {
  background: light-dark(#f4f4f1, #111111);
  color: var(--ink);
}

a {
  color: inherit;
  text-decoration: none;
}

.showcase {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
}

.wallpaper,
.wallpaper img,
.bar-layer,
.bar-layer img,
.launcher-layer,
.launcher-layer img {
  display: block;
}

.wallpaper,
.bar-layer,
.launcher-layer {
  position: absolute;
}

.wallpaper {
  inset: 0;
}

.wallpaper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

.bar-layer {
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  height: 42px;
}

.bar-layer img {
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.launcher-layer {
  left: 6px;
  bottom: 48px;
  z-index: 2;
  width: min(548px, calc(100vw - 12px));
  aspect-ratio: 1096 / 1200;
}

.launcher-layer img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.download {
  position: absolute;
  right: clamp(180px, 18vw, 280px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 12px;
  text-align: right;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 680px);
  align-items: start;
  gap: 14px 32px;
  width: 100%;
  margin: 0;
  padding: 20px clamp(24px, 4vw, 64px) 24px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.footer-identity {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: flex-start;
}

.footer-identity span,
.footer-privacy {
  min-width: 0;
}

.footer-privacy {
  margin: 0;
  max-width: 680px;
}

.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

h1,
p {
  margin: 0;
}

h1 {
  font-size: clamp(38px, 5vw, 76px);
  line-height: 0.94;
  letter-spacing: 0;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 8px;
  background: var(--button-bg);
  color: var(--button-ink);
  font-size: 15px;
  font-weight: 720;
}

p {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 760px) {
  .showcase {
    min-height: 100svh;
  }

  .wallpaper img {
    object-position: 44% bottom;
  }

  .launcher-layer {
    left: 50%;
    bottom: 50px;
    width: min(92vw, 365px);
    transform: translateX(-50%);
  }

  .bar-layer {
    overflow: hidden;
  }

  .bar-layer img {
    width: 1512px;
    max-width: none;
  }

  .download {
    left: 20px;
    right: 20px;
    top: clamp(46px, 15svh, 96px);
    transform: none;
    align-items: center;
    max-width: min(320px, calc(100vw - 40px));
    margin: 0 auto;
    text-align: center;
  }

  h1 {
    font-size: clamp(42px, 15vw, 62px);
  }

  p {
    font-size: 13px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    padding: 16px 20px 20px;
  }

  .footer-identity {
    gap: 8px 14px;
  }
}

@media (max-width: 380px) and (max-height: 720px) {
  .launcher-layer {
    width: min(86vw, 330px);
  }

  .download {
    top: 42px;
    gap: 10px;
  }
}

@media (max-height: 520px) and (orientation: landscape) {
  .launcher-layer {
    left: 6px;
    bottom: 48px;
    width: min(34vw, 330px);
    transform: none;
  }

  .bar-layer {
    overflow: hidden;
  }

  .bar-layer img {
    width: 1512px;
    max-width: none;
  }

  .download {
    right: clamp(80px, 12vw, 180px);
    top: 50%;
    transform: translateY(-50%);
    align-items: flex-end;
    text-align: right;
  }
}
