:root {
  color-scheme: dark;
  --bg: #050505;
  --card: #1c1c1e;
  --card-2: #2c2c2e;
  --text: #f5f5f7;
  --muted: #9b9ba1;
  --blue: #0a84ff;
  --line: rgba(255,255,255,.12);
  --radius: 28px;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', sans-serif;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(circle at top, #1b1b20 0, var(--bg) 42%);
  color: var(--text);
  user-select: none;
}
button, a { font: inherit; }
a { color: var(--blue); text-decoration: none; font-weight: 700; }

.app-shell {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top) + 18px) 18px 96px;
}

.topbar {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  gap: 14px;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 10;
  padding: 10px 0 14px;
  backdrop-filter: blur(20px);
}

.back-btn,
.share-btn {
  width: 52px;
  height: 52px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(44,44,46,.7);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.back-btn svg,
.share-btn svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mini {
  display: flex;
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.brand-mini strong,
.brand-mini span,
.store-info h3,
.store-info p,
.store-info small,
.release-topline strong,
.release-topline span,
.mini-app-row strong,
.mini-app-row small {
  overflow-wrap: anywhere;
}

.brand-mini span,
.store-info small,
.mini-app-row small {
  display: block;
  color: var(--muted);
}

.app-icon,
.brand-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #fff, #dfe6ff);
  color: #050505;
  font-weight: 900;
  overflow: hidden;
  box-shadow: inset 0 -10px 24px rgba(0,0,0,.08);
}

.app-icon.large {
  width: 126px;
  height: 126px;
  font-size: 36px;
  border-radius: 30px;
}

.app-icon.medium {
  width: 74px;
  height: 74px;
  font-size: 23px;
  border-radius: 24px;
}

.app-icon.small {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  font-size: 16px;
}

.brand-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
}

.app-icon > img,
.brand-icon > img {
  max-width: 72%;
  max-height: 72%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.hero-card,
.feature-card,
.description-block {
  background: rgba(28,28,30,.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card {
  padding: 22px;
  margin-top: 8px;
}

.app-identity {
  display: flex;
  gap: 22px;
  align-items: center;
}

h1 {
  font-size: clamp(42px, 9vw, 72px);
  line-height: .95;
  margin: 0 0 10px;
  letter-spacing: -.05em;
}

p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.45;
  margin: 0;
}

.open-btn {
  margin-top: 18px;
  border: 0;
  background: var(--blue);
  color: white;
  border-radius: 999px;
  padding: 10px 28px;
  font-weight: 850;
  font-size: 19px;
  cursor: pointer;
  white-space: nowrap;
}

.small-btn {
  margin: 0;
  padding: 8px 20px;
  font-size: 17px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  margin-top: 24px;
  padding-top: 20px;
  text-align: center;
}

.stats-row div + div { border-left: 1px solid var(--line); }

.stats-row span {
  display: block;
  font-size: 24px;
  font-weight: 850;
}

.stats-row small {
  color: var(--muted);
  font-weight: 700;
}

.section-block { margin-top: 34px; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 14px;
}

h2 {
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1;
  margin: 0;
  letter-spacing: -.04em;
}

.feature-list {
  display: grid;
  gap: 18px;
}

.feature-card {
  background: #f5f5f7;
  color: #050505;
}

.feature-art {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  padding: 28px 28px 12px;
}

.feature-art-wrap {
  padding: 28px 28px 12px;
}

.mock-shot {
  min-height: 150px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-weight: 900;
  color: rgba(0,0,0,.65);
}

.shot-a { background: linear-gradient(135deg, #b7f0ff, #ffe2f1); }
.shot-b { background: linear-gradient(135deg, #e8d9ff, #a6f1c7); }
.shot-c { background: linear-gradient(135deg, #bdd7ff, #fff2ad); }

.feature-content {
  padding: 0 28px 28px;
}

.feature-content span {
  color: #777;
  text-transform: uppercase;
  font-weight: 900;
}

.feature-content h3 {
  margin: 8px 0;
  font-size: clamp(28px, 6vw, 42px);
  line-height: 1.05;
  letter-spacing: -.04em;
}

.feature-content p {
  color: #6b6b70;
}

.mini-app-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  background: #2c2c2e;
  color: white;
  padding: 18px 28px;
}

.app-list,
.release-list {
  display: grid;
  gap: 12px;
}

.store-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  background: rgba(28,28,30,.76);
  border-radius: 22px;
}

.release-card {
  display: block;
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(28,28,30,.76);
  border-radius: 22px;
}

.store-info h3,
.release-card h3 {
  margin: 0 0 4px;
  font-size: 21px;
  line-height: 1.1;
}

.store-info p {
  color: var(--text);
  font-size: 15px;
}

.release-topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  color: var(--muted);
  margin-bottom: 8px;
}

.release-topline strong {
  color: var(--text);
}

.release-card p {
  margin-top: 8px;
}

.description-block {
  padding: 24px;
}

.description-block p {
  margin-top: 10px;
}

.ghost-btn {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--card-2);
  color: var(--text);
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 800;
  cursor: pointer;
}

.install-sheet {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: end center;
  background: rgba(0,0,0,.55);
  z-index: 1000;
  padding: 18px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.install-sheet[aria-hidden="false"] {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.sheet-panel {
  width: min(100%, 520px);
  background: #1c1c1e;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 24px;
  box-shadow: var(--shadow);
  position: relative;
}

.sheet-panel h2 {
  padding-right: 44px;
}

.sheet-panel p {
  margin-top: 12px;
}

.sheet-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: var(--card-2);
  color: white;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

ol {
  color: var(--muted);
  line-height: 1.8;
  padding-left: 22px;
}

.feature-photo,
.app-photo {
  width: 100%;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, #b7f0ff, #fff2ad);
}

.feature-photo {
  aspect-ratio: 1 / 1;
  border-radius: 18px;
}

.app-photo {
  aspect-ratio: 16 / 10;
  border-radius: 16px;
}

.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 90px;
  color: rgba(0,0,0,.65);
  font-weight: 900;
  text-align: center;
}

.feature-media,
.app-media {
  width: 100%;
  display: block;
  object-fit: cover;
  background: linear-gradient(135deg, #b7f0ff, #fff2ad);
}

.feature-media {
  aspect-ratio: 16 / 10;
  border-radius: 22px;
}

.app-media {
  aspect-ratio: 16 / 10;
  border-radius: 18px;
}

video.feature-media,
video.app-media {
  background: #111;
}

.media-carousel {
  position: relative;
  margin-top: 14px;
}

.feature-art-wrap .media-carousel {
  margin-top: 0;
}

.media-track {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.media-track::-webkit-scrollbar {
  display: none;
}

.media-slide {
  flex: 0 0 100%;
  min-width: 0;
  scroll-snap-align: center;
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  padding-top: 10px;
}

.carousel-dots span {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,.28);
  transition: width .2s ease, background .2s ease;
}

.feature-card .carousel-dots span {
  background: rgba(0,0,0,.22);
}

.carousel-dots span.active {
  width: 18px;
  background: var(--blue);
}

@media (min-width: 760px) {
  .app-shell {
    padding-left: 28px;
    padding-right: 28px;
  }

  .section-block.grid-desktop {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .app-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .release-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .app-shell {
    padding-left: 14px;
    padding-right: 14px;
  }

  .topbar {
    grid-template-columns: 52px 1fr 52px;
    gap: 10px;
  }

  .brand-mini span {
    display: none;
  }

  .app-identity {
    align-items: flex-start;
  }

  .app-icon.large {
    width: 96px;
    height: 96px;
    border-radius: 24px;
  }

  .feature-art {
    padding: 20px 20px 10px;
    gap: 8px;
  }

  .mock-shot {
    min-height: 104px;
    font-size: 14px;
  }

  .feature-content,
  .mini-app-row {
    padding-left: 20px;
    padding-right: 20px;
  }

  .store-row {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    gap: 10px;
    padding: 12px;
  }

  .app-icon.medium {
    width: 64px;
    height: 64px;
    border-radius: 20px;
  }

  .store-info small {
    display: none;
  }

  .small-btn {
    padding: 8px 16px;
  }

  .photo-strip {
    gap: 7px;
  }

  .app-photo {
    border-radius: 12px;
  }

  .feature-art-wrap {
    padding: 20px 20px 10px;
  }

  .media-track {
    gap: 8px;
  }

  .app-media {
    border-radius: 14px;
  }

  .feature-media {
    border-radius: 18px;
  }
}
