/* PTD-62: ana sayfa uygulama tanıtım alanı */

.home-app {
  --home-app-phone: 7.35rem;
  --home-app-phone-front: 8.15rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 22.5rem);
  gap: 1.5rem 2rem;
  align-items: center;
  margin: 1.35rem 0 0;
  padding: 1.35rem 1.4rem 1.4rem 1.45rem;
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(210, 176, 116, .3);
  border-radius: 1.1rem;
  background:
    radial-gradient(90% 130% at 100% 0%, rgba(210, 176, 116, .14), transparent 58%),
    radial-gradient(70% 110% at 0% 100%, rgba(143, 77, 70, .1), transparent 52%),
    linear-gradient(180deg, rgba(32, 26, 22, .98) 0%, rgba(16, 13, 12, .99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .03) inset,
    0 16px 36px rgba(0, 0, 0, .38);
}

a.home-app {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, filter .18s ease;
}
a.home-app:hover,
a.home-app:focus-visible {
  border-color: rgba(210, 176, 116, .58);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .05) inset,
    0 18px 42px rgba(0, 0, 0, .46);
  filter: brightness(1.04);
}
a.home-app:focus-visible {
  outline: 2px solid var(--poe-gold, #d4b36a);
  outline-offset: 3px;
}
a.home-app:hover .home-app-details,
a.home-app:focus-visible .home-app-details {
  background: rgba(210, 176, 116, .14);
  color: #fff;
}

.home-app-copy {
  display: flex;
  align-items: flex-start;
  gap: 1rem 1.1rem;
  min-width: 0;
  z-index: 1;
}

.home-app-icon {
  width: 72px;
  height: 72px;
  flex: none;
  border-radius: 1.05rem;
  box-shadow: 0 8px 18px rgba(0, 0, 0, .4), 0 0 0 1px rgba(210, 176, 116, .28);
}

.home-app-text { min-width: 0; flex: 1 1 auto; }

.home-app-eyebrow {
  margin: 0 0 .4rem;
  color: var(--poe-gold-2, #d2b074);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.home-app-title {
  margin: 0;
  color: #f3ece5;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 800;
  line-height: 1.2;
}

.home-app-lead {
  margin: .45rem 0 .85rem;
  max-width: 38rem;
  color: var(--poe-muted, #b7aaa2);
  font-size: .98rem;
  line-height: 1.6;
}

.home-app-features {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem .45rem;
  margin: 0 0 1rem;
  padding: 0;
  list-style: none;
}

.home-app-features li {
  padding: .22rem .65rem;
  border: 1px solid rgba(210, 176, 116, .28);
  border-radius: 999px;
  color: var(--poe-text, #ede7df);
  background: rgba(237, 231, 223, .04);
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.3;
}

.home-app-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .7rem .85rem;
}

.home-app-store {
  display: inline-flex;
  line-height: 0;
  border-radius: .55rem;
  outline-offset: 3px;
}

.home-app-store img {
  display: block;
  height: 44px;
  width: auto;
}

.home-app-apk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid var(--poe-gold, #b9935a);
  border-radius: .55rem;
  color: var(--poe-ink, #15110d);
  background: linear-gradient(180deg, var(--poe-gold-2, #d2b074), var(--poe-gold, #b9935a));
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}

.home-app-apk:hover {
  color: var(--poe-ink, #15110d);
  filter: brightness(1.06);
}

.home-app-apk.is-soon {
  border-color: rgba(255, 255, 255, .12);
  color: var(--poe-muted, #b7aaa2);
  background: rgba(255, 255, 255, .04);
  font-weight: 650;
}

.home-app-details {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 1.05rem;
  border: 1px solid rgba(210, 176, 116, .45);
  border-radius: .55rem;
  color: var(--poe-gold-2, #d2b074);
  background: transparent;
  font-weight: 700;
  font-size: .92rem;
  text-decoration: none;
}

.home-app-details:hover {
  background: rgba(210, 176, 116, .14);
  color: #fff;
}


.home-app-visual {
  position: relative;
  width: 100%;
  height: 19.5rem;
  min-width: 0;
  justify-self: center;
}

.home-app-phone {
  position: absolute;
  margin: 0;
  width: var(--home-app-phone);
  aspect-ratio: 460 / 996;
  overflow: hidden;
  border: 2px solid rgba(210, 176, 116, .72);
  border-radius: 1.05rem;
  background: #14110d;
  box-shadow: 0 16px 32px rgba(0, 0, 0, .48), inset 0 0 0 1px rgba(255, 255, 255, .04);
}

.home-app-phone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-app-phone.is-left {
  left: 0;
  top: 2.1rem;
  transform: rotate(-8deg);
  z-index: 1;
}

.home-app-phone.is-right {
  right: 0;
  top: 2.35rem;
  transform: rotate(8deg);
  z-index: 1;
}

.home-app-phone.is-front {
  left: 50%;
  top: 0;
  width: var(--home-app-phone-front);
  transform: translateX(-50%);
  z-index: 2;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(210, 176, 116, .35);
}

@media (max-width: 1100px) and (min-width: 901px) {
  .home-app {
    grid-template-columns: minmax(0, 1fr) minmax(15.5rem, 20rem);
    gap: 1.25rem 1.35rem;
    padding: 1.25rem 1.2rem 1.3rem 1.25rem;
  }
  .home-app-actions { gap: .55rem .6rem; }
  .home-app-details { padding: 0 .85rem; }
}

@media (max-width: 900px) {
  .home-app {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.15rem 1.25rem;
    gap: 1.15rem;
  }

  .home-app-visual {
    order: -1;
    height: 16.5rem;
    max-width: 20rem;
    margin: 0 auto;
    --home-app-phone: 6.2rem;
    --home-app-phone-front: 6.9rem;
  }

  .home-app-phone.is-left { top: 1.7rem; }
  .home-app-phone.is-right { top: 1.9rem; }
}

@media (max-width: 640px) {
  .home-app-copy {
    flex-direction: column;
    gap: .8rem;
  }

  .home-app-icon {
    width: 64px;
    height: 64px;
  }

  .home-app-visual {
    height: 14.75rem;
    max-width: 17.5rem;
    --home-app-phone: 5.35rem;
    --home-app-phone-front: 6rem;
  }

  .home-app-phone.is-left { top: 1.45rem; }
  .home-app-phone.is-right { top: 1.6rem; }

  .home-app-lead { font-size: .94rem; }
}

@media (prefers-reduced-motion: reduce) {
  .home-app-phone.is-left,
  .home-app-phone.is-right,
  .home-app-phone.is-front { transform: none; }
  .home-app-phone.is-left { left: 8%; top: 1.1rem; }
  .home-app-phone.is-right { right: 8%; top: 1.1rem; }
  .home-app-phone.is-front { left: 50%; transform: translateX(-50%); }
}
