.apps-page {
  background:
    radial-gradient(circle at 78% 5%, rgba(124, 58, 237, 0.22), transparent 34rem),
    radial-gradient(circle at 16% 28%, rgba(85, 72, 178, 0.12), transparent 30rem),
    var(--bg);
}

.apps-topbar .nav a[aria-current="page"] {
  color: var(--text);
}

.apps-main {
  padding-top: 54px;
}

.apps-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(570px, 49vw, 690px);
  padding: clamp(48px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid var(--glass-border-soft);
  border-radius: 30px;
  background: #030308;
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  color: #f5f5f7;
  isolation: isolate;
}

.apps-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(2, 2, 7, 0.76) 0%, rgba(2, 2, 7, 0.28) 48%, transparent 72%);
}

.apps-hero-background {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.apps-hero-background img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.apps-hero-copy {
  position: relative;
  z-index: 1;
  width: min(57%, 680px);
}

.apps-hero-copy h1 {
  max-width: 680px;
  margin-bottom: 24px;
  color: #ffffff;
  font-size: clamp(54px, 5.2vw, 76px);
}

.apps-hero .section-label {
  color: #a98bff;
}

.apps-hero-copy > p {
  max-width: 590px;
  color: rgba(235, 232, 247, 0.78);
  font-size: 21px;
}

.availability-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 30px;
  color: rgba(235, 232, 247, 0.72);
  font-size: 14px;
  font-weight: 650;
}

.availability-row span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.availability-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.04);
}

.availability-dot.is-live {
  background: #60d394;
}

.availability-dot.is-review {
  background: #f5c451;
}

.availability-dot.is-soon {
  background: #a98bff;
}

.apps-hero .primary-link {
  border-color: rgba(199, 183, 255, 0.5);
  background: linear-gradient(135deg, #7c5bd3, #5632a8);
  color: #ffffff;
  box-shadow:
    0 18px 42px rgba(78, 45, 151, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.apps-hero .primary-link:hover {
  background: linear-gradient(135deg, #8969dc, #6240b4);
}

.apps-hero .secondary-action,
html[data-theme="light"] .apps-hero .secondary-action {
  border-color: rgba(235, 232, 247, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), transparent 55%),
    rgba(10, 8, 18, 0.7);
  color: #f5f5f7;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.apps-hero .secondary-action:hover,
html[data-theme="light"] .apps-hero .secondary-action:hover {
  border-color: rgba(199, 183, 255, 0.54);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.17), transparent 55%),
    rgba(24, 18, 39, 0.82);
  color: #ffffff;
}

.apps-overview {
  padding-top: 44px;
}

.apps-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.55fr);
  gap: 20px 60px;
  align-items: end;
  margin-bottom: 34px;
}

.apps-section-head .section-label,
.apps-section-head h2 {
  grid-column: 1;
}

.apps-section-head h2 {
  max-width: 810px;
}

.apps-section-head > p {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: end;
  margin: 0;
  font-size: 18px;
}

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

.app-product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 430px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--glass-border-soft);
  border-radius: 26px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.095), transparent 42%),
    linear-gradient(180deg, rgba(124, 58, 237, 0.09), transparent 70%),
    var(--glass);
  box-shadow: var(--liquid-shadow);
}

.app-product-card h3 {
  margin: 2px 0 0;
  font-size: 30px;
  line-height: 1.1;
}

.app-product-card p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.58;
}

.app-product-card .primary-link,
.app-product-card .secondary-action {
  align-self: flex-start;
  margin-top: auto;
}

.app-product-card-featured,
.app-product-card-desktop {
  grid-column: span 7;
}

.app-product-card-android,
.app-product-card-iphone {
  grid-column: span 5;
}

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

.app-card-heading small {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.app-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border: 1px solid var(--glass-border);
  border-radius: 18px;
  color: var(--accent-2);
  background: rgba(255, 255, 255, 0.055);
}

.app-card-icon svg,
.coming-soon-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-store-icon {
  width: 64px;
  height: 64px;
  flex: 0 0 auto;
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}

.app-product-card ul {
  display: grid;
  gap: 11px;
  margin: 8px 0 30px;
  padding: 0;
  list-style: none;
  color: var(--soft);
  font-size: 15px;
}

.app-product-card li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.app-product-card li svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin-top: 3px;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.app-product-card-android {
  min-height: 520px;
}

.android-card-preview {
  position: absolute;
  right: 22px;
  bottom: -36px;
  width: 258px;
  height: 385px;
  pointer-events: none;
}

.android-phone {
  position: absolute;
  overflow: hidden;
  padding: 7px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 26px;
  background: #09090d;
  box-shadow: 0 30px 65px rgba(0, 0, 0, 0.46);
}

.android-phone img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
}

.android-phone-primary {
  right: 0;
  bottom: 0;
  z-index: 2;
  width: 188px;
  transform: rotate(3deg);
}

.android-phone-secondary {
  top: 22px;
  left: 0;
  z-index: 1;
  width: 166px;
  opacity: 0.7;
  transform: rotate(-5deg);
}

.app-product-card-android > p,
.app-product-card-android > .primary-link,
.android-feature-list {
  max-width: calc(100% - 224px);
}

.android-feature-list {
  margin-top: 2px !important;
}

.desktop-platforms {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 22px;
}

.desktop-platforms span {
  display: grid;
  gap: 3px;
  padding: 17px 18px;
  border: 1px solid var(--glass-border-soft);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.035);
}

.desktop-platforms strong {
  font-size: 17px;
}

.desktop-platforms small {
  color: var(--muted);
  font-size: 13px;
}

.app-product-card .release-note {
  max-width: 620px;
  color: var(--muted);
  font-size: 14px;
}

.app-product-card-iphone {
  justify-content: flex-end;
  min-height: 430px;
  background:
    radial-gradient(circle at 72% 20%, rgba(185, 163, 255, 0.21), transparent 32%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.1), transparent 44%),
    var(--glass);
}

.coming-soon-mark {
  position: absolute;
  top: 34px;
  right: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 112px;
  height: 112px;
  border: 1px solid rgba(185, 163, 255, 0.25);
  border-radius: 32px;
  color: var(--accent-2);
  background: rgba(185, 163, 255, 0.08);
  transform: rotate(8deg);
}

.coming-soon-mark svg {
  width: 48px;
  height: 48px;
}

.coming-soon-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-bottom: 16px;
  padding: 7px 11px;
  border: 1px solid rgba(185, 163, 255, 0.25);
  border-radius: 999px;
  color: var(--accent-2);
  background: rgba(185, 163, 255, 0.07);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.coming-soon-label svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.app-product-card-iphone h3,
.app-product-card-iphone p {
  max-width: calc(100% - 110px);
}

.apps-continuity {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 30px 70px;
  padding: 38px;
  border: 1px solid var(--glass-border-soft);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.025);
}

.continuity-list {
  display: grid;
  gap: 0;
}

.continuity-list div {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 20px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}

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

.continuity-list span {
  color: var(--muted);
  font-size: 16px;
}

.apps-final-cta {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  padding: 42px;
  border: 1px solid rgba(185, 163, 255, 0.24);
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 20%, rgba(185, 163, 255, 0.18), transparent 28%),
    var(--glass);
}

.apps-final-cta p {
  margin-bottom: 0;
  font-size: 17px;
}

.apps-final-cta .primary-link {
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .apps-section-head,
  .apps-continuity {
    grid-template-columns: 1fr;
  }

  .apps-section-head > p {
    grid-column: 1;
    grid-row: auto;
  }

  .app-product-card-featured,
  .app-product-card-desktop,
  .app-product-card-android,
  .app-product-card-iphone {
    grid-column: 1 / -1;
  }

  .app-product-card-android {
    min-height: 480px;
  }

  .android-card-preview {
    right: 34px;
    bottom: -34px;
    width: 300px;
    height: 400px;
  }

  .android-phone-primary {
    width: 205px;
  }

  .android-phone-secondary {
    width: 180px;
  }

  .app-product-card-android > p,
  .app-product-card-android > .primary-link,
  .android-feature-list {
    max-width: calc(100% - 290px);
  }

  .apps-final-cta {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 680px) {
  .apps-main {
    padding-top: 26px;
  }

  .apps-hero {
    align-items: flex-start;
    min-height: 720px;
    padding: 34px 24px;
    border-radius: 24px;
  }

  .apps-hero::after {
    background: linear-gradient(180deg, rgba(2, 2, 7, 0.8) 0%, rgba(2, 2, 7, 0.48) 50%, transparent 78%);
  }

  .apps-hero-copy {
    width: 100%;
  }

  .apps-hero-copy h1 {
    font-size: clamp(42px, 13vw, 56px);
  }

  .apps-hero-copy > p {
    font-size: 19px;
  }

  .apps-hero-copy .hero-actions > a {
    width: 100%;
  }

  .apps-overview {
    padding-top: 18px;
  }

  .app-product-card {
    min-height: auto;
    padding: 23px;
    border-radius: 22px;
  }

  .app-product-card-android {
    min-height: auto;
  }

  .android-card-preview {
    position: relative;
    right: auto;
    bottom: auto;
    order: 4;
    width: min(100%, 310px);
    height: 320px;
    margin: 24px auto -23px;
  }

  .app-product-card-android > p,
  .app-product-card-android > .primary-link,
  .android-feature-list {
    max-width: 100%;
  }

  .app-product-card-android > .primary-link {
    order: 3;
    margin-top: 4px;
  }

  .android-feature-list {
    order: 2;
  }

  .android-phone-primary {
    right: 12%;
    width: 178px;
  }

  .android-phone-secondary {
    top: 24px;
    left: 12%;
    width: 154px;
  }

  .app-product-card .primary-link,
  .app-product-card .secondary-action {
    max-width: 100%;
  }

  .desktop-platforms {
    grid-template-columns: 1fr;
  }

  .coming-soon-mark {
    top: 22px;
    right: 22px;
    width: 86px;
    height: 86px;
    border-radius: 25px;
  }

  .coming-soon-mark svg {
    width: 38px;
    height: 38px;
  }

  .app-product-card-iphone {
    min-height: 390px;
  }

  .app-product-card-iphone h3,
  .app-product-card-iphone p {
    max-width: 100%;
  }

  .apps-continuity,
  .apps-final-cta {
    padding: 24px;
  }

  .continuity-list div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .apps-final-cta .primary-link {
    width: 100%;
  }
}

@media (max-width: 420px) {
  .availability-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-product-card-android > .primary-link {
    width: 100%;
    max-width: 100%;
    padding-inline: 16px;
    font-size: 14px;
  }
}

html[data-theme="light"] .apps-page {
  background:
    radial-gradient(circle at 78% 5%, rgba(124, 58, 237, 0.13), transparent 34rem),
    radial-gradient(circle at 16% 28%, rgba(85, 72, 178, 0.07), transparent 30rem),
    var(--bg);
}

html[data-theme="light"] .android-phone {
  box-shadow: 0 28px 68px rgba(50, 40, 90, 0.18);
}
