/* ==========================================================================
   باگ باز | صفحه خدمات (/services/)
   تمام کلاس‌ها با پیشوند bsv- (BugBaz SerVices) نام‌گذاری شده‌اند تا با
   Tailwind و بقیه فایل‌های اختصاصی سایت تداخل نداشته باشند.
   این فایل فقط در صفحه خدمات لود می‌شود (block extra_link).

   نکته مهم: در این صفحه هیچ تصویری استفاده نمی‌شود؛ تمام گرافیک هر حوزه با
   CSS و SVG درون‌خطی ساخته شده و همه‌چیز انیمیشنی است.
   ========================================================================== */

.bsv-page {
  --bsv-primary: #3758f9;
  --bsv-ink: #111928;
  --bsv-body: #637381;
  --bsv-stroke: #dfe4ea;
  --bsv-gray: #f9fafb;
  --bsv-dark: #111928;
  --bsv-dark-2: #1f2a37;
  --bsv-dark-3: #374151;
  overflow-x: clip;
  color: var(--bsv-ink);
  /* پس‌زمینه‌ی صفحه باید صریح باشد، وگرنه نوارهای نیمه‌شفاف (نوار متحرک و
     ناوبری چسبان) روی بوم سفید مرورگر ترکیب می‌شوند و در حالت تاریک خاکستری
     و کم‌کنتراست دیده می‌شوند. */
  background: #ffffff;
}

.dark .bsv-page {
  color: #ffffff;
  background: var(--bsv-dark);
}

.bsv-container {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin-inline: auto;
  padding-inline: 18px;
}

/* ==========================================================================
   ۱) قهرمان صفحه (Hero) — کاملاً انیمیشنی و بدون تصویر
   ========================================================================== */
.bsv-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 96px 0 58px;
  background:
    radial-gradient(1000px 420px at 50% -160px, rgba(55, 88, 249, 0.14), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f7f9fc 60%, #ffffff 100%);
}

.dark .bsv-hero {
  background:
    radial-gradient(1000px 420px at 50% -160px, rgba(55, 88, 249, 0.28), transparent 68%),
    linear-gradient(180deg, #111928 0%, #182233 60%, #111928 100%);
}

/* شبکه نقطه‌ای پس‌زمینه */
.bsv-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: radial-gradient(rgba(17, 25, 40, 0.1) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
  mask-image: radial-gradient(70% 60% at 50% 30%, #000 0%, transparent 78%);
}

.dark .bsv-hero::before {
  background-image: radial-gradient(rgba(255, 255, 255, 0.09) 1px, transparent 1px);
}

.bsv-blob {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.5;
  pointer-events: none;
  animation: bsv-float 14s ease-in-out infinite;
}

.bsv-blob--1 { width: 320px; height: 320px; inset-inline-start: -90px; top: 40px; background: rgba(55, 88, 249, 0.55); }
.bsv-blob--2 { width: 260px; height: 260px; inset-inline-end: -70px; top: 210px; background: rgba(19, 194, 150, 0.45); animation-delay: -5s; }
.bsv-blob--3 { width: 240px; height: 240px; inset-inline-end: 26%; bottom: -120px; background: rgba(147, 51, 234, 0.35); animation-delay: -9s; }

.dark .bsv-blob { opacity: 0.32; }

.bsv-hero__head {
  max-width: 760px;
  margin-inline: auto;
  text-align: center;
}

.bsv-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 15px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--bsv-primary);
  background: rgba(55, 88, 249, 0.1);
  border: 1px solid rgba(55, 88, 249, 0.22);
}

.dark .bsv-eyebrow {
  color: #a5b6ff;
  background: rgba(55, 88, 249, 0.2);
}

.bsv-eyebrow__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: bsv-ping 1.8s ease-out infinite;
}

.bsv-hero__title {
  margin: 18px 0 14px;
  font-size: clamp(1.7rem, 1.15rem + 2.6vw, 3.05rem);
  font-weight: 800;
  line-height: 1.35;
}

.bsv-hero__title em {
  font-style: normal;
  background: linear-gradient(100deg, #3758f9, #13c296 55%, #9333ea);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: bsv-gradient 7s ease-in-out infinite;
}

.bsv-hero__sub {
  font-size: 1.02rem;
  line-height: 2;
  color: var(--bsv-body);
}

.dark .bsv-hero__sub { color: #cbd5e1; }

.bsv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 26px;
}

/* ==========================================================================
   ۲) دکمه‌ها
   ========================================================================== */
.bsv-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.35s ease,
    border-color 0.35s ease, color 0.35s ease;
}

.bsv-btn svg { width: 17px; height: 17px; }

.bsv-btn--solid {
  color: #ffffff;
  background: linear-gradient(120deg, #3758f9, #1b44c8);
  box-shadow: 0 18px 34px -20px rgba(55, 88, 249, 0.95);
}

.bsv-btn--ghost {
  color: var(--bsv-ink);
  background: #ffffff;
  border: 1px solid var(--bsv-stroke);
}

.dark .bsv-btn--ghost {
  color: #ffffff;
  background: #1f2a37;
  border-color: var(--bsv-dark-3);
}

.bsv-btn:hover {
  transform: translateY(-3px);
}

.bsv-btn--ghost:hover {
  border-color: var(--bsv-primary);
  color: var(--bsv-primary);
}

/* برق روی دکمه‌ها */
.bsv-btn--solid::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -60%;
  width: 45%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.42), transparent);
  transform: skewX(-18deg);
  animation: bsv-shine 3.4s ease-in-out infinite;
}

/* ==========================================================================
   ۳) نوار متحرک نام خدمات (Marquee)
   ========================================================================== */
.bsv-marquee {
  position: relative;
  overflow: hidden;
  padding: 14px 0;
  border-block: 1px solid var(--bsv-stroke);
  background: rgba(249, 250, 251, 0.85);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

.dark .bsv-marquee {
  border-color: var(--bsv-dark-3);
  background: rgba(31, 42, 55, 0.6);
}

.bsv-marquee__track {
  display: flex;
  gap: 34px;
  width: max-content;
  animation: bsv-marquee 26s linear infinite;
}

.bsv-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  color: #4b5563;
}

.dark .bsv-marquee__item { color: #d1d5db; }

.bsv-marquee__item::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--acc, var(--bsv-primary));
  animation: bsv-spin 6s linear infinite;
}

/* ==========================================================================
   ۴) ناوبری چسبان خدمات (Sticky nav)
   ========================================================================== */
.bsv-nav {
  position: sticky;
  /* ارتفاع هدر سایت متغیر است (حالت معمولی و حالت چسبان)؛ این متغیر را
     اسکریپت همین صفحه از روی ارتفاع واقعی هدر به‌روز می‌کند. */
  top: var(--bsv-header-h, 74px);
  z-index: 30;
  padding: 12px 0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--bsv-stroke);
}

.dark .bsv-nav {
  background: rgba(17, 25, 40, 0.86);
  border-color: var(--bsv-dark-3);
}

.bsv-nav__list {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}

.bsv-nav__list::-webkit-scrollbar { display: none; }

.bsv-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  scroll-snap-align: center;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: #4b5563;
  background: rgba(17, 25, 40, 0.04);
  border: 1px solid transparent;
  transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease,
    transform 0.3s ease;
}

.dark .bsv-nav__link {
  color: #d1d5db;
  background: rgba(255, 255, 255, 0.07);
}

.bsv-nav__link:hover {
  transform: translateY(-2px);
  color: var(--acc, var(--bsv-primary));
  border-color: var(--acc, var(--bsv-primary));
}

.bsv-nav__link.is-active {
  color: #ffffff;
  background: linear-gradient(120deg, var(--acc, var(--bsv-primary)), rgba(17, 25, 40, 0.85));
  box-shadow: 0 14px 26px -18px var(--acc, var(--bsv-primary));
}

.bsv-nav__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.bsv-nav__link.is-active .bsv-nav__dot {
  animation: bsv-ping 1.6s ease-out infinite;
}

/* ==========================================================================
   ۵) هر حوزه خدمات = یک گالری
   ========================================================================== */
.bsv-block {
  position: relative;
  padding: 74px 0 66px;
  scroll-margin-top: calc(var(--bsv-header-h, 74px) + 82px);
  background: #ffffff;
}

.bsv-block--alt { background: var(--bsv-gray); }

.dark .bsv-block { background: var(--bsv-dark); }
.dark .bsv-block--alt { background: var(--bsv-dark-2); }

/* هاله رنگی هر حوزه */
.bsv-block::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset-inline-end: -140px;
  top: 10%;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: var(--acc);
  opacity: 0.14;
  filter: blur(90px);
  pointer-events: none;
}

.bsv-block__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 46px;
  align-items: center;
}

/* چیدمان یک‌درمیان (گالری سمت دیگر) */
.bsv-block--flip .bsv-block__inner > .bsv-stage { order: 2; }

.bsv-copy__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--acc);
}

.bsv-copy__eyebrow span {
  padding: 3px 9px;
  border-radius: 8px;
  font-size: 0.78rem;
  /* ترتیب مهم است: اول مقدار جانشین برای مرورگرهای قدیمی، بعد color-mix */
  background: rgba(17, 25, 40, 0.06);
  background: color-mix(in srgb, var(--acc) 14%, transparent);
}

.bsv-copy__title {
  margin: 12px 0 12px;
  font-size: clamp(1.35rem, 1.05rem + 1.1vw, 2rem);
  font-weight: 800;
  line-height: 1.5;
}

.bsv-copy__desc {
  font-size: 0.98rem;
  line-height: 2.05;
  color: var(--bsv-body);
}

.dark .bsv-copy__desc { color: #cbd5e1; }

.bsv-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.bsv-points li {
  position: relative;
  padding-inline-start: 26px;
  font-size: 0.92rem;
  line-height: 1.9;
}

.bsv-points li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 10px;
  width: 16px;
  height: 16px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--acc) 22%, transparent);
  background-image: linear-gradient(135deg, var(--acc), transparent 70%);
  border: 1px solid color-mix(in srgb, var(--acc) 45%, transparent);
}

/* ---------- نمونه‌کارها ---------- */
.bsv-samples {
  margin-top: 24px;
}

.bsv-samples__label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.85rem;
  font-weight: 700;
  color: #6b7280;
}

.dark .bsv-samples__label { color: #9ca3af; }

.bsv-samples__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bsv-sample {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--bsv-stroke);
  background: #ffffff;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.35s ease,
    box-shadow 0.4s ease;
}

.dark .bsv-sample {
  background: #1f2a37;
  border-color: var(--bsv-dark-3);
}

.bsv-sample::after {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  bottom: 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, var(--acc), transparent);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.bsv-sample:hover {
  transform: translateY(-5px);
  border-color: var(--acc);
  box-shadow: 0 22px 40px -30px rgba(17, 25, 40, 0.6);
}

.bsv-sample:hover::after { transform: scaleX(1); }

.bsv-sample a {
  display: block;
  padding: 12px 14px;
  text-decoration: none;
  color: inherit;
}

.bsv-sample__name {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
}

.bsv-sample__meta {
  display: block;
  margin-top: 3px;
  font-size: 0.78rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dark .bsv-sample__meta { color: #9ca3af; }

.bsv-cta {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 26px;
  padding: 13px 24px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  color: #ffffff;
  background: linear-gradient(120deg, var(--acc), rgba(17, 25, 40, 0.9));
  box-shadow: 0 20px 36px -24px var(--acc);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.bsv-cta svg { width: 18px; height: 18px; }

.bsv-cta:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 26px 44px -22px var(--acc);
}

/* ==========================================================================
   ۶) صحنه‌ی گرافیکی هر حوزه (بدون تصویر، فقط CSS و SVG)
   ========================================================================== */
.bsv-stage {
  position: relative;
  aspect-ratio: 1 / 0.86;
  border-radius: 24px;
  overflow: hidden;
  background: linear-gradient(150deg, rgba(17, 25, 40, 0.05), rgba(17, 25, 40, 0.01));
  border: 1px solid var(--bsv-stroke);
  box-shadow: 0 40px 70px -60px rgba(17, 25, 40, 0.9);
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.6s ease;
}

.dark .bsv-stage {
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.01));
  border-color: var(--bsv-dark-3);
}

.bsv-stage:hover {
  transform: translateY(-6px) rotate(-0.6deg);
  box-shadow: 0 50px 80px -58px var(--acc);
}

.bsv-stage__glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(70% 55% at 30% 10%, color-mix(in srgb, var(--acc) 40%, transparent), transparent 70%);
  background-color: transparent;
  opacity: 0.4;
  animation: bsv-pulse-soft 6s ease-in-out infinite;
}

/* --- الف) طراحی سایت: پنجره مرورگر --- */
.bsv-screen {
  position: absolute;
  inset: 12% 12% auto 12%;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid var(--bsv-stroke);
  box-shadow: 0 26px 50px -40px rgba(17, 25, 40, 0.9);
  overflow: hidden;
}

.dark .bsv-screen {
  background: #111928;
  border-color: var(--bsv-dark-3);
}

.bsv-screen__bar {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--bsv-stroke);
  background: rgba(249, 250, 251, 0.9);
}

.dark .bsv-screen__bar {
  border-color: var(--bsv-dark-3);
  background: rgba(31, 42, 55, 0.9);
}

.bsv-screen__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--bsv-stroke);
}

.bsv-screen__dot:nth-child(1) { background: #ff5f57; }
.bsv-screen__dot:nth-child(2) { background: #febc2e; }
.bsv-screen__dot:nth-child(3) { background: #28c840; }

.bsv-screen__url {
  flex: 1;
  height: 12px;
  margin-inline-start: 8px;
  border-radius: 999px;
  background: rgba(17, 25, 40, 0.08);
  position: relative;
  overflow: hidden;
}

.dark .bsv-screen__url { background: rgba(255, 255, 255, 0.12); }

.bsv-screen__url::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -40%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(55, 88, 249, 0.85), transparent);
  animation: bsv-load 2.6s ease-in-out infinite;
}

.bsv-screen__body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  padding: 14px;
}

.bsv-skeleton {
  display: grid;
  gap: 9px;
}

.bsv-skeleton__line {
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(17, 25, 40, 0.08) 25%, rgba(17, 25, 40, 0.18) 37%, rgba(17, 25, 40, 0.08) 63%);
  background-size: 400% 100%;
  animation: bsv-shimmer 2.4s ease-in-out infinite;
}

.dark .bsv-skeleton__line {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.09) 25%, rgba(255, 255, 255, 0.2) 37%, rgba(255, 255, 255, 0.09) 63%);
  background-size: 400% 100%;
}

.bsv-skeleton__line--wide { width: 92%; }
.bsv-skeleton__line--mid { width: 70%; animation-delay: 0.3s; }
.bsv-skeleton__line--short { width: 48%; animation-delay: 0.6s; }

.bsv-skeleton__block {
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(140deg, color-mix(in srgb, var(--acc) 70%, #3758f9), color-mix(in srgb, var(--acc) 25%, #13c296));
  background-size: 180% 180%;
  animation: bsv-gradient 6s ease-in-out infinite;
}

.bsv-cursor {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--acc) 18%, transparent);
  animation: bsv-cursor 7s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.bsv-chipbar {
  position: absolute;
  inset-inline: 16%;
  bottom: 9%;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.bsv-chipbar span {
  height: 26px;
  flex: 0 0 62px;
  border-radius: 999px;
  border: 1px solid var(--bsv-stroke);
  background: #ffffff;
  animation: bsv-pop 4.2s ease-in-out infinite;
}

.dark .bsv-chipbar span {
  background: #1f2a37;
  border-color: var(--bsv-dark-3);
}

.bsv-chipbar span:nth-child(2) { animation-delay: 0.35s; }
.bsv-chipbar span:nth-child(3) { animation-delay: 0.7s; }

/* --- ب) سئو: نمودار رشد + ذره‌بین --- */
.bsv-chart {
  position: absolute;
  inset: auto 14% 16% 14%;
  height: 56%;
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.bsv-chart__bar {
  flex: 1;
  border-radius: 12px 12px 6px 6px;
  background: linear-gradient(180deg, var(--acc), rgba(19, 194, 150, 0.55));
  transform-origin: bottom;
  animation: bsv-grow 3.6s ease-in-out infinite;
}

.bsv-chart__bar:nth-child(1) { height: 34%; animation-delay: 0s; }
.bsv-chart__bar:nth-child(2) { height: 52%; animation-delay: 0.18s; }
.bsv-chart__bar:nth-child(3) { height: 44%; animation-delay: 0.36s; }
.bsv-chart__bar:nth-child(4) { height: 72%; animation-delay: 0.54s; }
.bsv-chart__bar:nth-child(5) { height: 88%; animation-delay: 0.72s; }

.bsv-scan {
  position: absolute;
  top: 12%;
  inset-inline-start: 14%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  border: 2px solid var(--acc);
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--acc) 30%, transparent);
  animation: bsv-scan 7s ease-in-out infinite;
}

.bsv-scan::after {
  content: "";
  position: absolute;
  bottom: -4px;
  inset-inline-end: -12px;
  width: 34px;
  height: 4px;
  border-radius: 4px;
  background: var(--acc);
  transform: rotate(45deg);
}

.bsv-ranks {
  position: absolute;
  top: 14%;
  inset-inline-end: 10%;
  display: grid;
  gap: 8px;
  width: 42%;
}

.bsv-ranks span {
  height: 26px;
  border-radius: 10px;
  background: rgba(17, 25, 40, 0.06);
  border: 1px solid transparent;
  animation: bsv-rank 5s ease-in-out infinite;
}

.dark .bsv-ranks span { background: rgba(255, 255, 255, 0.08); }

.bsv-ranks span:nth-child(2) { animation-delay: 0.5s; }
.bsv-ranks span:nth-child(3) { animation-delay: 1s; }

/* --- ج) هوش مصنوعی: شبکه عصبی --- */
.bsv-net {
  position: absolute;
  inset: 8%;
  width: 84%;
  height: 84%;
}

.bsv-net__link {
  stroke: var(--acc);
  stroke-width: 1.6;
  fill: none;
  opacity: 0.5;
  stroke-dasharray: 6 8;
  animation: bsv-dash 3.4s linear infinite;
}

.bsv-net__node {
  fill: #ffffff;
  stroke: var(--acc);
  stroke-width: 2;
  animation: bsv-node 3s ease-in-out infinite;
}

.dark .bsv-net__node { fill: #1f2a37; }

.bsv-net__node:nth-child(odd) { animation-delay: 0.4s; }
.bsv-net__node:nth-child(3n) { animation-delay: 0.8s; }

.bsv-terms {
  position: absolute;
  inset-inline: 12%;
  bottom: 10%;
  display: flex;
  gap: 8px;
  justify-content: center;
}

.bsv-terms span {
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--acc);
  background: color-mix(in srgb, var(--acc) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--acc) 32%, transparent);
  animation: bsv-pop 5s ease-in-out infinite;
}

.bsv-terms span:nth-child(2) { animation-delay: 0.6s; }
.bsv-terms span:nth-child(3) { animation-delay: 1.2s; }

/* --- د) ربات و اتوماسیون: گفتگو --- */
.bsv-chat {
  position: absolute;
  inset: 12% 10%;
  display: grid;
  gap: 10px;
  align-content: start;
}

.bsv-chat__bubble {
  max-width: 74%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 0.74rem;
  font-weight: 600;
  background: #ffffff;
  border: 1px solid var(--bsv-stroke);
  animation: bsv-bubble 4.4s ease-in-out infinite;
}

.dark .bsv-chat__bubble {
  background: #1f2a37;
  border-color: var(--bsv-dark-3);
}

.bsv-chat__bubble--me {
  margin-inline-start: auto;
  color: #ffffff;
  border-color: transparent;
  background: linear-gradient(120deg, var(--acc), rgba(17, 25, 40, 0.9));
}

.bsv-chat__bubble:nth-child(2) { animation-delay: 0.6s; }
.bsv-chat__bubble:nth-child(3) { animation-delay: 1.2s; }
.bsv-chat__bubble:nth-child(4) { animation-delay: 1.8s; }

.bsv-gear {
  position: absolute;
  inset-inline-start: 10%;
  bottom: 12%;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 6px dashed var(--acc);
  opacity: 0.55;
  animation: bsv-spin 9s linear infinite;
}

.bsv-flow {
  position: absolute;
  inset-inline-end: 14%;
  bottom: 16%;
  width: 40%;
  height: 3px;
  border-radius: 3px;
  background: color-mix(in srgb, var(--acc) 26%, transparent);
}

.bsv-flow::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--acc);
  animation: bsv-travel 3s linear infinite;
}

/* --- ه) موشن گرافیک: تایم‌لاین و منحنی --- */
.bsv-curve {
  position: absolute;
  inset: 10% 10% auto 10%;
  width: 80%;
  height: auto;
}

.bsv-curve path {
  fill: none;
  stroke: var(--acc);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: bsv-draw 4.4s ease-in-out infinite;
}

.bsv-curve circle {
  fill: #ffffff;
  stroke: var(--acc);
  stroke-width: 2;
  animation: bsv-node 3s ease-in-out infinite;
}

.dark .bsv-curve circle { fill: #1f2a37; }

.bsv-timeline {
  position: absolute;
  inset-inline: 10%;
  bottom: 24%;
  height: 4px;
  border-radius: 4px;
  background: rgba(17, 25, 40, 0.1);
}

.dark .bsv-timeline { background: rgba(255, 255, 255, 0.12); }

.bsv-timeline__keys {
  position: absolute;
  inset: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.bsv-timeline__keys span {
  width: 13px;
  height: 13px;
  background: #ffffff;
  border: 2px solid var(--acc);
  transform: rotate(45deg);
  animation: bsv-key 3.6s ease-in-out infinite;
}

.dark .bsv-timeline__keys span { background: #1f2a37; }

.bsv-timeline__keys span:nth-child(2) { animation-delay: 0.4s; }
.bsv-timeline__keys span:nth-child(3) { animation-delay: 0.8s; }
.bsv-timeline__keys span:nth-child(4) { animation-delay: 1.2s; }

.bsv-playhead {
  position: absolute;
  top: -14px;
  width: 3px;
  height: 30px;
  border-radius: 3px;
  background: var(--acc);
  box-shadow: 0 0 12px var(--acc);
  animation: bsv-playhead 4.4s cubic-bezier(0.5, 0, 0.5, 1) infinite;
}

.bsv-frames {
  position: absolute;
  inset-inline: 10%;
  bottom: 8%;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}

.bsv-frames span {
  flex: 1;
  height: 22px;
  border-radius: 6px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--acc) 55%, transparent), transparent);
  animation: bsv-pop 4.6s ease-in-out infinite;
}

.bsv-frames span:nth-child(2) { animation-delay: 0.3s; }
.bsv-frames span:nth-child(3) { animation-delay: 0.6s; }
.bsv-frames span:nth-child(4) { animation-delay: 0.9s; }
.bsv-frames span:nth-child(5) { animation-delay: 1.2s; }

/* ==========================================================================
   ۷) باکس پایانی
   ========================================================================== */
.bsv-end {
  position: relative;
  overflow: hidden;
  padding: 78px 0;
  background: linear-gradient(120deg, #111928, #1b2a45 60%, #111928);
  color: #ffffff;
  text-align: center;
}

.bsv-end::before {
  content: "";
  position: absolute;
  inset: -160px 10% auto 10%;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(55, 88, 249, 0.55), rgba(19, 194, 150, 0.16) 55%, transparent 78%);
  filter: blur(28px);
  animation: bsv-pulse-soft 9s ease-in-out infinite;
  pointer-events: none;
}

.bsv-end__inner {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-inline: auto;
}

.bsv-end__title {
  margin-bottom: 12px;
  font-size: clamp(1.4rem, 1.1rem + 1.4vw, 2.1rem);
  font-weight: 800;
}

.bsv-end__sub {
  margin-bottom: 26px;
  color: #cbd5e1;
  line-height: 2;
}

.bsv-end__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.bsv-end .bsv-btn--ghost {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

.bsv-end .bsv-btn--ghost:hover {
  color: #ffffff;
  border-color: #ffffff;
}

/* ==========================================================================
   ۸) کی‌فریم‌ها
   ========================================================================== */
@keyframes bsv-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -26px, 0); }
}

@keyframes bsv-spin {
  to { transform: rotate(360deg); }
}

@keyframes bsv-ping {
  0% { transform: scale(1); opacity: 0.9; }
  70%, 100% { transform: scale(2.6); opacity: 0; }
}

@keyframes bsv-pulse-soft {
  0%, 100% { opacity: 0.28; }
  50% { opacity: 0.62; }
}

@keyframes bsv-gradient {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes bsv-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@keyframes bsv-shine {
  0% { left: -60%; }
  55%, 100% { left: 120%; }
}

@keyframes bsv-load {
  0% { left: -40%; }
  100% { left: 110%; }
}

@keyframes bsv-shimmer {
  0% { background-position: 120% 0; }
  100% { background-position: -20% 0; }
}

@keyframes bsv-cursor {
  0% { top: 62%; inset-inline-start: 20%; }
  25% { top: 30%; inset-inline-start: 62%; }
  50% { top: 70%; inset-inline-start: 74%; }
  75% { top: 40%; inset-inline-start: 34%; }
  100% { top: 62%; inset-inline-start: 20%; }
}

@keyframes bsv-pop {
  0%, 100% { transform: translateY(0); opacity: 0.55; }
  40% { transform: translateY(-6px); opacity: 1; }
}

@keyframes bsv-grow {
  0%, 100% { transform: scaleY(0.82); opacity: 0.75; }
  45% { transform: scaleY(1); opacity: 1; }
}

@keyframes bsv-scan {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(140%, 120%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes bsv-rank {
  0%, 100% { background: rgba(17, 25, 40, 0.06); border-color: transparent; }
  35% { background: color-mix(in srgb, var(--acc) 22%, transparent); border-color: var(--acc); }
}

@keyframes bsv-dash {
  to { stroke-dashoffset: -56; }
}

@keyframes bsv-node {
  0%, 100% { r: 5; opacity: 0.75; }
  50% { r: 7.5; opacity: 1; }
}

@keyframes bsv-bubble {
  0% { opacity: 0; transform: translateY(12px) scale(0.96); }
  18%, 70% { opacity: 1; transform: translateY(0) scale(1); }
  100% { opacity: 0.55; transform: translateY(0) scale(1); }
}

@keyframes bsv-travel {
  0% { inset-inline-start: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { inset-inline-start: calc(100% - 9px); opacity: 0; }
}

@keyframes bsv-key {
  0%, 100% { transform: rotate(45deg) scale(0.8); opacity: 0.6; }
  50% { transform: rotate(45deg) scale(1.15); opacity: 1; }
}

@keyframes bsv-playhead {
  0% { inset-inline-start: 0; }
  50% { inset-inline-start: calc(100% - 3px); }
  100% { inset-inline-start: 0; }
}

@keyframes bsv-draw {
  0% { stroke-dashoffset: 340; }
  45%, 70% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -340; }
}

/* نشان «قدم بعدی» روی پس‌زمینه تیره‌ی باکس پایانی */
.bsv-end .bsv-eyebrow {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.bsv-end .bsv-eyebrow__dot {
  background: #13c296;
}

/* ==========================================================================
   ۹) ریسپانسیو
   ========================================================================== */
@media (max-width: 1023.98px) {
  .bsv-hero { padding: 76px 0 46px; }
  .bsv-block { padding: 58px 0 50px; }

  .bsv-block__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 30px;
  }

  /* در موبایل گرافیک همیشه بالای متن می‌آید */
  .bsv-block--flip .bsv-block__inner > .bsv-stage { order: 0; }

  .bsv-stage { aspect-ratio: 1 / 0.78; }
  .bsv-nav { top: var(--bsv-header-h, 66px); }
}

@media (max-width: 719.98px) {
  .bsv-points { grid-template-columns: minmax(0, 1fr); }
  .bsv-samples__list { grid-template-columns: minmax(0, 1fr); }
  .bsv-block::before { width: 260px; height: 260px; opacity: 0.12; }
  .bsv-nav__link { padding: 8px 13px; font-size: 0.82rem; }
}

@media (max-width: 539.98px) {
  .bsv-hero { padding: 62px 0 38px; }
  .bsv-stage { aspect-ratio: 1 / 0.95; }
  .bsv-screen { inset: 10% 8% auto 8%; }
}

/* ==========================================================================
   ۱۰) احترام به تنظیم «کاهش حرکت»
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  .bsv-page *,
  .bsv-page *::before,
  .bsv-page *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }

  .bsv-marquee__track { transform: translateX(-25%); }
}
