@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: #ffffff;
  color: #0d1b2a;
  -webkit-font-smoothing: antialiased;
}

/* ─── Page layout ───────────────────────────────── */
.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  gap: 0;
}

/* ─── App header ────────────────────────────────── */
.app-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 0;
}

.app-header__text {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ─── App icon ──────────────────────────────────── */
.app-icon {
  width: 120px;
  height: 120px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: 20px;
}

.app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── Title ─────────────────────────────────────── */
.title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #0d1b2a;
  margin-bottom: 6px;
}

/* ─── Subtitle ──────────────────────────────────── */
.subtitle {
  font-size: 17px;
  font-weight: 400;
  color: #6b7d94;
  margin-bottom: 28px;
  text-align: center;
}

/* ─── Screenshots — desktop row ─────────────────── */
.screenshots-wrap { margin-bottom: 28px; width: 100%; }

.screenshots-clip { /* only used on mobile */ }

.sc-nav  { display: none; }
.sc-dots { display: none; }
.sc-btn  { display: none; }

.screenshots {
  display: flex;
  gap: 14px;
  justify-content: center;
}

.screenshot {
  height: min(34vh, 260px);
  width: auto;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  cursor: zoom-in;
  transition: transform 0.2s, box-shadow 0.2s;
}
.screenshot:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* ─── Stats ─────────────────────────────────────── */
.stats {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.stat__value {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #0d1b2a;
}

.stat__label {
  font-size: 12px;
  color: #8a99ac;
  text-align: center;
}

.stat__divider {
  width: 1px;
  height: 32px;
  background: #e2e8f0;
}

/* ─── Google Play badge ─────────────────────────── */
.gplay-badge {
  display: inline-block;
  text-decoration: none;
  transition: opacity 0.15s;
}
.gplay-badge:hover { opacity: 0.85; }
.gplay-badge img { display: block; }

/* ─── Lightbox ──────────────────────────────────── */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lightbox.open {
  opacity: 1;
  pointer-events: all;
}

.lightbox__img {
  max-height: 90vh;
  max-width: 90vw;
  border-radius: 20px;
  object-fit: contain;
  box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.lightbox__close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: rgba(255,255,255,0.12);
  border: none;
  color: #fff;
  font-size: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.lightbox__close:hover { background: rgba(255,255,255,0.25); }

/* ─── Footer ────────────────────────────────────── */
.footer {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #8a99ac;
}

.footer__link {
  color: #8a99ac;
  text-decoration: none;
}
.footer__link:hover { color: #0d1b2a; }

.footer__sep { opacity: 0.5; }

/* ─── Responsive ────────────────────────────────── */
@media (max-width: 600px) {
  .page { justify-content: flex-start; padding-top: 32px; }

  .app-header {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin-bottom: 12px;
    width: 100%;
  }
  .app-header__text { align-items: flex-start; }
  .app-icon { width: 64px; height: 64px; border-radius: 16px; margin-bottom: 0; flex-shrink: 0; }
  .title { font-size: 22px; margin-bottom: 2px; }
  .subtitle { font-size: 13px; margin-bottom: 0; text-align: left; }

  /* slider */
  .screenshots-wrap { margin-bottom: 16px; }

  .screenshots-clip {
    overflow: hidden;
    width: 100%;
    margin-bottom: 12px;
    touch-action: pan-y;
  }

  .screenshots {
    display: flex;
    gap: 12px;
    justify-content: flex-start;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
  }

  .screenshot {
    flex: 0 0 auto;
    width: 42vw;
    height: calc(42vw * 16 / 9);
    aspect-ratio: 9 / 16;
    transition: none;
    transform: none !important;
    box-shadow: none;
  }

  /* nav row: [‹] dots [›] */
  .sc-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
  }

  .sc-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1.5px solid #e2e8f0;
    background: #fff;
    font-size: 22px;
    color: #6b7d94;
    cursor: pointer;
    flex-shrink: 0;
    transition: border-color 0.15s, color 0.15s;
  }
  .sc-btn:hover { border-color: #0d1b2a; color: #0d1b2a; }

  .sc-dots {
    display: flex;
    gap: 6px;
  }
  .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: none;
    background: #d0d8e4;
    cursor: pointer;
    padding: 0;
    transition: background 0.2s, transform 0.2s;
  }
  .dot.active { background: #0d1b2a; transform: scale(1.3); }

  .stats { gap: 14px; }
  .stat__value { font-size: 18px; }
  .stat__label { font-size: 11px; }
  .stat__divider { height: 24px; }
}

@media (max-width: 360px) {
  .app-icon { width: 52px; height: 52px; border-radius: 12px; }
  .title { font-size: 18px; }
  .subtitle { font-size: 12px; }
  .screenshot { width: 52vw; height: calc(52vw * 16 / 9); }
  .stats { gap: 10px; }
  .stat__value { font-size: 15px; }
  .stat__label { font-size: 10px; }
  .stat__divider { height: 20px; }
}
