/* ==========================================================================
   IranianGamer — stylesheet
   Static, dependency-free, RTL-first. All assets are self-hosted.
   ========================================================================== */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Vazirmatn";
  src: url("../fonts/Vazirmatn-Black.woff2") format("woff2");
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --bg: #070b14;
  --bg-soft: #0b1120;
  --bg-elevated: #101a2e;
  --card: rgba(255, 255, 255, 0.035);
  --card-hover: rgba(255, 255, 255, 0.06);
  --line: rgba(148, 176, 214, 0.16);
  --line-strong: rgba(148, 176, 214, 0.3);
  --text: #e9eff9;
  --muted: #94a6bf;
  --accent: #4de1ff;
  --accent-2: #8b5cff;
  --accent-3: #36f1a0;
  --warn: #ffcf5c;
  --danger: #ff6b7a;
  --grad: linear-gradient(135deg, #4de1ff 0%, #8b5cff 100%);
  --grad-soft: linear-gradient(135deg, rgba(77, 225, 255, 0.14), rgba(139, 92, 255, 0.14));
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --container: 1180px;
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
  font-size: 16px;
  line-height: 1.85;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(900px 480px at 85% -8%, rgba(139, 92, 255, 0.18), transparent 65%),
    radial-gradient(760px 420px at 8% 0%, rgba(77, 225, 255, 0.13), transparent 62%);
  background-repeat: no-repeat;
  min-height: 100vh;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
a { color: inherit; text-decoration: none; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0 0 0.5em; line-height: 1.45; font-weight: 700; letter-spacing: -0.01em; }
ul, ol { margin: 0 0 1em; padding-inline-start: 1.35em; }
li { margin-bottom: 0.4em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

::selection { background: rgba(77, 225, 255, 0.32); color: #fff; }

/* ---------- Helpers ---------- */
.container {
  width: min(var(--container), 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  inset-inline-start: 50%;
  top: -100px;
  transform: translateX(50%);
  background: var(--accent);
  color: #04121a;
  padding: 0.6rem 1.2rem;
  border-radius: 0 0 12px 12px;
  font-weight: 700;
  z-index: 999;
  transition: top 0.2s ease;
}
.skip-link:focus { top: 0; }

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 0.65rem;
  direction: ltr;
  unicode-bidi: isolate;
}

.section { padding-block: 4.5rem; }
.section-tight { padding-block: 3rem; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
}
.section-head h2 { font-size: clamp(1.45rem, 3vw, 2.05rem); margin-bottom: 0.25rem; }
.section-head p { color: var(--muted); margin: 0; max-width: 60ch; }
.section-head .link-more {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--accent);
  white-space: nowrap;
}
.section-head .link-more:hover { text-decoration: underline; }

.muted { color: var(--muted); }
.small { font-size: 0.86rem; }
.center { text-align: center; }

/* ---------- Demo banner ---------- */
.demo-banner {
  background: linear-gradient(90deg, rgba(255, 207, 92, 0.16), rgba(255, 207, 92, 0.06));
  border-bottom: 1px solid rgba(255, 207, 92, 0.32);
  color: #ffe6a6;
  font-size: 0.84rem;
  line-height: 1.7;
  padding-block: 0.5rem;
  text-align: center;
}
.demo-banner strong { color: #fff; }
.demo-banner .dot-split { opacity: 0.5; margin-inline: 0.5rem; }

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 11, 20, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.brand { display: inline-flex; align-items: center; gap: 0.7rem; }
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--grad);
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 1.05rem;
  color: #04121a;
  letter-spacing: -0.02em;
  box-shadow: 0 8px 26px -10px rgba(77, 225, 255, 0.75);
}
.brand-text { display: flex; flex-direction: column; line-height: 1.25; }
.brand-name { font-weight: 800; font-size: 1.02rem; }
.brand-name span { color: var(--accent); }
.brand-sub {
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--muted);
  direction: ltr;
  text-align: right;
}

.site-nav { display: flex; align-items: center; gap: 0.25rem; }
.site-nav a {
  padding: 0.5rem 0.8rem;
  border-radius: 9px;
  font-size: 0.93rem;
  color: #c6d2e6;
  transition: color 0.15s ease, background 0.15s ease;
}
.site-nav a:hover { color: #fff; background: rgba(255, 255, 255, 0.06); }
.site-nav a[aria-current="page"] { color: #fff; background: rgba(77, 225, 255, 0.12); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  border-radius: 11px;
  padding: 0;
  place-items: center;
}
.nav-toggle span {
  display: block;
  width: 19px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  margin: 3px auto;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.78rem 1.4rem;
  border-radius: 12px;
  border: 1px solid transparent;
  background: var(--grad);
  color: #04121a;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.4;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
  box-shadow: 0 14px 32px -18px rgba(77, 225, 255, 0.9);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 18px 38px -16px rgba(77, 225, 255, 0.75); }
.btn:active { transform: translateY(0); }

.btn.secondary {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
  color: var(--text);
  box-shadow: none;
}
.btn.secondary:hover { background: rgba(255, 255, 255, 0.08); }

.btn.ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--text);
  box-shadow: none;
}
.btn.ghost:hover { border-color: var(--accent); color: var(--accent); }

.btn.block { width: 100%; }
.btn[disabled],
.btn.is-disabled { opacity: 0.55; cursor: not-allowed; transform: none !important; box-shadow: none; }

/* ---------- Cards ---------- */
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.card:hover { border-color: var(--line-strong); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.22rem 0.66rem;
  border-radius: 999px;
  background: rgba(77, 225, 255, 0.12);
  border: 1px solid rgba(77, 225, 255, 0.28);
  color: #a9f2ff;
  white-space: nowrap;
}
.pill.green { background: rgba(54, 241, 160, 0.1); border-color: rgba(54, 241, 160, 0.3); color: #9dfbcd; }
.pill.violet { background: rgba(139, 92, 255, 0.14); border-color: rgba(139, 92, 255, 0.32); color: #cdbcff; }
.pill.warn { background: rgba(255, 207, 92, 0.12); border-color: rgba(255, 207, 92, 0.32); color: #ffe3a0; }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); position: relative; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 3rem;
  align-items: center;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.4vw, 3.05rem);
  font-weight: 900;
  line-height: 1.35;
  margin-bottom: 1rem;
}
.hero h1 .grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 1.03rem; color: #b9c6d9; max-width: 52ch; margin-bottom: 1.6rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.8rem; }

.hero-proof { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.hero-proof span { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.84rem; color: var(--muted); }
.hero-proof i {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent-3);
  box-shadow: 0 0 0 4px rgba(54, 241, 160, 0.12);
}

/* Hero visual */
.hero-visual {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 430px;
  margin-inline: auto;
  display: grid;
  place-items: center;
}
.orbit {
  position: absolute;
  inset: 8%;
  border: 1px dashed rgba(148, 176, 214, 0.22);
  border-radius: 50%;
  animation: spin 34s linear infinite;
}
.orbit::before,
.orbit::after {
  content: "";
  position: absolute;
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px 3px rgba(77, 225, 255, 0.6);
}
.orbit::before { top: -4px; left: 50%; }
.orbit::after { bottom: -4px; right: 50%; background: var(--accent-2); box-shadow: 0 0 14px 3px rgba(139, 92, 255, 0.6); }
.orbit.two { inset: 22%; animation-direction: reverse; animation-duration: 24s; }
.orbit.two::before, .orbit.two::after { width: 6px; height: 6px; }

/* دایره اصلی یک تصویر مسطح است: عکس پسزمینه، چهار لوگو، سایهها و متن IG
   یکبار رندر و در همین فایل WebP ذخیره شدهاند؛ در مرورگر هیچ mask/filter/blend
   یا لایه اضافی پردازش نمیشود. هاله بیرونی هم داخل تصویر است. */
.hero-core {
  display: block;
  width: 65.7%;
  height: auto;
  aspect-ratio: 1;
  margin-inline: auto;
}
.float-chip {
  position: absolute;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 11px;
  background: rgba(16, 26, 46, 0.92);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  font-size: 0.74rem;
  line-height: 1.2;
  white-space: nowrap;
  z-index: 2;
}
.float-chip b { font-weight: 700; }
.float-chip .chip-icon {
  width: 24px; height: 24px; border-radius: 7px;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--accent);
  flex: 0 0 auto;
}
.float-chip .chip-icon svg { width: 14px; height: 14px; }
.float-chip.pos-1 { left: 50%; top: 3%; }
.float-chip.pos-2 { left: 83%; top: 21%; }
.float-chip.pos-3 { left: 95%; top: 56%; }
.float-chip.pos-4 { left: 71%; top: 89%; }
.float-chip.pos-5 { left: 29%; top: 89%; }
.float-chip.pos-6 { left: 5%; top: 56%; }
.float-chip.pos-7 { left: 17%; top: 21%; }

.chip-ring {
  position: absolute;
  inset: 0;
  pointer-events: none;
  animation: spin 100s linear infinite;
  will-change: transform;
}
.chip-ring .float-chip { animation: chip-counter 100s linear infinite; }
@keyframes chip-counter {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to { transform: translate(-50%, -50%) rotate(-360deg); }
}

@keyframes spin { to { transform: rotate(360deg); } }

/* چیپ‌های مدار در عرض‌های میانی کمی جمع‌وجورتر می‌شوند تا با متن تلاقی نکنند */
@media (min-width: 1121px) and (max-width: 1320px) {
  .float-chip { font-size: 0.68rem; padding: 0.36rem 0.55rem; gap: 0.4rem; }
  .float-chip .chip-icon { width: 21px; height: 21px; border-radius: 6px; }
  .float-chip .chip-icon svg { width: 12px; height: 12px; }
  .float-chip.pos-1 { top: 5%; }
  .float-chip.pos-2 { left: 82%; top: 22%; }
  .float-chip.pos-3 { left: 93%; top: 56%; }
  .float-chip.pos-4 { left: 73%; top: 87%; }
  .float-chip.pos-5 { left: 27%; top: 87%; }
  .float-chip.pos-6 { left: 7%; top: 56%; }
  .float-chip.pos-7 { left: 18%; top: 22%; }
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin-block: 1rem 0;
}
.trust-strip div {
  background: var(--bg-soft);
  padding: 1.15rem 1.3rem;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.trust-strip strong {
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--accent);
  direction: ltr;
}
.trust-strip span { font-size: 0.88rem; color: #c3cfe2; }

/* ---------- Plans ---------- */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}
.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.plan-card:hover { transform: translateY(-4px); border-color: var(--line-strong); box-shadow: var(--shadow); }
.plan-card.featured {
  border-color: rgba(77, 225, 255, 0.5);
  box-shadow: 0 0 0 1px rgba(77, 225, 255, 0.18), 0 30px 60px -34px rgba(77, 225, 255, 0.5);
  background: linear-gradient(180deg, rgba(77, 225, 255, 0.1), rgba(139, 92, 255, 0.05) 55%, rgba(255, 255, 255, 0.02));
}
.plan-ribbon {
  position: absolute;
  top: -13px;
  inset-inline-start: 50%;
  transform: translateX(50%);
  background: var(--grad);
  color: #04121a;
  font-size: 0.7rem;
  font-weight: 800;
  padding: 0.22rem 0.85rem;
  border-radius: 999px;
  white-space: nowrap;
}
.plan-top { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-bottom: 0.9rem; }
.plan-top h3 { font-size: 1.15rem; margin: 0; }
.plan-duration { font-size: 0.78rem; color: var(--muted); }
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
}
.plan-price .amount {
  font-size: clamp(1.65rem, 3.4vw, 2.15rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.2;
}
.plan-price .unit { font-size: 0.85rem; color: var(--muted); }
.plan-price-old {
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: line-through;
  margin-bottom: 0.9rem;
}
.plan-note { font-size: 0.78rem; color: var(--muted); margin-bottom: 1.1rem; }
.plan-features { list-style: none; padding: 0; margin: 0 0 1.4rem; border-top: 1px solid var(--line); padding-top: 1.1rem; }
.plan-features li {
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  font-size: 0.88rem;
  margin-bottom: 0.55rem;
  color: #cbd7e8;
}
.plan-features li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px; height: 16px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background:
    linear-gradient(135deg, var(--accent), var(--accent-2)) center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4l-1.4-1.4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4l-1.4-1.4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.plan-card .btn { margin-top: auto; }

.trial-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  align-items: stretch;
  max-width: 900px;
  margin-inline: auto;
}
/* پلن‌های تست: همان ساختار پلن‌های اصلی با لهجه‌ی ملایم */
.plan-card.trial {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(139, 92, 255, 0.045));
}
.plan-card.trial .plan-note { margin-bottom: 1.1rem; }

/* ---------- Games ---------- */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.console-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: start;
}
.console-col {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}
.console-col.ps {
  border-color: rgba(77, 160, 255, 0.24);
  background: linear-gradient(180deg, rgba(28, 111, 224, 0.12), rgba(255, 255, 255, 0.02) 62%);
}
.console-col.xbox {
  border-color: rgba(70, 224, 92, 0.22);
  background: linear-gradient(180deg, rgba(70, 224, 92, 0.1), rgba(255, 255, 255, 0.02) 62%);
}
.console-col > .game-card {
  margin-bottom: 0.85rem;
  justify-content: center;
  padding: 0.95rem 1rem;
}
.console-col > .game-card .game-tile { width: 52px; height: 52px; border-radius: 14px; }
.console-col > .game-card .game-meta b { font-size: 1.02rem; }
.console-col .games-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.6rem;
}
.console-col .games-grid .game-card { justify-content: center; }
@media (max-width: 900px) {
  .console-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .console-col { padding: 0.75rem; }
  .console-col .games-grid { gap: 0.45rem; }
  .console-col .game-card { gap: 0.55rem; padding: 0.65rem 0.7rem; }
  .console-col .game-tile { width: 38px; height: 38px; }
  .console-col .game-meta b { font-size: 0.82rem; }
  .console-col .game-meta small { font-size: 0.72rem; }
}
.game-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.game-card:hover { background: var(--card-hover); border-color: var(--line-strong); transform: translateY(-2px); }
.game-tile {
  flex: 0 0 auto;
  width: 46px; height: 46px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: #04121a;
  direction: ltr;
  overflow: hidden;
  padding: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.game-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.game-meta { min-width: 0; }
.game-meta b {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.game-meta small { display: block; font-size: 0.72rem; color: var(--muted); }

.g1 { background: linear-gradient(135deg, #ffcf5c, #ff9a3c); }
.g2 { background: linear-gradient(135deg, #4de1ff, #3a8dff); }
.g3 { background: linear-gradient(135deg, #ff6b7a, #b5378a); }
.g4 { background: linear-gradient(135deg, #36f1a0, #17b978); }
.g5 { background: linear-gradient(135deg, #b9a3ff, #7b5cff); }
.g6 { background: linear-gradient(135deg, #9fb3c8, #64748b); }

/* Console family tiles */
.game-tile.ps {
  background: linear-gradient(145deg, #1c6fe0, #00286e);
  color: #fff;
}
.game-tile.xbox {
  background: radial-gradient(circle at 30% 24%, #46e05c, #0c6b0c 72%);
  color: #fff;
}
.game-tile svg { display: block; width: auto; }
.game-tile.ps svg { width: 60%; height: 60%; }
.game-tile.xbox svg { width: 62%; height: 62%; }

/* ---------- Features ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.feature {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--line);
}
.feature .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(77, 225, 255, 0.24);
  margin-bottom: 1rem;
  color: var(--accent);
}
.feature h3 { font-size: 1.02rem; margin-bottom: 0.4rem; }
.feature p { font-size: 0.88rem; color: var(--muted); margin: 0; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 1.6rem 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.step-num {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: var(--accent);
  direction: ltr;
  display: block;
  margin-bottom: 0.75rem;
}
.step h3 { font-size: 1.02rem; }
.step p { font-size: 0.87rem; color: var(--muted); margin: 0; }

/* ---------- FAQ ---------- */
.faq-list { display: grid; gap: 0.7rem; max-width: 880px; }
.faq-list details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 0.25rem 1.2rem;
  transition: border-color 0.2s ease;
}
.faq-list details[open] { border-color: rgba(77, 225, 255, 0.35); background: rgba(77, 225, 255, 0.04); }
.faq-list summary {
  cursor: pointer;
  padding: 1rem 0;
  font-weight: 600;
  font-size: 0.95rem;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: "+";
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 8px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.06);
  color: var(--accent);
  font-weight: 700;
  line-height: 1;
  transition: transform 0.2s ease;
}
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { font-size: 0.88rem; color: #b9c6d9; padding-bottom: 1rem; margin: 0; }

/* ---------- CTA ---------- */
.closing-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(600px 220px at 12% 0%, rgba(77, 225, 255, 0.16), transparent 70%),
    radial-gradient(500px 200px at 90% 100%, rgba(139, 92, 255, 0.2), transparent 70%),
    var(--bg-soft);
  border: 1px solid var(--line-strong);
}
.closing-cta h2 { font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin-bottom: 0.3rem; }
.closing-cta p { margin: 0; color: var(--muted); font-size: 0.9rem; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { padding-block: 3rem 1.5rem; }
.page-hero h1 { font-size: clamp(1.6rem, 3.6vw, 2.4rem); font-weight: 900; }
.page-hero p { color: var(--muted); max-width: 70ch; margin: 0; }
.page-hero .meta { font-size: 0.8rem; margin-top: 0.9rem; opacity: 0.85; }
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.9rem;
}
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span.sep { opacity: 0.45; }

/* ---------- Prose (legal pages) ---------- */
.prose {
  max-width: 820px;
  font-size: 0.94rem;
  color: #c4d1e3;
}
.prose h2 {
  font-size: 1.2rem;
  margin-top: 2.2rem;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: #fff;
}
.prose h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1rem; margin-top: 1.4rem; color: #fff; }
.prose ul { padding-inline-start: 1.2rem; }
.prose li { margin-bottom: 0.5rem; }
.prose .callout {
  background: rgba(255, 207, 92, 0.07);
  border: 1px solid rgba(255, 207, 92, 0.28);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  color: #ffe6a6;
  font-size: 0.88rem;
  margin-block: 1.5rem;
}
.prose .meta { font-size: 0.8rem; color: var(--muted); margin-bottom: 2rem; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.form-row { display: grid; gap: 0.35rem; margin-bottom: 1rem; }
.form-row label { font-size: 0.85rem; font-weight: 600; }
.form-row .hint { font-size: 0.75rem; color: var(--muted); }
.field {
  width: 100%;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  border-radius: 11px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field::placeholder { color: #6b7c94; }
.field:focus { outline: none; border-color: var(--accent); background: rgba(77, 225, 255, 0.05); }
textarea.field { min-height: 120px; resize: vertical; }
.form-note {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.8rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 0.7rem 0.9rem;
}
.contact-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.9rem; }

/* ---------- Account / Auth ---------- */
.auth-wrap { max-width: 430px; margin-inline: auto; }

.auth-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.25rem; }
.auth-tabs a {
  flex: 1; text-align: center; padding: 0.6rem 0.5rem; border-radius: 10px;
  border: 1px solid var(--line-strong); font-size: 0.9rem; font-weight: 600; color: var(--muted);
}
.auth-tabs a.active { background: rgba(77, 225, 255, 0.1); border-color: rgba(77, 225, 255, 0.4); color: #a9f2ff; }
.auth-note { font-size: 0.78rem; color: var(--muted); text-align: center; margin-top: 1rem; }

.dash-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.stat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.stat-card .label { font-size: 0.78rem; color: var(--muted); margin-bottom: 0.4rem; }
.stat-card .value { font-size: 1.35rem; font-weight: 800; direction: ltr; text-align: right; }
.stat-card .sub { font-size: 0.74rem; color: var(--muted); margin-top: 0.3rem; }
.dash-2col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 1.5rem; align-items: start; }

.progress { background: rgba(255, 255, 255, 0.07); border-radius: 999px; height: 10px; overflow: hidden; margin-top: 0.6rem; }
.progress i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

.kv { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.65rem; font-size: 0.9rem; }
.kv li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px dashed var(--line); padding-bottom: 0.55rem; }
.kv li:last-child { border-bottom: 0; padding-bottom: 0; }
.kv .k { color: var(--muted); }
.kv .v { font-weight: 600; }

.ip-box {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  background: rgba(77, 225, 255, 0.06); border: 1px solid rgba(77, 225, 255, 0.25);
  border-radius: 12px; padding: 0.9rem 1.1rem; margin-top: 0.9rem;
}
.ip-box .ip { font-size: 1.15rem; font-weight: 800; direction: ltr; }
.linklike { background: none; border: none; color: var(--accent); font: inherit; font-size: 0.85rem; cursor: pointer; padding: 0; }
.linklike:hover { text-decoration: underline; }

@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-2col { grid-template-columns: 1fr; }
}
.contact-list li {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  font-size: 0.9rem;
  margin: 0;
}
.contact-list .icon {
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--grad-soft);
  border: 1px solid var(--line);
  color: var(--accent);
}
.contact-list b { display: block; font-size: 0.83rem; }
.contact-list span { color: var(--muted); font-size: 0.82rem; }

/* ---------- Footer ---------- */
.footer {
  margin-top: 4rem;
  border-top: 1px solid var(--line);
  background: rgba(5, 8, 14, 0.7);
  padding-top: 3rem;
}
.footer-main {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  padding-bottom: 2.5rem;
}
.footer-brand p { color: var(--muted); font-size: 0.85rem; margin-top: 0.9rem; max-width: 34ch; }
.footer-col h3 { font-size: 0.86rem; margin-bottom: 0.9rem; color: #fff; }
.footer-col a {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  padding-block: 0.28rem;
  transition: color 0.15s ease;
}
.footer-col a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--line);
  padding-block: 1.2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.5rem;
  align-items: center;
  justify-content: space-between;
  font-size: 0.78rem;
  color: var(--muted);
}
.footer-legal { display: flex; flex-wrap: wrap; gap: 1rem; }
.footer-legal a:hover { color: var(--accent); }

.enamad-slot {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.6rem 0.9rem;
  border: 1px dashed var(--line-strong);
  border-radius: 12px;
  font-size: 0.76rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.02);
}
.enamad-slot .seal {
  width: 40px; height: 40px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--muted);
}

/* ---------- Modal ---------- */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(3, 6, 12, 0.75);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.modal[open],
.modal.is-open { opacity: 1; visibility: visible; }
.modal-card {
  width: min(520px, 100%);
  background: var(--bg-elevated);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  transform: translateY(12px);
  transition: transform 0.2s ease;
}
.modal.is-open .modal-card { transform: translateY(0); }
.modal-card h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }
.modal-card p { font-size: 0.9rem; color: var(--muted); }
.modal-actions { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 1.2rem; }

/* ---------- Comparison table ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  -webkit-overflow-scrolling: touch;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 680px;
  font-size: 0.88rem;
}
table.compare caption { text-align: start; }
table.compare th,
table.compare td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
table.compare thead th {
  font-size: 0.82rem;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, 0.035);
  position: sticky;
  top: 0;
}
table.compare tbody th {
  text-align: start;
  font-weight: 500;
  color: #cbd7e8;
  background: rgba(255, 255, 255, 0.02);
}
table.compare tbody tr:last-child th,
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody tr:hover td,
table.compare tbody tr:hover th { background: rgba(77, 225, 255, 0.04); }
table.compare .is-featured {
  background: rgba(77, 225, 255, 0.07);
  color: #eafcff;
  font-weight: 600;
}
table.compare thead .is-featured { color: var(--accent); }

/* ---------- Utilities ---------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.75rem; }
.mt-4 { margin-top: 2.5rem; }
.stack { display: grid; gap: 1rem; }
.hstack { display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }

/* ---------- Responsive ---------- */
@media (max-width: 1120px) {  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual {
    max-width: 480px;
    margin-top: 1.5rem;
    aspect-ratio: auto;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
    align-items: center;
  }
  .orbit { display: none; }
  .chip-ring { display: contents; animation: none; }
  .chip-ring .float-chip { animation: none; }
  .hero-core { grid-column: 1 / -1; width: min(70vw, 272px); justify-self: center; margin-bottom: 0.7rem; }
  .float-chip {
    position: static;
    transform: none;
    justify-content: center;
    white-space: normal;
    text-align: center;
    padding: 0.45rem 0.4rem;
    font-size: 0.72rem;
  }
  .float-chip.pos-7 { grid-column: 1 / -1; justify-self: center; }
}

@media (max-width: 1000px) {
  .footer-main { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .nav-toggle { display: grid; }
  .site-nav {
    position: absolute;
    inset-inline: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding: 0.75rem;
    background: rgba(9, 14, 25, 0.98);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(16px);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 0.7rem 0.9rem; font-size: 0.95rem; }

  .plan-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .trial-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .trust-strip { grid-template-columns: 1fr; }
  .closing-cta { padding: 1.5rem; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .container { width: calc(100% - 1.75rem); }
  .section { padding-block: 3rem; }
  .hero { padding-block: 2rem 2.5rem; }
  .hero-proof { gap: 0.8rem; }
  .hero-proof span { font-size: 0.78rem; }
  .footer-main { grid-template-columns: 1fr; gap: 1.6rem; }
  .plan-card { padding: 1.3rem 1.1rem; }
  .games-grid { grid-template-columns: 1fr; }
  .demo-banner { font-size: 0.76rem; }
  .demo-banner .dot-split { display: none; }
  .demo-banner .banner-extra { display: block; }
}

/* ---------- Mobile performance mode ---------- */
/* روی موبایل، بلر و ترکیب لایه‌ها هزینه‌ی GPU بالایی دارند؛
   نسخه‌ی ساده‌شده همان ظاهر را با پرفورمنس بهتر میدهد. */
@media (max-width: 860px) {
  .topbar {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    background: rgba(7, 11, 20, 0.97);
  }
  .table-wrap {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  /* دایره اکنون یک تصویر است؛ افکت زندهای برای خاموش کردن وجود ندارد. */
  .chip-ring { will-change: auto; }
}

@media (hover: none) {
  .btn,
  .float-chip,
  .plan-card,
  .game-card,
  .feature-card { transition: none; }
  .btn:hover,
  .plan-card:hover { transform: none; }
}

@media print {
  .topbar, .demo-banner, .footer, .modal, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Setup guide ---------- */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 0.75rem; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 0.86rem;
  font-weight: 600;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.chip:hover { border-color: var(--accent); color: var(--accent); }
.chip i {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: var(--grad-soft);
  border: 1px solid rgba(77, 225, 255, 0.24);
  color: var(--accent);
  font-style: normal;
  flex: 0 0 auto;
}
.chip i svg { width: 16px; height: 16px; }
.setup-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}
.setup-grid .stack { display: grid; gap: 1.25rem; }
@media (max-width: 980px) {
  .setup-grid { grid-template-columns: 1fr; }
}
.device-card h3 { font-size: 1.05rem; }
.steps-sm { list-style: none; margin: 0; padding: 0; counter-reset: sm; display: grid; }
.steps-sm > li { counter-increment: sm; position: relative; padding-top: 0.95rem; padding-bottom: 0.95rem; padding-inline-start: 3.1rem; border-top: 1px dashed var(--line); }
.steps-sm > li:first-child { border-top: 0; padding-top: 0; }
.steps-sm > li::before {
  content: counter(sm);
  position: absolute;
  inset-inline-start: 0;
  top: 0.95rem;
  width: 27px;
  height: 27px;
  border-radius: 9px;
  background: var(--grad-soft);
  border: 1px solid rgba(77, 225, 255, 0.3);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 800;
}
.steps-sm > li b { display: block; font-size: 0.95rem; margin-bottom: 0.15rem; color: #fff; }
.steps-sm > li p { font-size: 0.85rem; color: var(--muted); margin: 0; }
.steps-sm ol { margin: 0.5rem 0 0; padding-inline-start: 1.35em; }
.steps-sm ol li { margin-bottom: 0.35rem; }
.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.65rem; }
.check-list li { display: flex; gap: 0.6rem; align-items: flex-start; font-size: 0.9rem; color: #cbd7e8; }
.check-list li::before {
  content: "";
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  margin-top: 0.45rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)) center / 100% 100% no-repeat;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4l-1.4-1.4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.5 16.2 5.3 12l-1.4 1.4 5.6 5.6L20.1 8.4l-1.4-1.4z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
