/* -------------------------------------------------------
   Background
------------------------------------------------------- */

:root {
  --text: #e8edf6;
  --bg0: #070a10;
  --bg1: #0a0f1a;
}

body {
  margin: 0;

  color: var(--text);

  font-family:
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Helvetica,
    Arial,
    sans-serif;

  background-color: #05030b;

  background-image:
    radial-gradient(
      1000px 700px at -12% 50%,
      rgba(95, 45, 160, 0.45),
      transparent 62%
    ),
    radial-gradient(
      1000px 700px at 112% 50%,
      rgba(85, 35, 150, 0.45),
      transparent 62%
    ),
    radial-gradient(
      520px 320px at 38% 14%,
      rgba(183, 95, 255, 0.34),
      transparent 58%
    ),
    radial-gradient(
      420px 260px at 68% 28%,
      rgba(112, 76, 255, 0.22),
      transparent 62%
    ),
    radial-gradient(
      320px 240px at 50% 70%,
      rgba(88, 48, 190, 0.12),
      transparent 68%
    ),
    linear-gradient(
      180deg,
      #14081f 0%,
      #0b0614 42%,
      #05030b 100%
    );

  background-repeat: no-repeat;
  background-size: cover;
  background-position: center top;
}

@media (min-width: 900px) {
  body {
    background-attachment: scroll;
  }
}

body::before {
  content: "";

  position: fixed;
  inset: 0;

  pointer-events: none;

  background:
    radial-gradient(
      900px 600px at -10% 50%,
      rgba(70, 30, 120, 0.35),
      transparent 60%
    ),
    radial-gradient(
      900px 600px at 110% 50%,
      rgba(60, 20, 110, 0.35),
      transparent 60%
    ),
    radial-gradient(
      700px 420px at 35% 16%,
      rgba(210, 120, 255, 0.10),
      transparent 60%
    ),
    radial-gradient(
      600px 380px at 65% 40%,
      rgba(120, 90, 255, 0.08),
      transparent 65%
    ),
    linear-gradient(
      180deg,
      rgba(6, 4, 14, 0.18),
      rgba(3, 2, 8, 0.38)
    );

  z-index: 0;
}

body > * {
  position: relative;
  z-index: 1;
}

.relativesaz {
  position: relative;
}


/* -------------------------------------------------------
   Hero
------------------------------------------------------- */

.iapps-hero {
  margin-top: 50px;
  margin-bottom: 40px;
}

.iapps-title {
  font-size: 28px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.iapps-tagline {
  margin-top: 18px;

  font-size: 22px;
  line-height: 1.45;
  font-weight: 400;
  letter-spacing: -0.015em;

  color: rgba(255, 255, 255, 0.72);
}


/* -------------------------------------------------------
   Cards
------------------------------------------------------- */

.app-container {
  max-width: 950px;
}

.app-card {
  position: relative;
  overflow: hidden;

  display: flex;
  align-items: flex-start;

  gap: 20px;
  padding: 26px;

  border-radius: 26px;

  background: rgba(255, 255, 255, 0.075);

  border: 1px solid rgba(255, 255, 255, 0.10);

  backdrop-filter: none;
  -webkit-backdrop-filter: none;

  box-shadow:
    0 22px 70px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.10);

  transition:
    transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    box-shadow 0.32s cubic-bezier(0.22, 0.61, 0.36, 1),
    border-color 0.28s ease,
    background 0.28s ease;
}

.card-overlay-link {
  position: absolute;
  inset: 0;

  z-index: 1;

  display: block;

  border-radius: inherit;
}

.app-card > img,
.app-card > .app-icon-wrap,
.app-card > .app-info {
  position: relative;
  z-index: 2;
}

.update-link,
.app-store-link {
  position: relative;
  z-index: 3;
}

.app-card::before {
  content: "";

  position: absolute;
  inset: -1px;

  border-radius: inherit;

  pointer-events: none;

  background:
    radial-gradient(
      900px 260px at 18% 0%,
      rgba(255, 255, 255, 0.18),
      transparent 55%
    );

  opacity: 0.95;

  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.app-card::after {
  content: "";

  position: absolute;
  inset: 0;

  border-radius: inherit;

  pointer-events: none;

  background:
    linear-gradient(
      135deg,
      rgba(180, 120, 255, 0.10),
      rgba(90, 120, 255, 0.06)
    );

  opacity: 0.55;

  transition: opacity 0.3s ease;
}

.app-card:hover {
  transform: translateY(-3px);

  border-color: rgba(255, 255, 255, 0.16);

  background: rgba(255, 255, 255, 0.07);

  box-shadow:
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(255, 255, 255, 0.06),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.app-card:hover::before {
  opacity: 1;
  transform: translateY(-2px);
}

.app-card:hover::after {
  opacity: 0.68;
}

.app-card h2,
.app-card h5 {
  margin: 0;
  letter-spacing: 0.3px;
}

.app-card h5 {
  font-size: 1rem;
}

.app-card p {
  margin: 10px 0 0;

  color: rgba(232, 237, 246, 0.78);

  line-height: 1.5;

  padding-bottom: 0;
}


/* -------------------------------------------------------
   Featured card
------------------------------------------------------- */

.featured-app {
  padding: 28px 30px;

  gap: 42px;

  border-radius: 30px;

  align-items: flex-start;

  margin-bottom: 20px;
}

.featured-app::before {
  background:
    radial-gradient(
      1100px 320px at 18% 0%,
      rgba(255, 255, 255, 0.20),
      transparent 58%
    );
}

.featured-app .app-info {
  max-width: 720px;

  flex: 1;

  min-width: 0;

  display: flex;
  flex-direction: column;

  align-items: flex-start;
  justify-content: flex-start;

  padding-top: 2px;
}


/* -------------------------------------------------------
   Apple artwork icons
------------------------------------------------------- */

.app-icon-wrap {
  width: 96px;
  height: 96px;

  flex: 0 0 96px;

  display: block;
}

.app-icon-artwork {
  width: 96px;
  height: 96px;

  display: block;

  overflow: hidden;

  border-radius: 22px;

  line-height: 0;

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.48),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-icon-artwork .app-icon {
  width: 100%;
  height: 100%;

  display: block;

  object-fit: cover;

  border-radius: 22px;

  box-shadow: none;
}

.app-icon-wrap .app-icon {
  box-shadow: none;
}


/* -------------------------------------------------------
   Featured Apple artwork icon
------------------------------------------------------- */

.app-icon-wrap-lg {
  width: 170px;
  height: 170px;

  flex: 0 0 170px;

  margin-top: 0;
}

.app-icon-artwork-lg {
  width: 170px;
  height: 170px;

  border-radius: 42px;

  border: 1px solid rgba(255, 255, 255, 0.18);

  box-shadow:
    0 14px 40px rgba(0, 0, 0, 0.50),
    0 0 0 1px rgba(255, 255, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.app-icon-artwork-lg .app-icon {
  width: 100%;
  height: 100%;

  border-radius: 42px;
}


/* -------------------------------------------------------
   Regular image icons
------------------------------------------------------- */

.app-icon,
.app-icon-lg {
  flex: 0 0 auto;

  border-radius: 20px;

  box-shadow:
    0 10px 30px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.app-icon {
  width: 96px;
  height: 96px;

  border-radius: 22px;
}

.app-icon-lg {
  width: 90px;
  height: 90px;

  border-radius: 20px;
}


/* -------------------------------------------------------
   Text inside cards
------------------------------------------------------- */

.app-info {
  display: flex;
  flex-direction: column;

  align-items: flex-start;
}

.app-info h2 {
  margin: 0 0 8px;

  font-size: 28px;
  font-weight: 600;

  line-height: 1.06;

  letter-spacing: 0.01em;

  color: rgba(255, 255, 255, 0.96);
}

.app-subtitle {
  margin: 10px 0 0;

  font-size: 18px;

  color: rgba(232, 237, 246, 0.82);
}


/* -------------------------------------------------------
   Small cards
------------------------------------------------------- */

.small-card-info {
  display: flex;
  flex-direction: column;

  align-items: flex-start;
  justify-content: flex-start;

  min-height: 150px;

  width: 100%;

  padding-top: 2px;
}

.small-card-title {
  margin: 0 0 10px;

  font-size: 1.05rem;
  font-weight: 500;

  line-height: 1.25;

  color: rgba(255, 255, 255, 0.95);

  letter-spacing: 0.2px;
}

.small-card-subtitle {
  margin: 0;

  font-size: 1rem;
  line-height: 1.45;

  color: rgba(232, 237, 246, 0.78);
}

.small-card-info .app-store-link {
  margin-top: auto;
  padding-top: 18px;
}

.small-card-info .app-store-badge {
  display: block;

  width: auto;
  height: 40px;

  object-fit: contain;
}


/* -------------------------------------------------------
   App Store button
------------------------------------------------------- */

.appstore-btn {
  margin-top: 8px;

  padding: 6px 14px;

  font-size: 14px;

  color: #fff;

  background: #111;

  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
}

.appstore-btn:hover {
  background: #1c1c1e;
}

.app-store-link {
  display: inline-block;

  margin-top: 20px;
}

.app-store-badge {
  width: auto;
  height: 42px;

  display: block;

  object-fit: contain;
}


/* -------------------------------------------------------
   Update section
------------------------------------------------------- */

.app-update {
  margin-top: 14px;

  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 6px;
}

.update-line {
  margin: 14px 0 0;

  font-size: 15px;
  line-height: 1.5;

  color: rgba(255, 255, 255, 0.88);
}

.update-label {
  font-size: 14px;
  font-weight: 600;

  letter-spacing: 0.01em;

  color: rgba(255, 255, 255, 0.95);
}

.update-text {
  margin: 0;

  font-size: 15px;
  line-height: 1.5;

  color: rgba(232, 237, 246, 0.82);
}

.update-link {
  position: relative;

  display: inline-flex;

  align-items: center;

  gap: 6px;

  margin-top: 0;

  font-size: 14px;
  font-weight: 500;

  color: rgba(255, 255, 255, 0.92);

  text-decoration: none;

  transition:
    color 0.2s ease,
    opacity 0.2s ease;
}

.update-link::after {
  content: "";

  position: absolute;

  left: 0;
  bottom: -3px;

  width: 90%;
  height: 1px;

  background: rgba(255, 255, 255, 0.72);

  opacity: 0.75;

  transition:
    width 0.25s ease,
    opacity 0.25s ease;
}

.update-link:hover {
  opacity: 0.82;
}

.arrow {
  display: inline-block;

  margin-left: 6px;

  font-size: 14px;
  line-height: 1;

  transition: transform 0.25s ease;
}

.update-link:hover .arrow {
  transform: translateX(-3px);
}

.arrowapp {
  margin-left: 8px;

  opacity: 0.6;

  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.app-card:hover .arrowapp {
  transform: translateX(4px);

  opacity: 1;
}


/* -------------------------------------------------------
   Screen Recorder platform links
------------------------------------------------------- */

.screen-recorder-platform-links {
  display: flex;

  align-items: flex-start;
  flex-wrap: wrap;

  column-gap: 32px;
  row-gap: 12px;

  margin-top: 14px;
  margin-bottom: 0;
}

.screen-recorder-platform-links .update-link {
  margin-top: 0;
}


/* Mac group */

.screen-recorder-mac-group {
  display: flex;
  flex-direction: column;

  align-items: flex-start;

  gap: 11px;
}


/* Mac version */

.screen-recorder-mac-link {
  display: inline-flex;

  align-items: center;

  gap: 8px;
}

.screen-recorder-mac-link svg {
  flex: 0 0 auto;
}


/* Press Kit */

.screen-recorder-press-link {
  display: inline-flex;

  align-items: center;

  gap: 7px;

  margin-left: 2px;

  font-size: 13px;

  color: rgba(232, 237, 246, 0.72);
}

.screen-recorder-press-link svg {
  flex: 0 0 auto;

  opacity: 0.82;
}

.screen-recorder-press-link::after {
  width: 86%;
}

.screen-recorder-press-link:hover {
  color: rgba(255, 255, 255, 0.95);

  opacity: 1;
}


/* -------------------------------------------------------
   Focus states
------------------------------------------------------- */

.card-overlay-link:focus-visible,
.update-link:focus-visible,
.app-store-link:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.92);

  outline-offset: 4px;

  border-radius: 12px;
}


/* -------------------------------------------------------
   Reduced motion
------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {

  .app-card,
  .app-card::before,
  .app-card::after,
  .update-link,
  .update-link::after,
  .arrow,
  .arrowapp {
    transition: none !important;
  }

  .app-card:hover {
    transform: none;
  }

  .app-card:hover::before {
    transform: none;
  }

  .update-link:hover .arrow,
  .app-card:hover .arrowapp {
    transform: none;
  }
}


/* -------------------------------------------------------
   Responsive
------------------------------------------------------- */

@media (max-width: 767px) {

  body {
    background-color: #030208;

    background-image:
      radial-gradient(
        420px 260px at 40% 12%,
        rgba(200, 110, 255, 0.40),
        transparent 58%
      ),
      radial-gradient(
        320px 220px at 70% 28%,
        rgba(120, 80, 255, 0.26),
        transparent 62%
      ),
      radial-gradient(
        260px 200px at 50% 70%,
        rgba(90, 50, 210, 0.14),
        transparent 68%
      ),
      linear-gradient(
        180deg,
        #12061c 0%,
        #080410 45%,
        #030208 100%
      );

    background-repeat: no-repeat;
    background-size: cover;
    background-position: center top;
    background-attachment: scroll;
  }

  body::before {
    background:
      radial-gradient(
        520px 320px at 42% 16%,
        rgba(215, 120, 255, 0.08),
        transparent 58%
      ),
      radial-gradient(
        440px 280px at 58% 42%,
        rgba(108, 76, 255, 0.07),
        transparent 65%
      ),
      linear-gradient(
        180deg,
        rgba(6, 4, 14, 0.10),
        rgba(3, 2, 8, 0.32)
      );
  }

  .app-card {
    gap: 16px;
    padding: 22px;
  }

  .featured-app {
    gap: 16px;
    padding: 22px;
  }

  .app-icon-wrap-lg,
  .app-icon-artwork-lg {
    width: 120px;
    height: 120px;

    flex: 0 0 120px;
  }

  .app-icon-artwork-lg,
  .app-icon-artwork-lg .app-icon {
    border-radius: 28px;
  }

  .featured-app .app-info h2 {
    font-size: 22px;
    line-height: 1.15;
  }

  .featured-app .app-subtitle {
    margin-top: 8px;

    font-size: 15px;
    line-height: 1.4;
  }

  .app-icon,
  .app-icon-wrap,
  .app-icon-artwork {
    width: 88px;
    height: 88px;

    flex: 0 0 88px;
  }

  .app-icon,
  .app-icon-artwork,
  .app-icon-artwork .app-icon {
    border-radius: 20px;
  }

  .small-card-info {
    min-height: auto;
  }

  .small-card-title {
    font-size: 1rem;
    line-height: 1.3;
  }

  .small-card-subtitle {
    font-size: 0.98rem;
  }

  .small-card-info .app-store-link {
    margin-top: 16px;
    padding-top: 0;
  }

  .iapps-tagline {
    font-size: 18px;

    max-width: 100%;
  }

  .screen-recorder-platform-links {
    column-gap: 24px;
    row-gap: 16px;
  }

  .screen-recorder-mac-group {
    gap: 10px;
  }

  .screen-recorder-mac-link {
    gap: 7px;
  }

  .screen-recorder-press-link {
    font-size: 13px;
  }
}