:root {
  --blue: #0071e3;
  --blue-dark: #0057b8;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --soft: #f5f5f7;
  --line: #d2d2d7;
  --sidebar: 260px;
  --radius: 18px;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 26px 22px;
  border-right: 1px solid var(--line);
  background: rgba(250, 250, 252, 0.92);
  backdrop-filter: blur(22px);
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 18px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--ink);
}

.brand-logo {
  width: 17px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--ink);
}

.brand-sub {
  color: var(--muted);
  font-weight: 600;
}

.brand-caret {
  width: 11px;
  height: 8px;
  margin-left: auto;
  color: var(--muted);
  flex: 0 0 auto;
}

.search {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 18px;
}

.search-svg {
  position: absolute;
  left: 11px;
  width: 15px;
  height: 15px;
  color: #8e8e93;
  pointer-events: none;
}

.search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 12px 9px 33px;
  outline: none;
  color: var(--ink);
  background: #fff;
  font-size: 14px;
}

.search input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.16);
}

.nav-list,
.categories {
  display: grid;
  gap: 2px;
}

.nav-list {
  margin-bottom: 22px;
}

.nav-list a,
.categories a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #1d1d1f;
  font-size: 15px;
  font-weight: 500;
}

.nav-list a svg,
.categories a svg {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  color: var(--blue);
}

.nav-list a:hover,
.categories a:hover,
.nav-list .active,
.categories .active {
  background: rgba(0, 0, 0, 0.05);
}

.nav-list .active {
  color: var(--blue);
}

.categories p {
  margin: 0 0 6px;
  padding: 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

main {
  min-width: 0;
}

.mobile-bar {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(135deg, #194fc6, #0a84ff 58%, #53c2ff);
}

.hero-bg {
  position: absolute;
  inset: -25%;
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.36), transparent 26%),
    radial-gradient(circle at 82% 28%, rgba(22, 32, 92, 0.3), transparent 32%),
    linear-gradient(135deg, transparent, rgba(255, 255, 255, 0.16));
  transform: rotate(-7deg);
}

.hero-inner {
  position: relative;
  width: min(1660px, calc(100% - 56px));
  min-height: 360px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 34px;
  padding: 58px 0 64px;
}

.app-icon {
  width: 168px;
  height: 168px;
  border-radius: 34px;
  box-shadow: var(--shadow);
  flex: 0 0 auto;
}

.hero-copy {
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: 48px;
  line-height: 1.08;
}

.subtitle {
  margin: 10px 0 0;
  font-size: 22px;
  line-height: 1.35;
}

.meta {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.text-button {
  border: 0;
  border-radius: 999px;
  font-weight: 700;
}

.share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 131px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: rgba(255, 255, 255, 0.18);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.15s ease;
}

.share-button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.share-button svg {
  width: 12px;
  height: 16px;
  flex: 0 0 auto;
}

.info-ribbon {
  width: min(1660px, calc(100% - 56px));
  margin: 24px auto 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(130px, 1fr));
  /* border-top: 1px solid var(--line); */
  /* border-bottom: 1px solid var(--line); */
}

.info-item {
  min-width: 0;
  display: grid;
  align-content: center;
  min-height: 116px;
  padding: 18px 16px;
  /* border-right: 1px solid var(--line); */
  text-align: center;
}

.info-item:last-child {
  border-right: 0;
}

.info-item span,
.info-item small {
  color: var(--muted);
  font-size: 12px;
}

.info-item strong {
  margin: 7px 0 4px;
  font-size: 26px;
  line-height: 1.1;
}

.section {
  width: min(1660px, calc(100% - 56px));
  margin: 0 auto;
  padding: 38px 0;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.2;
}

.section-heading span,
.section-heading a {
  color: var(--blue);
  font-size: 15px;
  font-weight: 700;
}

.screenshots {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 220px;
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 4px 2px 14px;
  scrollbar-color: #c7c7cc transparent;
}

.shot {
  width: 220px;
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: transparent;
}

.shot img {
  display: block;
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

.description-section {
  position: relative;
}

.description {
  max-width: 820px;
  color: #2c2c2e;
  font-size: 17px;
  line-height: 1.58;
  overflow: hidden;
}

.description.is-collapsed {
  max-height: 245px;
}

.description p,
.description ul {
  margin: 14px 0;
}

.description h3 {
  margin: 24px 0 8px;
  font-size: 18px;
}

.description ul {
  padding-left: 22px;
}

.text-button {
  margin-top: 12px;
  padding: 10px 0;
  color: var(--blue);
  background: transparent;
}

.ratings-grid {
  display: grid;
  grid-template-columns: 280px repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.rating-summary,
.review,
.panel,
.privacy-list > div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rating-summary {
  padding: 24px;
}

.rating-summary strong {
  display: block;
  font-size: 58px;
  line-height: 0.95;
}

.rating-summary span,
.rating-summary p {
  color: var(--muted);
}

.rating-summary p {
  margin: 10px 0 18px;
}

.bars {
  display: grid;
  gap: 7px;
}

.bars span {
  position: relative;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e5e5ea;
}

.bars span::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--value);
  background: #8e8e93;
}

.review {
  padding: 22px;
}

.review-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.review h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.25;
}

.review-top span {
  flex: 0 0 auto;
  color: #ff9f0a;
  font-size: 13px;
}

.review p {
  margin: 0;
  color: #3a3a3c;
  line-height: 1.5;
}

.review small {
  display: block;
  margin-top: 18px;
  color: var(--muted);
}

.columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  gap: 18px;
}

.panel {
  padding: 24px;
}

.panel h2 {
  font-size: 24px;
}

.panel p {
  color: #3a3a3c;
  line-height: 1.5;
}

.version {
  color: var(--muted) !important;
  font-weight: 700;
}

.details-list {
  margin: 0;
}

.details-list div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #ececef;
}

.details-list div:last-child {
  border-bottom: 0;
}

.details-list dt {
  color: var(--muted);
  font-weight: 700;
}

.details-list dd {
  margin: 0;
}

.lead {
  max-width: 760px;
  color: #3a3a3c;
  line-height: 1.5;
}

.privacy-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.privacy-list > div {
  padding: 22px;
}

.privacy-list strong {
  display: block;
  margin-bottom: 8px;
}

.privacy-list p {
  margin: 0;
  color: #3a3a3c;
  line-height: 1.5;
}

.privacy-list a {
  color: var(--blue);
  font-weight: 700;
}

.footer {
  width: min(1660px, calc(100% - 56px));
  margin: 0 auto;
  padding: 26px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--muted);
  font-size: 13px;
}

.lightbox {
  width: min(92vw, 680px);
  border: 0;
  padding: 0;
  border-radius: 28px;
  background: transparent;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.72);
}

.lightbox img {
  display: block;
  max-width: 100%;
  max-height: 86vh;
  margin: auto;
  border-radius: 28px;
}

.lightbox-close {
  position: fixed;
  top: 22px;
  right: 24px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
  font-size: 30px;
  line-height: 1;
}

@media (max-width: 1100px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    display: none;
  }

  .mobile-bar {
    position: sticky;
    top: 0;
    z-index: 10;
    display: block;
    padding: 14px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(250, 250, 252, 0.9);
    backdrop-filter: blur(20px);
  }

  .mobile-bar .brand {
    margin: 0;
  }

  .info-ribbon {
    overflow-x: auto;
    grid-template-columns: repeat(6, 160px);
  }

  .ratings-grid,
  .columns,
  .privacy-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .hero-inner,
  .section,
  .info-ribbon,
  .footer {
    width: min(100% - 32px, 1120px);
  }

  .hero-inner {
    min-height: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 22px;
    padding: 36px 0 42px;
  }

  .app-icon {
    width: 118px;
    height: 118px;
    border-radius: 26px;
  }

  h1 {
    font-size: 34px;
  }

  .subtitle {
    font-size: 19px;
  }

  .screenshots {
    grid-auto-columns: 190px;
  }

  .shot {
    width: 190px;
  }

  .section h2 {
    font-size: 24px;
  }

  .details-list div {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .footer {
    flex-direction: column;
  }
}
