.apps-page {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 168px 0 112px;
  background: linear-gradient(145deg, #f8fafc 0%, #eef7ff 48%, #f8fbff 100%);
}

.apps-page::before,
.apps-page::after {
  content: "";
  position: absolute;
  z-index: -1;
  border-radius: 999px;
  filter: blur(2px);
  pointer-events: none;
}

.apps-page::before {
  width: 520px;
  height: 520px;
  top: 34px;
  right: -180px;
  background: radial-gradient(circle, rgba(56, 189, 248, .24), rgba(56, 189, 248, 0) 68%);
}

.apps-page::after {
  width: 460px;
  height: 460px;
  bottom: 80px;
  left: -220px;
  background: radial-gradient(circle, rgba(37, 99, 235, .14), rgba(37, 99, 235, 0) 70%);
}

.apps-hero {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto 42px;
  text-align: center;
}

.apps-hero .section-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 18px;
  padding: 8px 14px;
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 999px;
  background: rgba(255, 255, 255, .65);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.apps-hero .section-label::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 5px rgba(34, 197, 94, .12);
}

.apps-hero .section-title {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto 18px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: .98;
  letter-spacing: -.045em;
}

.apps-hero .section-title em {
  color: var(--color-primary);
  font-style: normal;
}

.apps-hero .section-desc {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  font-size: 17px;
  line-height: 1.75;
}

.apps-stats {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin: 30px auto 0;
}

.app-card > .apps-stats {
  width: min(100%, 540px);
  margin: 0 auto 30px;
}

.apps-stat {
  min-width: 132px;
  padding: 12px 18px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 14px;
  background: rgba(255, 255, 255, .66);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.apps-stat strong,
.apps-stat span { display: block; }
.apps-stat strong { color: var(--color-dark); font-size: 20px; }
.apps-stat span { color: var(--color-text-muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }

.apps-grid { width: 100%; max-width: 1360px; margin: 0 auto; }

.app-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 34px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 26px;
  background: rgba(255, 255, 255, .87);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .10), 0 4px 14px rgba(37, 99, 235, .05);
  backdrop-filter: blur(14px);
}

.app-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, #2563eb, #38bdf8, #22c55e);
}

.app-card__top {
  position: relative;
  align-items: center;
  gap: 20px;
  margin-bottom: 26px;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--color-border-light);
}

.app-card__top > .apps-stats {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 1;
  width: auto;
  margin: 0;
  transform: translate(-50%, -50%);
}

.app-card__icon {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(37, 99, 235, .24);
  transition: transform .25s ease, box-shadow .25s ease;
}

.app-card__icon:hover { transform: translateY(-4px) rotate(-2deg); box-shadow: 0 18px 34px rgba(37, 99, 235, .30); }
.app-card__type { color: var(--color-primary); letter-spacing: .14em; }
.app-card__title { font-size: 34px; letter-spacing: -.025em; }

.app-card__store-link {
  padding: 10px 12px 10px 16px;
  border: 1px solid rgba(37, 99, 235, .15);
  border-radius: 12px;
  background: #f8fbff;
  transition: transform .2s ease, background .2s ease;
}

.app-card__store-link:hover { background: #eff6ff; transform: translateY(-2px); }
.app-card__store-link .play-store-icon { width: 30px; height: 30px; flex-basis: 30px; }

.app-card__desc {
  max-width: 760px;
  margin-bottom: 32px;
  font-size: 16px;
}

.app-card__details {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 0;
}

.app-card__details section {
  position: relative;
  overflow: hidden;
  min-height: 174px;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--card-accent) 22%, #e2e8f0);
  border-radius: 16px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--card-accent) 9%, #fff), #fff 72%);
  box-shadow: 0 8px 18px color-mix(in srgb, var(--card-accent) 8%, transparent);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.app-card__details section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--card-accent);
}

.app-card__details section::after {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  right: -52px;
  bottom: -58px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--card-accent) 14%, transparent);
  transition: transform .3s ease;
}

.app-card__details section:hover {
  border-color: color-mix(in srgb, var(--card-accent) 55%, #e2e8f0);
  box-shadow: 0 16px 28px color-mix(in srgb, var(--card-accent) 18%, transparent);
  transform: translateY(-6px);
}

.app-card__details section:hover::after { transform: scale(1.7); }
.app-card__details section:nth-child(1) { --card-accent: #2563eb; }
.app-card__details section:nth-child(2) { --card-accent: #06b6d4; }
.app-card__details section:nth-child(3) { --card-accent: #8b5cf6; }
.app-card__details section:nth-child(4) { --card-accent: #f97316; }
.app-card__details section:nth-child(5) { --card-accent: #0ea5e9; }
.app-card__details section:nth-child(6) { --card-accent: #eab308; }
.app-card__details section:nth-child(7) { --card-accent: #22c55e; }
.app-card__details section:nth-child(8) { --card-accent: #ec4899; }

.app-card__details h3 { color: var(--card-accent); }
.app-card__details h3 { margin-bottom: 10px; font-size: 15px; }
.app-card__details p, .app-card__details li { font-size: 13px; line-height: 1.6; }

@media (max-width: 980px) {
  .app-card__details { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 768px) {
  .apps-page { padding: 130px 0 76px; }
  .apps-hero { margin-bottom: 30px; }
  .apps-hero .section-title { font-size: clamp(40px, 13vw, 58px); }
  .apps-stats { flex-wrap: wrap; }
  .apps-stat { min-width: 112px; padding: 10px 12px; }
  .app-card { padding: 22px; border-radius: 20px; }
  .app-card__top { align-items: flex-start; flex-wrap: wrap; }
  .app-card__top > .apps-stats { position: static; order: 3; flex-basis: 100%; width: 100%; margin: 8px auto 0; transform: none; }
  .app-card__store-link { margin-left: auto; }
  .app-card__details { grid-template-columns: 1fr; gap: 12px; }
  .app-card__details section { min-height: auto; }
}
