:root {
  --bg: #0b0f1a;
  --bg-2: #111827;
  --card: #151c2c;
  --card-2: #1b2437;
  --line: rgba(255, 255, 255, 0.08);
  --text: #e6e9f2;
  --muted: #9aa3b8;
  --gold: #e9b949;
  --gold-2: #f5d27a;
  --green: #35c182;
  --red: #ef5a6f;
  --blue: #5aa9ff;
  --radius: 18px;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  --max: 1120px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

html, body { overflow-x: clip; }

body {
  margin: 0;
  font-family: "Vazirmatn", "Vazir", "IRANSans", Tahoma, system-ui, sans-serif;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(233, 185, 73, 0.12), transparent 60%),
              radial-gradient(900px 500px at 0% 10%, rgba(90, 169, 255, 0.10), transparent 60%),
              var(--bg);
  color: var(--text);
  line-height: 1.95;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; }

img, svg { max-width: 100%; display: block; }

.container {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
}

/* Progress bar */
#progress {
  position: fixed;
  inset-inline-start: 0;
  top: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  z-index: 1000;
  transition: width 0.1s linear;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 900;
  backdrop-filter: blur(14px);
  background: rgba(11, 15, 26, 0.78);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--text);
}
.logo:hover { text-decoration: none; }
.logo .mark {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--gold), #c48a1a);
  display: grid;
  place-items: center;
  color: #1a1407;
  font-weight: 900;
  font-size: 0.95rem;
  letter-spacing: -0.5px;
  box-shadow: 0 8px 24px rgba(233, 185, 73, 0.35);
}
.logo .mark span { font-family: Arial, Helvetica, sans-serif; }
.logo small {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 500;
  line-height: 1.2;
}

.nav {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  font-size: 0.92rem;
  padding: 8px 12px;
  border-radius: 10px;
  transition: 0.2s;
}
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 14px;
  font-weight: 700;
  transition: 0.2s;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold));
  color: #1a1407;
  box-shadow: 0 10px 30px rgba(233, 185, 73, 0.3);
}
.btn-ghost {
  border-color: var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
}
.btn-sm { padding: 9px 16px; font-size: 0.9rem; border-radius: 11px; }

/* Hero */
.hero {
  padding: 64px 0 40px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(233, 185, 73, 0.12);
  color: var(--gold-2);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid rgba(233, 185, 73, 0.25);
}
.hero h1 {
  font-size: clamp(1.8rem, 3.6vw, 2.9rem);
  line-height: 1.45;
  margin: 18px 0 14px;
  font-weight: 900;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--gold-2), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin: 0 0 26px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.meta-row {
  margin-top: 26px;
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.88rem;
}
.meta-row span { display: inline-flex; align-items: center; gap: 6px; }

.score-card {
  background: linear-gradient(160deg, var(--card-2), var(--card));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 28px;
  box-shadow: var(--shadow);
  position: relative;
}
.score-card::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 24px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(233, 185, 73, 0.6), transparent 40%, transparent 60%, rgba(90, 169, 255, 0.4));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.score-top {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 20px;
}
.score-ring {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--gold) calc(var(--p) * 1%), rgba(255, 255, 255, 0.08) 0);
  flex-shrink: 0;
}
.score-ring > div {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: var(--card);
  display: grid;
  place-items: center;
  text-align: center;
}
.score-ring strong { font-size: 1.7rem; line-height: 1; display: block; color: var(--gold-2); }
.score-ring small { color: var(--muted); font-size: 0.75rem; }
.score-top h3 { margin: 0 0 6px; font-size: 1.15rem; }
.score-top p { margin: 0; color: var(--muted); font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.05rem; }

.bars { display: grid; gap: 12px; }
.bar label { display: flex; justify-content: space-between; font-size: 0.88rem; margin-bottom: 5px; }
.bar label b { color: var(--gold-2); font-weight: 700; }
.bar .track { height: 8px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.bar .fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--gold), var(--gold-2));
  width: 0;
  transition: width 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Sections */
section { padding: 40px 0; }
.section-title {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin: 0 0 10px;
  font-weight: 800;
}
.section-sub { color: var(--muted); margin: 0 0 26px; }

/* Facts table */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 18px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
}
.fact .ico {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(233, 185, 73, 0.12);
  color: var(--gold-2);
}
.fact .ico svg { width: 22px; height: 22px; }
.fact small { color: var(--muted); display: block; font-size: 0.8rem; }
.fact b { font-size: 0.98rem; }
.fact code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  direction: ltr;
  display: inline-block;
  font-size: 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 6px;
}

/* Layout with sidebar TOC */
.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.article-layout > * { min-width: 0; }
.toc {
  position: sticky;
  top: 90px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 10px;
  max-height: calc(100vh - 110px);
  overflow: auto;
}
.toc h4 { margin: 0 0 10px; font-size: 1rem; color: var(--gold-2); }
.toc ol { list-style: none; margin: 0; padding: 0; counter-reset: toc; }
.toc li { margin: 0; }
.toc a {
  display: block;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.88rem;
  border-inline-start: 2px solid transparent;
  transition: 0.2s;
}
.toc a:hover, .toc a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  border-inline-start-color: var(--gold);
  text-decoration: none;
}

/* Article */
.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 44px);
}
.article h2 {
  font-size: clamp(1.3rem, 2.3vw, 1.7rem);
  margin: 44px 0 14px;
  padding-top: 8px;
  font-weight: 800;
  position: relative;
}
.article h2:first-of-type { margin-top: 0; }
.article h2::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--gold);
  margin-inline-end: 10px;
  transform: rotate(45deg) translateY(-2px);
}
.article h3 {
  font-size: 1.15rem;
  margin: 28px 0 10px;
  color: var(--gold-2);
  font-weight: 700;
}
.article p { margin: 0 0 16px; text-align: justify; }
.article ul, .article ol { padding-inline-start: 24px; margin: 0 0 18px; }
.article li { margin-bottom: 6px; }
.article li::marker { color: var(--gold); }

.callout {
  border-radius: 16px;
  padding: 16px 18px;
  margin: 20px 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  gap: 12px;
}
.callout svg { width: 22px; height: 22px; flex-shrink: 0; margin-top: 6px; }
.callout.info { border-color: rgba(90, 169, 255, 0.35); background: rgba(90, 169, 255, 0.07); }
.callout.info svg { color: var(--blue); }
.callout.warn { border-color: rgba(233, 185, 73, 0.4); background: rgba(233, 185, 73, 0.07); }
.callout.warn svg { color: var(--gold); }
.callout.danger { border-color: rgba(239, 90, 111, 0.4); background: rgba(239, 90, 111, 0.07); }
.callout.danger svg { color: var(--red); }
.callout p { margin: 0; }

.table-wrap { overflow-x: auto; margin: 18px 0 24px; border-radius: 14px; border: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 520px; }
th, td { padding: 12px 14px; text-align: right; border-bottom: 1px solid var(--line); }
th { background: rgba(233, 185, 73, 0.1); color: var(--gold-2); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tbody tr:hover td { background: rgba(255, 255, 255, 0.025); }
td .yes { color: var(--green); font-weight: 700; }
td .no { color: var(--red); font-weight: 700; }
td .mid { color: var(--gold-2); font-weight: 700; }

/* Pros / cons */
.pros-cons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 20px 0 10px;
}
.pc {
  border-radius: 16px;
  padding: 18px 20px;
  border: 1px solid var(--line);
}
.pc h4 { margin: 0 0 12px; font-size: 1.05rem; display: flex; align-items: center; gap: 8px; }
.pc ul { list-style: none; padding: 0; margin: 0; }
.pc li { padding-inline-start: 26px; position: relative; margin-bottom: 8px; font-size: 0.95rem; }
.pc li::before { position: absolute; inset-inline-start: 0; top: 0; font-weight: 900; }
.pc.pros { background: rgba(53, 193, 130, 0.07); border-color: rgba(53, 193, 130, 0.3); }
.pc.pros h4 { color: var(--green); }
.pc.pros li::before { content: "✓"; color: var(--green); }
.pc.cons { background: rgba(239, 90, 111, 0.07); border-color: rgba(239, 90, 111, 0.3); }
.pc.cons h4 { color: var(--red); }
.pc.cons li::before { content: "✕"; color: var(--red); }

/* Feature grid */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}
.feature {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  transition: 0.25s;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(233, 185, 73, 0.4); }
.feature .ico {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(233, 185, 73, 0.2), rgba(233, 185, 73, 0.05));
  color: var(--gold-2);
  margin-bottom: 14px;
}
.feature .ico svg { width: 24px; height: 24px; }
.feature h4 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.92rem; }

/* FAQ */
.faq details {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  margin-bottom: 10px;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 700;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.4rem;
  color: var(--gold);
  transition: 0.25s;
  line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--muted); }

/* Verdict */
.verdict {
  background: linear-gradient(135deg, rgba(233, 185, 73, 0.14), rgba(90, 169, 255, 0.08));
  border: 1px solid rgba(233, 185, 73, 0.35);
  border-radius: 24px;
  padding: clamp(22px, 4vw, 40px);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
}
.verdict .big {
  font-size: 3.4rem;
  font-weight: 900;
  color: var(--gold-2);
  line-height: 1;
  text-align: center;
}
.verdict .big small { display: block; font-size: 0.9rem; color: var(--muted); font-weight: 500; margin-top: 8px; }
.verdict h3 { margin: 0 0 8px; font-size: 1.3rem; }
.verdict p { margin: 0; color: var(--muted); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 40px;
  padding: 36px 0 28px;
  color: var(--muted);
  font-size: 0.9rem;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.site-footer h5 { color: var(--text); margin: 0 0 10px; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--gold-2); }
.age {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-weight: 900;
  font-size: 0.85rem;
  font-family: Arial, Helvetica, sans-serif;
}
.copy {
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.82rem;
}

.ltr { direction: ltr; unicode-bidi: embed; display: inline-block; }

/* Responsive */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .pros-cons { grid-template-columns: 1fr; }
  .verdict { grid-template-columns: 1fr; text-align: center; }
  .hero { padding-top: 40px; }
  body { line-height: 1.9; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .bar .fill { transition: none; }
}
