/* ==========================================================
   Arvan Gaming — بازطراحی مینیمال شیشه‌ای
   رنگ اصلی: بنفش | بدوارز: قرمز نئونی | رول‌پلی: زرد نئونی
   ========================================================== */
@font-face { font-family: Modam-Light;   src: url(../../fonts/Modam/numeral/woff2/ModamFaNumWeb-Light.woff2);   font-display: swap; }
@font-face { font-family: Modam-Regular; src: url(../../fonts/Modam/numeral/woff2/ModamFaNumWeb-Regular.woff2); font-display: swap; }
@font-face { font-family: Modam-Medium;  src: url(../../fonts/Modam/numeral/woff2/ModamFaNumWeb-Medium.woff2);  font-display: swap; }
@font-face { font-family: Modam-Bold;    src: url(../../fonts/Modam/numeral/woff2/ModamFaNumWeb-Bold.woff2);    font-display: swap; }

:root {
  --bg: #07050e;
  --ink: #f5f0fb;
  --muted: #a99fbb;
  --purple: #9b59b6;
  --violet: #b98cff;
  --red: 255, 46, 77;
  --yellow: 255, 194, 26;
  --glass: linear-gradient(135deg, rgba(255,255,255,.085), rgba(255,255,255,.028));
  --glass-line: rgba(255,255,255,.12);
  --glass-blur: blur(18px) saturate(150%);
  --font: "Modam-Light", "Roboto", system-ui, sans-serif;
  --font-md: "Modam-Medium", "Modam-Regular", "Roboto", sans-serif;
  --font-bd: "Modam-Bold", "Roboto", sans-serif;
  --r-lg: 24px;
  --r-md: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; overflow-x: hidden; }
body {
  margin: 0;
  direction: rtl;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  line-height: 1.8;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 85% -10%, rgba(155,89,182,.28), transparent 70%),
    radial-gradient(50vw 50vh at 5% 45%, rgba(110,60,200,.16), transparent 70%),
    radial-gradient(60vw 60vh at 90% 95%, rgba(155,89,182,.14), transparent 70%);
  transform: translateZ(0);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-bd); color: #fff; margin: 0; line-height: 1.4; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(155,89,182,.5); }

.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.section { padding: 100px 0; position: relative; }

/* ---------- glass primitive ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 20px 50px -20px rgba(0,0,0,.6);
}

/* ---------- header ---------- */
.header {
  position: fixed;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: min(1040px, calc(100% - 24px));
  z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  padding: 10px 14px 10px 12px;
  border-radius: 999px;
  transition: background .3s, box-shadow .3s, top .3s;
}
.header.scrolled {
  top: 10px;
  background: linear-gradient(135deg, rgba(20,14,32,.62), rgba(20,14,32,.4));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 14px 40px -12px rgba(0,0,0,.7), 0 0 0 1px rgba(155,89,182,.18);
}
.logo-text {
  font-family: "Orbitron", "Poppins", sans-serif;
  font-weight: 800; font-size: 1.25rem; letter-spacing: .5px;
  color: #fff; padding-inline: 10px;
}
.logo-text b { color: var(--violet); font-weight: 800; }

.navmenu ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.navmenu a {
  display: block; padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-md); font-size: .92rem; color: #d9d0e8;
  transition: background .25s, color .25s;
}
.navmenu a:hover { color: #fff; background: rgba(255,255,255,.08); }
.navmenu a.active {
  color: #fff;
  background: rgba(155,89,182,.28);
  box-shadow: inset 0 0 0 1px rgba(185,140,255,.35);
}

.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-login {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 18px; border-radius: 999px;
  font-family: var(--font-md); font-size: .88rem; color: #fff;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--glass-line);
  transition: background .25s, border-color .25s;
}
.btn-login:hover { background: rgba(155,89,182,.3); border-color: rgba(185,140,255,.5); }
.btn-login i { font-size: 1rem; }
.nav-toggle {
  display: none; width: 40px; height: 40px; border-radius: 50%;
  align-items: center; justify-content: center;
  background: rgba(255,255,255,.07); border: 1px solid var(--glass-line);
  color: #fff; font-size: 1.5rem; cursor: pointer;
}

/* mobile drawer */
.drawer-overlay {
  position: fixed; inset: 0; z-index: 1998;
  background: rgba(4,2,10,.6);
  opacity: 0; visibility: hidden; transition: .3s;
}
.drawer-overlay.active { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 12px; bottom: 12px; right: 12px;
  width: min(300px, 80vw);
  z-index: 1999; padding: 24px 18px;
  border-radius: var(--r-lg);
  display: flex; flex-direction: column;
  transform: translateX(120%); visibility: hidden;
  transition: transform .35s cubic-bezier(.4,0,.2,1), visibility .35s;
  background: linear-gradient(160deg, rgba(30,20,48,.78), rgba(14,9,24,.72));
}
.drawer.open { transform: none; visibility: visible; }
.drawer ul { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; }
.drawer a {
  display: block; padding: 13px 16px; border-radius: 14px;
  font-family: var(--font-md); font-size: 1.05rem; color: #ddd3ee;
}
.drawer a:hover, .drawer a.active { background: rgba(155,89,182,.25); color: #fff; }
.drawer-foot { margin-top: auto; padding-top: 18px; border-top: 1px solid var(--glass-line); text-align: center; color: var(--muted); font-size: .85rem; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 130px 0 90px; overflow: hidden;
  isolation: isolate;
}
.hero-bg {
  position: absolute; inset: -6% 0; z-index: -2; will-change: transform; overflow: hidden;
  background:
    radial-gradient(52% 46% at 50% 36%, rgba(139,92,246,.50) 0%, rgba(109,52,190,.24) 45%, transparent 75%),
    radial-gradient(40% 36% at 92% 8%, rgba(185,140,255,.16), transparent 70%),
    radial-gradient(44% 40% at 6% 80%, rgba(155,89,182,.16), transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
/* عکس بکگراند هیرو: لبه‌ها از هر چهار طرف فید می‌شوند */
.hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(60% 55% at 50% 45%, rgba(7,5,14,.55) 0%, rgba(7,5,14,.25) 60%, transparent 100%),
    linear-gradient(rgba(40,18,78,.35), rgba(40,18,78,.35)),
    url(../img/hero-city.webp) center 55% / cover no-repeat;
  opacity: .78;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-image:
    linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%),
    linear-gradient(180deg, transparent 0%, #000 22%, #000 70%, transparent 100%);
          mask-composite: intersect;
}
/* شبکه‌ی خیلی ظریف (کاشی‌های بنفش) که از مرکز به اطراف محو می‌شود */
.hero-bg::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  display: none;
}
/* نویز ملایم برای جلوگیری از بندینگ گرادیانت و حس حرفه‌ای‌تر */
.hero-bg::after {
  content: ""; position: absolute; inset: 0; z-index: 2; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 .9 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(7,5,14,.35) 0%, rgba(7,5,14,0) 22%);
}
.hero-inner { will-change: transform, opacity; animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }

.hero h1 {
  font-size: clamp(2.8rem, 8vw, 5.6rem);
  letter-spacing: -.5px; line-height: 1.15;
  text-shadow: 0 0 48px rgba(155,89,182,.45);
}
.hero-desc { max-width: 520px; margin: 18px auto 30px; color: #cfc6de; font-size: 1.05rem; }

.hero-ip {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 10px 12px 10px 20px; border-radius: 999px;
  direction: ltr;
}
.hero-ip span { font-family: ui-monospace, "SF Mono", Consolas, monospace; font-size: 1rem; letter-spacing: .5px; }
.hero-ip > i { color: var(--violet); }
.copy-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--glass-line);
  background: rgba(255,255,255,.08); color: #fff; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .25s;
}
.copy-btn:hover { background: rgba(155,89,182,.4); }

.hero-online { margin-top: 18px; color: var(--muted); font-size: .95rem; }
.hero-online b { color: #fff; font-family: var(--font-bd); font-size: 1.1rem; }

.hero-buttons { margin-top: 28px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 34px; border-radius: 999px; cursor: pointer;
  font-family: var(--font-bd); font-size: .98rem; color: #fff;
  border: 1px solid var(--glass-line);
  transition: transform .25s, box-shadow .25s, background .25s;
}
.btn-primary {
  background: linear-gradient(135deg, rgba(155,89,182,.85), rgba(110,55,160,.75));
  border-color: rgba(185,140,255,.55);
  box-shadow: 0 0 0 1px rgba(155,89,182,.2), 0 10px 40px -8px rgba(155,89,182,.75), inset 0 1px 0 rgba(255,255,255,.28);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(185,140,255,.4), 0 14px 46px -6px rgba(155,89,182,.95), inset 0 1px 0 rgba(255,255,255,.3); color: #fff; }
.btn-glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.14);
}
.btn-glass:hover { background: rgba(255,255,255,.12); transform: translateY(-2px); color: #fff; }

/* ---------- section titles ---------- */
.section-title { text-align: center; margin-bottom: 52px; }
.section-title h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); }
.section-title p { color: var(--muted); margin-top: 10px; font-size: .98rem; }

/* ---------- status ---------- */
.status-indicator { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 999px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08); }
.status-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.status-dot.online  { background: #2dff8f; box-shadow: 0 0 10px rgba(45,255,143,.8); animation: pulse 2s infinite; }
.status-dot.offline { background: #ff4a5c; box-shadow: 0 0 8px rgba(255,74,92,.6); }
.status-dot.loading { background: #ffb020; animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.status-text { font-size: .8rem; font-family: var(--font-md); white-space: nowrap; color: #bbb; }
.status-text.online { color: #2dff8f; }
.status-text.offline { color: #ff6a79; }
.status-text.loading { color: #ffb020; }

/* ---------- gamemodes (compact cards) ---------- */
.modes { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 760px; margin: 0 auto; }
.mode {
  --c: 155, 89, 182;
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: 18px; padding: 18px 20px;
  display: flex; flex-direction: column; gap: 12px;
  border: 1px solid rgba(255,255,255,.09);
  border-top: 2px solid rgba(var(--c), .7);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(var(--c), .10), transparent 60%),
    rgba(255,255,255,.03);
  transition: transform .25s, border-color .25s, background .25s;
}
.mode:hover { transform: translateY(-2px); border-color: rgba(var(--c), .4); border-top-color: rgba(var(--c), .9); }
.mode--red { --c: var(--red); }
.mode--yellow { --c: var(--yellow); }

.mode-top { display: flex; align-items: center; gap: 12px; }
.mode-icon {
  width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.25rem; color: #fff;
  background: rgba(var(--c), .9);
  box-shadow: 0 4px 14px -4px rgba(var(--c), .55);
}
.mode-icon svg { display: block; }
.mode-title { flex: 1; min-width: 0; }
.mode-title h3 { font-size: 1.1rem; line-height: 1.3; }
.version { display: block; margin-top: 2px; font-size: .74rem; color: var(--muted); direction: ltr; text-align: right; }
.mode .status-indicator { padding: 3px 10px; gap: 6px; }
.mode .status-dot { width: 7px; height: 7px; box-shadow: none !important; }
.mode .status-text { font-size: .72rem; }
.mode-desc { margin: 0; color: #b9afc9; font-size: .84rem; line-height: 1.85; }

/* ---------- about ---------- */
.about-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 28px; align-items: center; }
.about-text h2 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin-bottom: 18px; }
.about-text p { color: #cbc2da; max-width: 60ch; }
.about-text .btn { margin-top: 26px; }
.cta-card { border-radius: 28px; padding: 38px 28px; text-align: center; position: relative; overflow: hidden; }
.cta-card::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 80%;
  background: radial-gradient(closest-side, rgba(155,89,182,.5), transparent);
  z-index: -1;
}
.cta-card { isolation: isolate; }
.cta-card img { width: 150px; height: 150px; margin: 0 auto 18px; border-radius: 26px; object-fit: cover; box-shadow: 0 0 40px rgba(155,89,182,.45); }
.cta-card h3 { font-size: 1.45rem; }
.cta-card p { color: var(--muted); margin: 8px 0 22px; }

/* ---------- features ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { border-radius: var(--r-lg); padding: 26px 24px; transition: transform .3s, border-color .3s, background .3s; }
.card:hover { transform: translateY(-4px); border-color: rgba(185,140,255,.4); }
.card .ic {
  width: 46px; height: 46px; border-radius: 14px; margin-bottom: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--violet);
  background: rgba(155,89,182,.16);
  border: 1px solid rgba(185,140,255,.3);
  box-shadow: 0 0 22px -4px rgba(155,89,182,.6);
}
.card h4 { font-size: 1.02rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .88rem; line-height: 1.85; }

/* ---------- steps ---------- */
.step { text-align: center; padding: 30px 24px; }
.step .num {
  width: 38px; height: 38px; margin: 0 auto 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-bd); color: #fff;
  background: linear-gradient(135deg, rgba(155,89,182,.9), rgba(110,55,160,.8));
  box-shadow: 0 0 22px rgba(155,89,182,.6);
}
.step > i { display: block; font-size: 1.7rem; color: var(--violet); margin-bottom: 10px; }
.step h4 { font-size: 1.02rem; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: .88rem; }
.step strong { color: #fff; font-family: var(--font-md); direction: ltr; unicode-bidi: embed; }

/* ---------- faq ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { border-radius: 20px; overflow: hidden; transition: border-color .3s; }
.faq-item.open { border-color: rgba(185,140,255,.4); }
.faq-question {
  padding: 20px 24px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--font-md); color: #fff;
}
.faq-question i { transition: transform .3s; color: var(--violet); }
.faq-question.active i { transform: rotate(180deg); }
.faq-answer { max-height: 0; overflow: hidden; padding: 0 24px; color: var(--muted); font-size: .92rem; transition: max-height .35s ease, padding .35s ease; }
.faq-item.open .faq-answer { max-height: 260px; padding: 0 24px 22px; }
.faq-answer strong { color: #fff; direction: ltr; unicode-bidi: embed; }

/* ---------- gallery ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.gallery-item { position: relative; display: block; aspect-ratio: 4/5; border-radius: 22px; overflow: hidden; border: 1px solid var(--glass-line); }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.7,.2,1); }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-caption {
  position: absolute; left: 10px; right: 10px; bottom: 10px;
  display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 14px;
  font-family: var(--font-md); font-size: .85rem; color: #fff;
  background: rgba(14,9,24,.45);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--glass-line);
}
.gallery-caption i { color: var(--violet); }

/* ---------- tutorials ---------- */
.tutorial { display: block; overflow: hidden; border-radius: var(--r-lg); transition: transform .3s, border-color .3s; }
.tutorial:hover { transform: translateY(-4px); border-color: rgba(185,140,255,.4); }
.tutorial-thumb {
  height: 150px; display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; color: rgba(255,255,255,.9);
  background: radial-gradient(80% 90% at 50% 0%, rgba(155,89,182,.4), transparent 70%);
  border-bottom: 1px solid var(--glass-line);
}
.tutorial-info { padding: 18px 22px 22px; }
.tutorial-info h4 { font-size: 1.02rem; margin-bottom: 6px; }
.tutorial-info p { color: var(--muted); font-size: .86rem; }

/* ---------- footer ---------- */
.footer { padding: 0 0 28px; }
.footer-bar { width: min(1120px, 100% - 40px); margin: 0 auto; padding: 16px 26px; border-radius: 999px; display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.footer-brand { font-family: var(--font-bd); color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  color: #d9d0e8; font-size: 1.15rem; background: rgba(255,255,255,.06); border: 1px solid var(--glass-line);
  transition: background .25s, color .25s;
}
.footer-social a:hover { background: rgba(155,89,182,.35); color: #fff; }

/* ---------- scroll top ---------- */
.scroll-top {
  position: fixed; left: 20px; bottom: 20px; z-index: 900;
  width: 46px; height: 46px; border-radius: 50%; color: #fff; font-size: 1.6rem;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; transform: translateY(10px); transition: .3s;
}
.scroll-top.active { opacity: 1; visibility: visible; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 991px) {
  .navmenu { display: none; }
  .nav-toggle { display: inline-flex; }
  .btn-login .btn-text { display: none; }
  .btn-login { padding: 0; width: 40px; height: 40px; justify-content: center; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .section { padding: 72px 0; }
  .modes { grid-template-columns: 1fr; gap: 12px; }
  .section-title { margin-bottom: 32px; }
  .mode { padding: 16px; }
  .grid-3 { grid-template-columns: 1fr; }
  .hero-ip span { font-size: .88rem; }
  .footer-bar { border-radius: 28px; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass, .mode, .header, .drawer { background: rgba(24,16,38,.92); }
}


/* ==========================================================
   ✦ بهبودهای ظاهری + اسکرول نرم (لایه‌ی نهایی)
   ========================================================== */

/* --- کارت‌های داخل صفحه بدون blur سنگین (اسکرول روان‌تر)؛ blur فقط برای هدر/دکمه‌ها --- */
.card.glass, .faq-item.glass, .tutorial.glass, .cta-card.glass {
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
}

/* --- ظاهر شدن نرم --- */
.js .reveal { opacity: 0; }
.js .reveal.in {
  opacity: 1;
  animation: revealUp .9s cubic-bezier(.2,.7,.2,1) backwards;
  animation-delay: var(--d, 0s);
}
@keyframes revealUp { from { opacity: 0; transform: translate3d(0, 28px, 0); } to { opacity: 1; transform: none; } }

/* --- تیتر سکشن‌ها: خط تاکید مینیمال --- */
.section-title h2 { position: relative; display: inline-block; padding-bottom: 16px; }
.section-title h2::after {
  content: ""; position: absolute; bottom: 0; left: 50%; width: 36px; height: 3px; margin-left: -18px;
  border-radius: 3px; background: linear-gradient(90deg, var(--purple), var(--violet));
  box-shadow: 0 0 14px rgba(155,89,182,.7);
}
.section-title p { margin-top: 6px; }

/* --- جداکننده‌ی ظریف بین سکشن‌ها --- */
.section + .section::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(720px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(185,140,255,.28), transparent);
}

/* --- هیرو: درخشش ملایم روی IP و دکمه‌ها --- */
.hero-ip { transition: box-shadow .35s, border-color .35s; }
.hero-ip:hover { border-color: rgba(185,140,255,.45); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 0 40px -6px rgba(155,89,182,.6); }
.hero::before {
  content: ""; position: absolute; bottom: 26px; left: 50%; width: 22px; height: 36px; margin-left: -11px;
  border: 1.5px solid rgba(255,255,255,.35); border-radius: 14px; opacity: .8;
  background: radial-gradient(circle 2px at 50% 8px, #fff 98%, transparent) no-repeat;
  animation: mouseDot 1.8s ease-in-out infinite;
}
@keyframes mouseDot { 0%,100% { background-position: 0 0; } 50% { background-position: 0 12px; } }

/* --- هاور نرم‌تر کارت‌ها --- */
.card, .tutorial, .mode, .gallery-item { transition-timing-function: cubic-bezier(.2,.7,.2,1); }
.card:hover, .tutorial:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 50px -22px rgba(155,89,182,.55); }

/* --- بخش آموزش‌ها --- */
.tutorials-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tutorial { cursor: pointer; position: relative; outline-offset: 4px; }
.tutorial.soon { cursor: default; }
.tutorial.soon:hover { transform: none; box-shadow: none; border-color: var(--glass-line); }
.tutorial-thumb {
  position: relative; height: auto; aspect-ratio: 16/9; overflow: hidden;
  background: radial-gradient(80% 90% at 50% 0%, rgba(155,89,182,.42), transparent 70%), rgba(255,255,255,.02);
}
.tutorial-thumb img, .tutorial-thumb video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .7s cubic-bezier(.2,.7,.2,1), filter .4s;
}
.tutorial:not(.soon):hover .tutorial-thumb img, .tutorial:not(.soon):hover .tutorial-thumb video { transform: scale(1.06); }
.tutorial-thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7,5,14,.55)); pointer-events: none; }
.tutorial .play {
  position: absolute; z-index: 2; top: 50%; left: 50%; width: 58px; height: 58px; margin: -29px 0 0 -29px;
  display: flex; align-items: center; justify-content: center; font-size: 1.9rem; color: #fff; border-radius: 50%;
  background: rgba(155,89,182,.55); border: 1px solid rgba(185,140,255,.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 8px 30px -6px rgba(155,89,182,.9);
  transition: transform .35s cubic-bezier(.2,.7,.2,1), background .3s;
}
.tutorial:not(.soon):hover .play { transform: scale(1.12); background: rgba(155,89,182,.8); }
.tutorial.soon .play { background: rgba(255,255,255,.08); border-color: var(--glass-line); box-shadow: none; font-size: 1.4rem; }
.tutorial .dur, .tutorial .badge-soon {
  position: absolute; z-index: 2; bottom: 10px; left: 10px; padding: 2px 10px; border-radius: 999px;
  font-size: .72rem; font-family: var(--font-md); color: #fff; direction: ltr;
  background: rgba(7,5,14,.65); border: 1px solid rgba(255,255,255,.12);
}
.tutorial .dur:empty { display: none; }
.tutorial .badge-soon { direction: rtl; color: #ffd37a; border-color: rgba(255,194,26,.3); }
.tutorial-info { position: relative; }
.num-tag { position: absolute; top: 16px; left: 20px; font-family: "Orbitron", sans-serif; font-size: .78rem; color: rgba(185,140,255,.55); letter-spacing: 1px; }
.tutorials-empty { grid-column: 1 / -1; text-align: center; padding: 48px 20px; border-radius: var(--r-lg); color: var(--muted); }
.tutorials-empty i { font-size: 2rem; color: var(--violet); display: block; margin-bottom: 8px; }

/* --- توست --- */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 3000; transform: translate(-50%, 20px);
  padding: 11px 24px; border-radius: 999px; font-family: var(--font-md); font-size: .92rem; color: #fff;
  background: linear-gradient(135deg, rgba(40,26,64,.85), rgba(20,14,32,.8));
  opacity: 0; pointer-events: none; transition: opacity .3s, transform .4s cubic-bezier(.2,.7,.2,1);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* --- اسکرول‌بار مینیمال --- */
html { scrollbar-width: thin; scrollbar-color: rgba(155,89,182,.55) transparent; }
::-webkit-scrollbar { width: 9px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(155,89,182,.45); border-radius: 9px; border: 2px solid var(--bg); }
::-webkit-scrollbar-thumb:hover { background: rgba(185,140,255,.7); }

@media (max-width: 991px) { .tutorials-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) { .tutorials-grid { grid-template-columns: 1fr; } .hero::before { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1 !important; }
}

/* ==========================================================
   ✦ کارت «آماده ماجراجویی هستی؟» (نسخه‌ی جدید)
   ========================================================== */
.cta-new { padding: 30px 28px 36px; }
.cta-new::before {
  inset: auto; top: -30%; left: 50%; width: 120%; height: 75%; transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(155,89,182,.55), transparent);
}
.cta-art { position: relative; margin: -6px auto 6px; max-width: 320px; }
.cta-new .cta-art img { display: block; width: 100%; height: auto; margin: 0 auto; border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 34px rgba(90,40,150,.55)); }

.cta-live {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 14px; padding: 4px 14px;
  border-radius: 999px; font-size: .8rem; color: #cfc6de;
  background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.08);
}
.cta-live b { color: #fff; font-family: var(--font-bd); }
.cta-new h3 { font-size: 1.5rem; }
.cta-new p { margin: 8px auto 24px; max-width: 30ch; }
.cta-new .btn i { transition: transform .3s; }
.cta-new .btn:hover i { transform: translateX(-4px); }

/* مربع‌های پیکسلی شناور (حس ماینکرفت) */
.cta-new .px {
  position: absolute; z-index: -1; width: 10px; height: 10px; border-radius: 2px;
  background: rgba(185,140,255,.55); box-shadow: 0 0 14px rgba(155,89,182,.7);
  animation: pxRise 7s linear infinite;
}
.cta-new .p1 { left: 12%; bottom: -10px; animation-duration: 7s; }
.cta-new .p2 { left: 28%; bottom: -10px; width: 7px; height: 7px; animation-duration: 9s; animation-delay: 1.5s; }
.cta-new .p3 { left: 52%; bottom: -10px; animation-duration: 8s; animation-delay: 3s; }
.cta-new .p4 { left: 74%; bottom: -10px; width: 8px; height: 8px; animation-duration: 10s; animation-delay: .8s; }
.cta-new .p5 { left: 90%; bottom: -10px; width: 6px; height: 6px; animation-duration: 6.5s; animation-delay: 2.2s; }
@keyframes pxRise { 0% { transform: translateY(0) rotate(0); opacity: 0; } 15% { opacity: .9; } 100% { transform: translateY(-340px) rotate(180deg); opacity: 0; } }

/* ==========================================================
   ✦ بخش دانلودها
   ========================================================== */
.dl-tabs {
  display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 34px; padding: 6px; border-radius: 999px;
}
.dl-tab {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; border: 0; border-radius: 999px; cursor: pointer;
  font-family: var(--font-md); font-size: .92rem; color: #cfc6de; background: transparent;
  transition: background .3s, color .3s, box-shadow .3s;
}
.dl-tab:hover { color: #fff; background: rgba(255,255,255,.06); }
.dl-tab.active {
  color: #fff; background: linear-gradient(135deg, rgba(155,89,182,.85), rgba(110,55,160,.75));
  box-shadow: 0 8px 26px -8px rgba(155,89,182,.9), inset 0 1px 0 rgba(255,255,255,.25);
}
.dl-panel { display: none; }
.dl-panel.active { display: block; }
.dl-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.dl-panel.active .dl-card { animation: dlIn .6s cubic-bezier(.2,.7,.2,1) backwards; }
.dl-panel.active .dl-card:nth-child(2) { animation-delay: .07s; }
.dl-panel.active .dl-card:nth-child(3) { animation-delay: .14s; }
@keyframes dlIn { from { opacity: 0; transform: translate3d(0, 20px, 0); } to { opacity: 1; transform: none; } }

.dl-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 26px 24px 24px; border-radius: var(--r-lg);
  -webkit-backdrop-filter: none; backdrop-filter: none;
  background: linear-gradient(145deg, rgba(255,255,255,.065), rgba(255,255,255,.02));
  transition: transform .3s cubic-bezier(.2,.7,.2,1), border-color .3s, box-shadow .3s;
}
.dl-card:not(.soon):hover { transform: translateY(-4px); border-color: rgba(185,140,255,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.14), 0 24px 50px -22px rgba(155,89,182,.55); }
.dl-ic {
  width: 52px; height: 52px; border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--violet); background: rgba(155,89,182,.16);
  border: 1px solid rgba(185,140,255,.3); box-shadow: 0 0 22px -4px rgba(155,89,182,.6);
}
.dl-body { flex: 1; }
.dl-body h4 { font-size: 1.02rem; }
.dl-ver { display: inline-block; margin-top: 6px; padding: 1px 10px; border-radius: 999px; font-size: .74rem; direction: ltr; color: #dcbfff; background: rgba(155,89,182,.18); border: 1px solid rgba(185,140,255,.25); }
.dl-body p { margin-top: 10px; color: var(--muted); font-size: .86rem; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; color: #8f85a3; font-size: .78rem; }
.dl-meta i { margin-left: 5px; color: var(--violet); }
.dl-badge {
  position: absolute; top: 18px; left: 18px; padding: 2px 12px; border-radius: 999px;
  font-size: .72rem; font-family: var(--font-md); color: #2dff8f;
  background: rgba(45,255,143,.1); border: 1px solid rgba(45,255,143,.3);
}
.dl-btn { width: 100%; padding: 11px 20px; }
.dl-btn.disabled { opacity: .55; cursor: not-allowed; }
.dl-btn.disabled:hover { transform: none; background: var(--glass); }
.dl-card.soon .dl-ic { filter: grayscale(.6); opacity: .8; }
.dl-empty { grid-column: 1 / -1; text-align: center; padding: 44px 20px; border-radius: var(--r-lg); color: var(--muted); }
.dl-empty i { display: block; font-size: 2rem; color: var(--violet); margin-bottom: 8px; }
.dl-help { margin-top: 30px; text-align: center; color: var(--muted); font-size: .92rem; }
.dl-help i { color: var(--violet); margin-left: 6px; }
.dl-help a { color: #fff; font-family: var(--font-md); border-bottom: 1px dashed rgba(185,140,255,.6); transition: color .25s; }
.dl-help a:hover { color: var(--violet); }

@media (max-width: 991px) { .dl-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .dl-grid { grid-template-columns: 1fr; }
  .dl-tabs { width: 100%; }
  .dl-tab { flex: 1; justify-content: center; padding: 10px 8px; font-size: .84rem; }
}

/* ---- دانلود: حالت بعد از کلیک و چشمک‌ِ ورود به بخش ---- */
.dl-btn.started { background: linear-gradient(135deg, #1fbf75, #138a57); border-color: rgba(45,255,143,.5); pointer-events: none; }
.dl-panels.dl-flash .dl-card:not(.soon) { animation: dlFlash 1.3s ease-out; }
@keyframes dlFlash { 0% { box-shadow: 0 0 0 0 rgba(185,140,255,.7); } 100% { box-shadow: 0 0 0 22px rgba(185,140,255,0); } }
@media (prefers-reduced-motion: reduce) { .dl-panels.dl-flash .dl-card { animation: none; } }


/* ==========================================================
   ✦ نسخه‌ی موبایل: دکمه‌ها و کارت‌های جمع‌وجورتر
   (آخر فایل است تا روی قانون‌های قبلی اولویت داشته باشد)
   ========================================================== */
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .section { padding: 52px 0; }
  .section-title { margin-bottom: 24px; }
  .section-title h2 { font-size: 1.4rem; }
  .section-title p { font-size: .85rem; margin-top: 6px; }

  /* هدر */
  .header { top: 10px; padding: 6px 8px 6px 10px; gap: 8px; width: calc(100% - 20px); }
  .header.scrolled { top: 8px; }
  .logo-text { font-size: 1.02rem; padding-inline: 8px; }
  .nav-toggle, .btn-login { width: 36px; height: 36px; font-size: 1.3rem; }
  .btn-login i { font-size: .95rem; }
  .drawer a { padding: 11px 14px; font-size: 1rem; }

  /* دکمه‌ها (همه‌جا) */
  .btn { padding: 7px 16px; font-size: .8rem; gap: 6px; }

  /* هیرو */
  .hero { min-height: 88svh; padding: 92px 0 48px; }
  .hero h1 { font-size: clamp(2.1rem, 11vw, 2.8rem); }
  .hero-desc { font-size: .9rem; margin: 10px auto 20px; max-width: 310px; }
  .hero-ip { gap: 10px; padding: 5px 6px 5px 14px; }
  .hero-ip span { font-size: .8rem; letter-spacing: 0; }
  .copy-btn { width: 30px; height: 30px; font-size: .8rem; }
  .hero-online { margin-top: 12px; font-size: .82rem; }
  .hero-online b { font-size: .95rem; }
  .hero-photo {
    inset: auto 0; top: 17%; height: auto; aspect-ratio: 16 / 9;
    background-image: radial-gradient(70% 60% at 50% 50%, rgba(7,5,14,.5) 0%, rgba(7,5,14,.2) 65%, transparent 100%), linear-gradient(rgba(40,18,78,.28), rgba(40,18,78,.28)), url(../img/hero-city-sm.webp);
    background-repeat: no-repeat; background-position: center; background-size: 100% 100%;
    opacity: .9;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
            mask-image: linear-gradient(90deg, transparent 0%, #000 6%, #000 94%, transparent 100%), linear-gradient(180deg, transparent 0%, #000 16%, #000 84%, transparent 100%);
  }
  .hero-buttons { margin-top: 16px; gap: 8px; flex-wrap: nowrap; justify-content: center; }
  .hero-buttons .btn { flex: 0 0 auto; width: auto; min-width: 118px; max-width: 150px; padding: 6px 14px; font-size: .76rem; line-height: 1.6; gap: 5px; white-space: nowrap; }
  .hero-buttons .btn i { font-size: .8rem; }

  /* کارت گیم‌مودها */
  .mode { padding: 14px; gap: 8px; }
  .mode-icon { width: 38px; height: 38px; font-size: 1.1rem; }
  .mode-title h3 { font-size: 1rem; }
  .mode-desc { font-size: .8rem; line-height: 1.75; }

  /* درباره + کارت ماجراجویی */
  .about-grid { gap: 20px; }
  .about-text h2 { font-size: 1.4rem; margin-bottom: 10px; }
  .about-text p { font-size: .88rem; line-height: 1.9; }
  .about-text .btn { margin-top: 16px; }
  .cta-new { padding: 18px 18px 22px; border-radius: 22px; }
  .cta-art { max-width: 190px; margin: 0 auto 2px; }
  .cta-live { font-size: .74rem; margin-bottom: 8px; padding: 3px 12px; }
  .cta-new h3 { font-size: 1.15rem; }
  .cta-new p { font-size: .82rem; margin: 6px auto 16px; max-width: 260px; }

  /* ویژگی‌ها: آیکن کنار متن، نه بالای آن */
  .grid-3 { gap: 10px; }
  .card { padding: 14px 16px; border-radius: 18px; }
  .grid-3 > .card:not(.step) { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-items: start; }
  .grid-3 > .card:not(.step) .ic { grid-row: 1 / span 2; width: 40px; height: 40px; margin: 0; font-size: 1.05rem; border-radius: 12px; }
  .card h4 { font-size: .95rem; margin-bottom: 4px; }
  .card p { font-size: .8rem; line-height: 1.75; }
  .step { padding: 18px 16px; }
  .step .num { width: 30px; height: 30px; margin-bottom: 8px; font-size: .9rem; }
  .step > i { font-size: 1.35rem; margin-bottom: 6px; }

  /* گالری */
  .gallery-grid { gap: 10px; }
  .gallery-item { border-radius: 16px; }
  .gallery-caption { font-size: .74rem; }

  /* دانلودها: آیکن کنار عنوان، دکمه‌ی باریک‌تر */
  .dl-tabs { margin-bottom: 18px; padding: 4px; }
  .dl-tab { padding: 8px 6px; font-size: .8rem; gap: 6px; }
  .dl-grid { gap: 10px; }
  .dl-card {
    display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; align-items: start;
    padding: 16px 16px 14px; border-radius: 20px;
  }
  .dl-ic { width: 42px; height: 42px; border-radius: 13px; font-size: 1.2rem; }
  .dl-body { min-width: 0; }
  .dl-body h4 { font-size: .95rem; }
  .dl-ver { margin-top: 4px; font-size: .7rem; padding: 0 8px; }
  .dl-body p { margin-top: 6px; font-size: .8rem; }
  .dl-meta { margin-top: 6px; font-size: .74rem; gap: 4px 12px; }
  .dl-btn { grid-column: 1 / -1; width: 100%; padding: 8px 16px; margin-top: 4px; }
  .dl-badge { top: 14px; left: 14px; padding: 0 10px; font-size: .68rem; }
  .dl-help { margin-top: 20px; font-size: .84rem; }

  /* آموزش‌ها و سوالات */
  .tutorials-grid { gap: 10px; }
  .faq-question { padding: 14px 16px; font-size: .9rem; }
  .faq-answer { padding-inline: 16px; font-size: .84rem; }

  /* فوتر و دکمه‌ی بازگشت به بالا */
  .footer-bar { padding: 12px 18px; gap: 10px; }
  .footer-social a { width: 36px; height: 36px; font-size: 1rem; }
  .scroll-top { left: 14px; bottom: 14px; width: 40px; height: 40px; font-size: 1.4rem; }
}
