.apps-download-page {
  min-height: 100vh;
}

.apps-main {
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 112px) 0 88px;
}

.apps-intro {
  max-width: 720px;
  margin: 0 auto 42px;
  text-align: center;
}

.apps-intro h1 {
  margin: 14px 0;
  color: #FEFEFE;
  font-size: clamp(38px, 7vw, 68px);
  letter-spacing: -0.055em;
  line-height: 1.04;
}

.apps-intro > p:last-child,
.apps-browser-panel > div > p:last-child {
  color: #A6B3C4;
  font-size: 15px;
  line-height: 1.7;
}

.apps-platform-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.apps-platform-card {
  display: flex;
  min-width: 0;
  min-height: 116px;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(254, 254, 254, 0.08);
  border-radius: 22px;
  background: rgba(254, 254, 254, 0.025);
  color: #FEFEFE;
  text-decoration: none;
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s ease, background-color 0.25s ease;
}

.apps-platform-card:hover,
.apps-platform-card:focus-visible {
  transform: translateY(-4px);
  border-color: rgba(143,158,180, 0.48);
  background: rgba(82,99,122, 0.08);
}

.apps-platform-card > img {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  object-fit: contain;
}

.apps-platform-copy {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.apps-platform-copy strong {
  font-size: 16px;
}

.apps-platform-copy small {
  color: #A6B3C4;
  font-size: 12px;
  line-height: 1.5;
}

.apps-platform-arrow {
  margin-left: auto;
  color: #8F9EB4;
  font-size: 21px;
  transition: transform 0.25s ease;
}

.apps-platform-card:hover .apps-platform-arrow {
  transform: translateX(4px);
}

.apps-platform-web {
  grid-column: span 3;
  min-height: 96px;
}

.apps-browser-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px 36px;
  margin-top: 30px;
  padding: clamp(22px, 4vw, 36px);
  border: 1px solid rgba(254, 254, 254, 0.08);
  border-radius: 26px;
  background: rgba(254, 254, 254, 0.025);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.apps-browser-panel h2 {
  margin: 10px 0 8px;
  color: #FEFEFE;
  font-size: clamp(21px, 3vw, 30px);
  letter-spacing: -0.035em;
}

.apps-browser-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 440px;
}

.apps-browser-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 11px;
  border: 1px solid rgba(254, 254, 254, 0.08);
  border-radius: 999px;
  color: #CCD6DD;
  font-size: 12px;
}

.apps-browser-list img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.apps-text-link {
  grid-column: 1 / -1;
  width: fit-content;
  color: #8F9EB4;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.apps-text-link span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.apps-text-link:hover span {
  transform: translateX(4px);
}

.apps-back-link {
  margin-top: 28px;
  text-align: center;
}

.apps-back-link a {
  color: #A6B3C4;
  font-size: 13px;
  text-decoration: none;
}

.apps-back-link a:hover {
  color: #FEFEFE;
}

.app-detail-main {
  width: min(780px, calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(58px, 9vw, 110px) 0 90px;
}

.app-detail-card {
  padding: clamp(24px, 5vw, 48px);
  border: 1px solid rgba(254, 254, 254, 0.08);
  border-radius: 28px;
  background: rgba(254, 254, 254, 0.025);
  box-shadow: 0 24px 52px rgba(1, 1, 1, 0.35);
  -webkit-backdrop-filter: blur(22px);
  backdrop-filter: blur(22px);
}

.app-detail-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.app-detail-heading img {
  width: 54px;
  height: 54px;
  object-fit: contain;
}

.app-detail-heading h1 {
  margin: 4px 0 0;
  color: #FEFEFE;
  font-size: clamp(30px, 5vw, 44px);
  letter-spacing: -0.045em;
}

.app-detail-card > p,
.app-detail-list {
  color: #A6B3C4;
  font-size: 14px;
  line-height: 1.75;
}

.app-release-box {
  margin: 26px 0;
  padding: 18px 20px;
  border: 1px solid rgba(143,158,180, 0.22);
  border-radius: 18px;
  background: rgba(82,99,122, 0.06);
}

.app-release-box h2 {
  margin: 0 0 8px;
  color: #FEFEFE;
  font-size: 15px;
}

.app-release-version {
  margin: 0;
  color: #8F9EB4;
  font-size: 13px;
  font-weight: 700;
}

.app-release-note {
  margin: 6px 0 0;
  color: #A6B3C4;
  font-size: 12px;
  line-height: 1.6;
}

.app-release-integrity {
  display: grid;
  grid-template-columns: minmax(150px, auto) minmax(0, 1fr);
  gap: 7px 12px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(254, 254, 254, 0.1);
  font-size: 11px;
  line-height: 1.55;
}

.app-release-integrity dt {
  color: #A6B3C4;
}

.app-release-integrity dd {
  min-width: 0;
  margin: 0;
  color: #FEFEFE;
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.app-release-permissions {
  margin-top: 16px;
  color: #A6B3C4;
  font-size: 12px;
  line-height: 1.65;
}

.app-release-permissions summary {
  color: #FEFEFE;
  cursor: pointer;
  font-weight: 700;
}

.app-release-permissions p {
  margin: 8px 0 0;
}

.app-download-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  margin-top: 16px;
  padding: 0 22px;
  border: 1px solid rgba(143,158,180, 0.5);
  border-radius: 999px;
  background: #52637A;
  color: #FEFEFE;
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
  transition: transform 0.25s ease, background-color 0.25s ease;
}

.app-download-button[hidden],
.app-release-integrity[hidden] {
  display: none !important;
}

.app-download-button:not([aria-disabled="true"]):hover {
  transform: translateY(-2px);
  background: #55667F;
}

.app-download-button[aria-disabled="true"] {
  border-color: rgba(254, 254, 254, 0.1);
  background: rgba(254, 254, 254, 0.08);
  color: #A6B3C4;
  cursor: not-allowed;
}

.app-detail-list {
  display: grid;
  gap: 7px;
  margin: 22px 0 0;
  padding-left: 20px;
}

@media (max-width: 820px) {
  .apps-platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apps-platform-web {
    grid-column: span 2;
  }

  .apps-browser-panel {
    grid-template-columns: 1fr;
  }

  .apps-browser-list {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .apps-main,
  .app-detail-main {
    width: min(100% - 28px, 1120px);
  }

  .apps-platform-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .apps-platform-card,
  .apps-platform-web {
    grid-column: auto;
    min-height: 92px;
    padding: 16px;
  }

  .apps-browser-panel {
    padding: 22px 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apps-platform-card,
  .apps-platform-arrow,
  .apps-text-link span,
  .app-download-button {
    transition: none;
  }
}
