/* Presentation page — scoped to .pd */

.service-detail.pd {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #07070f;
  padding-bottom: 2rem;
}

.pd::before,
.pd::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.pd::before {
  top: -120px;
  right: -140px;
  width: 620px;
  height: 620px;
  background: radial-gradient(circle, rgba(116, 120, 248, 0.24), transparent 65%);
}

.pd::after {
  bottom: -160px;
  left: -160px;
  width: 560px;
  height: 560px;
  background: radial-gradient(circle, rgba(58, 61, 168, 0.4), transparent 65%);
}

.pd > * {
  position: relative;
  z-index: 1;
}

.pd-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(2rem, 6vw, 5rem);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(1.5rem, 4vw, 3rem) 1.5rem 0;
}

.pd-copy {
  text-align: start;
}

.pd-title {
  margin: 0;
  font-size: clamp(2.1rem, 4.8vw, 3.6rem);
  font-weight: 700;
  line-height: 1.07;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #fff 30%, #a9acff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-line {
  display: block;
  width: 140px;
  height: 2px;
  margin: 1.5rem 0;
  background: linear-gradient(90deg, #7478F8, transparent);
  box-shadow: 0 0 14px rgba(116, 120, 248, 0.5);
}

html[dir="rtl"] .pd-line {
  background: linear-gradient(270deg, #7478F8, transparent);
}

.pd-lead {
  margin: 0;
  max-width: 46ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: #c8c9dc;
}

.pd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.5rem;
  margin-top: 2rem;
}

.pd-media {
  position: relative;
  margin: 0;
}

.pd-media::before {
  content: "";
  position: absolute;
  inset: 0;
  transform: translate(18px, 18px);
  border-radius: 34px;
  border: 1px solid rgba(148, 151, 250, 0.4);
  background: linear-gradient(135deg, rgba(116, 120, 248, 0.14), transparent 60%);
}

html[dir="rtl"] .pd-media::before {
  transform: translate(-18px, 18px);
}

.pd-media-frame {
  position: relative;
  padding: 0.6rem;
  border-radius: 34px;
  background: #14142b;
  border: 1px solid rgba(116, 120, 248, 0.3);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.9), 0 0 70px -25px rgba(116, 120, 248, 0.55);
  overflow: hidden;
}

.pd-media-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 4.4;
  object-fit: cover;
  border-radius: 26px;
  filter: saturate(0.92) brightness(0.92);
  transition: transform 0.8s ease;
}

.pd-media:hover .pd-media-frame img {
  transform: scale(1.04);
}

.pd-about {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem clamp(2rem, 5vw, 4rem);
  margin-top: clamp(3rem, 7vw, 5.5rem);
}

.pd-about p {
  margin: 0;
  padding-inline-start: 1.25rem;
  font-size: 0.95rem;
  line-height: 1.85;
  color: #c8c9dc;
  border-inline-start: 3px solid #7478F8;
}

.pd-pillars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.25rem;
  margin: clamp(2.5rem, 6vw, 4rem) 0 0;
  padding: 0;
  list-style: none;
}

.pd-pillars li {
  position: relative;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(148, 151, 250, 0.3);
  transition: transform 0.25s ease;
}

.pd-pillars li::before {
  content: "";
  position: absolute;
  top: -2px;
  left: 0;
  width: 44px;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #9497fa, #7478F8);
  transition: width 0.3s ease;
}

html[dir="rtl"] .pd-pillars li::before {
  left: auto;
  right: 0;
  background: linear-gradient(270deg, #9497fa, #7478F8);
}

.pd-pillars li:hover {
  transform: translateY(-4px);
}

.pd-pillars li:hover::before {
  width: 100%;
}

.pd-pillar-num {
  display: block;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #c9cbff, #7478F8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pd-pillar-text {
  display: block;
  margin-top: 1rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.5;
  color: #fff;
}

.pd-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s, color 0.2s;
}

.pd-btn-primary {
  padding: 0.85rem 1.7rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(90deg, #9497fa, #7478F8);
  box-shadow: 0 14px 34px -12px rgba(116, 120, 248, 0.65);
}

.pd-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px -12px rgba(116, 120, 248, 0.85);
}

.pd-btn-link {
  padding-bottom: 2px;
  color: #a3a4bc;
  border-bottom: 1px solid rgba(116, 120, 248, 0.4);
}

.pd-btn-link:hover {
  color: #ececf5;
  border-color: #7478F8;
}

.pd-btn-ghost {
  padding: 0.75rem 1.4rem;
  border-radius: 999px;
  color: #ececf5;
  border: 1px solid rgba(116, 120, 248, 0.35);
}

.pd-btn-ghost:hover {
  border-color: #7478F8;
  background: rgba(116, 120, 248, 0.12);
}

.pd-closing {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  margin-top: clamp(3rem, 7vw, 5rem);
  padding-top: 2rem;
  padding-bottom: 1.5rem;
  border-top: 1px solid rgba(148, 151, 250, 0.2);
}

#presentation-detail.lang-picker-open,
#presentation-detail.mobile-nav-open {
  overflow: visible;
  z-index: 50;
  position: relative;
}

@media (max-width: 960px) {
  .pd-pillars {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem 1.25rem;
  }
}

@media (max-width: 820px) {
  .pd-hero {
    grid-template-columns: 1fr;
  }

  .pd-media {
    order: -1;
    margin-inline-end: 18px;
  }

  .pd-media-frame img {
    aspect-ratio: 16 / 11;
  }

  .pd-about {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .pd-pillars {
    grid-template-columns: 1fr;
  }

  .pd-closing {
    flex-direction: column;
    align-items: stretch;
  }

  .pd-closing .pd-btn {
    justify-content: center;
  }
}

@keyframes pdUp {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.pd-copy > * {
  animation: pdUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.pd-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.pd-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.pd-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

.pd-media {
  animation: pdUp 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.15s both;
}

@media (prefers-reduced-motion: reduce) {
  .pd-copy > *,
  .pd-media {
    animation: none;
  }

  .pd-media-frame img,
  .pd-pillars li,
  .pd-pillars li::before {
    transition: none;
  }
}
