/* ===========================================================
   BASE STYLES
   =========================================================== */

@font-face {
  font-family: "IRANSans";
  src: url("fonts/IRANSans.ttf") format("truetype");
  font-display: swap;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "IRANSans", sans-serif;
  background-color: #000;
  color: #fff;
  line-height: 1.9;
  font-size: 1rem;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(75rem, 100% - 8vw);
  margin-inline: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================================================
   COLORS
   =========================================================== */

:root {
  --gold: #d4af37;
  --gold-light: #e8c46a;
  --black: #000000;
  --dark: #0a0a0a;
  --white: #ffffff;
  --gray: #bbbbbb;
}

/* ===========================================================
   HEADER – MOBILE FIRST (FLUID)
   =========================================================== */

.main-header {
  width: 100%;
  background: linear-gradient(90deg, #111, #1a1a1a 60%, #2a2a2a);
  backdrop-filter: blur(0.6rem);
  border-bottom: 0.0625rem solid rgba(255, 255, 255, 0.05);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
}

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.logo-img {
  height: clamp(2rem, 6vw, 3.5rem);
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.logo-title {
  font-size: clamp(0.9rem, 2.1vw, 1.3rem);
  font-weight: bold;
  color: var(--gold);
}

.logo-subtitle {
  font-size: clamp(0.65rem, 1.6vw, 0.85rem);
  color: var(--gray);
}

/* CTA */

.header-cta {
  padding: 0.15rem 0.6rem;
  background: var(--gold);
  color: #000;
  border-radius: 0.35rem;
  font-weight: 600;
  font-size: clamp(0.65rem, 1.4vw, 0.8rem);
  transition: 0.25s;
  white-space: nowrap;
}

.header-cta:hover {
  background: var(--gold-light);
}

/* Header Social Icons */
.header-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.header-socials a {
  width: 36px;
  height: 36px;
  background: transparent;
  border-radius: 0.45rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.25s;
}

.header-socials a:hover {
  background: var(--gold);
}

.header-socials img {
  width: 32px;
  height: 32px;
  filter: brightness(1.1);
}

/* موبایل */
@media (max-width: 600px) {
  .header-socials a {
    width: 28px;
    height: 28px;
  }

  .header-socials img {
    width: 18px;
    height: 18px;
  }
}


/* ===========================================================
   HEADER BREAKPOINTS
   =========================================================== */

@media (min-width: 37.5rem) {
  .header-cta {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
  }
}

@media (min-width: 51.25rem) {
  .header-inner {
    gap: 1.5rem;
  }

  .header-cta {
    padding: 0.5rem 1.4rem;
    font-size: 0.9rem;
  }
}

@media (min-width: 75rem) {
  .logo-img {
    height: 3.75rem;
  }

  .logo-title {
    font-size: 1.4rem;
  }

  .header-cta {
    padding: 0.6rem 1.7rem;
    font-size: 0.95rem;
  }
}

/* ===========================================================
   HERO SECTION – FLUID (CLEAN + VIDEO)
   =========================================================== */

.hero {
  padding-top: clamp(1rem, 2vw, 2rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background: linear-gradient(180deg, #000000, #0a0a0a);
}

.hero-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 5vw;
}

.hero-content {
  flex: 1 1 45%;
  min-width: 17.5rem;
  padding-top: clamp(0.5rem, 1vw, 1.2rem);
  margin-top: 0;
}

.hero-content h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  color: #fff;
  margin-bottom: 0.9rem;
  line-height: 1.4;
}

.hero-content h1 span { color: var(--gold); }

.hero-subtitle {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--gray);
  max-width: 90%;
  margin-bottom: 1.4rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.btn {
  padding: 0.7rem 1.6rem;
  border-radius: 0.5rem;
  font-size: clamp(0.8rem, 1.8vw, 0.95rem);
  font-weight: bold;
  display: inline-block;
  transition: 0.3s;
}

.btn-primary { background: var(--gold); color: #000; }
.btn-primary:hover { background: var(--gold-light); }

.btn-outline { border: 0.12rem solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: #000; }

.hero-highlights li {
  margin-bottom: 0.4rem;
  color: var(--gold-light);
  font-size: 0.85rem;
}

/* ستون چپ – مدیا */

.hero-visual {
  flex: 1 1 45%;
  min-width: 17.5rem;
  display: flex;
  flex-direction: column;
  gap: 2vw;
  align-items: center; /* وسط‌چین شدن قاب */
}

/* -----------------------------
   قاب پوستر/ویدیو (دسکتاپ)
   - قاب جمع‌شونده (خالی عریض نماند)
   - ارتفاع واکنش‌گرا با rem/vw
   ----------------------------- */

.hero-image-wrapper {
  position: relative;
  overflow: hidden;

  width: fit-content;
  max-width: 100%;
  align-self: center;

  height: clamp(20rem, 40vw, 28rem);

  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 1vw;
  background: #000;
  border: 0.0625rem solid rgba(212, 175, 55, 0.25);
}

/* پوستر: پر قاب (بدون فضای خالی) */
.hero-poster {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
}

/* ویدیو: بدون برش (ممکن است دو طرف فضای خالی طبیعی داشته باشد) */
.hero-video {
  display: none;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: inherit;
  background: #000;
}

/* حالت پخش */
.hero-image-wrapper.is-playing .hero-poster { display: none; }
.hero-image-wrapper.is-playing .hero-video  { display: block; }

/* -----------------------------
   دکمه پخش: دقیقاً وسط + نزدیک هم
   ----------------------------- */

.hero-play {
  position: absolute;
  inset: 0;
  z-index: 2;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 0.35rem;          /* نزدیک شدن متن به آیکون */
  text-align: center;

  border: 0;
  cursor: pointer;
  color: #fff;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.55));
  backdrop-filter: blur(2px);
}

.hero-play-icon {
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 999px;
  background: rgba(0,0,0,0.45);
  position: relative;
  transition: 0.25s;
}

.hero-play-icon::before {
  content: "";
  position: absolute;
  inset-inline-start: 1.25rem;
  inset-block-start: 1.30rem;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 0.9rem 0 0.9rem 1.2rem;
  border-color: transparent transparent transparent rgba(212,175,55,0.95);
}

.hero-play-text {
  font-family: "IRANSans", sans-serif; /* یا هر فونتی که داری */
  font-weight: 800;                    /* بولد واقعی */
  font-size: 0.8rem;                     /* دلخواه */
  line-height: 1.2;
  opacity: 0.95;
}

.hero-play:hover .hero-play-icon {
  transform: scale(1.03);
  border-color: rgba(232,196,106,0.85);
}

.hero-image-wrapper.is-playing .hero-play { display: none; }


/* موبایل: قاب تمام عرض شود و دور کادر خالی نماند */
@media (max-width: 48rem) {
  .hero-inner {
    flex-direction: column;
    text-align: center;
  }

  .hero-subtitle { margin-inline: auto; }
  .hero-highlights { text-align: right; }

  .hero-image-wrapper {
    width: 100%;
    height: auto;          /* مهم: کادر به اندازه محتوا شود */
    max-height: 80vh;      /* کنترل ارتفاع */
    border-radius: 14px;
    display: block;
  }

  /* پوستر در موبایل پر عرض و بدون کادر خالی */
  .hero-poster {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: cover;
    display: block;
  }

  /* ویدیو در موبایل: نسبت حفظ، بدون برش */
  .hero-video {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
    display: none;
  }

  .hero-play-icon {
    width: 4rem;
    height: 4rem;
  }
}


/* ===========================================================
   SECTION BASE STYLE – FLUID
   =========================================================== */

.section {
  padding-block: clamp(3rem, 6vw, 5.5rem);
  background: #000;
}

.section-alt {
  background: #0a0a0a;
  padding-block: clamp(3rem, 6vw, 5.5rem);
}

.section h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  color: var(--gold);
  margin-bottom: 1rem;
}

.section-lead {
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  color: var(--gray);
  max-width: 42rem;
  margin: 0 auto 2.2rem auto;
  text-align: center;
}

.two-column {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 3vw;
}

.section-content {
  flex: 1 1 45%;
  min-width: 17.5rem;
}

.section-visual {
  flex: 1 1 45%;
  min-width: 17.5rem;
}

.section-visual img {
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}


.section-content p {
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

/* موبایل: دو ستون زیر هم */

@media (max-width: 48rem) {
  .two-column {
    flex-direction: column;
    text-align: center;
  }

  .section-content p {
    text-align: justify;
  }
}

/* ===========================================================
   STEPS CARDS
   =========================================================== */

.steps-grid {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.step-card {
  background: #111;
  padding: 1.5rem;
  border-radius: 0.8rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  transition: 0.3s;
  font-size: 0.9rem;
}

.step-card:hover {
  border-color: var(--gold);
}

.step-number {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--gold);
  margin-bottom: 0.6rem;
}

/* از تبلت به بالا: دو ستونه */

@media (min-width: 48rem) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===========================================================
   TELEGRAM PREVIEW
   =========================================================== */

.telegram-preview {
  margin-top: 3rem;
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  align-items: center;
}

.telegram-preview-inner {
  background: #111;
  padding: 1.3rem;
  border-radius: 0.9rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.08);
  flex: 1 1 45%;
  min-width: 17rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.telegram-preview-inner img {
  margin: 0 auto;
}


.telegram-preview-text {
  flex: 1 1 45%;
  min-width: 17rem;
}

.telegram-preview-text h3 {
  margin-bottom: 0.8rem;
  color: var(--gold);
  font-size: 1.05rem;
  line-height: 1.6;
  font-weight: bold;
}

.telegram-preview-text p {
  font-size: 0.95rem;
  color: var(--gray);
}

/* موبایل: زیر هم */

@media (max-width: 48rem) {
  .telegram-preview {
    flex-direction: column;
  }
}

/* ===========================================================
   ADVANTAGES GRID
   =========================================================== */

.advantages-grid {
  margin-top: 2.5rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.8rem;
}

.adv-card {
  background: #111;
  padding: 1.5rem;
  border-radius: 0.8rem;
  border: 0.0625rem solid rgba(255, 255, 255, 0.06);
  transition: 0.3s;
  font-size: 0.9rem;
}

.adv-card:hover {
  border-color: var(--gold);
}

/* از تبلت به بالا: دو ستونه */

@media (min-width: 48rem) {
  .advantages-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ===========================================================
   TIMELINE
   =========================================================== */

.steps-timeline {
  margin-top: 2.5rem;
  border-right: 0.125rem solid var(--gold);
  padding-right: 1.8rem;
}

.timeline-item {
  margin-bottom: 2rem;
  position: relative;
}

.timeline-dot {
  width: 0.9rem;
  height: 0.9rem;
  background: var(--gold);
  border-radius: 50%;
  position: absolute;
  right: -2.3rem;
  top: 0.4rem;
}

.timeline-content h3 {
  margin-bottom: 0.4rem;
  color: var(--gold-light);
  font-size: 0.98rem;
}

.timeline-content p {
  font-size: 0.9rem;
}

/* ===========================================================
   FINAL CTA
   =========================================================== */

.final-cta-box {
  margin-top: 3.2rem;
  padding: 1.8rem;
  text-align: center;
  background: #111;
  border-radius: 0.9rem;
  border: 0.0625rem solid rgba(212, 175, 55, 0.2);
}

.final-cta-box h3 {
  margin-bottom: 0.6rem;
  font-size: 1.05rem;
  color: var(--gold);
}

.final-cta-box p {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.2rem;
}

.btn-lg {
  padding: 0.8rem 2rem;
  font-size: 0.95rem;
}


/* Final socials box */
.final-socials {
  margin-top: 1.6rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.final-socials a {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: 0.6rem;
  font-size: 0.85rem;
  color: var(--gold);
  transition: 0.25s;
}

.final-socials a:hover {
  background: var(--gold);
  color: #000;
}

.final-socials img {
  width: 18px;
  height: 18px;
}

/* موبایل */
@media (max-width: 600px) {
  .final-socials a {
    font-size: 0.8rem;
    padding: 0.45rem 0.7rem;
  }

  .final-socials img {
    width: 16px;
    height: 16px;
  }
}



/* ===========================================================
   FOOTER
   =========================================================== */

.main-footer {
  padding-block: 2.5rem;
  text-align: center;
  background: #000;
  color: var(--gray);
  font-size: 0.85rem;
}

.footer-note {
  margin-top: 0.5rem;
  font-size: 0.8rem;
  color: #777;
}

/* ===========================================================
   GLOBAL RESPONSIVE TWEAKS
   =========================================================== */

@media (max-width: 37.5rem) {
  .hero-content h1 {
    font-size: clamp(1.4rem, 5vw, 1.7rem);
  }

  .final-cta-box {
    padding: 1.4rem;
  }
}
