@import url('../assets/fonts.css');
:root {
  --ink: #1f2a23; --muted: #5f655c; --line: #ddd5bd; --gold: #a8842c; --gold-lt: #e8d48f;
  --pine: #0d3b2c; --pine-2: #12503b; --pine-deep: #082a20;
  --paper: #faf8f1; --card: #ffffff; --dark-tx: #f2efe4;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Vazirmatn', Tahoma, 'Segoe UI', sans-serif; line-height: 2;
}
::selection { background: var(--gold-lt); color: var(--pine-deep); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 920px; margin: 0 auto; padding: 0 22px; }

/* ناوبری */
.topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 241, 0.88); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-in { display: flex; align-items: center; gap: 18px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.brand b { font-size: 19px; font-weight: 800; }
.brand small { font-size: 10px; letter-spacing: 4px; color: var(--muted); }
.dia { width: 11px; height: 11px; background: var(--gold); transform: rotate(45deg); flex: none; }
.links { display: flex; gap: 14px; flex: 1; flex-wrap: wrap; }
.links a { color: var(--ink); text-decoration: none; font-size: 13.5px; font-weight: 500; opacity: 0.85; }
.links a:hover { color: var(--pine); opacity: 1; }
.langbar { display: flex; gap: 6px; }
.langbar button {
  font-family: inherit; font-size: 12.5px; cursor: pointer;
  background: transparent; border: 1px solid var(--line); color: var(--ink);
  padding: 4px 14px; border-radius: 999px; transition: all 0.15s;
}
.langbar button.on { background: var(--pine); border-color: var(--pine); color: #fff; font-weight: 700; }

/* هیرو */
.hero {
  background:
    radial-gradient(700px 320px at 85% -60px, rgba(168, 132, 44, 0.35), transparent 65%),
    radial-gradient(600px 300px at 10% 110%, rgba(18, 80, 59, 0.5), transparent 60%),
    linear-gradient(160deg, var(--pine-deep), var(--pine) 70%);
  color: var(--dark-tx); text-align: center; padding: 76px 0 60px;
}
.brandline { font-size: 12px; letter-spacing: 7px; color: var(--gold-lt); opacity: 0.9; }
.herologo { width: min(300px, 70vw); height: auto; filter: drop-shadow(0 10px 26px rgba(0, 0, 0, 0.45)); }
.hero h1 { margin: 10px 0 0; font-size: clamp(44px, 8vw, 68px); font-weight: 800; line-height: 1.4; }
.hero h1 .en { display: block; font-size: 15px; letter-spacing: 7px; font-weight: 400; color: var(--gold-lt); margin-top: 8px; }
.hero .rule { width: 140px; border-top: 3px solid var(--gold); margin: 20px auto; }
.hero .tag { font-size: clamp(17px, 3vw, 21px); font-weight: 700; margin: 0; text-wrap: balance; }
.hero .sub { margin: 8px 0 0; font-size: 13.5px; opacity: 0.75; }
.verchip {
  display: inline-block; margin-top: 16px; font-size: 12px;
  border: 1px solid rgba(232, 212, 143, 0.5); color: var(--gold-lt);
  padding: 2px 18px; border-radius: 999px; direction: ltr;
}
.chips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; text-align: start; }
.chips > div {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: 3px solid var(--gold); border-radius: 10px; padding: 10px 14px; font-size: 13px;
}
.chips b { display: block; font-size: 14px; }
.chips small { opacity: 0.7; font-size: 12px; }
.stats { margin-top: 18px; font-size: 13.5px; opacity: 0.85; }
.stats b { color: var(--gold-lt); }
.cta { margin-top: 24px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-block; text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 12px 36px; border-radius: 12px; transition: transform 0.15s, box-shadow 0.15s;
}
.btn.primary { background: var(--gold); color: #1d1a10; box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0, 0, 0, 0.4); }
.btn.ghost { border: 1px solid rgba(255, 255, 255, 0.4); color: var(--dark-tx); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.08); }
.cta small { display: block; width: 100%; opacity: 0.65; font-size: 12px; margin-top: 6px; }

/* بخش‌ها */
.sec { margin-top: 52px; scroll-margin-top: 70px; }
.sec-head { border-bottom: 3px double var(--line); padding-bottom: 10px; margin-bottom: 18px; }
.sec-head .no {
  display: inline-block; min-width: 34px; height: 34px; line-height: 32px; text-align: center;
  border: 1px solid var(--ink); font-weight: 800; font-size: 15px;
  margin-inline-end: 10px; vertical-align: middle; border-radius: 8px;
}
.sec-head h2 { display: inline; font-size: clamp(19px, 3.4vw, 23px); font-weight: 800; margin: 0; vertical-align: middle; }
.sec-head p { margin: 6px 0 0; font-size: 13.5px; color: var(--muted); }
.sub-h { font-size: 16.5px; font-weight: 800; border-bottom: 1px solid var(--line); padding-bottom: 6px; margin: 26px 0 6px; }
.note { font-size: 13px; color: var(--muted); }

/* دلایل */
ol.reasons { list-style: none; margin: 0; padding: 0; counter-reset: r; display: grid; gap: 12px; }
ol.reasons li {
  counter-increment: r; background: var(--card); border: 1px solid var(--line);
  border-inline-start: 5px solid var(--gold); border-radius: 12px; padding: 14px 18px;
  position: relative; transition: transform 0.15s, box-shadow 0.15s;
}
ol.reasons li:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13, 59, 44, 0.1); }
ol.reasons li::before {
  content: counter(r); position: absolute; inset-inline-end: 14px; top: 14px;
  font-size: 15px; font-weight: 800; color: #fff; background: var(--pine);
  width: 36px; height: 36px; line-height: 36px; text-align: center; border-radius: 50%;
}
ol.reasons b { display: block; font-size: 16.5px; padding-inline-end: 44px; }
ol.reasons p { margin: 4px 0 0; font-size: 14px; color: var(--muted); padding-inline-end: 44px; }

/* گالری */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.shot { background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.shot .frame { aspect-ratio: 16/10; background: #ece7d6; display: flex; align-items: center; justify-content: center; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shot .ph {
  border: 2px dashed var(--gold); border-radius: 10px; margin: 14px; flex: 1; align-self: stretch;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 13px; text-align: center; padding: 10px;
}
.shot b { display: block; font-size: 14px; padding: 8px 14px 0; }
.shot p { margin: 0; font-size: 12.5px; color: var(--muted); padding: 0 14px 12px; }

/* جدول قبل/بعد + مناسب */
.tablewrap { overflow-x: auto; }
table.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; background: var(--card); border-radius: 12px; overflow: hidden; }
table.cmp th, table.cmp td { border: 1px solid var(--line); padding: 9px 12px; text-align: start; vertical-align: top; }
table.cmp th { background: var(--pine); color: #fff; }
.fit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.fit > div { border-radius: 12px; padding: 14px 18px; font-size: 13.5px; }
.fit .col-y { background: #eef3ec; border: 1px solid #b9cdbd; }
.fit .col-n { background: #f6efe4; border: 1px solid #d9c79a; }
.fit b { display: block; font-size: 15px; margin-bottom: 4px; }
.fit p { margin: 0; color: var(--muted); }

/* مراحل */
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 10px; }
ol.steps li {
  counter-increment: s; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 16px; padding-inline-start: 56px; position: relative; font-size: 14px;
}
ol.steps li::before {
  content: counter(s); position: absolute; inset-inline-start: 14px; top: 12px;
  width: 28px; height: 28px; line-height: 26px; text-align: center;
  border: 1px solid var(--ink); border-radius: 50%; font-weight: 800; font-size: 13px;
}
ol.steps b { display: block; font-size: 14.5px; }
ol.steps span, ol.steps code { color: var(--muted); font-size: 13px; }
.reqbox {
  margin-top: 14px; background: var(--pine-deep); color: var(--dark-tx);
  border-radius: 12px; padding: 14px 20px; font-size: 13.5px;
}
.reqbox b { color: var(--gold-lt); }

/* قیمت */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 6px; }
.plan {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 20px 16px; text-align: center; position: relative;
  transition: transform 0.15s, box-shadow 0.15s;
}
.plan:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(13, 59, 44, 0.12); }
.plan.popular { border: 2px solid var(--gold); }
.plan .pop {
  position: absolute; top: -13px; inset-inline-start: 50%; transform: translateX(50%);
  background: var(--gold); color: #1d1a10; font-size: 12px; font-weight: 700;
  padding: 1px 16px; border-radius: 999px; white-space: nowrap;
}
[dir="ltr"] .plan .pop { transform: translateX(-50%); }
.plan .p-name { font-weight: 800; font-size: 16px; }
.plan .price { font-size: 24px; font-weight: 800; color: var(--pine); margin-top: 6px; direction: ltr; }
.plan .per { font-size: 12.5px; color: var(--muted); }
.plan .save { display: inline-block; margin-top: 8px; font-size: 12px; background: #eef3ec; border: 1px solid #b9cdbd; padding: 1px 12px; border-radius: 999px; }

/* دانلود */
.rel {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 18px 20px; margin: 12px 0;
}
.rel.latest { border: 2px solid var(--pine); }
.rel .row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rel .v { font-size: 20px; font-weight: 800; direction: ltr; }
.rel .star { color: var(--gold); font-size: 20px; }
.rel .meta { font-size: 12.5px; color: var(--muted); direction: ltr; }
.rel .hash { font-size: 11.5px; color: var(--muted); direction: ltr; font-family: Consolas, monospace; }
.rel .btns { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.rel .btns a {
  text-decoration: none; font-weight: 700; font-size: 14px; border-radius: 10px; padding: 9px 26px;
}
.rel .btns a.exe { background: var(--pine); color: #fff; }
.rel .btns a.exe:hover { background: var(--pine-2); }
.rel .btns a.sig { border: 1px solid var(--pine); color: var(--pine); }
.verify { background: #f2efe2; border: 1px dashed var(--gold); border-radius: 12px; padding: 12px 18px; font-size: 13px; margin-top: 12px; }
.verify code { direction: ltr; display: inline-block; font-size: 12px; background: #fff; padding: 2px 10px; border-radius: 6px; }

/* تایم‌لاین */
.tl { display: grid; gap: 10px; }
.tl-item { background: var(--card); border: 1px solid var(--line); border-inline-start: 4px solid var(--pine); border-radius: 10px; padding: 12px 18px; }
.tl-item .h { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.tl-item .v { font-weight: 800; direction: ltr; }
.tl-item .d { font-size: 12px; color: var(--muted); }
.tl-item ul { margin: 6px 0 0; padding-inline-start: 18px; font-size: 13.5px; color: var(--muted); }

/* سوالات */
details.fq { background: var(--card); border: 1px solid var(--line); border-radius: 10px; margin: 8px 0; padding: 10px 16px; }
details.fq summary { cursor: pointer; font-weight: 700; font-size: 14.5px; }
details.fq p { margin: 6px 0 2px; font-size: 13.5px; color: var(--muted); }

/* پشتیبانی */
.contact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.contact a {
  display: block; text-align: center; text-decoration: none; color: var(--ink);
  background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--pine);
  border-radius: 12px; padding: 16px 10px; font-weight: 700; font-size: 15px;
  transition: transform 0.15s, box-shadow 0.15s;
}
.contact a:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(13, 59, 44, 0.12); }
.contact a small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); direction: ltr; }
.status {
  margin-top: 12px; display: flex; gap: 10px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-size: 13.5px;
}
.dot { width: 12px; height: 12px; border-radius: 50%; background: #999; flex: none; }
.dot.ok { background: #2e9e5b; box-shadow: 0 0 8px rgba(46, 158, 91, 0.7); }
.dot.bad { background: #c0392b; }
.status a { color: var(--pine); font-weight: 700; }

/* فوتر */
.footer { text-align: center; margin: 50px 0 40px; padding-top: 24px; border-top: 3px double var(--line); }
.footer .dia { margin: 0 auto 12px; }
.footer p { margin: 4px 0; }
.footer .muted { color: var(--muted); font-size: 13px; }
.footer .small { font-size: 12px; }
.footer a { color: var(--pine); font-weight: 700; }

/* دکمه بالا + انیمیشن */
#toTop {
  position: fixed; bottom: 22px; inset-inline-end: 22px; width: 44px; height: 44px;
  border-radius: 50%; border: 1px solid var(--gold); background: var(--pine); color: #fff;
  font-size: 18px; cursor: pointer; display: none; z-index: 60;
}
.rv { opacity: 0; transform: translateY(18px); transition: opacity 0.5s, transform 0.5s; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .rv { opacity: 1; transform: none; transition: none; }
  * { transition: none !important; }
}
@media (max-width: 720px) {
  .chips, .shots, .plans, .contact, .fit { grid-template-columns: 1fr; }
  .links { display: none; }
  .nav-in { justify-content: space-between; }
}
