/* صفحهٔ /landing: سند مستقل، بدون style.css سایت. عددها از سند تحویل و دو بورد طراحی (گوشی و دسکتاپ).
   مرز 1100px باید با DESKTOP_MQ در landing.js یکی بماند. */
@font-face {
  font-family: Vazirmatn;
  src: url('/fonts/Vazirmatn[wght].woff2') format('woff2-variations'), url('/fonts/Vazirmatn[wght].woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}

html, body { margin: 0; background: #0a0a0a; overflow: hidden; overscroll-behavior: none; scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none; }
*, *::before, *::after { box-sizing: border-box; }
a { color: #f2f2f2; text-decoration: none; }
a:hover { color: #ffffff; }

.lp {
  position: relative; overflow: hidden; height: 100vh; height: 100dvh;
  background: #0a0a0a; color: #f2f2f2; font-family: Vazirmatn, Tahoma, sans-serif; line-height: 1.7;
  display: flex; flex-direction: column; justify-content: center;
}
.lp-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.lp-main { position: relative; z-index: 1; width: 100%; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; }

.lp-sub {
  margin: 0 20px clamp(6px, 1.6vh, 14px); font-size: 14px; color: #c8c8c8; text-align: center; line-height: 1.6;
  text-shadow: 0 0 12px #0a0a0a, 0 0 4px #0a0a0a;
}
.lp-h {
  position: relative; margin: 0 20px clamp(22px, 6.5vh, 60px); font-size: 26px; font-weight: 800; line-height: 1.45; text-align: center;
  text-shadow: 0 0 18px #0a0a0a, 0 0 6px #0a0a0a;
}
.lp-h button {
  position: relative; display: inline-block; margin: 0; padding: 0 1px; border: 0; background: transparent;
  font: inherit; color: inherit; line-height: inherit; text-shadow: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent;
}
.lp-bar { position: absolute; top: auto; left: 0; bottom: -4px; height: 4px; border-radius: 999px; pointer-events: none; will-change: transform, width; }

/* ریل: اسکرول افقی بومی با snap؛ دو فاصلهٔ خالی دو سر تا کارت اول و آخر هم وسط بایستند */
.lp-rail {
  display: flex; gap: 14px; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  padding: 4px 0 8px; -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.lp-rail::-webkit-scrollbar { display: none; }
.lp-pad { flex: 0 0 calc(50% - min(38%, 180px) - 14px); }
.lp-w { flex: 0 0 min(76%, 360px); scroll-snap-align: center; }

.lp-card {
  position: relative; display: block; width: 100%; height: 400px; border-radius: 24px; overflow: hidden;
  background: #151515; border: 1px solid #2a2a2a; color: #f2f2f2;
}
.lp-mig { --acc: #F2C14E; }
.lp-khat { --acc: #229ED9; }
.lp-club { --acc: #F58F7A; }

/* مهاجرت: گیف تمام‌قد از بالا؛ خط‌کش و باشگاه: قاب بالای کارت */
.lp-full { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.lp-shade { position: absolute; right: 0; bottom: 0; left: 0; height: 62%; background: linear-gradient(to top, rgba(10,10,10,0.97) 34%, rgba(10,10,10,0)); }
.lp-media { position: absolute; top: 0; right: 0; left: 0; overflow: hidden; }
.lp-khat .lp-media { aspect-ratio: 16 / 9; }
.lp-club .lp-media { height: min(230px, calc((min(76vw, 360px) - 2px) * 0.8)); }
.lp-media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lp-media-fade { position: absolute; right: 0; bottom: 0; left: 0; height: 14%; background: linear-gradient(to bottom, rgba(21,21,21,0), #151515); }

.lp-body { position: absolute; right: 0; bottom: 0; left: 0; padding: 18px; display: flex; flex-direction: column; gap: 2px; }
.lp-title { font-size: 22px; font-weight: 800; line-height: 1.45; color: var(--acc); }
.lp-title small { font-size: 15px; font-weight: 600; }
.lp-desc { font-size: 14px; color: #c8c8c8; line-height: 1.65; }
.lp-khat .lp-desc { font-size: min(13px, 3.33vw); }
.lp-btn {
  margin-top: 12px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border-radius: 14px;
  font-size: 15px; font-weight: 800; color: #ffffff;
}
.lp-mig .lp-btn { background: linear-gradient(135deg, #F6CD5C 0%, #C8922A 100%); color: #1A1206; }
.lp-khat .lp-btn { background: #229ED9; }
.lp-club .lp-btn { background: linear-gradient(135deg, #E0634A 0%, #B2452F 100%); }

/* برچسب‌های خط‌کش: با vw کوچک می‌شوند تا در گوشی 360px هم یک خط بمانند */
.lp-chips { display: flex; align-items: center; justify-content: center; gap: min(5px, 1.28vw); margin-bottom: 17px; padding-right: 12px; }
.lp-chip {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center; height: 30px; padding: 0 min(8px, 2.05vw); border-radius: 999px;
  background: #f2f2f2; color: #0a0a0a; font-size: min(12.5px, 3.2vw); font-weight: 800; line-height: 1; direction: ltr; white-space: nowrap;
}
.lp-ico { width: 30px; padding: 0; border-radius: 50%; }

/* پنجرهٔ کوتاه (گوشیِ افقی، متن بزرگ‌شده): به‌جای بریدن بالا و پایین، صفحه اسکرول عمودی می‌گیرد */
@media (max-height: 520px) {
  html, body { overflow-y: auto; }
  .lp { height: auto; min-height: 100vh; min-height: 100dvh; }
}

/* ---- دسکتاپ: سه کارت کنار هم، کارت فعال با ماوس/Tab/کلمهٔ تیتر ---- */
@media (min-width: 1100px) {
  html, body { overflow-x: hidden; overflow-y: auto; }
  .lp { height: auto; min-height: 100vh; min-height: 100dvh; }
  .lp-main { max-width: 1200px; padding: 16px 32px; align-items: center; }
  .lp-sub { margin: 0 0 clamp(6px, 1.4vh, 14px); font-size: 17px; }
  .lp-h { margin: 0 0 clamp(36px, 7vh, 72px); font-size: 42px; line-height: 1.4; white-space: nowrap; }
  .lp-rail { overflow: visible; scroll-snap-type: none; align-items: stretch; justify-content: center; gap: 32px; width: 100%; padding: 12px 0; }
  .lp-pad { display: none; }
  .lp-w {
    flex: none; scroll-snap-align: none; transform: scale(0.97); opacity: 0.72; filter: saturate(0.7);
    transition: transform .35s cubic-bezier(.2,.8,.2,1), opacity .35s ease, filter .35s ease;
  }
  .lp-w.is-active { transform: translateY(-10px) scale(1.02); opacity: 1; filter: saturate(1); }
  .lp-card {
    width: min(340px, (100vw - 128px) / 3); height: clamp(430px, 100dvh - 200px, 470px); border-radius: 26px;
    box-shadow: 0 16px 40px rgba(0,0,0,0.45); transition: border-color .35s ease, box-shadow .35s ease;
  }
  .is-active .lp-card { border-color: var(--acc); box-shadow: 0 24px 60px rgba(0,0,0,0.55), 0 0 0 1px var(--acc); }
  .lp-club .lp-media { height: auto; aspect-ratio: 5 / 4; }
}

@media (prefers-reduced-motion: reduce) {
  .lp-w, .lp-card { transition: none; }
}
