/* =========================================================
   مفیدنت — استایل صفحه لندینگ /mofidnet
   تمام کلاس‌ها با پیشوند mf-net محدود (scoped) شده‌اند.
   رنگ اصلی همان هویت ثبت‌شده‌ی مفیدنت در خود سایت است
   (#3454D1) — رنگ جدید اختراع نشده.
   ========================================================= */

.mf-net {
  --mf-n-bg: #FAF8F4;
  --mf-n-bg-deep: #F1ECE1;
  --mf-n-ink: #1E2430;
  --mf-n-ink-soft: #4B5563;
  --mf-n-blue: #3454D1;       /* هویت رسمی مفیدنت در سایت */
  --mf-n-blue-dark: #2742A8;  /* هویت رسمی مفیدنت در سایت */
  --mf-n-blue-soft: rgba(52, 84, 209, 0.12); /* هویت رسمی مفیدنت در سایت */
  --mf-n-line: rgba(30, 36, 48, 0.08);
  --mf-n-radius: 18px;
  --mf-n-shadow: 0 8px 30px rgba(30, 36, 48, 0.06);

  background: var(--mf-n-bg);
  color: var(--mf-n-ink);
  direction: rtl;
  text-align: right;
  overflow-x: hidden;
}

.mf-net * {
  box-sizing: border-box;
}

.mf-net__section {
  max-width: 1080px;
  margin: 0 auto;
  padding: 56px 24px;
}

.mf-net__section--tight {
  padding-top: 32px;
  padding-bottom: 32px;
}

/* ---------------- Hero ---------------- */

.mf-net__hero {
  padding: 88px 24px 64px;
}

.mf-net__hero-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.mf-net__eyebrow {
  display: inline-block;
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-n-blue-dark);
  background: var(--mf-n-blue-soft);
  padding: 6px 16px;
  border-radius: 999px;
  margin-bottom: 24px;
}

.mf-net__title {
  font-size: clamp(32px, 5vw, 50px);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 18px;
}

.mf-net__subtitle {
  font-size: clamp(16px, 2vw, 18.5px);
  line-height: 2;
  color: var(--mf-n-ink-soft);
  max-width: 600px;
  margin: 0 auto;
}

.mf-net__link {
  color: var(--mf-n-blue-dark);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------- چیست؟ ---------------- */

.mf-net__statement {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
  padding: 8px 24px 8px;
}

.mf-net__statement p {
  font-size: clamp(16.5px, 2vw, 19px);
  line-height: 2;
}

.mf-net__statement strong {
  color: var(--mf-n-blue-dark);
}

/* ---------------- تایم‌لاین نسل‌ها ---------------- */

.mf-net__section-title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  margin: 0 0 12px;
}

.mf-net__section-sub {
  text-align: center;
  color: var(--mf-n-ink-soft);
  max-width: 560px;
  margin: 0 auto 44px;
  font-size: 15.5px;
  line-height: 1.9;
}

.mf-net__timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.mf-net__timeline::before {
  content: "";
  position: absolute;
  top: 22px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--mf-n-blue-soft);
  z-index: 0;
}

@media (max-width: 860px) {
  .mf-net__timeline {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .mf-net__timeline::before {
    display: none;
  }
}

.mf-net__gen {
  position: relative;
  z-index: 1;
  background: #fff;
  border: 1px solid var(--mf-n-line);
  border-radius: var(--mf-n-radius);
  padding: 26px 18px 20px;
  text-align: center;
  box-shadow: var(--mf-n-shadow);
}

.mf-net__gen-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--mf-n-blue);
  color: #fff;
  font-weight: 800;
  font-size: 17px;
  margin-bottom: 14px;
}

.mf-net__gen h4 {
  font-size: 15.5px;
  font-weight: 700;
  margin: 0 0 4px;
}

.mf-net__gen span {
  font-size: 13.5px;
  color: var(--mf-n-ink-soft);
}

.mf-net__timeline-note {
  text-align: center;
  font-size: 14px;
  color: var(--mf-n-ink-soft);
  max-width: 560px;
  margin: 28px auto 0;
  line-height: 1.9;
}

/* ---------------- دروازه‌ی ورود به باشگاه (پیل‌ها) ---------------- */

.mf-net__gateway {
  background: var(--mf-n-bg-deep);
  border-radius: 24px;
  width: calc(100% - 32px);
  max-width: 1048px;
  margin: 0 auto;
  padding: 40px 32px;
  text-align: center;
}

.mf-net__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 20px;
}

.mf-net__pill {
  font-size: 14px;
  font-weight: 600;
  color: var(--mf-n-blue-dark);
  background: #fff;
  border: 1px solid rgba(52, 84, 209, 0.18);
  padding: 9px 18px;
  border-radius: 999px;
}

/* ---------------- دیوار خاطره (عکس‌ها) ---------------- */

.mf-net__photowall-heading {
  text-align: center;
  padding: 8px 24px 0;
}

.mf-net__photowall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 28px;
  max-width: 1040px;
  margin: 0 auto;
  padding: 44px 24px 78px;
}

.mf-net-photo-frame {
  position: relative;
  margin: 0;
  background: #fff;
  padding: 10px 10px 30px;
  border-radius: 4px;
  box-shadow: 0 10px 26px rgba(30, 36, 48, 0.16);
  cursor: zoom-in;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.mf-net-photo-frame img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  height: auto;
  object-fit: cover;
  border-radius: 2px;
}

.mf-net-photo-frame--1 {
  transform: rotate(-5deg);
}

.mf-net-photo-frame--2 {
  transform: rotate(3deg);
}

.mf-net-photo-frame--3 {
  transform: rotate(-3deg);
}

.mf-net-photo-frame--4 {
  transform: rotate(5deg);
}

.mf-net-photo-frame:hover {
  transform: rotate(0deg) scale(1.06);
  box-shadow: 0 18px 36px rgba(30, 36, 48, 0.24);
  z-index: 2;
}

/* تبلت */
@media (max-width: 860px) {
  .mf-net__photowall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 560px;
  }
}

/* موبایل */
@media (max-width: 520px) {
  .mf-net__photowall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding-inline: 18px;
  }

  .mf-net-photo-frame {
    padding: 7px 7px 22px;
  }
}

/* ---------------- CTA پایانی ---------------- */

.mf-net__final {
  text-align: center;
  padding: 16px 24px 88px;
}

.mf-net__final h2 {
  font-size: clamp(20px, 2.6vw, 26px);
  font-weight: 800;
  margin: 0 0 12px;
}

.mf-net__final p {
  color: var(--mf-n-ink-soft);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.9;
}

/* ---------------- انیمیشن ملایم ورود ---------------- */

.mf-net-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.mf-net-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mf-net__timeline .mf-net-reveal:nth-child(1) { transition-delay: 0s; }
.mf-net__timeline .mf-net-reveal:nth-child(2) { transition-delay: 0.08s; }
.mf-net__timeline .mf-net-reveal:nth-child(3) { transition-delay: 0.16s; }
.mf-net__timeline .mf-net-reveal:nth-child(4) { transition-delay: 0.24s; }

@media (prefers-reduced-motion: reduce) {
  .mf-net-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .mf-net-photo-frame {
    transition: none;
  }
}