/* Background */
:root{
  --text: #e8edf6;
  --bg0: #070A10;
  --bg1: #0A0F1A;
  --glow1: rgba(120, 160, 255, .14);
  --glow2: rgba(180, 120, 255, .10);
  --glow3: rgba(80, 255, 200, .06);
}

body{
  margin: 0;
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #050713;
  background-image: url("/images/Back_iApps.webp");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
}

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

body::before{
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(900px 600px at 35% 18%, rgba(255,255,255,.05), transparent 60%),
    linear-gradient(180deg, rgba(0,0,0,.45), rgba(0,0,0,.60));
  z-index: 0;
}

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

.relativesaz{
  position: relative;
}


/* Hero */
.iapps-hero{
  margin-top: 60px;
  margin-bottom: 40px;
}

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

.iapps-tagline{
  font-size: 20px;
  color: #9ca3af;
}


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

.app-card{
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-radius: 26px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.10);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow:
    0 22px 70px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(255,255,255,0.10);
  transition:
    transform .32s cubic-bezier(.22,.61,.36,1),
    box-shadow .32s cubic-bezier(.22,.61,.36,1),
    border-color .28s ease,
    background .28s ease;
  cursor: pointer;
}

.card-overlay-link{
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  border-radius: inherit;
}

.app-card > img,
.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: .95;
  transition: opacity .3s ease, transform .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: .55;
  transition: opacity .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: .68;
}

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

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

.app-card p{
  margin: 12px 0 0 0;
  color: rgba(232,237,246,0.78);
  line-height: 1.45;
  padding-bottom: 0;
}


/* 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;
}


/* Featured card */
.featured-app{
  padding: 28px 30px;
  gap: 28px;
  border-radius: 30px;
  align-items: flex-start;
}

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

.featured-app .app-icon-lg{
  width: 145px;
  height: 145px;
  flex: 0 0 145px;
  margin-top: 6px;
  border-radius: 38px;
}

.featured-app .app-info{
  max-width: 720px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding-top: 2px;
}


/* Text inside cards */
.app-info{
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.app-info h2{
  margin: 0 0 8px 0;
  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 0;
  font-size: 18px;
  color: rgba(232,237,246,0.82);
}


/* 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: 90px;
  height: 90px;
  border-radius: 20px;
}

.app-icon-lg{
  width: 90px;
  height: 90px;
  border-radius: 20px;
}


/* 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: 16px;
}

.app-store-badge{
  display: block;
  width: auto;
  height: 40px;
  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 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: opacity .2s ease;
}

.update-link::after{
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 90%;
  height: 1px;
  background: rgba(255,255,255,0.72);
  opacity: .75;
  transition: width .25s ease, opacity .25s ease;
}

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

.arrow{
  display: inline-block;
  margin-left: 6px;
  font-size: 14px;
  line-height: 1;
  transition: transform .25s ease;
}

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

.arrowapp{
  margin-left: 8px;
  opacity: .6;
  transition: transform .2s ease, opacity .2s ease;
}

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


/* 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){
  
  .app-subtitle{
    margin-top: 8px;
    font-size: 15px;
    line-height: 1.4;
  }


}