/* ── پنل‌های نقش + آموزش تصویری (لندینگ) ── */

.landing-home .tc-platform-roles {
  position: relative;
}

.landing-home .tc-platform-roles__kicker {
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.landing-home .tc-platform-tour__kicker {
  margin-inline: auto;
  margin-bottom: 0.75rem;
}

.landing-home .tc-platform-roles__grid {
  display: grid;
  gap: clamp(1rem, 1.8vw, 1.45rem);
  grid-template-columns: 1fr;
}

@media (min-width: 640px) {
  .landing-home .tc-platform-roles__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  .landing-home .tc-platform-roles__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.landing-home .tc-platform-role {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 32px 32px 26px 26px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: var(--tc-role-bg, rgba(255, 255, 255, 0.78));
  padding: 1.25rem 1.15rem 1.15rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.82) inset,
    0 22px 52px -34px var(--tc-role-shadow, rgba(86, 67, 150, 0.34));
  backdrop-filter: blur(10px);
  height: 100%;
  transition:
    transform 0.28s var(--tc-ease),
    border-color 0.28s var(--tc-ease),
    box-shadow 0.28s var(--tc-ease);
}

.landing-home .tc-platform-role::before,
.landing-home .tc-platform-role__orb {
  display: none !important;
}

.landing-home .tc-platform-role::after {
  content: '';
  position: absolute;
  inset: auto 1.25rem 0;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, transparent, var(--tc-role-accent, rgba(167, 139, 250, 0.42)), transparent);
  opacity: 0.65;
}

.landing-home .tc-platform-role:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 255, 255, 0.92);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 28px 62px -38px var(--tc-role-shadow, rgba(86, 67, 150, 0.46));
}

.landing-home .tc-platform-role:hover {
  --tc-role-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.92) 0%, rgba(235, 226, 255, 0.94) 50%, rgba(222, 211, 255, 0.9) 100%);
  --tc-role-accent: rgba(139, 92, 246, 0.62);
  --tc-role-shadow: rgba(120, 82, 212, 0.48);
}

.landing-home .tc-platform-role--lavender {
  --tc-role-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.92) 0%, rgba(243, 232, 255, 0.94) 54%, rgba(230, 214, 255, 0.9) 100%);
  --tc-role-accent: rgba(139, 92, 246, 0.64);
  --tc-role-shadow: rgba(124, 92, 230, 0.38);
}

.landing-home .tc-platform-role--lavender:hover {
  --tc-role-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.94) 0%, rgba(237, 226, 255, 0.96) 50%, rgba(222, 207, 255, 0.92) 100%);
  --tc-role-accent: rgba(124, 92, 246, 0.72);
  --tc-role-shadow: rgba(124, 92, 230, 0.46);
}

.landing-home .tc-platform-role--lavender .tc-platform-role__orb,
.landing-home .tc-platform-role--lavender .tc-platform-role__icon {
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.58), rgba(214, 197, 255, 0.5));
}

.landing-home .tc-platform-role--sky {
  --tc-role-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.92) 0%, rgba(220, 246, 255, 0.94) 54%, rgba(202, 239, 250, 0.9) 100%);
  --tc-role-accent: rgba(56, 189, 248, 0.64);
  --tc-role-shadow: rgba(48, 153, 202, 0.4);
}

.landing-home .tc-platform-role--sky .tc-platform-role__orb,
.landing-home .tc-platform-role--sky .tc-platform-role__icon {
  background: linear-gradient(135deg, rgba(94, 206, 250, 0.5), rgba(190, 235, 252, 0.44));
}

.landing-home .tc-platform-role--mint {
  --tc-role-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.92) 0%, rgba(218, 250, 241, 0.94) 54%, rgba(195, 243, 230, 0.9) 100%);
  --tc-role-accent: rgba(45, 212, 191, 0.64);
  --tc-role-shadow: rgba(40, 166, 151, 0.38);
}

.landing-home .tc-platform-role--mint .tc-platform-role__orb,
.landing-home .tc-platform-role--mint .tc-platform-role__icon {
  background: linear-gradient(135deg, rgba(76, 225, 204, 0.5), rgba(190, 246, 231, 0.44));
}

.landing-home .tc-platform-role--peach {
  --tc-role-bg: linear-gradient(158deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 237, 220, 0.94) 55%, rgba(255, 222, 195, 0.9) 100%);
  --tc-role-accent: rgba(251, 146, 60, 0.62);
  --tc-role-shadow: rgba(211, 126, 58, 0.36);
}

.landing-home .tc-platform-role--peach .tc-platform-role__orb,
.landing-home .tc-platform-role--peach .tc-platform-role__icon {
  background: linear-gradient(135deg, rgba(255, 178, 110, 0.5), rgba(255, 218, 184, 0.44));
}

.landing-home .tc-platform-role__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-bottom: 0.8rem;
  text-align: center;
}

.landing-home .tc-platform-role__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow:
    0 8px 20px -14px rgba(80, 60, 140, 0.5),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  font-size: 1.25rem;
}

.landing-home .tc-platform-role__title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--tc-text);
  line-height: 1.45;
  letter-spacing: -0.01em;
  text-align: center;
}

.landing-home .tc-platform-role__lead {
  margin: 0 auto 0.85rem;
  max-width: 26ch;
  font-size: 0.86rem;
  color: var(--tc-text-muted);
  line-height: 1.75;
  text-align: center;
}

.landing-home .tc-platform-role__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.48rem;
}

.landing-home .tc-platform-role__list li {
  display: flex;
  align-items: flex-start;
  gap: 0.42rem;
  font-size: 0.82rem;
  color: var(--tc-text);
  line-height: 1.7;
}

.landing-home .tc-platform-role__list .tc-icon {
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: var(--tc-primary-dark);
  width: 0.85rem;
  height: 0.85rem;
  opacity: 0.82;
}

@media (max-width: 640px) {
  .landing-home .tc-platform-roles .tc-section-head,
  .landing-home .tc-platform-tour .tc-section-head {
    text-align: center;
  }

  .landing-home .tc-platform-roles .tc-section-lead,
  .landing-home .tc-platform-tour .tc-section-lead {
    margin-inline: auto;
    text-align: center;
  }

  .landing-home .tc-platform-role {
    border-radius: 24px;
    padding: 1.15rem 1rem;
  }

  .landing-home .tc-platform-role__head {
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .landing-home .tc-platform-role__title,
  .landing-home .tc-platform-role__lead {
    text-align: center;
    margin-inline: auto;
  }

  .landing-home .tc-platform-role__list li {
    justify-content: center;
    text-align: center;
  }

  .landing-home .tc-platform-tour__title,
  .landing-home .tc-platform-tour__desc {
    text-align: center;
  }
}

/* ── آموزش تصویری ── */

.landing-home .tc-platform-tour {
  position: relative;
  isolation: isolate;
  z-index: 1;
  overflow: hidden;
  background: #ffffff;
}

/* پوشاندن blobهای دایره‌ای شِل پشت این سکشن */
.landing-home .tc-platform-tour::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background: #ffffff;
  pointer-events: none;
}

.landing-home .tc-platform-tour > .tc-container {
  position: relative;
  z-index: 1;
}

.landing-home .tc-platform-tour__grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .landing-home .tc-platform-tour__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .landing-home .tc-platform-tour__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.landing-home .tc-platform-tour__card {
  border-radius: var(--tc-radius-lg);
  border: 1px solid var(--tc-border-soft);
  background: var(--tc-surface);
  overflow: hidden;
  box-shadow: var(--tc-shadow-card);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.landing-home .tc-platform-tour__figure {
  position: relative;
  margin: 0;
  aspect-ratio: 16 / 10;
  background: #f7f5fc;
  border-bottom: 1px solid var(--tc-border-soft);
}

.landing-home .tc-platform-tour__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.landing-home .tc-platform-tour__image-btn {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.landing-home .tc-platform-tour__image-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(31, 27, 75, 0.2));
  opacity: 0;
  transition: opacity 0.25s var(--tc-ease);
}

.landing-home .tc-platform-tour__image-btn:hover::after,
.landing-home .tc-platform-tour__image-btn:focus-visible::after {
  opacity: 1;
}

.landing-home .tc-platform-tour__zoom {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  z-index: 2;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--tc-primary-deep);
  padding: 0.25rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(80, 60, 140, 0.12);
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s var(--tc-ease),
    transform 0.25s var(--tc-ease);
}

.landing-home .tc-platform-tour__image-btn:hover .tc-platform-tour__zoom,
.landing-home .tc-platform-tour__image-btn:focus-visible .tc-platform-tour__zoom {
  opacity: 1;
  transform: translateY(0);
}

.landing-home .tc-platform-tour__placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  height: 100%;
  padding: 1rem;
  text-align: center;
  color: var(--tc-text-muted);
}

.landing-home .tc-platform-tour__placeholder-badge {
  display: inline-flex;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: rgba(167, 139, 250, 0.16);
  color: var(--tc-primary-deep);
  font-size: 0.75rem;
  font-weight: 700;
}

.landing-home .tc-platform-tour__placeholder-icon {
  font-size: 2rem;
  line-height: 1;
  opacity: 0.75;
}

.landing-home .tc-platform-tour__placeholder-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--tc-text);
}

.landing-home .tc-platform-tour__placeholder-hint {
  font-size: 0.78rem;
  line-height: 1.6;
  max-width: 18rem;
}

.landing-home .tc-platform-tour__badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  margin: 0;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--tc-border-soft);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--tc-primary-deep);
  box-shadow: 0 4px 14px rgba(80, 60, 140, 0.08);
}

.landing-home .tc-platform-tour__body {
  padding: 1.15rem 1.2rem 1.25rem;
  flex: 1;
}

.landing-home .tc-platform-tour__title {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.55;
  color: var(--tc-text);
}

.landing-home .tc-platform-tour__desc {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--tc-text-muted);
}

.landing-home .tc-platform-tour__foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 2rem;
}

html.tc-modal-open,
html.tc-modal-open body {
  overflow: hidden;
}

.tc-platform-tour-modal[hidden] {
  display: none;
}

.tc-platform-tour-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.tc-platform-tour-modal__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(18, 13, 43, 0.72);
  backdrop-filter: blur(10px);
}

.tc-platform-tour-modal__dialog {
  position: relative;
  z-index: 2;
  width: min(1100px, 96vw);
  max-height: min(86vh, 760px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 80px rgba(20, 12, 52, 0.34);
}

.tc-platform-tour-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid rgba(230, 221, 250, 0.85);
}

.tc-platform-tour-modal__head h3 {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  color: var(--tc-text, #2e234d);
}

.tc-platform-tour-modal__close {
  width: 2.25rem;
  height: 2.25rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(230, 221, 250, 0.9);
  border-radius: 999px;
  background: #fff;
  color: var(--tc-primary-deep, #6d3ce0);
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.tc-platform-tour-modal__canvas {
  overflow: auto;
  background: linear-gradient(135deg, #f9f7ff, #f3fbff);
  padding: clamp(0.65rem, 1.8vw, 1rem);
}

.tc-platform-tour-modal__canvas img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 18px;
  background: #fff;
}
