/* ═══════════════════════════════════════════════════════════════
   Landing illustrations — 3D assets integration
   ═══════════════════════════════════════════════════════════════ */

/* ── Feature cards with hero illustrations ── */
.landing-home .tc-feature-card {
  padding: 0 0 1.75rem;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: auto;
}

.landing-home .tc-feature-card .tc-feature-num {
  top: 0.85rem;
  left: auto;
  right: 0.85rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.2rem 0.5rem;
  border-radius: 8px;
}

.landing-home .tc-feature-illus {
  position: relative;
  width: 100%;
  min-height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.25rem 0.75rem 0;
  line-height: 0;
  background: rgba(255, 255, 255, 0.28);
  border-bottom: 1px solid rgba(255, 255, 255, 0.35);
}

.landing-home .tc-feature-illus picture,
.landing-home .tc-feature-illus img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  max-height: 200px;
  object-fit: contain;
  object-position: center bottom;
  margin-inline: auto;
  filter: drop-shadow(0 16px 28px rgba(46, 35, 77, 0.12));
  transition: transform 0.4s var(--tc-ease);
}

.landing-home .tc-feature-card:hover .tc-feature-illus img {
  transform: translateY(-6px) scale(1.03);
}

.landing-home .tc-feature-card h3 {
  padding: 1.15rem 1.25rem 0.5rem;
  margin: 0;
  width: 100%;
  text-align: center;
}

.landing-home .tc-feature-card p {
  padding: 0 1.25rem;
  margin: 0;
  width: 100%;
  max-width: 32ch;
  margin-inline: auto;
  text-align: center;
  line-height: 1.75;
}

.landing-home .tc-feature-card--lavender .tc-feature-illus {
  background: rgba(255, 255, 255, 0.32);
}

.landing-home .tc-feature-card--sky .tc-feature-illus {
  background: rgba(255, 255, 255, 0.35);
}

.landing-home .tc-feature-card--peach .tc-feature-illus {
  background: rgba(255, 255, 255, 0.32);
}

.landing-home .tc-feature-icon-wrap {
  display: none;
}

/* ── Video block — integrated hero illustration ── */
.landing-home .tc-video-frame--illus {
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
  max-width: 520px;
  overflow: visible;
}

.landing-home .tc-video-frame--illus:hover {
  transform: none;
  box-shadow: none;
}

.landing-home .tc-video-illus-hit {
  position: relative;
  display: block;
  line-height: 0;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(232, 245, 255, 0.35) 45%,
    rgba(243, 238, 255, 0.25) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 22px 48px -18px rgba(79, 120, 200, 0.28);
  transition:
    transform 0.35s var(--tc-ease),
    box-shadow 0.35s var(--tc-ease);
}

.landing-home .tc-video-illus-hit:hover {
  transform: translateY(-4px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 28px 56px -16px rgba(79, 120, 200, 0.34);
}

.landing-home .tc-video-illus-hit:focus-visible {
  outline: 3px solid rgba(124, 92, 230, 0.45);
  outline-offset: 4px;
}

.landing-home .tc-video-illus-glow {
  position: absolute;
  inset: 8% 10% 18%;
  border-radius: 50%;
  background: radial-gradient(
    ellipse at 50% 55%,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(210, 235, 255, 0.35) 42%,
    transparent 72%
  );
  pointer-events: none;
  z-index: 0;
}

.landing-home .tc-video-illus-hit picture {
  position: relative;
  z-index: 1;
  display: block;
}

.landing-home .tc-video-frame .tc-video-illus-img {
  width: 100%;
  height: auto;
  max-height: min(52vh, 420px);
  object-fit: contain;
  object-position: center bottom;
  display: block;
  border-radius: 18px;
  margin: 0 auto;
  padding: 0.35rem;
  filter: drop-shadow(0 18px 36px rgba(46, 35, 77, 0.12));
  transition: transform 0.4s var(--tc-ease);
}

.landing-home .tc-video-illus-hit:hover .tc-video-illus-img {
  transform: translateY(-4px) scale(1.02);
}

.landing-home .tc-video-frame--illus .tc-play-btn--overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: var(--tc-primary-dark);
  pointer-events: none;
  box-shadow: 0 16px 40px -10px rgba(124, 92, 230, 0.45);
  transition: transform 0.35s var(--tc-ease), box-shadow 0.35s var(--tc-ease);
}

.landing-home .tc-video-illus-hit:hover .tc-play-btn--overlay {
  transform: translate(-50%, -50%) scale(1.06);
  box-shadow: 0 20px 48px -10px rgba(124, 92, 230, 0.55);
}

/* ── Promo resource cards (premium) ── */
.landing-home .tc-resources .tc-promo-grid {
  gap: 1.5rem;
}

.landing-home .tc-resources-head {
  text-align: center;
  max-width: 36rem;
  margin: 0 auto 2.25rem;
}

.landing-home .tc-resources-head .tc-kicker {
  margin-bottom: 0.65rem;
}

.landing-home .tc-resources-head h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  line-height: 1.45;
  margin: 0 0 0.65rem;
  color: var(--tc-text);
}

.landing-home .tc-resources-head > p {
  margin: 0;
  color: var(--tc-text-muted);
  font-size: 0.95rem;
  line-height: 1.75;
}

.landing-home .tc-promo-card {
  padding: 0 !important;
  overflow: hidden;
  min-height: 340px;
  display: flex;
  flex-direction: column;
  border-radius: 20px !important;
  border: 1px solid rgba(255, 255, 255, 0.65) !important;
  box-shadow:
    0 4px 6px rgba(46, 35, 77, 0.04),
    0 18px 40px rgba(46, 35, 77, 0.08);
  transition:
    transform 0.35s var(--tc-ease),
    box-shadow 0.35s var(--tc-ease);
}

.landing-home .tc-promo-card:hover {
  transform: translateY(-6px);
  box-shadow:
    0 8px 12px rgba(46, 35, 77, 0.06),
    0 28px 52px rgba(46, 35, 77, 0.12);
}

.landing-home .tc-promo-card--lavender {
  background: linear-gradient(165deg, #f5efff 0%, #ebe0fa 55%, #e4d6f5 100%) !important;
}

.landing-home .tc-promo-card--cyan {
  background: linear-gradient(165deg, #eefcff 0%, #dff5f1 55%, #d4f0eb 100%) !important;
}

.landing-home .tc-promo-card--peach {
  background: linear-gradient(165deg, #fff5ee 0%, #ffe8d8 55%, #ffdcc8 100%) !important;
}

.landing-home .tc-promo-illus {
  position: relative;
  flex: 1 1 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem 1rem 0.5rem;
  min-height: 220px;
  line-height: 0;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.22) 55%,
    rgba(255, 255, 255, 0.08) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.landing-home .tc-promo-illus-glow {
  position: absolute;
  inset: 8% 14% 22%;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
}

.landing-home .tc-promo-illus--pamphlets .tc-promo-illus-glow {
  background: radial-gradient(
    ellipse at 50% 58%,
    rgba(253, 230, 138, 0.35) 0%,
    rgba(251, 207, 232, 0.22) 40%,
    transparent 72%
  );
}

.landing-home .tc-promo-illus--samples .tc-promo-illus-glow {
  background: radial-gradient(
    ellipse at 50% 58%,
    rgba(186, 230, 253, 0.4) 0%,
    rgba(167, 139, 250, 0.2) 45%,
    transparent 72%
  );
}

.landing-home .tc-promo-illus--tests .tc-promo-illus-glow {
  background: radial-gradient(
    ellipse at 50% 58%,
    rgba(251, 207, 232, 0.38) 0%,
    rgba(253, 186, 116, 0.18) 42%,
    transparent 72%
  );
}

.landing-home .tc-promo-illus-pedestal {
  position: absolute;
  left: 50%;
  bottom: 0.35rem;
  z-index: 0;
  width: 72%;
  max-width: 200px;
  height: 28px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(
    ellipse at center,
    rgba(46, 35, 77, 0.12) 0%,
    rgba(46, 35, 77, 0.04) 55%,
    transparent 75%
  );
  pointer-events: none;
}

.landing-home .tc-promo-illus picture {
  position: relative;
  z-index: 2;
  display: block;
  width: 100%;
}

.landing-home .tc-promo-illus img {
  width: 100%;
  max-width: min(100%, 260px);
  max-height: 210px;
  height: auto;
  object-fit: contain;
  object-position: center bottom;
  margin-inline: auto;
  filter: drop-shadow(0 14px 22px rgba(46, 35, 77, 0.12))
    drop-shadow(0 28px 40px rgba(46, 35, 77, 0.1));
  animation: tc-promo-illus-float 5.5s ease-in-out infinite;
  transition: transform 0.4s var(--tc-ease);
}

.landing-home .tc-promo-illus--samples img {
  animation-delay: -1.8s;
}

.landing-home .tc-promo-illus--tests img {
  animation-delay: -3.2s;
}

@keyframes tc-promo-illus-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-7px);
  }
}

.landing-home .tc-promo-card:hover .tc-promo-illus img {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.04);
}

.landing-home .tc-promo-card-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.25rem 1.35rem 1.5rem;
  flex-shrink: 0;
  text-align: center;
}

.landing-home .tc-promo-card-foot h3 {
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.landing-home .tc-promo-card-foot .tc-btn-pill {
  margin: 0 !important;
}

.landing-home .tc-promo-card > img[src*="ico-"] {
  display: none;
}

/* Override legacy promo img sizing from landing-testchii.css */
.landing-home .tc-resources .tc-promo-card img {
  width: auto !important;
  height: auto !important;
  margin-bottom: 0 !important;
}

/* ── Features section polish ── */
.landing-home .tc-features {
  background: linear-gradient(180deg, #ffffff 0%, #faf8ff 50%, #ffffff 100%);
}

.landing-home .tc-features-grid {
  gap: 1.5rem;
}

/* ── Resources section ── */
.landing-home #resources.tc-resources {
  background: linear-gradient(180deg, #ffffff 0%, #faf9ff 45%, #ffffff 100%);
  padding-block: 3.25rem 4rem;
}

@media (max-width: 992px) {
  .landing-home .tc-resources .tc-promo-grid {
    grid-template-columns: 1fr;
    max-width: 22rem;
    margin-inline: auto;
  }

  .landing-home .tc-promo-card {
    min-height: 310px;
  }

  .landing-home .tc-promo-illus {
    min-height: 175px;
  }

  .landing-home .tc-promo-illus img {
    max-width: 250px;
    max-height: 195px;
  }
}

@media (max-width: 768px) {
  /* ۳ کارت ویژگی + ۳ کارت منابع — متن و دکمه وسط‌چین */
  .landing-home .tc-feature-card {
    text-align: center;
    align-items: center;
  }

  .landing-home .tc-feature-card h3,
  .landing-home .tc-feature-card p {
    width: 100%;
    text-align: center;
    margin-inline: auto;
  }

  .landing-home .tc-feature-card p {
    max-width: 100%;
  }

  .landing-home:not([data-landing-root]) .tc-promo-card-foot {
    align-items: center;
    text-align: center;
  }

  .landing-home:not([data-landing-root]) .tc-promo-card-foot h3 {
    width: 100%;
    text-align: center;
  }

  .landing-home:not([data-landing-root]) .tc-promo-card-foot .tc-btn-pill {
    align-self: center;
    margin-inline: auto;
  }

  .landing-home .tc-feature-illus {
    min-height: 160px;
  }

  .landing-home .tc-feature-illus img {
    max-height: 150px;
  }

  .landing-home .tc-resources-head {
    margin-bottom: 1.75rem;
  }

  .landing-home .tc-promo-card {
    min-height: 295px;
  }

  .landing-home .tc-promo-illus img {
    max-width: 240px;
    max-height: 180px;
  }

  .landing-home .tc-promo-illus img,
  .landing-home .tc-promo-card:hover .tc-promo-illus img {
    animation: none;
  }

  .landing-home .tc-video-frame .tc-video-illus-img {
    max-height: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-home .tc-promo-illus img,
  .landing-home .tc-promo-card:hover .tc-promo-illus img {
    animation: none;
  }
}
