/* ================================================================
   قصر فارسی — سبک‌ها
   ================================================================ */
@font-face { font-family: Vazirmatn; src: url(fonts/vazirmatn-arabic-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0600-06FF, U+0750-077F, U+200C-200F, U+FB50-FDFF, U+FE70-FEFF; }
@font-face { font-family: Vazirmatn; src: url(fonts/vazirmatn-latin-wght-normal.woff2) format('woff2'); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: Lalezar; src: url(fonts/lalezar-arabic-400-normal.woff2) format('woff2'); font-display: swap; }
@font-face { font-family: Nastaliq; src: url(fonts/noto-nastaliq-urdu-arabic-400-normal.woff2) format('woff2'); font-display: swap; }

:root {
  --bg: #fbf7ef;
  --bg-2: #f3ecdd;
  --surface: #ffffff;
  --ink: #1b1a2e;
  --ink-2: #4a4862;
  --muted: #7a7790;
  --line: #e6dcc6;
  --brand: #4f46e5;
  --brand-2: #7c3aed;
  --gold: #c98a26;
  --gold-2: #e9c46a;
  --gold-ink: #2a1a00;
  --hero-1: #12163a;
  --hero-2: #2a1f63;
  --shadow: 0 10px 30px -12px rgba(27, 26, 46, .22);
  --radius: 20px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0b1020; --bg-2: #10162b; --surface: #151c35; --ink: #eeeaf8; --ink-2: #c3bfd8;
  --muted: #8f8baa; --line: #262f50; --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
  --hero-1: #070a17; --hero-2: #1a1446; color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1020; --bg-2: #10162b; --surface: #151c35; --ink: #eeeaf8; --ink-2: #c3bfd8;
    --muted: #8f8baa; --line: #262f50; --shadow: 0 14px 34px -14px rgba(0, 0, 0, .7);
    --hero-1: #070a17; --hero-2: #1a1446; color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: Vazirmatn, Tahoma, system-ui, sans-serif; font-size: 16px; line-height: 1.9;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.4; margin: 0; }
p { margin: 0; }
.nastaliq { font-family: Nastaliq, Vazirmatn, serif; font-weight: 400; }
.muted { color: var(--muted); }
.wrap { width: min(1160px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 99; background: var(--gold-2); color: var(--gold-ink); padding: 8px 14px; border-radius: 10px; }
.skip:focus { top: 8px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; border-radius: 8px; }

/* ── دکمه‌ها ── */
.btn {
  --b: transparent; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 24px; border-radius: 999px; font-weight: 700; text-decoration: none;
  border: 1.5px solid var(--b); transition: transform .25s, box-shadow .25s, background .25s; cursor: pointer;
  position: relative; overflow: hidden; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { min-height: 40px; padding: 6px 18px; font-size: 15px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
  box-shadow: 0 10px 24px -10px rgba(201, 138, 38, .8);
}
.btn-gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(120%); animation: sheen 4.5s ease-in-out infinite;
}
@keyframes sheen { 0%, 60% { transform: translateX(120%) } 100% { transform: translateX(-120%) } }
.btn-ghost { --b: currentColor; background: transparent; }
.icon-btn {
  width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer;
}
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ── سربرگ ── */
.top {
  position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s, backdrop-filter .3s;
  color: #fff;
}
.top.solid { background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); color: var(--ink); }
.top-in { display: flex; align-items: center; gap: 16px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand span { display: grid; line-height: 1.3; }
.brand b { font-family: Lalezar, Vazirmatn, sans-serif; font-weight: 400; font-size: 24px; letter-spacing: 0; }
.brand small { font-size: 12px; opacity: .75; }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 15px; opacity: .9; }
.nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.top-act { display: flex; align-items: center; gap: 8px; }
.top:not(.solid) .icon-btn { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; }
.menu-btn { display: none; }

/* ── سرآغاز ── */
.hero {
  position: relative; overflow: hidden; color: #fff; isolation: isolate;
  background: radial-gradient(120% 90% at 80% 0%, var(--hero-2), var(--hero-1) 60%);
  padding: 110px 0 90px; display: grid; align-items: center;
}
.hero::after { /* محوشدن به رنگِ صفحه */
  content: ""; position: absolute; inset: auto 0 0; height: 120px; z-index: -1;
  background: linear-gradient(transparent, var(--bg));
}
.sky { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -3; }
.palace {
  position: absolute; inset: auto 0 60px; margin-inline: auto; width: min(1200px, 160%); max-width: none;
  left: 50%; transform: translateX(-50%); z-index: -2; opacity: .55; pointer-events: none;
}
.palace .draw path { stroke-dasharray: var(--len, 2000); stroke-dashoffset: var(--len, 2000); animation: draw 3.2s cubic-bezier(.6, .1, .2, 1) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0 } }
.hero-in { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 48px; }
.kicker { color: var(--gold-2); font-weight: 700; font-size: 14px; letter-spacing: 0; }
.sec .kicker { color: var(--gold); }
.hero h1 {
  font-family: Lalezar, Vazirmatn, sans-serif; font-weight: 400; font-size: clamp(64px, 13vw, 132px);
  line-height: 1.15; margin: 4px 0 8px;
}
.shine {
  background: linear-gradient(100deg, #f6e2a8 0%, #e9c46a 30%, #fff8e1 45%, #c98a26 60%, #f6e2a8 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite; filter: drop-shadow(0 6px 26px rgba(233, 196, 106, .25));
}
@keyframes shine { to { background-position: -250% 0 } }
.shine.split { background: none; color: inherit; animation: none; }
.shine .ch {
  display: inline-block; opacity: 0; transform: translateY(50px) scale(.8); padding: 0 .04em;
  background: linear-gradient(100deg, #f6e2a8 0%, #e9c46a 30%, #fff8e1 45%, #c98a26 60%, #f6e2a8 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: rise 1s cubic-bezier(.2, .8, .2, 1.15) forwards, shine 6s linear infinite;
  animation-delay: calc(var(--i) * 180ms + .2s), 0s;
}
@keyframes rise { to { opacity: 1; transform: none } }
.verse { font-size: clamp(20px, 3.4vw, 28px); line-height: 2.4; color: #f3e6c4; margin: 4px 0 18px; }
.verse .w { display: inline-block; opacity: 0; filter: blur(6px); transform: translateY(8px); transition: opacity .7s, filter .7s, transform .7s; transition-delay: calc(var(--i) * 140ms + .9s); }
.ready .verse .w { opacity: 1; filter: none; transform: none; }
.lead { font-size: clamp(16px, 2.1vw, 18.5px); color: #d9d6ee; max-width: 56ch; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 34px; }
.hero .btn-ghost { color: #fff; --b: rgba(255, 255, 255, .5); }
.stats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, auto); gap: 8px 28px; justify-content: start; }
.stats li { display: grid; }
.stats b { font-size: clamp(24px, 4vw, 32px); font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.stats span { font-size: 13px; color: #b9b5d6; }

/* ── گوشیِ نمایشی ── */
.phone {
  justify-self: center; width: min(320px, 82vw); aspect-ratio: 9 / 18.5; border-radius: 44px; padding: 12px;
  background: linear-gradient(145deg, #2b2f4a, #0c0f1f); position: relative;
  box-shadow: 0 50px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1.5px rgba(255, 255, 255, .12) inset, 0 0 120px -20px rgba(124, 58, 237, .6);
  transform-style: preserve-3d; transition: transform .2s ease-out; will-change: transform;
  animation: float 7s ease-in-out infinite;
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 90px; height: 24px; transform: translateX(-50%); background: #05060c; border-radius: 99px; z-index: 2; }
@keyframes float { 50% { translate: 0 -14px } }
.phone-in {
  height: 100%; border-radius: 34px; overflow: hidden; background: var(--bg); color: var(--ink);
  padding: 48px 14px 14px; display: flex; flex-direction: column; gap: 10px; font-size: 13px; line-height: 1.8;
}
.ph-bar { display: flex; justify-content: space-between; align-items: center; font-weight: 800; }
.ph-pill { font-size: 11px; background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand); padding: 2px 10px; border-radius: 99px; }
:root[data-theme="dark"] .ph-pill { color: #a5b4fc; }
.ph-tabs { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--bg-2); border-radius: 12px; padding: 3px; font-size: 11px; text-align: center; position: relative; }
.ph-tabs span { padding: 5px 0; border-radius: 9px; position: relative; z-index: 1; transition: color .3s; }
.ph-tabs span.on { color: #fff; font-weight: 700; }
.ph-tabs::before { content: ""; position: absolute; top: 3px; bottom: 3px; width: calc((100% - 6px) / 4); right: calc(3px + var(--tab, 0) * (100% - 6px) / 4); background: linear-gradient(135deg, var(--brand), var(--brand-2)); border-radius: 9px; transition: right .5s cubic-bezier(.6, .1, .2, 1); }
.ph-screens { position: relative; flex: 1; }
.ph-screen { position: absolute; inset: 0; opacity: 0; transform: translateX(-14px); transition: opacity .45s, transform .45s; pointer-events: none; }
.ph-screen.on { opacity: 1; transform: none; pointer-events: auto; }
.ph-tabs span { cursor: pointer; }
.ph-chip { justify-self: start; font-size: 10.5px; font-weight: 700; padding: 1px 10px; border-radius: 99px; background: var(--bg-2); color: var(--ink-2); }
.ph-q { font-weight: 800; font-size: 13px; line-height: 1.9; }
.ph-opts { display: grid; gap: 6px; }
.ph-opts span { display: flex; justify-content: space-between; align-items: center; border: 1.5px solid var(--line); border-radius: 12px; padding: 6px 10px; font-size: 12px; }
.ph-opts span.ok { border-color: #10b981; background: rgba(16, 185, 129, .12); font-weight: 800; }
.ph-opts span.ok i { font-style: normal; color: #10b981; font-weight: 900; }
.ph-opts span.sel { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, transparent); font-weight: 800; }
.ph-good { font-size: 11.5px; border-radius: 12px; padding: 6px 10px; background: rgba(16, 185, 129, .12); color: #059669; font-weight: 700; }
:root[data-theme="dark"] .ph-good { color: #34d399; }
.ph-good b { color: var(--gold); }
.ph-timer { display: flex; justify-content: space-between; font-size: 11.5px; font-weight: 700; }
.ph-timer .clock { background: var(--bg-2); border-radius: 8px; padding: 0 8px; }
.ph-prog { height: 6px; border-radius: 99px; background: var(--bg-2); overflow: hidden; display: flex; justify-content: flex-start; }
.ph-prog i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: inherit; }
.ph-nav { display: grid; grid-template-columns: 1fr 2fr; gap: 6px; font-size: 12px; font-weight: 800; text-align: center; }
.ph-nav span { border: 1.5px solid var(--line); border-radius: 12px; padding: 6px; }
.ph-nav .next { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; border-color: transparent; }
.ph-mistake { display: grid; gap: 4px; font-size: 11.5px; border: 1.5px dashed var(--line); border-radius: 12px; padding: 8px 10px; }
.ph-mistake b { font-size: 11px; color: var(--gold); }
.ph-mistake .x { color: #e11d48; }
.ph-mistake .v { color: #059669; font-weight: 700; }
:root[data-theme="dark"] .ph-mistake .v { color: #34d399; }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; position: relative; box-shadow: var(--shadow); display: grid; gap: 10px; }
.ph-n { position: absolute; top: 10px; inset-inline-start: 10px; width: 24px; height: 24px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; font-size: 11px; font-weight: 800; }
.ph-verse { text-align: center; font-size: 17px; line-height: 2.5; padding-top: 4px; }
.ph-mean { color: var(--ink-2); font-size: 12px; }
.ph-mean b { color: var(--brand); }
:root[data-theme="dark"] .ph-mean b { color: #a5b4fc; }
.ph-play { display: flex; align-items: center; gap: 8px; background: var(--bg-2); border-radius: 12px; padding: 6px 10px; font-size: 11px; font-weight: 700; }
.ph-play .dot { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-2), var(--gold)); position: relative; }
.ph-play .dot::after { content: ""; position: absolute; inset: 6px 6px 6px 8px; background: var(--gold-ink); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ph-play .wave { flex: 1; height: 18px; background: repeating-linear-gradient(90deg, var(--gold) 0 2px, transparent 2px 5px); mask: linear-gradient(#000, #000); -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 18' preserveAspectRatio='none'><path d='M0 9h100' stroke='black' stroke-width='18'/></svg>"); animation: wave 1.2s ease-in-out infinite alternate; transform-origin: center; }
@keyframes wave { from { transform: scaleY(.35) } to { transform: scaleY(1) } }
.ph-note { border: 1.5px dashed var(--gold); border-radius: 12px; padding: 6px 10px; font-size: 11.5px; background: color-mix(in srgb, var(--gold-2) 12%, transparent); }
.ph-note b { display: block; color: var(--gold); font-size: 11px; }

/* ── نوارِ شاعران ── */
.marquee { overflow: hidden; border-block: 1px solid var(--line); background: var(--bg-2); padding: 14px 0; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 22px; width: max-content; animation: marquee 50s linear infinite; font-family: Nastaliq, serif; font-size: 22px; line-height: 2; white-space: nowrap; }
.marquee-track i { font-style: normal; color: var(--gold); font-family: Vazirmatn; font-size: 14px; align-self: center; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(50%) } }

/* ── بخش‌ها ── */
.sec { padding: clamp(64px, 10vw, 110px) 0; position: relative; }
.sec-alt { background: var(--bg-2); }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 44px; display: grid; gap: 8px; }
.sec-head h2 { font-size: clamp(26px, 4.4vw, 40px); font-weight: 900; }
.sec-head p:last-child:not(.kicker) { color: var(--ink-2); }
.grid { display: grid; gap: 18px; }
.two { grid-template-columns: repeat(2, 1fr); }

/* گام‌ها */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; position: relative; }
.steps-line { position: absolute; top: 34px; inset-inline: 12%; width: 76%; height: 4px; overflow: visible; }
.steps-line path { stroke: var(--gold); stroke-width: 2; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; fill: none; clip-path: inset(0 0 0 calc(100% - var(--p, 0) * 100%)); transition: clip-path 1.6s ease; }
.steps.in .steps-line path { --p: 1; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; box-shadow: var(--shadow); }
.step-n {
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 16px; font-weight: 900; font-size: 20px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; margin-bottom: 12px;
  box-shadow: 0 10px 20px -8px var(--brand); position: relative; z-index: 1;
}
.step h3 { font-size: 20px; margin-bottom: 6px; }
.step p { color: var(--ink-2); font-size: 15px; }

/* ویژگی‌ها */
.feats { grid-template-columns: repeat(4, 1fr); }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; overflow: hidden; transition: transform .3s, border-color .3s; }
.feat:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--gold) 50%, var(--line)); }
.glow::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), color-mix(in srgb, var(--gold-2) 22%, transparent), transparent 70%);
}
.glow:hover::before { opacity: 1; }
.ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 12px; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand); }
:root[data-theme="dark"] .ico { color: #a5b4fc; }
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; margin-bottom: 4px; }
.feat p { color: var(--ink-2); font-size: 14.5px; }

/* پایه‌ها */
.grades { grid-template-columns: repeat(3, 1fr); }
.grade {
  border-radius: var(--radius); padding: 22px; color: #fff; position: relative; overflow: hidden; isolation: isolate;
  background: linear-gradient(150deg, var(--c1), var(--c2)); box-shadow: var(--shadow); display: grid; gap: 10px; align-content: start;
  transform-style: preserve-3d; transition: transform .2s ease-out;
}
.grade::after { /* نقشِ گره */
  content: ""; position: absolute; inset: -40% -40% auto auto; width: 240px; height: 240px; z-index: -1; opacity: .18;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='white' stroke-width='1.4'><path d='M50 4l13 33 33 13-33 13-13 33-13-33L4 50l33-13z'/><path d='M50 18l9 23 23 9-23 9-9 23-9-23-23-9 23-9z'/><circle cx='50' cy='50' r='12'/></g></svg>") center / contain no-repeat;
  animation: spin 40s linear infinite;
}
@keyframes spin { to { transform: rotate(1turn) } }
.grade-n { font-family: Lalezar, Vazirmatn; font-size: 54px; line-height: 1; opacity: .95; }
.grade h3 { font-size: 21px; }
.grade p { opacity: .85; font-size: 14.5px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: 12px; padding: 2px 10px; border-radius: 99px; background: rgba(255, 255, 255, .16); }
.grade details { background: rgba(0, 0, 0, .18); border-radius: 14px; }
.grade summary { cursor: pointer; padding: 10px 14px; font-weight: 700; font-size: 14.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.grade summary::-webkit-details-marker { display: none; }
.grade summary::after { content: "+"; font-size: 20px; transition: transform .3s; }
.grade details[open] summary::after { transform: rotate(45deg); }
.lessons { list-style: none; margin: 0; padding: 0 14px 12px; display: grid; gap: 2px; font-size: 13.5px; max-height: 340px; overflow: auto; }
.lessons li { display: flex; gap: 8px; padding: 4px 0; border-bottom: 1px dashed rgba(255, 255, 255, .15); }
.lessons li b { min-width: 2.2em; opacity: .7; font-weight: 600; }
.lessons li span { opacity: .75; font-size: 12px; display: block; }

/* مدرسه */
.sec-school { background: radial-gradient(80% 60% at 50% 0%, color-mix(in srgb, var(--brand) 9%, transparent), transparent); }
.school-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; align-items: stretch; }
.school-about {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  position: relative; display: grid; gap: 14px; font-size: 16.5px; color: var(--ink-2);
}
.school-about::before { content: "«"; position: absolute; top: -18px; inset-inline-start: 22px; font-size: 64px; line-height: 1; color: var(--gold); font-family: Lalezar; }
.values { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.values li { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; border-top: 3px solid var(--gold); }
.values b { font-size: 16px; }
.values span { color: var(--ink-2); font-size: 14px; }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.facts li { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; }
.facts small { color: var(--muted); font-size: 12.5px; }
.facts b { font-size: 16px; }
.highlights { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 8px; }
.highlights li::before { content: "✦"; color: var(--gold); margin-inline-end: 8px; }
.pending { margin-top: 22px; text-align: center; color: var(--muted); font-size: 14px; border: 1.5px dashed var(--line); border-radius: 16px; padding: 14px; }

/* نصب */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.card h3 { font-size: 18px; margin-bottom: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tag { font-size: 13px; padding: 2px 12px; border-radius: 99px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.nums { list-style: persian; margin: 0; padding-inline-start: 22px; color: var(--ink-2); display: grid; gap: 6px; }
.nums li::marker { color: var(--gold); font-weight: 800; }

/* اشتراک */
.plans { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 14px; position: relative; box-shadow: var(--shadow); }
.plan h3 { font-size: 19px; }
.price { color: var(--muted); }
.price b { font-size: 34px; font-weight: 900; color: var(--ink); margin-inline-end: 4px; }
.checks { list-style: none; padding: 0; margin: 0 0 auto; display: grid; gap: 8px; color: var(--ink-2); font-size: 15px; }
.checks li { display: flex; gap: 8px; }
.checks li::before { content: ""; flex: none; width: 20px; height: 20px; margin-top: 4px; border-radius: 50%; background: color-mix(in srgb, var(--gold-2) 30%, transparent) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M6 12l4 4 8-8' fill='none' stroke='%23a36a12' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/></svg>") center / 14px no-repeat; }
.plan .btn { align-self: stretch; }
.plan-hot { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--gold-2), var(--brand-2), var(--gold)) border-box; border: 2px solid transparent; transform: scale(1.03); }
.ribbon { position: absolute; top: -13px; inset-inline-start: 24px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); font-weight: 800; font-size: 13px; padding: 2px 14px; border-radius: 99px; }
.fine { text-align: center; color: var(--muted); font-size: 14px; margin-top: 22px; }

/* پرسش‌ها */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; transition: border-color .3s; }
.faq details[open] { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 20px; font-weight: 700; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; border: solid var(--gold); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .3s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq p { padding: 0 20px 18px; color: var(--ink-2); }

/* فراخوان */
.cta-band { overflow: hidden; background: radial-gradient(100% 120% at 50% 100%, var(--hero-2), var(--hero-1)); color: #fff; text-align: center; isolation: isolate; }
.girih {
  position: absolute; inset: -50%; z-index: -1; opacity: .12; animation: spin 120s linear infinite;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 80'><g fill='none' stroke='%23e9c46a' stroke-width='1'><path d='M40 0l11.7 28.3L80 40 51.7 51.7 40 80 28.3 51.7 0 40l28.3-11.7z'/><path d='M0 0l28.3 28.3M80 0L51.7 28.3M0 80l28.3-28.3M80 80L51.7 51.7'/><rect x='28' y='28' width='24' height='24' transform='rotate(45 40 40)'/></g></svg>") 0 0 / 80px 80px;
}
.cta-in { display: grid; gap: 14px; justify-items: center; }
.cta-in h2 { font-family: Lalezar, Vazirmatn; font-weight: 400; font-size: clamp(36px, 7vw, 64px); }
.cta-in p { color: #d9d6ee; }

/* پانویس */
.foot { background: var(--bg-2); border-top: 1px solid var(--line); padding: 48px 0 20px; font-size: 15px; }
.foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.foot h4 { font-size: 15px; margin-bottom: 10px; }
.foot .brand { margin-bottom: 10px; }
.links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.links a { text-decoration: none; color: var(--ink-2); }
.links a:hover { color: var(--gold); }
.copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line); margin-top: 32px; padding-top: 16px; font-size: 13px; }


/* دانلود */
.dl-app {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 100% 0%, var(--hero-2), var(--hero-1)); color: #fff; border-radius: 26px; padding: 26px; margin-bottom: 26px; box-shadow: var(--shadow);
}
.dl-app-text { display: flex; align-items: center; gap: 16px; }
.dl-app-text img { border-radius: 18px; box-shadow: 0 10px 30px -10px rgba(124, 58, 237, .8); }
.dl-app h3 { font-size: 22px; }
.dl-app p { color: #c9c5e6; font-size: 15px; }
.dl-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.store {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 14px; text-decoration: none;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .22); color: #fff; min-height: 56px; transition: transform .25s, background .25s;
}
.store:hover { transform: translateY(-2px); background: rgba(255, 255, 255, .15); }
.store[aria-disabled="true"] { opacity: .65; }
.store-main { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); border-color: transparent; box-shadow: 0 12px 28px -10px rgba(201, 138, 38, .9); }
.store-main:hover { background: linear-gradient(135deg, #f6e2a8, var(--gold-2)); }
.store-main svg { stroke: var(--gold-ink); stroke-width: 2.2; }
@media (max-width: 560px) { .store-main { flex-basis: 100%; justify-content: center; } }
.btn .bi { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.apk-steps { list-style: none; counter-reset: s; padding: 0; margin: 0 0 40px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.apk-steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: grid; gap: 4px; position: relative; }
.apk-steps li::before { content: counter(s, persian); width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: color-mix(in srgb, var(--gold-2) 30%, transparent); color: var(--gold); }
.apk-steps b { font-size: 16px; }
.apk-steps span { color: var(--ink-2); font-size: 14px; }
.sub-h { font-size: 19px; margin: 0 0 14px; }
.card a { color: var(--gold); }
.store svg { width: 26px; height: 26px; fill: none; stroke: var(--gold-2); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.store span { display: grid; line-height: 1.35; }
.store small { font-size: 11.5px; opacity: .8; }
.store b { font-size: 16px; }
.files { grid-template-columns: repeat(3, 1fr); }
.file {
  display: flex; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px 16px;
  text-decoration: none; position: relative; overflow: hidden; transition: transform .3s, border-color .3s;
}
.file:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); }
.file-ico {
  flex: none; width: 52px; height: 62px; border-radius: 8px 18px 8px 8px; display: grid; place-items: end center; padding-bottom: 6px;
  background: linear-gradient(150deg, var(--c1, var(--brand)), var(--c2, var(--brand-2))); color: #fff; font-weight: 900; font-size: 11px; position: relative;
}
.file-ico::before { content: attr(data-g); position: absolute; top: 6px; inset-inline: 0; text-align: center; font-family: Lalezar, Vazirmatn; font-size: 22px; font-weight: 400; }
.file b { display: block; font-size: 15.5px; }
.file small { color: var(--muted); font-size: 12.5px; }
.file .dl { margin-inline-start: auto; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--gold-2) 25%, transparent); color: var(--gold); }
.file .dl svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s; }
.file:hover .dl svg { transform: translateY(2px); animation: bob .8s ease-in-out infinite alternate; }
@keyframes bob { to { transform: translateY(-2px) } }

/* اشتراک‌گذاری */
.share {
  display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; background: var(--surface); border: 1px solid var(--line);
  border-radius: 26px; padding: clamp(22px, 4vw, 40px); box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.share::before { content: ""; position: absolute; width: 340px; height: 340px; border-radius: 50%; inset-inline-end: -120px; top: -160px; background: radial-gradient(color-mix(in srgb, var(--gold-2) 30%, transparent), transparent 70%); pointer-events: none; }
.share h2 { font-size: clamp(22px, 3.6vw, 32px); font-weight: 900; margin: 4px 0 8px; }
.share-text > p:not(.kicker) { color: var(--ink-2); }
.share-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.sbtn { font: inherit; font-weight: 700; font-size: 14.5px; padding: 8px 18px; border-radius: 99px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink); text-decoration: none; cursor: pointer; transition: border-color .2s, transform .2s; }
.sbtn:hover { border-color: var(--gold); transform: translateY(-2px); }
.qr { margin: 0; display: grid; justify-items: center; gap: 8px; position: relative; }
.qr img { background: #fff; padding: 10px; border-radius: 18px; box-shadow: var(--shadow); border: 1px solid var(--line); }
.qr figcaption a { font-size: 13px; color: var(--gold); font-weight: 700; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); opacity: 0; background: var(--ink); color: var(--bg); padding: 10px 20px; border-radius: 99px; font-weight: 700; z-index: 80; transition: .3s; pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }


/* قلّاب و سه وعده */
.hook { font-size: clamp(26px, 4.6vw, 40px); line-height: 1.5; font-weight: 900; color: #fff; margin: 0 0 12px; }
.hook b { display: inline-block; background: linear-gradient(100deg, #f6e2a8, #e9c46a 50%, #c98a26); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead b { color: #f3e6c4; }
.promise { position: relative; z-index: 2; padding-top: clamp(40px, 7vw, 72px); }
.promise-in { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pr {
  position: relative; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
  padding: 22px; box-shadow: var(--shadow); display: grid; gap: 6px; align-content: start;
}
.pr-ico { font-size: 30px; line-height: 1; }
.pr h3 { font-size: 19px; font-weight: 900; }
.pr p { color: var(--ink-2); font-size: 14.5px; }
.pr-hot { background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, var(--gold-2), var(--brand-2), var(--gold)) border-box; border: 2px solid transparent; }
.pr-hot::after {
  content: "جدید"; position: absolute; top: 14px; inset-inline-end: 14px; font-size: 12px; font-weight: 800;
  padding: 1px 10px; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink);
}

/* تیزهوشان و نهایی */
.exam-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.exam-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px; box-shadow: var(--shadow); display: grid; gap: 12px; align-content: start; }
.exam-card h3 { font-size: 21px; font-weight: 900; }
.badge { justify-self: start; font-size: 12.5px; font-weight: 800; padding: 3px 12px; border-radius: 99px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.demo {
  margin-top: 26px; border-radius: 26px; padding: clamp(20px, 4vw, 32px); color: #fff; position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 0% 0%, var(--hero-2), var(--hero-1)); box-shadow: var(--shadow);
}
.demo-head { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 12px; }
.demo-tag { font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); }
.demo-src { font-size: 13px; color: #b9b5d6; }
.demo-q { font-size: clamp(17px, 2.6vw, 20px); font-weight: 700; margin-bottom: 16px; }
.demo-opts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.demo-opts button {
  font: inherit; font-weight: 700; color: #fff; background: rgba(255, 255, 255, .07); border: 1.5px solid rgba(255, 255, 255, .2);
  border-radius: 14px; padding: 12px; cursor: pointer; transition: transform .2s, background .2s, border-color .2s;
}
.demo-opts button:hover:not(:disabled) { transform: translateY(-2px); border-color: var(--gold-2); }
.demo-opts button.ok { background: rgba(16, 185, 129, .25); border-color: #10b981; }
.demo-opts button.bad { background: rgba(244, 63, 94, .22); border-color: #f43f5e; animation: shake .4s; }
.demo-opts button:disabled { cursor: default; }
@keyframes shake { 25% { transform: translateX(-6px) } 75% { transform: translateX(6px) } }
.demo-exp { margin-top: 14px; color: #e4e1f5; background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 12px 14px; }
.demo-exp b { color: var(--gold-2); }

/* مقایسه */
.cmp { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); }
.cmp-row { display: grid; grid-template-columns: 1fr 1.2fr 1.4fr; }
.cmp-row > span { padding: 13px 16px; border-top: 1px solid var(--line); font-size: 15px; }
.cmp-row > span:first-child { font-weight: 800; }
.cmp-h > span { border-top: 0; font-weight: 900; background: var(--bg-2); }
.cmp-h > span:last-child { color: var(--brand); }
:root[data-theme="dark"] .cmp-h > span:last-child { color: #a5b4fc; }
.cmp .no { color: var(--muted); }
.cmp .no::before { content: "✕ "; color: #f43f5e; font-weight: 900; }
.cmp .yes { font-weight: 700; background: color-mix(in srgb, var(--gold-2) 10%, transparent); }
.cmp .yes::before { content: "✓ "; color: #10b981; font-weight: 900; }


/* معرّفیِ مدرّس */
.by { display: inline-block; font-size: 14px; color: #e9e3ff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(233, 196, 106, .35); border-radius: 99px; padding: 4px 14px; margin: 0 0 12px; }
.by b { color: var(--gold-2); }
.sec-teacher { overflow: hidden; background: radial-gradient(70% 80% at 85% 50%, color-mix(in srgb, var(--gold-2) 12%, transparent), transparent), var(--bg); }
.teacher { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 6vw, 72px); align-items: center; }
.t-portrait { margin: 0; position: relative; width: clamp(220px, 28vw, 300px); aspect-ratio: 1; display: grid; place-items: center; }
.t-ring {
  position: absolute; inset: 0; border-radius: 50%; animation: spin 30s linear infinite;
  background: conic-gradient(from 0deg, var(--gold-2), var(--brand-2), var(--gold), var(--brand), var(--gold-2));
  mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 6px), #000 calc(100% - 5px));
}
.t-portrait::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%; opacity: .25; animation: spin 90s linear infinite reverse;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'><g fill='none' stroke='%23c98a26' stroke-width='.6'><path d='M50 2l14 34 34 14-34 14-14 34-14-34L2 50l34-14z'/><path d='M50 16l10 24 24 10-24 10-10 24-10-24-24-10 24-10z'/><circle cx='50' cy='50' r='47'/></g></svg>") center / contain no-repeat;
}
.t-face {
  position: relative; width: calc(100% - 26px); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: radial-gradient(120% 120% at 30% 20%, var(--hero-2), var(--hero-1)); box-shadow: 0 30px 60px -24px rgba(42, 31, 99, .8), inset 0 0 0 1px rgba(255, 255, 255, .08);
}
.t-face img { width: 100%; height: 100%; object-fit: cover; }
.t-face span { font-family: Lalezar, Vazirmatn; font-size: clamp(64px, 9vw, 96px); line-height: 1; background: linear-gradient(100deg, #f6e2a8, #e9c46a 45%, #fff8e1 55%, #c98a26); -webkit-background-clip: text; background-clip: text; color: transparent; padding-top: .15em; }
.t-portrait figcaption { position: absolute; bottom: -6px; }
.t-chip { font-size: 13px; font-weight: 800; padding: 4px 16px; border-radius: 99px; background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); box-shadow: 0 10px 20px -10px rgba(201, 138, 38, .9); white-space: nowrap; }
.t-text h2 { font-family: Lalezar, Vazirmatn; font-weight: 400; font-size: clamp(38px, 6vw, 60px); line-height: 1.25; margin: 4px 0 8px; }
.t-lead { font-size: clamp(16px, 2vw, 18.5px); color: var(--ink-2); max-width: 56ch; margin-bottom: 20px; }
.t-creds { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.t-creds li { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); }
.t-creds b { font-size: 18px; font-weight: 900; color: var(--gold); text-align: center; border-inline-end: 1px dashed var(--line); padding-inline-end: 12px; }
.t-creds span { color: var(--ink-2); font-size: 15px; }


/* لایتنر */
.lt { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.lt-text h2, .pg-text h2 { font-size: clamp(26px, 4.2vw, 38px); font-weight: 900; margin: 4px 0 10px; }
.lt-text > p:not(.kicker), .pg-text > p:not(.kicker) { color: var(--ink-2); margin-bottom: 16px; }
.lt-demo { background: radial-gradient(120% 140% at 100% 0%, var(--hero-2), var(--hero-1)); border-radius: 26px; padding: 22px; color: #fff; box-shadow: var(--shadow); display: grid; gap: 16px; }
.lt-hint { font-size: 13px; color: #c9c5e6; text-align: center; }
.lt-boxes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.lt-box { display: grid; justify-items: center; gap: 2px; padding: 10px 2px 8px; border-radius: 12px 12px 6px 6px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); border-top: 3px solid var(--gold-2); transition: background .3s; }
.lt-box b { font-size: 20px; font-weight: 900; transition: transform .3s; }
.lt-box span { font-size: 11px; color: #c9c5e6; white-space: nowrap; }
.lt-box.bump { background: rgba(233, 196, 106, .22); }
.lt-box.bump b { transform: scale(1.35); }
.lt-card { all: unset; cursor: pointer; display: block; height: 170px; perspective: 900px; border-radius: 20px; }
.lt-card:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }
.lt-inner { position: relative; display: block; height: 100%; transition: transform .6s cubic-bezier(.3, .7, .2, 1); transform-style: preserve-3d; }
.lt-card.flip .lt-inner { transform: rotateY(180deg); }
.lt-card.out .lt-inner { animation: fly .45s ease-in forwards; }
@keyframes fly { to { transform: translateY(-40px) scale(.7) rotateY(180deg); opacity: 0 } }
.lt-face { position: absolute; inset: 0; display: grid; place-items: center; align-content: center; gap: 6px; border-radius: 20px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center; padding: 14px; }
.lt-front { background: #fffaf0; color: var(--gold-ink); box-shadow: 0 16px 30px -14px rgba(0, 0, 0, .6); }
.lt-back { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--gold-ink); transform: rotateY(180deg); }
.lt-face small { font-size: 12px; font-weight: 800; opacity: .7; }
.lt-face b { font-size: clamp(22px, 3.4vw, 28px); font-weight: 900; line-height: 1.5; }
.lt-face em { font-style: normal; font-size: 12px; opacity: .7; }
.lt-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.lt-btns button { font: inherit; font-weight: 800; padding: 11px; border-radius: 14px; cursor: pointer; border: 1.5px solid rgba(255, 255, 255, .25); color: #fff; background: rgba(255, 255, 255, .06); transition: transform .2s, background .2s; }
.lt-btns button:hover { transform: translateY(-2px); }
.lt-btns [data-ans="1"] { background: rgba(16, 185, 129, .22); border-color: #10b981; }
.lt-btns [data-ans="0"] { background: rgba(244, 63, 94, .16); border-color: #f43f5e; }

/* پیشرفت و نشان‌ها */
.pg { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.pg-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.pg-top { display: flex; align-items: center; gap: 16px; }
.pg-ring { position: relative; width: 112px; flex: none; }
.pg-ring svg { width: 100%; transform: rotate(-90deg) scaleY(-1); }
.pg-ring circle { fill: none; stroke-width: 10; }
.pg-ring .bg { stroke: var(--bg-2); }
.pg-ring .fg { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.6s cubic-bezier(.3, .7, .2, 1) .3s; }
.pg-panel.in .pg-ring .fg { stroke-dashoffset: 105; }
.pg-ring > span { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.4; }
.pg-ring b { font-size: 18px; font-weight: 900; }
.pg-ring small { color: var(--gold); font-weight: 800; }
.pg-meta { flex: 1; display: grid; gap: 6px; }
.pg-streak { justify-self: start; font-weight: 800; font-size: 13px; padding: 3px 12px; border-radius: 99px; background: color-mix(in srgb, #f97316 14%, transparent); color: #ea580c; }
.pg-xp { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; display: flex; }
.pg-xp i { width: 0; background: linear-gradient(90deg, var(--brand-2), var(--brand)); border-radius: inherit; transition: width 1.6s cubic-bezier(.3, .7, .2, 1) .5s; }
.pg-panel.in .pg-xp i { width: 64%; }
.pg-meta small { color: var(--muted); font-size: 12px; }
.pg-h { font-size: 12.5px; font-weight: 800; color: var(--ink-2); margin-top: 6px; }
.pg-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 110px; align-items: end; }
.pg-week span { display: grid; grid-template-rows: 1fr auto; height: 100%; text-align: center; font-size: 11px; color: var(--muted); gap: 4px; }
.pg-week i { align-self: end; height: 0; border-radius: 8px 8px 4px 4px; background: linear-gradient(var(--gold-2), var(--gold)); transition: height 1s cubic-bezier(.3, .7, .2, 1); }
.pg-week span:nth-child(4) i { background: linear-gradient(var(--brand-2), var(--brand)); }
.pg-panel.in .pg-week i { height: var(--h); }
.pg-week span:nth-child(2) i { transition-delay: .08s } .pg-week span:nth-child(3) i { transition-delay: .16s } .pg-week span:nth-child(4) i { transition-delay: .24s }
.pg-week span:nth-child(5) i { transition-delay: .32s } .pg-week span:nth-child(6) i { transition-delay: .4s } .pg-week span:nth-child(7) i { transition-delay: .48s }
.pg-weak { display: grid; gap: 7px; }
.pg-weak div { display: grid; grid-template-columns: 96px 1fr 40px; gap: 10px; align-items: center; font-size: 12.5px; }
.pg-weak em { height: 8px; border-radius: 99px; background: var(--bg-2); overflow: hidden; display: flex; }
.pg-weak i { width: 0; border-radius: inherit; background: #10b981; transition: width 1.2s cubic-bezier(.3, .7, .2, 1) .6s; }
.pg-weak div:first-child i { background: #f43f5e; }
.pg-weak div:nth-child(2) i { background: #f59e0b; }
.pg-panel.in .pg-weak i { width: var(--w); }
.pg-weak b { font-weight: 800; text-align: left; }
.pg-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.pg-badges span { display: grid; justify-items: center; gap: 2px; font-size: 26px; padding: 10px 4px; border-radius: 16px; background: var(--bg-2); opacity: 0; transform: scale(.5); transition: opacity .4s, transform .5s cubic-bezier(.2, .9, .3, 1.5); transition-delay: calc(var(--d) + 1s); }
.pg-badges small { font-size: 10.5px; font-weight: 700; color: var(--ink-2); text-align: center; line-height: 1.5; }
.pg-badges .locked { filter: grayscale(1); }
.pg-panel.in .pg-badges span { opacity: 1; transform: none; }
.pg-panel.in .pg-badges .locked { opacity: .45; }



/* ── سرآغازِ سه‌بعدی ── */
.intro { position: relative; height: 100svh; min-height: 520px; background: #050816; overflow: hidden; color: #fff; }
.intro.no3d { display: none; }
#intro3d { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transition: opacity 1.2s; }
.intro.ready #intro3d { opacity: 1; }
.intro::after { content: ""; position: absolute; inset: auto 0 0; height: 32%; background: linear-gradient(transparent, rgba(5, 8, 22, .85)); pointer-events: none; }
.intro-ui { position: absolute; z-index: 1; inset: auto 0 clamp(18px, 4vh, 40px); display: grid; justify-items: center; gap: 2px; text-align: center; pointer-events: none; }
.intro-ui > * { opacity: 0; transform: translateY(18px); transition: opacity 1s, transform 1s cubic-bezier(.2, .8, .2, 1); }
.intro.done .intro-ui > * { opacity: 1; transform: none; }
.intro.done .intro-by { transition-delay: .25s; }
.intro.done .intro-down { transition-delay: .6s; }
.intro-brand { font-family: Lalezar, Vazirmatn; font-size: clamp(40px, 7vw, 76px); line-height: 1.25; background: linear-gradient(100deg, #f6e2a8, #e9c46a 40%, #fff8e1 55%, #c98a26); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 6px 24px rgba(233, 196, 106, .45)); }
.intro-by { font-size: clamp(14px, 2vw, 18px); color: #d9d6ee; }
.intro-down { pointer-events: auto; margin-top: 10px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid rgba(233, 196, 106, .5); color: #f6e2a8; animation: bobd 1.8s ease-in-out infinite; }
.intro-down svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
@keyframes bobd { 50% { translate: 0 6px } }
.intro-replay { all: unset; cursor: pointer; position: absolute; z-index: 1; inset-inline-start: 16px; bottom: 16px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .2); opacity: 0; transition: opacity .6s; }
.intro.done .intro-replay { opacity: .8; }
.intro-replay svg { width: 18px; height: 18px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


/* وقتی سرآغازِ سه‌بعدی هست، نام و بیت را همان‌جا دیده‌اند؛ این‌جا تکرار نشود */
.intro:not(.no3d) ~ .hero .hero-title { display: none; }
.intro:not(.no3d) ~ .hero { padding-top: clamp(56px, 8vw, 96px); }
.intro.loading::before {
  content: "قصر فارسی"; position: absolute; inset: 0; display: grid; place-items: center; z-index: 1;
  font-family: Lalezar, Vazirmatn; font-size: clamp(36px, 7vw, 64px); color: rgba(233, 196, 106, .35); animation: breathe 1.8s ease-in-out infinite;
}
@keyframes breathe { 50% { color: rgba(233, 196, 106, .75) } }

/* ── آشکارشدن با اسکرول ── */
.js .reveal { opacity: 0; transform: translateY(28px) scale(.98); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--rd, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* نوارِ پیشرفتِ اسکرول */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; transform-origin: right; transform: scaleX(var(--sp, 0)); background: linear-gradient(90deg, var(--brand-2), var(--gold-2)); }

/* ── واکنش‌گرا ── */
@media (max-width: 1000px) {
  .feats { grid-template-columns: repeat(2, 1fr); }
  .grades, .files, .apk-steps { grid-template-columns: repeat(2, 1fr); }
  .promise-in { grid-template-columns: 1fr; }
  .teacher { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .lt, .pg { grid-template-columns: 1fr; }
  .t-lead { margin-inline: auto; }
  .t-creds { text-align: start; width: 100%; }
  .exam-grid { grid-template-columns: 1fr; }
  .demo-opts { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
}
@media (max-width: 860px) {
  .menu-btn { display: grid; }
  .nav {
    position: fixed; inset: 68px 12px auto; flex-direction: column; background: var(--surface); color: var(--ink);
    border: 1px solid var(--line); border-radius: 18px; padding: 8px; box-shadow: var(--shadow);
    opacity: 0; pointer-events: none; transform: translateY(-8px); transition: .25s;
  }
  .nav.open { opacity: 1; pointer-events: auto; transform: none; }
  .nav a { padding: 12px 14px; }
  .hero { padding-top: 96px; min-height: auto; }
  .hero-in { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .cta, .stats { justify-content: center; }
  .lead { margin-inline: auto; }
  .stats { grid-template-columns: repeat(2, auto); gap: 14px 40px; }
  .school-grid { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .plan-hot { transform: none; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-in > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  .feats, .grades, .steps, .two, .values, .files, .apk-steps { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; text-align: center; }
  .cmp-row > span { padding: 11px 10px; font-size: 13.5px; }
  .cmp-row { grid-template-columns: .9fr 1fr 1.2fr; }
  .share-btns { justify-content: center; }
  .dl-app { justify-content: center; text-align: center; }
  .dl-app-text { flex-direction: column; }
  .dl-btns { justify-content: center; }
  .palace { opacity: .4; bottom: 30px; }
  .brand small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal, .shine .ch, .verse .w { opacity: 1 !important; transform: none !important; filter: none !important; }
  .palace .draw path { stroke-dashoffset: 0; }
  html { scroll-behavior: auto; }
}
