/* =========================================================
   IT FOR CEO — استایل سایت کمپین
   فونت‌ها: فایل‌های woff2 را در assets/fonts بگذارید.
   ========================================================= */

@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('../fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}
@font-face {
  font-family: 'Morabba';
  src: url('../fonts/Morabba-Bold.woff2') format('woff2');
  font-weight: 700; font-display: swap;
}

:root {
  --night:    #06121e;
  --night-2:  #0a1c2c;
  --night-3:  #10293d;
  --gold:     #c8a249;
  --gold-lt:  #ebd59c;
  --mist:     #dde7ef;
  --dim:      #93a9bb;
  --line:     rgba(200,162,73,.26);
  --line-soft:rgba(221,231,239,.12);
  --ok:       #3f9d78;
  --err:      #c85f5f;
  --warn:     #c9a13f;
  --font:     'Vazirmatn', 'IRANSans', 'Segoe UI', Tahoma, sans-serif;
  --display:  'Morabba', 'Vazirmatn', 'IRANSans', Tahoma, serif;
  --radius:   14px;
  --wrap:     1140px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation: none !important; transition: none !important; }
}

body {
  margin: 0;
  background: var(--night);
  color: var(--mist);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.9;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-lt); text-decoration: none; }
a:hover { text-decoration: underline; }

:focus-visible {
  outline: 2px solid var(--gold-lt);
  outline-offset: 3px;
}

.wrap { width: min(100% - 2.4rem, var(--wrap)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2.4rem, 760px); }

/* ---------- نوار بالا ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(6,18,30,.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar-in { display: flex; align-items: center; gap: 1.2rem; min-height: 66px; }
.brand { display: inline-flex; align-items: baseline; gap: .4rem; color: var(--mist); }
.brand:hover { text-decoration: none; }
.brand-mark {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 1.5rem; font-weight: 700; color: var(--gold);
  letter-spacing: .04em;
}
.brand-text { font-size: .82rem; letter-spacing: .22em; color: var(--dim); }
.topnav { display: flex; gap: 1.4rem; margin-inline-start: auto; font-size: .95rem; }
.topnav a { color: var(--mist); opacity: .82; }
.topnav a:hover { opacity: 1; color: var(--gold-lt); text-decoration: none; }
.topbar .btn { margin-inline-start: 1rem; }

@media (max-width: 820px) {
  .topnav { display: none; }
  .topbar .btn { margin-inline-start: auto; }
}

/* ---------- دکمه‌ها ---------- */
.btn {
  display: inline-block;
  padding: .78rem 1.6rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: inherit; font-size: 1rem; font-weight: 500;
  cursor: pointer; text-align: center;
  transition: background-color .18s ease, color .18s ease, border-color .18s ease;
}
.btn:hover { text-decoration: none; }
.btn-gold { background: var(--gold); color: #0a1420; }
.btn-gold:hover { background: var(--gold-lt); }
.btn-ghost { border-color: var(--line); color: var(--gold-lt); background: transparent; }
.btn-ghost:hover { border-color: var(--gold); background: rgba(200,162,73,.08); }
.btn-sm { padding: .48rem 1.1rem; font-size: .9rem; }
.btn-block { display: block; width: 100%; margin-top: 1.4rem; }

/* ---------- هیرو ---------- */
.hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(3rem, 7vw, 6rem);
  background:
    radial-gradient(60% 70% at 20% 10%, rgba(28,86,120,.35), transparent 70%),
    linear-gradient(180deg, #071624 0%, var(--night) 100%);
  overflow: hidden;
}
.hero-in {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(1.5rem, 4vw, 3.5rem);
  align-items: center;
}
.hero-kicker {
  margin: 0 0 .9rem;
  color: var(--gold);
  font-size: .96rem;
  letter-spacing: .04em;
}
.hero-kicker::after {
  content: ''; display: block; width: 62px; height: 1px;
  background: var(--gold); opacity: .55; margin-top: .7rem;
}
.hero-title {
  font-family: var(--display);
  font-size: clamp(2.1rem, 5.2vw, 3.6rem);
  line-height: 1.35;
  margin: 0 0 1rem;
  font-weight: 700;
  color: #fff;
}
.hero-sub {
  margin: 0 0 1.8rem;
  max-width: 46ch;
  color: var(--dim);
  font-size: 1.05rem;
}
.hero-art { position: relative; }
.hero-art img {
  border-radius: 6px;
  box-shadow: 0 30px 70px rgba(0,0,0,.6), 0 0 0 1px rgba(235,213,156,.14);
}
.hero-cta { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: 1.8rem; }

/* ---------- پلاک نسخهٔ محدود ---------- */
.plate {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.2rem 1.3rem 1rem;
  background: linear-gradient(160deg, rgba(200,162,73,.08), rgba(200,162,73,.02));
}
.plate-row { display: flex; align-items: stretch; gap: 1.2rem; }
.plate-cell { flex: 1; }
.plate-sep { width: 1px; background: var(--line); }
.plate-label { display: block; font-size: .85rem; color: var(--dim); }
.plate-num {
  display: block;
  font-family: var(--display);
  font-size: 2.6rem; line-height: 1.2; color: var(--gold-lt);
}
.plate-of { display: block; font-size: .82rem; color: var(--dim); }
.plate-bar {
  margin-top: .6rem; height: 3px; background: rgba(221,231,239,.12); border-radius: 2px; overflow: hidden;
}
.plate-bar i { display: block; height: 100%; background: var(--gold); }
.plate-foot {
  margin: .9rem 0 0; padding-top: .7rem;
  border-top: 1px solid var(--line-soft);
  font-size: .84rem; color: var(--dim);
}

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; }
  .hero-art { order: -1; max-width: 300px; margin-inline: auto; }
}

/* ---------- بخش‌ها ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section-alt { background: var(--night-2); }
.sec-title {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.5;
  margin: 0 0 .8rem;
  color: #fff;
}
.sec-title-sm { font-size: clamp(1.2rem, 2.6vw, 1.5rem); margin-top: 2.6rem; }
.sec-lead { margin: 0 0 2.4rem; max-width: 62ch; color: var(--dim); }

/* ---------- ارزش‌ها ---------- */
.value-grid {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.value { background: var(--night); padding: 1.6rem 1.4rem; }
.value h3 { margin: 0 0 .5rem; font-size: 1.05rem; color: var(--gold-lt); font-weight: 500; }
.value p { margin: 0; color: var(--dim); font-size: .95rem; }

/* ---------- سه مسیر ---------- */
.paths { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.path {
  border: 1px solid var(--line-soft);
  border-top: 2px solid var(--gold);
  border-radius: 0 0 var(--radius) var(--radius);
  padding: 1.6rem 1.4rem;
  background: var(--night);
}
.path-size { font-size: .85rem; color: var(--gold); }
.path h3 { margin: .3rem 0 .6rem; font-size: 1.15rem; color: #fff; font-weight: 500; }
.path p { margin: 0; color: var(--dim); font-size: .95rem; }

/* ---------- نسخه‌ها ---------- */
.offers { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); align-items: start; }
.offer {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1.7rem 1.5rem;
  background: var(--night-2);
}
.offer-feature { border-color: var(--line); background: linear-gradient(180deg, rgba(200,162,73,.07), rgba(10,28,44,.6)); }
.offer h3 { margin: 0 0 .3rem; font-size: 1.25rem; color: #fff; font-weight: 500; }
.offer-stock { margin: 0 0 1rem; font-size: .88rem; color: var(--gold); }
.offer-img { border-radius: 8px; margin-bottom: 1rem; }
.offer-list { margin: 0 0 1.2rem; padding: 0; list-style: none; }
.offer-list li { padding-inline-start: 1.3rem; position: relative; color: var(--dim); font-size: .95rem; }
.offer-list li::before {
  content: ''; position: absolute; inset-inline-start: 0; top: .85em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
}
.offer-price { margin: 0 0 1.2rem; font-size: 1rem; color: var(--dim); }
.offer-price strong { font-size: 1.6rem; color: var(--gold-lt); font-family: var(--display); }
.offer-note { margin: 1rem 0 0; font-size: .85rem; color: var(--dim); }

/* ---------- مراحل ---------- */
.steps {
  display: flex; gap: .5rem; flex-wrap: wrap;
  list-style: none; margin: 0 0 2rem; padding: 0;
  font-size: .9rem; color: var(--dim);
}
.steps li { display: flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border: 1px solid var(--line-soft); border-radius: 999px; }
.steps li span {
  width: 22px; height: 22px; display: grid; place-items: center;
  border-radius: 50%; background: rgba(221,231,239,.1); font-size: .8rem;
}
.steps .is-now { border-color: var(--gold); color: var(--gold-lt); }
.steps .is-now span { background: var(--gold); color: #0a1420; }
.steps .is-done { color: var(--mist); }
.steps .is-done span { background: rgba(200,162,73,.25); color: var(--gold-lt); }

/* ---------- فرم‌ها ---------- */
.order-form { margin-top: 1.6rem; }
.picker { border: 0; padding: 0; margin: 0 0 1.6rem; }
.picker legend { padding: 0; margin-bottom: .8rem; color: var(--dim); font-size: .95rem; }
.pick {
  display: block; cursor: pointer; margin-bottom: .7rem;
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1rem 1.1rem; background: var(--night);
  transition: border-color .15s ease, background-color .15s ease;
}
.pick:has(input:checked) { border-color: var(--gold); background: rgba(200,162,73,.07); }
.pick input { accent-color: var(--gold); margin-inline-end: .6rem; }
.pick-body { display: inline-grid; gap: .15rem; vertical-align: middle; }
.pick-name { color: #fff; }
.pick-price { color: var(--gold-lt); font-size: .95rem; }
.pick-stock { color: var(--dim); font-size: .82rem; }
.pick.is-out { opacity: .45; cursor: not-allowed; }

.form-grid { display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.form-grid .col-2 { grid-column: 1 / -1; }
.form-grid label, .plain-box label { display: grid; gap: .4rem; font-size: .92rem; color: var(--dim); }
.opt { color: rgba(147,169,187,.7); font-size: .8rem; }

input[type=text], input[type=tel], input[type=email], input[type=password],
input[type=number], input[type=file], select, textarea {
  width: 100%;
  padding: .72rem .9rem;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--night);
  color: var(--mist);
  font-family: inherit; font-size: 1rem;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--gold); outline: none; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--dim) 50%),
         linear-gradient(135deg, var(--dim) 50%, transparent 50%);
         background-position: calc(1rem) center, calc(1rem + 5px) center;
         background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }

@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
}

.summary {
  margin-top: 1.6rem; padding: 1.1rem 1.2rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(200,162,73,.05);
}
.sum-row { display: flex; justify-content: space-between; gap: 1rem; font-size: .95rem; color: var(--dim); }
.sum-total { margin-top: .6rem; padding-top: .6rem; border-top: 1px solid var(--line-soft); color: var(--mist); }
.sum-total b { color: var(--gold-lt); font-size: 1.15rem; }
.form-hint { margin: .9rem 0 0; font-size: .85rem; color: var(--dim); text-align: center; }

/* ---------- کارت سفارش ---------- */
.order-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.1rem; background: var(--night-2);
}
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.order-label { margin: 0; font-size: .8rem; color: var(--dim); }
.order-code { margin: .1rem 0 0; font-size: 1.3rem; color: var(--gold-lt); letter-spacing: .06em; direction: ltr; }
.order-facts { display: grid; gap: .8rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); margin: 1.3rem 0 0; }
.order-facts dt { font-size: .8rem; color: var(--dim); }
.order-facts dd { margin: .1rem 0 0; color: var(--mist); }
.order-facts .amount { color: var(--gold-lt); font-size: 1.1rem; }

.badge {
  display: inline-block; padding: .3rem .85rem; border-radius: 999px;
  font-size: .82rem; border: 1px solid var(--line-soft); color: var(--mist);
}
.badge-pending   { border-color: rgba(201,161,63,.5); color: var(--warn); }
.badge-submitted { border-color: rgba(78,142,190,.5); color: #7db4e0; }
.badge-approved  { border-color: rgba(63,157,120,.5); color: #5fc39a; }
.badge-rejected  { border-color: rgba(200,95,95,.5); color: #e08585; }
.badge-shipped   { border-color: rgba(200,162,73,.6); color: var(--gold-lt); }
.badge-canceled  { color: var(--dim); }

/* ---------- حساب‌های بانکی ---------- */
.accounts { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.account {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.2rem 1.2rem 1rem; background: var(--night-2);
}
.account h3 { margin: 0; font-size: 1.05rem; color: #fff; font-weight: 500; }
.acc-owner { margin: .1rem 0 .9rem; font-size: .85rem; color: var(--dim); }
.acc-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.acc-key { font-size: .8rem; color: var(--dim); min-width: 62px; }
.acc-val { font-family: 'Courier New', monospace; font-size: 1rem; color: var(--gold-lt); }
.acc-sheba { font-size: .82rem; word-break: break-all; }
.copy {
  margin-inline-start: auto;
  border: 1px solid var(--line-soft); background: transparent;
  color: var(--mist); border-radius: 8px; padding: .25rem .7rem;
  font-family: inherit; font-size: .8rem; cursor: pointer;
}
.copy:hover { border-color: var(--gold); color: var(--gold-lt); }
.copy.is-copied { border-color: var(--ok); color: #5fc39a; }

/* ---------- اعتماد و پرسش‌ها ---------- */
.trust { display: grid; gap: 1.6rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.trust-item h3 { margin: 0 0 .4rem; font-size: 1rem; color: var(--gold-lt); font-weight: 500; }
.trust-item p { margin: 0; color: var(--dim); font-size: .93rem; }

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 1rem 0;
}
.faq summary { cursor: pointer; color: var(--mist); font-size: 1rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before { content: '+'; color: var(--gold); margin-inline-end: .6rem; }
.faq details[open] summary::before { content: '−'; }
.faq p { margin: .7rem 0 0; color: var(--dim); font-size: .95rem; }

/* ---------- پیام‌ها ---------- */
.note {
  border-radius: 10px; padding: .9rem 1.1rem; margin: 1.2rem 0;
  font-size: .93rem; border: 1px solid var(--line-soft); background: rgba(255,255,255,.03);
}
.note-ok   { border-color: rgba(63,157,120,.45); color: #9fe0c4; }
.note-err  { border-color: rgba(200,95,95,.45); color: #eda6a6; }
.note-warn { border-color: rgba(201,161,63,.45); color: #e7cf95; }

/* ---------- فوتر ---------- */
.footer { border-top: 1px solid var(--line-soft); padding: 2.2rem 0; background: #050e18; }
.footer-in { display: flex; justify-content: space-between; gap: 1.4rem; flex-wrap: wrap; font-size: .9rem; color: var(--dim); }
.footer-brand { margin: 0; font-family: Georgia, serif; letter-spacing: .18em; color: var(--gold); }
.footer-line { margin: .2rem 0 0; }
.footer-links { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.footer-links a { color: var(--dim); }
.footer-contact p { margin: 0; }

/* ---------- صفحات ساده (نصب/ورود) ---------- */
.page-plain { display: grid; place-items: center; min-height: 100vh; padding: 2rem 1rem; }
.plain-box {
  width: min(100%, 420px);
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 2rem 1.8rem; background: var(--night-2);
}
.plain-title { font-family: var(--display); margin: 0 0 .4rem; font-size: 1.5rem; color: #fff; }
.plain-lead { margin: 0 0 1.4rem; color: var(--dim); font-size: .93rem; }
.plain-box .form-grid { grid-template-columns: 1fr; }

/* =========================================================
   دکمهٔ تم، شمارش معکوس، بخش نویسنده
   ========================================================= */

.theme-toggle {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line-soft); background: transparent;
  color: var(--dim); border-radius: 999px;
  padding: .35rem .8rem; font-family: inherit; font-size: .82rem; cursor: pointer;
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold-lt); }
.theme-ico { font-size: 1rem; line-height: 1; }
@media (max-width: 520px) { .theme-txt { display: none; } }

.countdown {
  margin-top: 1.4rem;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  background: var(--night-2);
}
.cd-label { margin: 0 0 .7rem; font-size: .85rem; color: var(--dim); }
.cd-cells { display: flex; gap: .6rem; flex-wrap: wrap; }
.cd-cell {
  flex: 1 1 68px; text-align: center;
  border: 1px solid var(--line-soft); border-radius: 10px; padding: .55rem .3rem;
}
.cd-cell b {
  display: block; font-family: var(--display);
  font-size: 1.5rem; line-height: 1.4; color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
}
.cd-cell small { display: block; font-size: .75rem; color: var(--dim); }
.countdown.is-over .cd-cells { opacity: .45; }

.author-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr; align-items: start; }
@media (max-width: 820px) { .author-grid { grid-template-columns: 1fr; } }
.author-copy p { margin: 0 0 1rem; color: var(--dim); max-width: 60ch; }
.credits { list-style: none; margin: 0; padding: 0; }
.credits li {
  padding: .8rem 0; border-bottom: 1px solid var(--line-soft);
  color: var(--mist); font-size: .95rem;
}
.credits li:last-child { border-bottom: 0; }
.credits span { display: block; font-size: .8rem; color: var(--gold); }

.offer-reserved {
  border-top: 1px solid var(--line-soft);
  padding-top: .8rem;
  color: var(--mist);
}

/* =========================================================
   تم روشن — با data-theme="light" فعال می‌شود
   ========================================================= */

[data-theme="light"] {
  --night:    #f5f7f9;
  --night-2:  #eaeff3;
  --night-3:  #ffffff;
  --gold:     #96701d;
  --gold-lt:  #6f5212;
  --mist:     #14283a;
  --dim:      #55697a;
  --line:     rgba(150,112,29,.34);
  --line-soft:rgba(20,40,58,.14);
}

[data-theme="light"] body { background: var(--night); }
[data-theme="light"] .topbar { background: rgba(245,247,249,.9); }
[data-theme="light"] .hero {
  background:
    radial-gradient(60% 70% at 20% 10%, rgba(150,112,29,.10), transparent 70%),
    linear-gradient(180deg, #ffffff 0%, var(--night) 100%);
}
[data-theme="light"] .hero-title,
[data-theme="light"] .sec-title,
[data-theme="light"] .path h3,
[data-theme="light"] .offer h3,
[data-theme="light"] .pick-name,
[data-theme="light"] .account h3,
[data-theme="light"] .plain-title,
[data-theme="light"] .adm-h1,
[data-theme="light"] .stat-num { color: #10263a; }

[data-theme="light"] .value,
[data-theme="light"] .path,
[data-theme="light"] .pick,
[data-theme="light"] .countdown,
[data-theme="light"] .order-card,
[data-theme="light"] .account,
[data-theme="light"] .offer,
[data-theme="light"] .plain-box,
[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea { background: var(--night-3); }

[data-theme="light"] .offer-feature {
  background: linear-gradient(180deg, rgba(150,112,29,.09), #ffffff 60%);
}
[data-theme="light"] .hero-art img { box-shadow: 0 20px 48px rgba(16,38,58,.22); }
[data-theme="light"] .plate { background: linear-gradient(160deg, rgba(150,112,29,.12), rgba(150,112,29,.03)); }
[data-theme="light"] .btn-gold { background: #96701d; color: #fff; }
[data-theme="light"] .btn-gold:hover { background: #7d5d16; }
[data-theme="light"] .steps .is-now span { background: #96701d; color: #fff; }
[data-theme="light"] .footer { background: #e7edf2; }
[data-theme="light"] .footer-brand { color: #7d5d16; }
[data-theme="light"] .note { background: rgba(20,40,58,.03); }
[data-theme="light"] .note-ok { color: #1f6b4c; }
[data-theme="light"] .note-err { color: #9c3030; }
[data-theme="light"] .note-warn { color: #856216; }
[data-theme="light"] .badge-submitted { color: #2b6693; }
[data-theme="light"] .badge-approved  { color: #1f6b4c; }
[data-theme="light"] .badge-rejected  { color: #9c3030; }
[data-theme="light"] .badge-pending   { color: #856216; }

/* =========================================================
   متن جاستیفای، کلمات کلیدی، نوار ارزش، هوش مصنوعی،
   بستهٔ هدیه و واتساپ
   ========================================================= */

.sec-lead,
.value p,
.path p,
.ai-card p,
.author-copy p,
.band-item p,
.offer-note,
.faq p,
.trust-item p {
  text-align: justify;
  text-justify: inter-word;
}

/* کلمات کلیدی */
.hl {
  color: var(--gold-lt);
  white-space: nowrap;
  background-image: linear-gradient(to top, var(--line) 0 2px, transparent 2px);
  padding-bottom: 1px;
}

/* نوار ارزش زیر هیرو */
.band { background: var(--night-2); border-block: 1px solid var(--line-soft); }
.band-in {
  display: grid; gap: 1px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  background: var(--line-soft);
}
.band-item { background: var(--night-2); padding: 1.8rem 1.5rem; }
.band-item h2 {
  margin: 0 0 .5rem; font-size: 1.08rem; font-weight: 500; color: var(--gold-lt);
  font-family: var(--font);
}
.band-item p { margin: 0; color: var(--dim); font-size: .95rem; }

/* بخش هوش مصنوعی */
.ai {
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(28,86,120,.28), transparent 70%),
    var(--night);
}
.ai-head { max-width: 68ch; }
.ai-head .hero-kicker { margin-bottom: .6rem; }
.ai-grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
           background: var(--line-soft); border: 1px solid var(--line-soft); border-radius: var(--radius); overflow: hidden; }
.ai-card { background: var(--night); padding: 1.5rem 1.4rem; }
.ai-card h3 { margin: 0 0 .5rem; font-size: 1.05rem; font-weight: 500; color: #fff; }
.ai-card p { margin: 0; color: var(--dim); font-size: .94rem; }

/* بستهٔ هدیه */
.offer-gift { border-color: var(--line); }
.gift-fields {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.2rem .4rem; margin-bottom: 1.6rem;
  background: rgba(200,162,73,.06);
}
.gift-lead { margin: 0 0 1rem; font-size: .92rem; color: var(--mist); }
.gift-hint { display: none; }
.is-gift .gift-hint { display: inline; }

/* دکمهٔ شناور واتساپ */
.wa-fab {
  position: fixed; inset-inline-start: 18px; bottom: 18px; z-index: 50;
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .6rem 1rem .6rem .8rem;
  border-radius: 999px;
  background: #1f8f5f; color: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.35);
  font-size: .92rem;
}
.wa-fab:hover { background: #17784f; text-decoration: none; color: #fff; }
.wa-ico { display: inline-flex; }
@media (max-width: 560px) {
  .wa-fab { padding: .7rem; }
  .wa-txt { display: none; }
}

/* بلوک هدیه در داشبورد */
.gift-box {
  margin-top: 1.2rem; padding: 1rem 1.1rem;
  border: 1px solid var(--line); border-radius: 10px;
  background: rgba(200,162,73,.06);
}
.gift-box h3 { margin: 0 0 .5rem; font-size: .95rem; color: var(--gold-lt); font-weight: 500; }
.gift-box p { margin: 0 0 .3rem; font-size: .95rem; }
.gift-msg { color: var(--dim); font-style: italic; }

[data-theme="light"] .band-item,
[data-theme="light"] .ai-card { background: var(--night-3); }
[data-theme="light"] .band { background: var(--night-2); }
[data-theme="light"] .ai {
  background: radial-gradient(70% 60% at 85% 0%, rgba(150,112,29,.10), transparent 70%), var(--night);
}
[data-theme="light"] .ai-card h3 { color: #10263a; }

/* =========================================================
   بخش «چرا این کتاب»، نویسنده، وبینار و کد تخفیف
   ========================================================= */

.why-ai { background: var(--night); }
.why-lead {
  font-size: 1.08rem; color: var(--mist); margin: 0 0 2rem;
  text-align: justify; border-inline-start: 2px solid var(--gold);
  padding-inline-start: 1.1rem;
}
.why-lead em, .why-card em { font-style: normal; color: var(--gold-lt); }
.why-grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.why-card {
  border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 1.4rem 1.3rem; background: var(--night-2);
}
.why-card h3 { margin: 0 0 .5rem; font-size: 1.02rem; font-weight: 500; color: var(--gold-lt); }
.why-card p { margin: 0; color: var(--dim); font-size: .95rem; text-align: justify; }
.why-close {
  margin: 2rem 0 1.6rem; color: var(--mist); text-align: justify;
}
.why-cta { display: flex; gap: .9rem; flex-wrap: wrap; }

.author-name { font-family: var(--display); font-size: 1.5rem; color: #fff; margin: 0 0 .2rem; }
.author-title { margin: 0 0 1rem; color: var(--gold); font-size: .95rem; }

.webinar-row { margin: 1rem 0 0; }
.webinar-link {
  display: inline-block; border-bottom: 1px dashed var(--gold);
  color: var(--gold-lt); font-size: .92rem;
}
.webinar-link:hover { text-decoration: none; }
.webinar-note {
  display: block; margin-top: .6rem; font-size: .86rem;
  color: var(--dim); text-align: justify;
}

.discount {
  display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap;
  margin-top: 1.6rem; padding: 1rem 1.2rem;
  border: 1px dashed var(--line); border-radius: var(--radius);
}
.discount-field { flex: 1 1 200px; display: grid; gap: .4rem; font-size: .9rem; color: var(--dim); }
.discount-msg { flex-basis: 100%; margin: 0; font-size: .86rem; color: var(--dim); }
.discount-msg.is-ok  { color: #7fd3ad; }
.discount-msg.is-bad { color: #e08585; }
.sum-discount b { color: #7fd3ad; }

.code-row { display: flex; gap: .5rem; align-items: center; }
.code-row input { flex: 1; }

[data-theme="light"] .why-card { background: var(--night-3); }
[data-theme="light"] .author-name { color: #10263a; }
[data-theme="light"] .discount-msg.is-ok { color: #1f6b4c; }
[data-theme="light"] .discount-msg.is-bad { color: #9c3030; }
[data-theme="light"] .sum-discount b { color: #1f6b4c; }

/* =========================================================
   انیمیشن‌های اسکرول
   ========================================================= */

.topbar { transition: box-shadow .25s ease, background-color .25s ease; }
.topbar.is-scrolled { box-shadow: 0 14px 34px rgba(0,0,0,.34); }
[data-theme="light"] .topbar.is-scrolled { box-shadow: 0 14px 34px rgba(16,38,58,.12); }

/* نوار پیشرفت اسکرول */
.scroll-progress {
  position: fixed; inset-block-start: 0; inset-inline: 0;
  height: 2px; z-index: 60; transform-origin: right center;
  background: linear-gradient(to left, var(--gold), var(--gold-lt));
  transform: scaleX(0); will-change: transform;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity .7s ease, transform .7s cubic-bezier(.22, .61, .36, 1);
  }
  .reveal.is-in { opacity: 1; transform: none; }

  /* کارت‌ها کمی از پهلو می‌آیند */
  .value.reveal, .ai-card.reveal, .why-card.reveal, .band-item.reveal { transform: translateY(26px) scale(.985); }
  .hero-art.reveal { transform: translateY(30px) scale(.97); transition-duration: .9s; }

  .value, .path, .why-card, .offer, .ai-card, .account {
    transition: transform .25s ease, border-color .25s ease, background-color .25s ease;
  }
  .value:hover, .path:hover, .why-card:hover, .offer:hover, .ai-card:hover { transform: translateY(-3px); }

  .plate-bar i { transition: width 1.4s cubic-bezier(.22, .61, .36, 1) .2s; }
  .hero-art img { will-change: transform; }
}
