:root {
  --bg-top: #161b2e;
  --bg-bottom: #090c15;
  --surface: rgba(255,255,255,.055);
  --surface-2: rgba(255,255,255,.09);
  --stroke: rgba(255,255,255,.12);
  --text: #f8fafc;
  --muted: #9aa7bd;
  --faint: #64748b;
  --accent: #f97316;
  --accent-soft: #fb923c;
  --radius: 22px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(900px 700px at 12% -8%, rgba(249,115,22,.20), transparent 62%),
    radial-gradient(760px 620px at 92% 14%, rgba(96,165,250,.14), transparent 60%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom) 62%) fixed;
  color: var(--text);
  font: 16px/1.65 -apple-system, BlinkMacSystemFont, "Segoe UI", "Vazirmatn", Tahoma, "Noto Sans Arabic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
[dir="rtl"] body { font-family: "Vazirmatn", Tahoma, "Noto Sans Arabic", -apple-system, sans-serif; }
.wrap { width: min(1080px, 92vw); margin: 0 auto; }
a { color: var(--accent-soft); }

.navbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(9,12,21,.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--stroke);
}
header.site {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0;
}
header.site .brand { display: flex; align-items: center; gap: 11px; text-decoration: none; color: inherit; }
header.site .icon { width: 38px; height: 38px; border-radius: 10px; }
header.site .name { font-weight: 800; font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
header.site nav {
  margin-inline-start: auto; display: flex; gap: 4px; align-items: center;
  overflow-x: auto; scrollbar-width: none;
}
header.site nav::-webkit-scrollbar { display: none; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 600;
  padding: 8px 13px; border-radius: 999px; white-space: nowrap;
  transition: color .18s ease, background .18s ease;
}
header.site nav a:hover { color: var(--text); background: var(--surface); }
header.site nav a.active { color: var(--text); background: var(--surface-2); }
header.site nav a.tg { color: var(--accent-soft); }
header.site nav a.lang { border: 1px solid var(--stroke); color: var(--text); }
@media (max-width: 560px) {
  header.site .name { display: none; }
  header.site nav a { padding: 8px 10px; font-size: 13px; }
}

.hero { padding: 46px 0 22px; text-align: center; }
.hero h1 { font-size: clamp(38px, 6.4vw, 66px); line-height: 1.08; margin: 0 0 16px; letter-spacing: -.025em; font-weight: 850; }
.hero p.sub { font-size: clamp(17px, 2.1vw, 21px); color: var(--muted); max-width: 660px; margin: 0 auto 28px; }
.store {
  display: inline-flex; align-items: center; gap: 10px;
  background: linear-gradient(180deg, var(--accent), #e26206);
  color: #160b02; font-weight: 800; font-size: 17px;
  padding: 15px 26px; border-radius: 15px; text-decoration: none;
  box-shadow: 0 14px 34px rgba(249,115,22,.30);
}
.store:hover { filter: brightness(1.05); }
.note { color: var(--faint); font-size: 13px; margin-top: 14px; }

.shots { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; padding: 40px 0 10px; }
.shots img {
  width: 218px; border-radius: 26px; border: 1px solid var(--stroke);
  box-shadow: 0 26px 60px rgba(0,0,0,.5);
}

section { padding: 46px 0; }
h2 { font-size: clamp(24px, 3.2vw, 33px); margin: 0 0 26px; letter-spacing: -.02em; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
.card {
  background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 22px;
}
.card h3 { margin: 14px 0 8px; font-size: 17px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card svg { width: 26px; height: 26px; stroke: var(--accent); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
ol.steps li {
  counter-increment: step; background: var(--surface); border: 1px solid var(--stroke);
  border-radius: var(--radius); padding: 20px 22px 20px 70px; position: relative;
}
[dir="rtl"] ol.steps li { padding: 20px 70px 20px 22px; }
ol.steps li::before {
  content: counter(step); position: absolute; inset-inline-start: 22px; top: 20px;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(249,115,22,.16); color: var(--accent); font-weight: 800; font-size: 15px;
}
ol.steps h3 { margin: 0 0 5px; font-size: 17px; }
ol.steps p { margin: 0; color: var(--muted); font-size: 15px; }

article.doc { padding: 30px 0 10px; max-width: 760px; }
article.doc h1 { font-size: clamp(28px, 4vw, 40px); margin: 0 0 14px; letter-spacing: -.02em; }
article.doc .intro { color: var(--muted); font-size: 17px; margin-bottom: 34px; }
article.doc h2 { font-size: 21px; margin: 34px 0 12px; }
article.doc p { color: #c6d0e0; }
article.doc ul { color: #c6d0e0; padding-inline-start: 22px; }
article.doc li { margin: 7px 0; }

footer.site {
  border-top: 1px solid var(--stroke); margin-top: 50px;
  padding: 26px 0 46px; color: var(--faint); font-size: 14px;
  display: flex; gap: 18px; flex-wrap: wrap; align-items: center;
}
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .spacer { margin-inline-start: auto; }
