/* ==========================================================================
   Landing Scrollytelling layer
   - بدون وابستگی؛ فقط transform/opacity/clip-path (GPU-friendly، بدون Layout Thrash)
   - JS فقط CSS Custom Property می‌نویسد:
       --p   : پیشرفت صحنه (۰..۱) روی [data-st-scene]
       --py  : جابه‌جایی Parallax روی [data-parallax]
       --mx/--my : مختصات نشانگر برای Spotlight
   - RTL/LTR: همه‌چیز با Logical Properties؛ تنها استثنا transform-origin.
   ========================================================================== */

/* sticky زیر ancestor با overflow:hidden کار نمی‌کند؛ clip همان برش را بدون ایجاد scroll-container می‌دهد */
.landing-page-overlay {
  overflow-x: clip;
}

/* ---------- نوار پیشرفت اسکرول ---------- */
.st-progress {
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  height: 3px;
  z-index: 60;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981);
  transform: scaleX(var(--sp, 0));
  transform-origin: left center;
  pointer-events: none;
  box-shadow: 0 0 14px rgba(99, 102, 241, 0.7);
}
html[dir='rtl'] .st-progress {
  transform-origin: right center;
}

/* ---------- Reveal ---------- */
[data-reveal],
[data-reveal-group] > * {
  opacity: 0;
  transform: translate3d(0, 28px, 0) scale(0.985);
  filter: blur(6px);
  transition:
    opacity 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1),
    filter 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: calc(var(--d, 0) * 80ms);
}
[data-reveal].is-in,
[data-reveal-group].is-in > * {
  opacity: 1;
  transform: none;
  filter: none;
}

/* ---------- Parallax ---------- */
[data-parallax] {
  transform: translate3d(0, var(--py, 0px), 0);
  will-change: transform;
}

/* ---------- صحنهٔ Sticky ---------- */
.st-scene {
  position: relative;
  height: 195vh;
  --p: 0;
}
.st-tokens {
  height: 185vh;
}
.st-sticky {
  position: sticky;
  inset-block-start: 4.3rem; /* زیر نوار ناوبری */
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start; /* محتوا از بالا شروع می‌شود؛ بدون فضای خالی اضافی در پایین */
  gap: 1.5rem;
  padding-block: 0.4rem 3.8rem;
}
.st-scene .lp-section-head {
  margin-bottom: 0;
}

/* ---------- ۱) قبل ← بعد ---------- */
.st-stage {
  display: grid;
  /* ستون‌های کناری دقیقاً هم‌اندازه‌اند ← اُرب CPU روی محور مرکزی صفحه می‌نشیند و با آیکون ماوس هم‌راستا می‌ماند */
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 1.4rem;
}
.st-card {
  position: relative;
  border-radius: 20px;
  padding: 1.4rem 1.4rem 1.5rem;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
html[data-theme='dark'] .st-card {
  background: rgba(14, 24, 45, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 30px 80px -40px rgba(79, 70, 229, 0.55);
}
.st-chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.st-chip-before {
  color: var(--rose);
  background: color-mix(in srgb, var(--rose) 12%, transparent);
}
.st-chip-after {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
}

/* کارت خام: با پیشرفت محو، کوچک و تار می‌شود */
.st-raw {
  --out: clamp(0, calc((var(--p) - 0.18) * 2.2), 1);
  opacity: calc(1 - var(--out) * 0.82);
  transform: translate3d(calc(var(--out) * -18px), 0, 0) scale(calc(1 - var(--out) * 0.06)) rotate(calc(var(--out) * -1.4deg));
  filter: blur(calc(var(--out) * 2.5px)) saturate(calc(1 - var(--out) * 0.5));
  will-change: transform, opacity, filter;
}
html[dir='rtl'] .st-raw {
  transform: translate3d(calc(var(--out) * 18px), 0, 0) scale(calc(1 - var(--out) * 0.06)) rotate(calc(var(--out) * 1.4deg));
}
.st-raw-text {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--text-body);
}
.st-raw-noise {
  display: flex;
  gap: 6px;
  margin-block-start: auto;
}
.st-raw-noise i {
  height: 6px;
  flex: 1;
  border-radius: 6px;
  background: var(--border);
}
.st-raw-noise i:nth-child(2) { flex: 0.5; }
.st-raw-noise i:nth-child(3) { flex: 1.6; }
.st-raw-noise i:nth-child(4) { flex: 0.8; }

/* اُرب کامپایلر: وسط صحنه می‌چرخد و با پیشرفت پالس می‌گیرد */
.st-orb {
  position: relative;
  width: 118px;
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}
.st-orb-core {
  position: relative;
  z-index: 1;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.9rem;
  color: #fff;
  background: radial-gradient(circle at 30% 25%, #818cf8, #4f46e5 55%, #0891b2);
  box-shadow: 0 0 calc(18px + var(--p) * 46px) rgba(99, 102, 241, calc(0.35 + var(--p) * 0.45));
  transform: scale(calc(0.9 + var(--p) * 0.22));
}
.st-orb-ring {
  position: absolute;
  inset-block-start: -9px;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  border: 2px dashed rgba(99, 102, 241, 0.55);
  transform: rotate(calc(var(--p) * 720deg));
}
.st-orb-label {
  font-size: 0.74rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-sub);
  margin-block-start: 0.7rem;
}

/* کارت خروجی: لبهٔ درخشان + خطوط پله‌پله ظاهر می‌شوند */
.st-pro {
  --in: clamp(0, calc((var(--p) - 0.22) * 2.6), 1);
  opacity: calc(0.25 + var(--in) * 0.75);
  transform: translate3d(0, calc((1 - var(--in)) * 26px), 0) scale(calc(0.96 + var(--in) * 0.04));
  border-color: color-mix(in srgb, #6366f1 calc(var(--in) * 70%), var(--border));
  box-shadow: 0 0 calc(var(--in) * 60px) -18px rgba(99, 102, 241, 0.8);
  will-change: transform, opacity;
}
.st-pro-lines {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
  counter-reset: stl;
}
.st-pro-lines li {
  counter-increment: stl;
  position: relative;
  padding-inline-start: 2.2rem;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--text-main);
  /* هر خط با تأخیر پلکانی: i-امین خط وقتی p به آستانهٔ خودش می‌رسد کامل می‌شود */
  --line: clamp(0, calc((var(--p) - 0.38 - var(--i) * 0.1) * 7), 1);
  opacity: var(--line);
  transform: translate3d(calc((1 - var(--line)) * 14px), 0, 0);
  clip-path: inset(0 calc((1 - var(--line)) * 100%) 0 0);
}
html[dir='rtl'] .st-pro-lines li {
  transform: translate3d(calc((1 - var(--line)) * -14px), 0, 0);
  clip-path: inset(0 0 0 calc((1 - var(--line)) * 100%));
}
.st-pro-lines li::before {
  content: counter(stl);
  position: absolute;
  inset-inline-start: 0;
  inset-block-start: 0.15rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
}
.st-scroll-cue {
  align-self: center;
  font-size: 1.4rem;
  color: var(--text-sub);
  opacity: calc(1 - var(--p) * 5);
  animation: stBob 1.8s ease-in-out infinite;
}
@keyframes stBob {
  50% { transform: translateY(6px); }
}

/* ---------- ۲) ماتریس ایجنت × مهارت ---------- */
.st-section {
  position: relative;
  isolation: isolate;
}
.st-bg-orb {
  position: absolute;
  z-index: -1;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.3;
  pointer-events: none;
}
.st-bg-orb-a {
  inset-block-start: 6%;
  inset-inline-start: -6%;
  background: radial-gradient(circle, #6366f1, transparent 70%);
}
.st-bg-orb-b {
  inset-block-end: 4%;
  inset-inline-end: -4%;
  background: radial-gradient(circle, #06b6d4, transparent 70%);
}
.st-matrix {
  --mx: 50%;
  --my: 50%;
  position: relative;
  display: grid;
  grid-template-columns: minmax(120px, 1.2fr) repeat(4, minmax(0, 1fr));
  gap: 8px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--border);
  background:
    radial-gradient(420px circle at var(--mx) var(--my), rgba(99, 102, 241, 0.16), transparent 60%),
    color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.st-matrix-colhead,
.st-matrix-rowhead {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.6rem 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-sub);
  transition: color 0.2s ease, transform 0.2s ease;
}
.st-matrix-rowhead {
  justify-content: flex-start;
  color: var(--text-main);
  font-family: var(--font-mono);
  font-size: 0.82rem;
}
.st-matrix-colhead.is-hot,
.st-matrix-rowhead.is-hot {
  color: var(--accent);
  transform: translateY(-1px);
}
.st-cell {
  /* ورود پلکانی هر خانه بر اساس موقعیتش (--d از JS) */
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.3, 1.4, 0.4, 1), background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  transition-delay: calc(var(--d, 0) * 45ms), calc(var(--d, 0) * 45ms), 0s, 0s, 0s;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-sub);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  cursor: pointer;
}
.st-matrix.is-in .st-cell {
  opacity: 1;
  transform: none;
}
.st-cell:hover,
.st-cell:focus-visible,
.st-cell.is-active {
  transition-delay: 0s;
  transform: translateY(-3px) scale(1.06);
  border-color: var(--accent);
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  box-shadow: 0 14px 30px -12px rgba(99, 102, 241, 0.75);
  outline: none;
}
.st-matrix-caption {
  min-height: 3.2em;
  margin: 1rem auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.8;
  color: var(--text-body);
}
.st-matrix-caption strong {
  color: var(--accent);
}

/* ---------- ۳) توکن‌شمار ---------- */
.st-token-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.2rem;
  padding: 1.6rem;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
html[data-theme='dark'] .st-token-panel {
  background: rgba(14, 24, 45, 0.66);
  box-shadow: 0 40px 90px -50px rgba(6, 182, 212, 0.5);
}
.st-token-count {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  font-family: var(--font-mono);
}
.st-token-count span {
  font-size: clamp(3rem, 8vw, 5.2rem);
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(120deg, #818cf8, #22d3ee);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.st-token-count small {
  font-size: 1rem;
  color: var(--text-sub);
}
.st-token-bar {
  margin-block: 1rem 1.2rem;
  height: 8px;
  border-radius: 8px;
  background: var(--bg-muted);
  overflow: hidden;
}
.st-token-bar span {
  display: block;
  height: 100%;
  width: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6366f1, #06b6d4, #10b981);
  transform: scaleX(var(--p));
  transform-origin: left center;
}
html[dir='rtl'] .st-token-bar span {
  transform-origin: right center;
}
.st-stage-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}
.st-stage-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0.8rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 0.9rem;
  transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.st-stage-list li b {
  font-family: var(--font-mono);
  font-weight: 600;
}
.st-stage-list li.is-on {
  color: var(--text-main);
  border-color: color-mix(in srgb, var(--accent) 60%, var(--border));
  background: var(--accent-soft);
  transform: translateX(0) scale(1.01);
}
.st-token-side {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.st-token-kv {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-sub);
  font-size: 0.88rem;
}
.st-token-kv strong {
  font-family: var(--font-mono);
  font-size: 1.15rem;
  color: var(--text-main);
  font-variant-numeric: tabular-nums;
}
.st-token-models {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.st-model-chip {
  font: inherit;
  font-size: 0.78rem;
  font-family: var(--font-mono);
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.2s ease;
}
.st-model-chip:hover {
  border-color: var(--accent);
}
.st-model-chip[aria-checked='true'] {
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #06b6d4);
  border-color: transparent;
}
.st-token-note {
  margin: 0;
  font-size: 0.78rem;
  line-height: 1.7;
  color: var(--text-sub);
}

/* ---------- جزئیات فرم ورودی ---------- */
.st-enter-hint {
  margin: 0.2rem 0 0;
  font-size: 0.76rem;
  color: var(--text-sub);
  text-align: center;
}
.st-enter-hint kbd {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  padding: 0.08rem 0.4rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.lp-sim-textarea {
  resize: none;
  overflow-y: auto;
  max-height: 220px;
}
/* در حالت انگلیسی فقط یک ستون خروجی (کارت فارسی پنهان است) */
.lp-sim-bilingual-grid.lp-single-col {
  grid-template-columns: minmax(0, 1fr);
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 860px) {
  .st-scene { height: 210vh; }
  .st-stage {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.8rem;
  }
  .st-card { min-height: 0; }
  .st-orb {
    width: auto;
    grid-auto-flow: column;
    justify-content: center;
    align-items: center;
  }
  .st-orb-label { margin: 0; }
  .st-token-panel { grid-template-columns: minmax(0, 1fr); }
  .st-matrix {
    grid-template-columns: minmax(84px, 1fr) repeat(4, minmax(0, 1fr));
    padding: 8px;
    gap: 5px;
  }
  .st-matrix-colhead { font-size: 0.64rem; padding: 0.3rem 0.1rem; }
  .st-matrix-rowhead { font-size: 0.68rem; }
}

/* ---------- Reduced Motion: صحنه‌ها ثابت و کامل نمایش داده می‌شوند ---------- */
@media (prefers-reduced-motion: reduce) {
  .st-scene { height: auto; --p: 1 !important; }
  .st-sticky { position: static; min-height: 0; padding-block: 2rem; }
  [data-reveal],
  [data-reveal-group] > *,
  .st-cell {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }
  [data-parallax] { transform: none !important; }
  .st-orb-ring, .st-scroll-cue { animation: none; }
  .st-scroll-cue { display: none; }
}

/* ==========================================================================
   v2 — عنوان‌های گرادیانی، Hero فشرده، متریک ۳ستونه، Bento متوازن، دموی ساده
   ========================================================================== */

/* ---------- عنوان دوخطی با خط دوم گرادیان ---------- */
.lp-title-xl {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.12em;
  max-width: 900px;
  margin-inline: auto;
  font-size: clamp(1.5rem, 3.3vw, 2.55rem);
  font-weight: 800;
  line-height: 1.32;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}
.lp-t-line {
  display: block;
}
.lp-t-grad {
  background: linear-gradient(100deg, #6366f1 0%, #06b6d4 38%, #10b981 62%, #6366f1 100%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: lpTitleFlow 9s linear infinite;
  filter: drop-shadow(0 8px 26px rgba(99, 102, 241, 0.28));
  padding-block: 0.04em; /* برای جلوگیری از بریده‌شدن ascender/descender */
}
@keyframes lpTitleFlow {
  to { background-position: -220% 0; }
}

/* ---------- Hero فشرده‌تر + محو شدن با اسکرول ---------- */
.landing-scroll-body {
  padding-top: 1.6rem;
  gap: 2.4rem;
}
.landing-hero {
  gap: 0.85rem;
  --hp: 0;
  transform: translate3d(0, calc(var(--hp) * -26px), 0);
  opacity: calc(1 - var(--hp) * 0.55);
  will-change: transform, opacity;
}
.landing-hero-title {
  font-size: clamp(1.55rem, 3.1vw, 2.35rem);
  line-height: 1.34;
}
.landing-hero-sub {
  font-size: 0.9rem;
  line-height: 1.8;
  max-width: 680px;
}
.landing-hero-cta-row {
  margin-top: 0.15rem;
}

/* ---------- نوار متریک ۳ستونهٔ متقارن ---------- */
.lp-trust-metrics-bar {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0.35rem;
  margin-top: 0.4rem;
  max-width: 880px;
}
.lp-metric-chip {
  padding: 0.95rem 1rem;
  gap: 0.25rem;
}
.lp-metric-chip + .lp-metric-chip {
  border-inline-start: 1px solid var(--border);
}
.lp-metric-icon {
  font-size: 1.15rem;
  color: var(--accent);
  opacity: 0.85;
}
.lp-metric-chip strong {
  font-size: 1.3rem;
  line-height: 1.3;
}
.lp-metric-chip span {
  line-height: 1.6;
  max-width: 24ch;
}
@media (max-width: 720px) {
  .lp-trust-metrics-bar {
    grid-template-columns: minmax(0, 1fr);
  }
  .lp-metric-chip + .lp-metric-chip {
    border-inline-start: 0;
    border-block-start: 1px solid var(--border);
  }
}

/* ---------- راهنمای اسکرول ---------- */
.st-scroll-hint {
  margin-top: 0.2rem;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-sub);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s ease;
}
.st-scroll-hint:hover {
  color: var(--accent);
}
.st-scroll-mouse {
  width: 22px;
  height: 34px;
  border-radius: 12px;
  border: 2px solid currentColor;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.st-scroll-mouse i {
  width: 3px;
  height: 7px;
  border-radius: 3px;
  background: currentColor;
  animation: stWheel 1.6s ease-in-out infinite;
}
@keyframes stWheel {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}
.st-scroll-chevrons {
  display: flex;
  flex-direction: column;
  line-height: 0.6;
  font-size: 1.2rem;
}
.st-scroll-chevrons i:nth-child(1) { animation: stChev 1.6s ease-in-out infinite; }
.st-scroll-chevrons i:nth-child(2) { animation: stChev 1.6s ease-in-out 0.25s infinite; }
@keyframes stChev {
  0%, 100% { opacity: 0.2; transform: translateY(-2px); }
  50% { opacity: 1; transform: translateY(2px); }
}

/* ---------- Bento: ۶ ستون ← ردیف اول ۴+۲ و ردیف دوم ۲+۲+۲ (بدون حفره) ---------- */
.landing-bento-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: stretch;
}
.landing-bento-grid > .landing-bento-card {
  grid-column: span 2;
}
.landing-bento-grid > .landing-bento-card:first-child {
  grid-column: span 4;
}
.landing-bento-grid > .landing-bento-card:first-child h3 {
  font-size: 1.2rem;
}
.landing-bento-grid > .landing-bento-card:first-child p {
  font-size: 0.94rem;
}
.landing-bento-card .lp-card-top-row {
  margin-bottom: 0.35rem;
}
.landing-bento-card {
  position: relative;
  overflow: hidden;
}
.landing-bento-card::after { /* درخشش گوشه هنگام هاور */
  content: '';
  position: absolute;
  inset-block-start: -40%;
  inset-inline-end: -20%;
  width: 60%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.landing-bento-card:hover::after {
  opacity: 1;
}
/* بعد از Reveal، هاور دوباره کار کند (Reveal قبلاً transform را قفل می‌کرد) */
.landing-bento-grid.is-in > .landing-bento-card {
  transition:
    transform 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  transition-delay: 0s;
}
.landing-bento-grid.is-in > .landing-bento-card:hover {
  transform: translateY(-3px);
}
@media (max-width: 1000px) {
  .landing-bento-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .landing-bento-grid > .landing-bento-card,
  .landing-bento-grid > .landing-bento-card:first-child {
    grid-column: span 1;
  }
  .landing-bento-grid > .landing-bento-card:first-child {
    grid-column: span 2;
  }
}
@media (max-width: 640px) {
  .landing-bento-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .landing-bento-grid > .landing-bento-card,
  .landing-bento-grid > .landing-bento-card:first-child {
    grid-column: span 1;
  }
}

/* ---------- نکتهٔ کیبورد ---------- */
.st-enter-hint {
  margin-top: 0.7rem !important;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.st-keys {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  unicode-bidi: isolate;
}

/* ==========================================================================
   دموی ساده‌شدهٔ استودیو (.sm-*)
   ========================================================================== */
.sm-window {
  max-width: 940px;
  margin-inline: auto;
  border-radius: 24px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 40px 90px -50px rgba(79, 70, 229, 0.45), 0 2px 0 rgba(255, 255, 255, 0.5) inset;
  overflow: hidden;
}
html[data-theme='dark'] .sm-window {
  background: rgba(12, 20, 38, 0.72);
  box-shadow: 0 40px 100px -50px rgba(99, 102, 241, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.sm-bar {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
}
.sm-lights {
  display: flex;
  gap: 6px;
}
.sm-lights span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ff5f57;
}
.sm-lights span:nth-child(2) { background: #febc2e; }
.sm-lights span:nth-child(3) { background: #28c840; }
.sm-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-main);
}
.sm-brand i { color: var(--accent); }
.sm-live-pill {
  margin-inline-start: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
}
.sm-live-pill b {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: smPulse 1.6s ease-out infinite;
}
@keyframes smPulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--emerald) 60%, transparent); }
  100% { box-shadow: 0 0 0 8px transparent; }
}

.sm-body {
  display: flex;
  flex-direction: column;
  padding: 1.3rem 1.3rem 1.2rem;
}
.sm-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.sm-chip {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-body);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}
.sm-chip:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  color: var(--accent);
}
.sm-chip.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  box-shadow: 0 10px 24px -10px rgba(79, 70, 229, 0.7);
}

.sm-composer {
  border-radius: 20px;
  border: 1px solid var(--border);
  background: var(--bg);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.sm-composer:focus-within {
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent), 0 20px 50px -30px rgba(99, 102, 241, 0.6);
}
.sm-input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 5.6rem;
  max-height: 200px;
  padding: 1.05rem 1.2rem 0.5rem;
  border: 0;
  outline: none;
  resize: none;
  background: transparent;
  color: var(--text-main);
  font: inherit;
  font-size: 1rem;
  line-height: 1.9;
}
.sm-input::placeholder { color: var(--text-sub); }
.sm-input.is-shake { animation: smShake 0.4s ease; }
@keyframes smShake {
  20%, 60% { transform: translateX(-5px); }
  40%, 80% { transform: translateX(5px); }
}
.sm-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.6rem 0.8rem 0.7rem;
  border-top: 1px dashed var(--border);
}
.sm-foot-tools {
  display: flex;
  align-items: center;
  gap: 0.7rem;
}
.sm-icon-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-body);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.sm-icon-btn:hover { color: var(--accent); border-color: var(--accent); }
.sm-wave { display: none; align-items: center; gap: 2px; height: 16px; }
.sm-wave i {
  width: 3px;
  height: 100%;
  border-radius: 3px;
  background: currentColor;
  transform-origin: center;
  animation: smWave 0.9s ease-in-out infinite;
}
.sm-wave i:nth-child(2) { animation-delay: 0.12s; }
.sm-wave i:nth-child(3) { animation-delay: 0.24s; }
.sm-wave i:nth-child(4) { animation-delay: 0.36s; }
.sm-wave i:nth-child(5) { animation-delay: 0.48s; }
@keyframes smWave {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}
.sm-icon-btn.is-rec {
  color: var(--rose);
  border-color: var(--rose);
  animation: smRec 1.3s ease-out infinite;
}
.sm-icon-btn.is-rec > i { display: none; }
.sm-icon-btn.is-rec .sm-wave { display: inline-flex; }
@keyframes smRec {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--rose) 45%, transparent); }
  100% { box-shadow: 0 0 0 12px transparent; }
}
.sm-link {
  font: inherit;
  font-size: 0.8rem;
  background: none;
  border: 0;
  color: var(--text-sub);
  cursor: pointer;
}
.sm-link:hover { color: var(--text-main); }

.sm-compile {
  position: relative;
  overflow: hidden;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #3b82f6 55%, #06b6d4);
  box-shadow: 0 12px 26px -10px rgba(79, 70, 229, 0.7);
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.2s ease;
}
.sm-compile:hover { transform: translateY(-2px); box-shadow: 0 16px 32px -10px rgba(79, 70, 229, 0.85); }
.sm-compile:active { transform: scale(0.97); }
.sm-compile.is-busy { opacity: 0.65; pointer-events: none; }
.sm-compile-sheen {
  position: absolute;
  inset-block: 0;
  inset-inline-start: -40%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.45), transparent);
  transform: skewX(-20deg);
  animation: smSheen 3.2s ease-in-out infinite;
  pointer-events: none;
}
html[dir='rtl'] .sm-compile-sheen { animation-name: smSheenRtl; }
@keyframes smSheen {
  0%, 55% { inset-inline-start: -40%; }
  100% { inset-inline-start: 140%; }
}
@keyframes smSheenRtl {
  0%, 55% { inset-inline-start: -40%; }
  100% { inset-inline-start: 140%; }
}

/* ---------- بخش‌های بازشونده ---------- */
.sm-fold {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.6s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.45s ease;
}
.sm-fold[data-open='true'] {
  grid-template-rows: 1fr;
  opacity: 1;
}
.sm-fold-inner {
  min-height: 0;
  overflow: hidden;
}
/* فاصلهٔ کارت پیشرفت داخل دمو */
.sm-fold .pg-card { margin-top: 1rem; }

/* ---------- نتیجه ---------- */
.sm-result {
  padding-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.sm-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
}
.sm-meta-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.sm-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-body);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.3, 1.5, 0.4, 1);
}
.sm-tag.is-in { opacity: 1; transform: none; }
.sm-tag-primary {
  color: var(--accent);
  background: var(--accent-soft);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.sm-receipt {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 10%, transparent);
  padding: 0.32rem 0.8rem;
  border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.sm-receipt i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}
.sm-receipt span { unicode-bidi: isolate; }
.sm-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}
.sm-cards.is-single { grid-template-columns: minmax(0, 1fr); }
.sm-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  overflow: hidden;
}
.sm-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-main);
}
.sm-copy {
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.25rem 0.6rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-body);
  cursor: pointer;
  transition: all 0.18s ease;
}
.sm-copy:hover { border-color: var(--accent); color: var(--accent); }
.sm-copy.is-ok { color: var(--emerald); border-color: var(--emerald); }
.sm-card pre {
  margin: 0;
  padding: 0.9rem 1rem 1rem;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.85;
  color: var(--text-body);
  unicode-bidi: plaintext;
}
.sm-card pre.is-typing::after {
  content: '▍';
  color: var(--accent);
  animation: smCaret 0.8s steps(1) infinite;
}
@keyframes smCaret { 50% { opacity: 0; } }

.sm-critique {
  border-radius: 16px;
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, var(--border));
  background: color-mix(in srgb, var(--emerald) 6%, var(--bg-soft));
  padding: 0.85rem 1rem;
}
.sm-critique-head {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}
.sm-critique-head i { color: #f59e0b; }
.sm-critique ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}
.sm-critique li {
  display: flex;
  gap: 0.5rem;
  font-size: 0.8rem;
  line-height: 1.7;
  color: var(--text-body);
  opacity: 0;
  transform: translateX(10px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
html[dir='rtl'] .sm-critique li { transform: translateX(-10px); }
.sm-critique li.is-in { opacity: 1; transform: none; }
.sm-critique li i { color: var(--emerald); margin-top: 0.2rem; flex: none; }

.sm-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding-top: 0.4rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.sm-cta.is-in { opacity: 1; transform: none; }
.sm-cta p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--text-sub);
}

@media (max-width: 760px) {
  .sm-body { padding: 1rem 0.9rem; }
  .sm-cards { grid-template-columns: minmax(0, 1fr); }
  .sm-brand { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero { transform: none !important; opacity: 1 !important; }
  .lp-t-grad, .sm-compile-sheen, .st-scroll-mouse i, .st-scroll-chevrons i { animation: none !important; }
  .sm-fold, .sm-tag, .sm-critique li, .sm-cta { transition: none; }
  .sm-tag, .sm-critique li, .sm-cta { opacity: 1; transform: none; }
}


/* ---------- برند و ناوبری ---------- */
/* فلش جهت‌دار: در LTR به راست اشاره کند */
html[dir='ltr'] .lp-dir-arrow { transform: scaleX(-1); }
/* لنگر بخش‌ها زیر ناوبری چسبان گم نشوند */
#demo, #features, #pricing, #agents, #tokens { scroll-margin-top: 5rem; }
.sm-brand img { border-radius: 50%; display: block; box-shadow: none; }

/* ---------- لوگو در نقاط مختلف (دایره‌ای و کاملاً ترنسپرنت بدون کادر مشکی) ---------- */
.landing-brand-title .lp-t-grad { filter: none; padding: 0; }

/* لوگوی بزرگ وسط بخش Hero بالای شعار اول */
.landing-hero-logo-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.55rem;
}
.landing-hero-logo {
  display: block;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 12px 26px rgba(79, 70, 229, 0.28));
  animation: lpLogoFloat 5.5s ease-in-out infinite;
}

.lp-footer-cta { text-align: center; }
.lp-footer-meta-links {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  width: 100%;
  display: flex;
  justify-content: center;
}
.lp-footer-meta-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-sub);
  text-decoration: none;
  transition: color 0.16s ease;
}
.lp-footer-meta-links a:hover {
  color: var(--accent);
}
.lp-footer-logo {
  display: block;
  margin: 0 auto 1.1rem;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 12px 24px rgba(79, 70, 229, 0.26));
  animation: lpLogoFloat 5s ease-in-out infinite;
}
@keyframes lpLogoFloat { 50% { transform: translateY(-5px); } }
.auth-modal-logo {
  display: block;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 8px 18px rgba(79, 70, 229, 0.24));
  margin-bottom: 0.7rem;
}
@media (max-width: 640px) {
  .landing-hero-logo {
    width: 68px;
    height: 68px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .landing-hero-logo,
  .lp-footer-logo { animation: none; }
}

/* ==========================================================================
   v4 — Visual Scrollytelling Experience:
   - بوم تصویر زنده در دو ستون (عکس واقعی خام ← خروجی‌های خراب چپ vs شاهکار یک‌ضرب راست)
   - پین‌های خطا/موفقیت روی خود تصویر، اسکنر لیزری Vision، و اسلایدر مقایسهٔ زنده
   ========================================================================== */

.st-split-scene {
  height: 360vh;
}
.st-scale-scene {
  height: 235vh;
}
.st-sentinels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.st-sentinel {
  position: absolute;
  inset-inline: 0;
  height: 2px;
}
.st-compact-head {
  gap: 0.35rem;
}
.st-compact-head .lp-title-xl {
  font-size: clamp(1.3rem, 2.5vw, 2.05rem);
}

/* ---------- نوار بالایی شبیه‌ساز: عکس ورودی مشترک + دکمه‌های ۵ گام ---------- */
.st-exp-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.st-source-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.st-source-mini-img {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border));
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.st-source-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  color: var(--text-sub);
}
.st-source-meta strong {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-main);
}

.st-step-scrubber {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.38rem;
}
.st-scrub-btn {
  font: inherit;
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
}
.st-scrub-btn b {
  font-family: var(--font-mono);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.68rem;
  background: color-mix(in srgb, var(--text-sub) 16%, transparent);
  color: var(--text-main);
}
.st-scrub-btn:hover {
  border-color: var(--accent);
  color: var(--text-main);
}
.st-scrub-btn.is-active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #4f46e5, #06b6d4);
  box-shadow: 0 8px 20px -8px rgba(79, 70, 229, 0.75);
}
.st-scrub-btn.is-active b {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ---------- پنجره‌های شبیه‌ساز چپ و راست ---------- */
.st-visual-stage {
  align-items: stretch;
  gap: 1rem;
}
.st-sim-window {
  padding: 0.95rem;
  gap: 0.75rem;
  min-height: 0;
  justify-content: space-between;
}
.st-col-bad {
  --split-shift: calc((1 - clamp(0, var(--p) * 5, 1)) * 18px);
  transform: translate3d(var(--split-shift), 0, 0);
  border-color: color-mix(in srgb, var(--rose) calc(24% + var(--p) * 55%), var(--border));
}
.st-col-good {
  --split-shift: calc((1 - clamp(0, var(--p) * 5, 1)) * -18px);
  transform: translate3d(var(--split-shift), 0, 0);
  opacity: 1;
  border-color: color-mix(in srgb, var(--emerald) calc(28% + var(--p) * 65%), var(--border));
  box-shadow: 0 24px 60px -28px rgba(16, 185, 129, calc(0.2 + var(--p) * 0.42));
}

/* لرزش خفیف ستون چپ در گام ۳ (عصبانیت و تکرار پرامپت) */
#story[data-active-step='3'] .st-col-bad {
  animation: stWindowFrustration 0.48s ease-in-out 1;
}
@keyframes stWindowFrustration {
  0%, 100% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-6px, 2px, 0); }
  50% { transform: translate3d(6px, -2px, 0); }
  75% { transform: translate3d(-4px, 0, 0); }
}

.st-col-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.st-win-telemetry {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.st-mood-pill {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.24rem 0.58rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.st-mood-bad { color: var(--rose); }
.st-mood-good { color: var(--emerald); }

.st-col-cost {
  font-family: var(--font-mono);
  font-size: 0.96rem;
  font-weight: 800;
  padding: 0.24rem 0.68rem;
  border-radius: 9px;
  font-variant-numeric: tabular-nums;
}
.st-cost-danger {
  color: var(--rose);
  background: color-mix(in srgb, var(--rose) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--rose) 32%, transparent);
}
.st-cost-safe {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 36%, transparent);
}

/* ---------- بوم تصویر زنده (.st-canvas-wrap) ---------- */
.st-canvas-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 320px;
  border-radius: 14px;
  overflow: hidden;
  background: #090d16;
  border: 1px solid var(--border);
  isolation: isolate;
}
.st-canvas-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 0.55s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.65s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.55s ease;
}

/* منطق تعویض عکس واقعی در ستون چپ بر اساس گام اسکرول */
#story[data-active-step='1'] [data-img-layer='bad-1'] {
  opacity: 1;
  transform: scale(1);
}
#story[data-active-step='2'] [data-img-layer='bad-2'] {
  opacity: 1;
  transform: scale(1);
}
#story[data-active-step='3'] [data-img-layer='bad-3'],
#story[data-active-step='4'] [data-img-layer='bad-3'],
#story[data-active-step='5'] [data-img-layer='bad-2'] {
  opacity: 1;
  transform: scale(1);
}
#story[data-active-step='4'] [data-img-layer='bad-3'] {
  filter: blur(2px) brightness(0.45);
}

/* منطق تعویض عکس واقعی در ستون راست بر اساس گام اسکرول */
#story[data-active-step='1'] [data-img-layer='good-raw'],
#story[data-active-step='2'] [data-img-layer='good-raw'] {
  opacity: 1;
  transform: scale(1);
}
#story[data-active-step='2'] [data-img-layer='good-raw'] {
  filter: brightness(0.55) contrast(1.08);
}
#story[data-active-step='3'] [data-img-layer='good-pro'],
#story[data-active-step='4'] [data-img-layer='good-pro'],
#story[data-active-step='5'] [data-img-layer='good-pro'] {
  opacity: 1;
  transform: scale(1);
}

/* ---------- برچسب وضعیت بالای بوم ---------- */
.st-canvas-badge {
  position: absolute;
  inset-block-start: 0.65rem;
  inset-inline-start: 0.65rem;
  z-index: 6;
  max-width: calc(100% - 1.3rem);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 800;
  color: #fff;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.st-badge-bad {
  background: rgba(190, 18, 60, 0.84);
  border: 1px solid rgba(251, 113, 133, 0.5);
}
.st-badge-good {
  background: rgba(4, 120, 87, 0.86);
  border: 1px solid rgba(52, 211, 153, 0.55);
}

/* ---------- پین‌های خطا و موفقیت روی نقاط تصویر ---------- */
.st-pin-group {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#story[data-active-step='2'] .st-pin-group[data-pin-step='2'],
#story[data-active-step='3'] .st-pin-group[data-pin-step='3'],
#story[data-active-step='3'] .st-pin-group[data-pin-step='3-4'],
#story[data-active-step='4'] .st-pin-group[data-pin-step='3-4'] {
  opacity: 1;
  transform: none;
}
.st-pin {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.62rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.st-pin-err {
  background: rgba(159, 18, 57, 0.9);
  border: 1px solid rgba(251, 113, 133, 0.75);
}
.st-pin-ok {
  background: rgba(6, 95, 70, 0.9);
  border: 1px solid rgba(52, 211, 153, 0.75);
}

/* ---------- اسکنر لیزری Vision در ستون راست (گام ۱ و ۲) ---------- */
.st-vision-scanner {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}
#story[data-active-step='1'] .st-vision-scanner,
#story[data-active-step='2'] .st-vision-scanner {
  opacity: 1;
}
.st-laser-line {
  position: absolute;
  inset-inline: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, #22d3ee, #818cf8, transparent);
  box-shadow: 0 0 14px #22d3ee;
  animation: stLaserSweep 2.4s ease-in-out infinite;
}
@keyframes stLaserSweep {
  0%, 100% { top: 14%; }
  50% { top: 84%; }
}
.st-bbox {
  position: absolute;
  inset: 16% 24% 14% 24%;
  border: 1.5px dashed rgba(34, 211, 238, 0.85);
  border-radius: 12px;
  box-shadow: inset 0 0 24px rgba(34, 211, 238, 0.18);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.4rem;
}
.st-bbox span {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  color: #cffafe;
  background: rgba(8, 51, 68, 0.88);
  padding: 0.18rem 0.5rem;
  border-radius: 6px;
}

/* ---------- بلوپرینت پرامپت مهندسی‌شده روی بوم راست (گام ۲) ---------- */
.st-blueprint-hud {
  position: absolute;
  inset-inline: 0.75rem;
  inset-block-end: 0.75rem;
  z-index: 5;
  display: grid;
  gap: 0.35rem;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#story[data-active-step='2'] .st-blueprint-hud {
  opacity: 1;
  transform: none;
}
.st-bp-chip {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #e0e7ff;
  background: rgba(15, 23, 42, 0.88);
  border: 1px solid rgba(99, 102, 241, 0.55);
  padding: 0.32rem 0.6rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.st-bp-chip i { color: #38bdf8; }

/* ---------- اورلی خستگی و ۳ عکس خراب در ستون چپ (گام ۴ و ۵) ---------- */
.st-exhaust-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.35) 0%, rgba(15, 23, 42, 0.92) 65%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.55rem;
  padding: 0.75rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
#story[data-active-step='4'] .st-exhaust-overlay,
#story[data-active-step='5'] .st-exhaust-overlay {
  opacity: 1;
}
.st-failed-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.st-fail-thumb {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(244, 63, 94, 0.6);
  background: #000;
}
.st-fail-thumb img {
  width: 100%;
  height: 54px;
  object-fit: cover;
  display: block;
  opacity: 0.82;
}
.st-fail-thumb span {
  display: block;
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  color: #fecdd3;
  background: rgba(136, 19, 55, 0.9);
  padding: 0.14rem 0.2rem;
}
.st-exhaust-banner {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  background: rgba(159, 18, 57, 0.85);
  border: 1px solid rgba(251, 113, 133, 0.55);
  color: #fff;
}
.st-exhaust-banner strong {
  font-size: 0.78rem;
}
.st-exhaust-banner span {
  font-size: 0.7rem;
  color: #ffe4e6;
}

/* ---------- نشانگر آرامش ستون راست در گام ۴ ---------- */
.st-done-relax-pill {
  position: absolute;
  inset-inline: 0.75rem;
  inset-block-end: 0.7rem;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.45rem 0.75rem;
  border-radius: 10px;
  background: rgba(6, 78, 59, 0.92);
  border: 1px solid rgba(52, 211, 153, 0.7);
  color: #ecfdf5;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.35s ease, transform 0.35s ease;
}
#story[data-active-step='4'] .st-done-relax-pill {
  opacity: 1;
  transform: none;
}

/* ---------- اسلایدر مقایسهٔ مستقیم عکس بد و خوب در گام ۵ ---------- */
.st-interactive-compare {
  position: absolute;
  inset: 0;
  z-index: 7;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
#story[data-active-step='5'] .st-interactive-compare {
  opacity: 1;
  pointer-events: auto;
}
.st-compare-bad-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  clip-path: inset(0 calc(100% - var(--compare-pos, 38%)) 0 0);
}
.st-compare-handle {
  position: absolute;
  inset-block: 0;
  left: var(--compare-pos, 38%);
  width: 2px;
  background: #fff;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.8);
  pointer-events: none;
}
.st-compare-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #10b981);
  color: #fff;
  border: 2px solid #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
.st-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}
.st-compare-tag {
  position: absolute;
  inset-block-end: 0.65rem;
  padding: 0.24rem 0.55rem;
  border-radius: 8px;
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  pointer-events: none;
}
.st-cmp-left {
  left: 0.65rem;
  background: rgba(190, 18, 60, 0.88);
}
.st-cmp-right {
  right: 0.65rem;
  background: rgba(4, 120, 87, 0.88);
}

/* ---------- حباب پرامپت زنده زیر هر بوم ---------- */
.st-live-prompt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.6rem 0.78rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
}
.st-prompt-bubble {
  display: flex;
  flex-direction: column;
  gap: 0.14rem;
  min-width: 0;
}
.st-prompt-role {
  font-size: 0.7rem;
  font-weight: 800;
  color: var(--text-sub);
}
.st-prompt-text {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.55;
  color: var(--text-main);
}
.st-prompt-burn,
.st-prompt-save {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  flex: none;
}
.st-prompt-burn {
  color: var(--rose);
  background: color-mix(in srgb, var(--rose) 12%, transparent);
}
.st-prompt-save {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
}

/* ---------- ۳) بخش تعمیم (The Scale) با مینی‌ترمینال بصری ---------- */
.st-scale-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}
.st-scale-card {
  min-height: 280px;
  cursor: pointer;
  opacity: 0.56;
  transform: scale(0.975);
  transition:
    opacity 0.35s ease,
    transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}
.st-scale-card:hover,
.st-scale-card.is-active {
  opacity: 1;
  transform: translateY(-4px) scale(1);
  border-color: color-mix(in srgb, var(--accent) 65%, var(--border));
  box-shadow: 0 26px 65px -28px rgba(99, 102, 241, 0.55);
}
.st-scale-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
}
.st-scale-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: var(--accent);
  background: var(--accent-soft);
}
.st-scale-card h3 {
  margin: 0.1rem 0 0;
  font-size: 1.04rem;
  font-weight: 800;
  color: var(--text-main);
}
.st-scale-card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.7;
  color: var(--text-body);
}
.st-mini-visual {
  display: grid;
  gap: 0.42rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
}
.st-mv-bad,
.st-mv-good {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 0.48rem 0.6rem;
  border-radius: 10px;
}
.st-mv-bad {
  background: color-mix(in srgb, var(--rose) 8%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--rose) 28%, var(--border));
  color: var(--rose);
}
.st-mv-good {
  background: color-mix(in srgb, var(--emerald) 9%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--emerald) 32%, var(--border));
  color: var(--emerald);
}
.st-mv-tag {
  font-weight: 800;
  font-size: 0.68rem;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}
.st-mini-visual code {
  font-family: inherit;
  color: var(--text-main);
  font-size: 0.68rem;
  display: flex;
  align-items: center;
  gap: 0.28rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   نوار مینیمال و یک‌خطی مقایسهٔ هزینه و پس‌انداز (.st-savings-bridge)
   طراحی ظریف، متوازن و هماهنگ با زبان بصری سایت (بدون حجم اضافی)
   ========================================================================== */
.st-savings-bridge {
  position: relative;
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--emerald) 34%, var(--border));
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.22);
  display: grid;
  grid-template-columns: minmax(140px, 1fr) minmax(240px, 1.8fr) minmax(140px, 1fr);
  align-items: center;
  gap: 0.75rem;
}
html[data-theme='dark'] .st-savings-bridge {
  background: rgba(11, 20, 38, 0.82);
  box-shadow: 0 12px 30px -18px rgba(16, 185, 129, 0.25);
}

.st-sb-cluster {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 0;
}
.st-sb-burn {
  justify-content: flex-start;
}
.st-sb-opt {
  justify-content: flex-end;
}

.st-sb-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  flex: none;
}
.st-dot-burn {
  color: var(--rose);
  background: color-mix(in srgb, var(--rose) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--rose) 28%, transparent);
}
.st-dot-opt {
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
}

.st-sb-lbl {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-sub);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.st-sb-val {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
   unicode-bidi: isolate;
}
.st-sb-burn .st-sb-val {
  color: var(--rose);
}
.st-sb-opt .st-sb-val {
  color: var(--emerald);
}

/* بخش میانی نوار بالا: خط تناسب ظریف + قرص компакт پس‌انداز */
.st-sb-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-width: 0;
}
.st-tug-track {
  flex: 1;
  min-width: 72px;
  max-width: 150px;
  height: 6px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-sub) 14%, transparent);
  overflow: hidden;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
}
.st-tug-burn {
  height: 100%;
  background: linear-gradient(90deg, #e11d48, #fb7185);
  border-radius: 999px;
  transition: width 0.22s ease;
}
.st-tug-opt {
  height: 100%;
  background: linear-gradient(90deg, #10b981, #06b6d4);
  border-radius: 999px;
  transition: width 0.22s ease;
}

.st-sb-vault {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--emerald) 10%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--emerald) 38%, var(--border));
  white-space: nowrap;
}
.st-sb-pct-pill {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  line-height: 1.1;
  unicode-bidi: isolate;
}
.st-sb-saved-usd {
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 900;
  line-height: 1;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
.st-sb-saved-toman {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-sub);
  padding-inline-start: 0.35rem;
  border-inline-start: 1px solid var(--border);
  unicode-bidi: plaintext;
}

/* ---------- راکتور ستون میانی بین دو عکس (.st-spine-reactor) ---------- */
/* جلوگیری از کشیده‌شدن عمودی در Grid و هم‌مرکز نگه‌داشتن حلقهٔ نقطه‌چین و گوی */
.st-visual-stage > .st-spine-reactor {
  align-self: center;
  width: 92px;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.48rem;
  margin-inline: auto;
}
.st-orb-dial {
  position: relative;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  flex: none;
}
.st-spine-reactor .st-orb-ring {
  position: absolute;
  inset: -7px;
  width: auto;
  height: auto;
  border-radius: 50%;
  border: 1.5px dashed rgba(99, 102, 241, 0.55);
  transform: rotate(calc(var(--p, 0) * 540deg));
  pointer-events: none;
}
.st-spine-reactor .st-orb-core.st-spine-badge {
  position: relative;
  z-index: 1;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.08rem;
  line-height: 1.05;
  transform: scale(calc(0.94 + var(--p, 0) * 0.1));
  box-shadow: 0 10px 28px -8px rgba(79, 70, 229, 0.55);
}
.st-spine-badge strong {
  font-family: var(--font-mono);
  font-size: 1.14rem;
  font-weight: 900;
  color: #fff;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  unicode-bidi: isolate;
}
.st-spine-badge small {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.9);
}
.st-spine-reactor .st-orb-label {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-sub);
  white-space: nowrap;
}
.st-spine-diff-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: auto;
  align-self: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 12%, var(--bg));
  border: 1px solid color-mix(in srgb, var(--emerald) 42%, var(--border));
  padding: 0.18rem 0.56rem;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}

/* ==========================================================================
   نوار کپسولی تک‌خطی و وسط‌چین بالا (.st-scale-vault)
   - دقیقاً همان فرم ظریف و یک‌خطی که در فارسی عالی دیده شد
   - با flex-wrap: nowrap و width: fit-content تا در انگلیسی هم هرگز ۲ خطی نشود و کاملاً وسط بایستد
   ========================================================================== */
.st-scale-vault {
  width: fit-content;
  max-width: 100%;
  margin-inline: auto;
  border-radius: 999px;
  padding: 0.38rem 0.78rem;
  border: 1px solid color-mix(in srgb, var(--emerald) 36%, var(--border));
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: 0 10px 28px -18px rgba(15, 23, 42, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0.85rem;
}
html[data-theme='dark'] .st-scale-vault {
  background: rgba(11, 20, 38, 0.86);
  box-shadow: 0 12px 30px -18px rgba(16, 185, 129, 0.26);
}

.st-sv-head {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.5rem;
  min-width: 0;
}
.st-sv-title {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
}
.st-sv-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.82rem;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, transparent);
  flex: none;
}
.st-sv-lbl {
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--text-main);
  white-space: nowrap;
}

.st-sv-totals {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.4rem;
  padding-inline-start: 0.45rem;
  border-inline-start: 1px solid var(--border);
}
.st-sv-totals strong {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 900;
  line-height: 1;
  color: var(--emerald);
  font-variant-numeric: tabular-nums;
  unicode-bidi: isolate;
}
.st-sv-toman {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--text-main);
  background: color-mix(in srgb, var(--emerald) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--emerald) 28%, transparent);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.st-sv-time {
  font-size: 0.69rem;
  font-weight: 700;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid color-mix(in srgb, var(--accent) 26%, transparent);
  padding: 0.16rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}

/* مینی‌قرص‌های ۴ تسک در همان ردیف بالا (بدون شکستن خط در دسکتاپ) */
.st-sv-bars {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.3rem;
}
.st-sv-seg {
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  border: 1px dashed var(--border);
  background: var(--bg-soft);
  color: var(--text-sub);
  font-size: 0.68rem;
  font-weight: 700;
  opacity: 0.46;
  transition: all 0.22s ease;
  white-space: nowrap;
}
.st-sv-seg:hover {
  opacity: 0.85;
  border-color: var(--emerald);
}
.st-sv-seg.is-on {
  opacity: 1;
  border-style: solid;
  color: var(--text-main);
  border-color: color-mix(in srgb, var(--emerald) 52%, var(--border));
  background: color-mix(in srgb, var(--emerald) 11%, var(--bg-soft));
}
.st-sv-seg i {
  font-size: 0.76rem;
  color: var(--emerald);
}
.st-sv-seg em {
  font-style: normal;
}
.st-sv-seg b {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--emerald);
  unicode-bidi: isolate;
}

/* ==========================================================================
   سکشن پایین: ارزش کلی مهندسی پرامپت (خوش‌فرم، خلوت و متقاعدکننده بدون تکرار تسک‌ها)
   ========================================================================== */
.st-workday-section {
  position: relative;
  margin-top: -1.2rem;
  padding-bottom: 1.5rem;
}
.st-workday-ledger {
  max-width: 1020px;
  margin-inline: auto;
  border-radius: 24px;
  padding: 1.5rem 1.65rem;
  border: 1px solid color-mix(in srgb, var(--emerald) 30%, var(--border));
  background:
    radial-gradient(480px circle at 12% 0%, rgba(99, 102, 241, 0.08), transparent 65%),
    radial-gradient(480px circle at 88% 100%, rgba(16, 185, 129, 0.09), transparent 65%),
    color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: 0 26px 64px -34px rgba(15, 23, 42, 0.24);
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
}
html[data-theme='dark'] .st-workday-ledger {
  background:
    radial-gradient(480px circle at 12% 0%, rgba(99, 102, 241, 0.14), transparent 65%),
    radial-gradient(480px circle at 88% 100%, rgba(16, 185, 129, 0.14), transparent 65%),
    rgba(12, 21, 40, 0.8);
}

/* بخش بالای کارت: دو ستون متوازن (ستون روایت کلی + ستون مقایسهٔ تصویری روزانه/ماهانه) */
.st-roi-top {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: center;
  gap: 1.5rem;
}
.st-roi-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}
.st-wd-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--emerald);
}
.st-wd-title {
  margin: 0;
  font-size: clamp(1.14rem, 1.9vw, 1.42rem);
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.38;
}
.st-wd-sub {
  margin: 0;
  font-size: 0.84rem;
  color: var(--text-body);
  line-height: 1.78;
}

/* سوئیچر ۱ روز کاری vs ۱ ماه کاری */
.st-wd-horizon {
  margin-top: 0.25rem;
  display: inline-flex;
  align-items: center;
  padding: 0.24rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  gap: 0.24rem;
}
.st-wd-hbtn {
  font: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.88rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: var(--text-sub);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.st-wd-hbtn:hover {
  color: var(--text-main);
}
.st-wd-hbtn.is-active {
  color: #fff;
  background: linear-gradient(135deg, #4f46e5, #10b981);
  box-shadow: 0 6px 18px -6px rgba(16, 185, 129, 0.65);
}

/* کارت بصری مقایسهٔ هزینه و زمان کل */
.st-roi-card {
  border-radius: 18px;
  padding: 1.05rem 1.15rem;
  background: color-mix(in srgb, var(--bg) 84%, var(--bg-soft));
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.st-roi-bars {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.st-roi-row {
  display: flex;
  flex-direction: column;
  gap: 0.28rem;
}
.st-roi-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.76rem;
  font-weight: 700;
}
.st-roi-lbl {
  display: inline-flex;
  align-items: center;
  gap: 0.32rem;
}
.st-roi-bad .st-roi-lbl {
  color: var(--text-sub);
}
.st-roi-bad .st-roi-lbl i {
  color: var(--rose);
}
.st-roi-bad strong {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--rose);
  text-decoration: line-through;
  unicode-bidi: isolate;
}
.st-roi-good .st-roi-lbl {
  color: var(--emerald);
}
.st-roi-good strong {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--emerald);
  unicode-bidi: isolate;
}
.st-roi-track {
  height: 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--text-sub) 13%, transparent);
  overflow: hidden;
}
.st-roi-track span {
  display: block;
  height: 100%;
  border-radius: 999px;
}
.st-roi-bad .st-roi-track span {
  background: linear-gradient(90deg, #e11d48, #fb7185);
}
.st-roi-good .st-roi-track span {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}

/* باکس نتیجهٔ خالص صرفه‌جویی داخل کارت */
.st-roi-net {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.6rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--emerald) 10%, var(--bg-soft));
  border: 1px solid color-mix(in srgb, var(--emerald) 38%, var(--border));
}
.st-roi-net-main {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.st-wds-pct {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #059669);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.st-roi-net-main strong {
  font-family: var(--font-mono);
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--emerald);
  line-height: 1;
  unicode-bidi: isolate;
}
.st-roi-net-sub {
  display: inline-flex;
  align-items: center;
  gap: 0.38rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}
.st-roi-net-sub i {
  font-style: normal;
  opacity: 0.45;
}

/* ۳ ستون خلاصه از مزیت‌های کلی مهندسی پرامپت */
.st-roi-pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding-top: 1.05rem;
  border-top: 1px solid var(--border);
}
.st-roi-pillar {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border-radius: 14px;
  background: color-mix(in srgb, var(--bg-soft) 70%, transparent);
  border: 1px solid var(--border);
}
.st-rp-ico {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  color: var(--emerald);
  background: color-mix(in srgb, var(--emerald) 14%, transparent);
  flex: none;
}
.st-rp-txt h4 {
  margin: 0 0 0.2rem;
  font-size: 0.84rem;
  font-weight: 800;
  color: var(--text-main);
}
.st-rp-txt p {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.65;
  color: var(--text-sub);
}

/* ---------- ریسپانسیو موبایل و تبلت ---------- */
@media (max-width: 960px) {
  .st-split-scene,
  .st-scale-scene {
    height: auto;
  }
  .st-split-scene .st-sticky,
  .st-scale-scene .st-sticky {
    position: static;
    padding-block: 1.2rem;
  }
  .st-savings-bridge {
    position: sticky;
    inset-block-start: 4.1rem;
    z-index: 45;
    border-radius: 16px;
    padding: 0.45rem 0.65rem;
    grid-template-columns: 1fr 1fr;
    gap: 0.4rem;
  }
  .st-sb-center {
    grid-column: 1 / -1;
    order: -1;
    justify-content: space-between;
  }
  .st-sb-saved-toman {
    display: none;
  }
  .st-col-bad,
  .st-col-good {
    transform: none !important;
  }
  .st-visual-stage > .st-spine-reactor {
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 0.75rem;
    padding-block: 0.25rem;
  }
  .st-scale-vault {
    flex-wrap: wrap;
    justify-content: center;
    border-radius: 18px;
    padding: 0.5rem 0.7rem;
    gap: 0.5rem;
  }
  .st-sv-head,
  .st-sv-bars {
    flex-wrap: wrap;
    justify-content: center;
  }
  .st-scale-grid,
  .st-roi-top,
  .st-roi-pillars {
    grid-template-columns: minmax(0, 1fr);
  }
  .st-workday-section {
    margin-top: 0;
  }
}
