/* Home — Glass home layout (responsive) */

.home-page {
  --home-primary: #442dd9;
  --home-primary-soft: rgba(68, 45, 217, 0.18);
  --home-sky: rgba(56, 189, 248, 0.1);
  --home-card-shadow: 0 8px 28px -12px rgba(28, 18, 90, 0.14);
  /* فاصله یکپارچه بین سکشن‌ها */
  --home-gap: 1.25rem;
  --home-inline: 1.15rem;
  /* پدینگ عمودی داخل سکشن‌ها */
  --home-section-pad-y: 1.15rem;
  --home-hero-pad-top: calc(var(--home-section-pad-y) + 0.35rem);
  --home-panel-pad-y: var(--home-section-pad-y);
  --home-card-gap: 0.85rem;
  --home-card-pad: 1rem 1.05rem;
  --home-title-gap: 0.85rem;
}

.home-page .main.home-main {
  position: relative;
  background: transparent;
  overflow-x: hidden;
  overflow-y: visible;
  padding-bottom: 2rem;
  width: 100%;
}

/* فاصله از هدر: فقط #site-header (spacer) — نه padding روی main/stack */
.home-page #site-header {
  min-height: var(--site-header-height, 62px);
}

.home-page #site-header+.main {
  padding-top: 0;
}

/* بک‌گراند صفحه — تمام‌صفحه */
.home-page .catalog-fixed-background {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  min-height: 100%;
  z-index: 0;
}

.home-page .catalog-fixed-background.catalog-bg--home {
  background:
    radial-gradient(ellipse 32rem 32rem at 12% 6%, rgba(129, 140, 248, 0.5), transparent 72%),
    radial-gradient(ellipse 28rem 28rem at 88% 12%, rgba(56, 189, 248, 0.42), transparent 72%),
    radial-gradient(ellipse 36rem 36rem at 50% 42%, rgba(167, 139, 250, 0.24), transparent 74%),
    radial-gradient(ellipse 26rem 26rem at 8% 78%, rgba(52, 211, 153, 0.3), transparent 72%),
    radial-gradient(ellipse 24rem 24rem at 92% 82%, rgba(251, 191, 36, 0.28), transparent 72%),
    linear-gradient(180deg, rgba(224, 231, 255, 0.95) 0%, rgba(240, 249, 255, 0.85) 45%, rgba(237, 233, 254, 0.9) 100%);
}

/* LCP: hero paints immediately — never wait for deferred AOS CSS/JS */
.home-page #hero .home-hero__content,
.home-page #hero [data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

.home-page .home-stack {
  --home-content-max: 960px;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: var(--home-gap);
  padding-top: 0;
  padding-bottom: 0.5rem;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 0;
  box-sizing: border-box;
}

/* Spacing scale — tablet → desktop */
@media (min-width: 768px) {
  .home-page {
    --home-gap: 1.35rem;
    --home-inline: 1.5rem;
    --home-section-pad-y: 1.65rem;
    --home-card-gap: 0.9rem;
    --home-card-pad: 1.1rem 1.15rem;
    --home-title-gap: 0.9rem;
  }

  .home-page .home-stack {
    padding-top: 0;
  }
}

@media (min-width: 992px) {
  .home-page {
    --home-gap: 1.35rem;
    --home-inline: 1.75rem;
    --home-section-pad-y: 1.75rem;
    --home-card-gap: 1rem;
  }

  .home-page .home-section-title {
    font-size: 1.2rem;
  }

  .home-page .home-stack {
    --home-content-max: 1000px;
  }
}

.home-page .home-main img {
  float: none;
}

.home-page .home-main h1,
.home-page .home-main h2,
.home-page .home-main h3 {
  text-align: center;
}

/* بک‌گراند سکشن + دالبر — تمام‌عرض؛ محتوا داخل کانتینر */
.home-page .glass-torn-section.home-panel,
.home-page .home-stack>.section.home-soft-card {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
  border-radius: 0;
  border-inline: 0;
}

.home-page .glass-torn-section.home-panel {
  margin-block: 0;
  clip-path: url(#home-torn-paper-clip);
  /* overflow:hidden from main.css + clip-path sometimes clips cards mid-section */
  overflow: visible !important;
  filter: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  background: rgba(255, 255, 255, 0.92);
  height: auto !important;
  max-height: none !important;
  min-height: min-content;
  flex: 0 0 auto;
  align-self: stretch;
  padding-block: 0;
  /* Never let AOS transform the clipped shell (breaks objectBoundingBox height) */
  transform: none !important;
}

/* Contact flush to footer: torn top only, flat bottom + padding */
.home-page .glass-torn-section.home-panel.home-panel--flush-footer {
  clip-path: polygon(0% 10px, 2% 3px, 4% 9px, 6% 2px, 8% 8px, 10% 3px, 12% 10px, 14% 2px,
      16% 9px, 18% 4px, 20% 8px, 22% 2px, 24% 10px, 26% 3px, 28% 9px, 30% 2px,
      32% 8px, 34% 4px, 36% 10px, 38% 2px, 40% 9px, 42% 3px, 44% 8px, 46% 2px,
      48% 10px, 50% 3px, 52% 9px, 54% 2px, 56% 8px, 58% 4px, 60% 10px, 62% 2px,
      64% 9px, 66% 3px, 68% 8px, 70% 2px, 72% 10px, 74% 3px, 76% 9px, 78% 2px,
      80% 8px, 82% 4px, 84% 10px, 86% 2px, 88% 9px, 90% 3px, 92% 8px, 94% 2px,
      96% 10px, 98% 4px, 100% 9px,
      100% 100%,
      0% 100%);
  margin-bottom: 0;
  border-radius: 0;
}

.home-page .home-stack:has(> .home-panel--flush-footer:last-child) {
  padding-bottom: 0;
}

.home-page .main.home-main:has(.home-stack > .home-panel--flush-footer:last-child) {
  padding-bottom: 0;
}

.home-page .home-panel--flush-footer .home-panel__inner {
  padding-bottom: calc(var(--home-section-pad-y) + 1.25rem);
}

.home-page .home-panel__inner,
.home-page .home-hero__content,
.home-page .home-soft-card__body,
.home-page .home-stack>.section>.container {
  width: 100%;
  max-width: var(--home-content-max);
  margin-inline: auto;
  padding-inline: var(--home-inline);
  box-sizing: border-box;
}

.home-page .home-panel__inner {
  overflow: visible;
  height: auto;
  min-height: min-content;
  padding-block: var(--home-section-pad-y);
}

/* ---- Hero / spotlight ---- */
.home-page .home-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
  overflow: visible;
}

.home-page .home-hero--compact {
  padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
}

.home-page .home-hero__glow {
  pointer-events: none;
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 15rem;
  background: radial-gradient(ellipse at top, var(--home-primary-soft) 0%, var(--home-sky) 45%, transparent 72%);
}

.home-page .home-hero__orb {
  pointer-events: none;
  position: absolute;
  left: 50%;
  top: 2.5rem;
  width: 10rem;
  height: 10rem;
  transform: translateX(-50%);
  border-radius: 999px;
  background: rgba(68, 45, 217, 0.2);
  filter: blur(48px);
  animation: home-soft-pulse 3.8s ease-in-out infinite;
}

.home-page .home-hero__content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 26rem;
}

.home-page .home-hero__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.home-page .home-hero__visual {
  position: relative;
  margin-bottom: 1rem;
}

.home-page .home-hero__visual-glow {
  pointer-events: none;
  position: absolute;
  inset: -1.75rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(68, 45, 217, 0.25), rgba(125, 211, 252, 0.2), rgba(196, 181, 253, 0.15));
  filter: blur(28px);
  animation: home-soft-pulse 3.8s ease-in-out infinite;
}

.home-page .home-hero__img {
  position: relative;
  width: 13rem;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 40px rgba(68, 45, 217, 0.28));
  animation: home-hero-float 4s ease-in-out infinite;
}

.home-page .home-hero--compact .home-hero__img {
  width: 11rem;
}

@media (min-width: 576px) {
  .home-page .home-hero__img {
    width: 14rem;
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 12rem;
  }
}

.home-page .home-hero__brand {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: var(--accent-color, #4154f1);
  text-align: center;
}

.home-page .home-hero__title {
  margin: 0;
  font-size: clamp(1.25rem, 4.2vw, 1.85rem);
  font-weight: 800;
  line-height: 1.45;
  color: var(--heading-color, #012970);
  text-wrap: balance;
}

.home-page .home-hero__desc {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.75;
  color: #4b5563;
  text-align: center;
  text-wrap: pretty;
}

@media (max-width: 1199.98px) {

  .home-page #about .home-hero__desc,
  .home-page #org-credit .home-hero__desc {
    margin-bottom: 1rem;
  }
}

.home-page .home-hero__cta {
  margin-top: 1.15rem;
  margin-bottom: 0.85rem;
}

.home-page .home-hero__cta .btn-get-started,
.home-page .home-promo__cta.btn-get-started {
  color: var(--contrast-color, #fff);
  background: var(--accent-color, #4154f1);
  font-family: var(--heading-font, IRANYekan);
  font-weight: 500;
  font-size: 16px;
  letter-spacing: 1px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 40px;
  border-radius: 0.85rem;
  transition: 0.5s;
  box-shadow: 0 10px 28px -10px rgba(65, 84, 241, 0.45);
  text-decoration: none;
}

.home-page .home-hero__cta .btn-get-started i,
.home-page .home-promo__cta.btn-get-started i {
  margin-right: 0;
  margin-left: 5px;
  font-size: 18px;
  transition: 0.3s;
}

.home-page .home-hero__cta .btn-get-started:hover,
.home-page .home-promo__cta.btn-get-started:hover {
  color: var(--contrast-color, #fff);
  background: color-mix(in srgb, var(--accent-color, #4154f1), transparent 15%);
}

.home-page .home-hero__cta .btn-get-started:hover i,
.home-page .home-promo__cta.btn-get-started:hover i {
  transform: translateX(5px);
}

.home-page .home-promo__cta {
  margin-top: 0.4rem;
}

/* ---- Promo banner (matches EN market mockup) ---- */
.home-page .home-promo {
  --promo-bg-1: #f4f2ff;
  --promo-bg-2: #ebe8ff;
  --promo-bg-3: #e4e0ff;
  --promo-ink: #1e1b4b;
  --promo-muted: #6d68b0;
  --promo-accent: #7c73e6;
  --promo-cta-bg: #c7c2ff;
  --promo-cta-ink: #1a1640;
  --promo-border: rgba(124, 115, 230, 0.22);
  --promo-glow: rgba(124, 115, 230, 0.28);
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 1.5rem;
  border: 1px solid var(--promo-border);
  background:
    radial-gradient(ellipse 58% 70% at 88% 48%, var(--promo-glow), transparent 68%),
    radial-gradient(ellipse 40% 55% at 8% 20%, rgba(167, 139, 250, 0.18), transparent 62%),
    linear-gradient(135deg, var(--promo-bg-1) 0%, var(--promo-bg-2) 48%, var(--promo-bg-3) 100%);
  box-shadow: 0 18px 44px -26px rgba(67, 56, 202, 0.4);
  padding: 1.25rem 1.1rem 1.35rem;
}

.home-page .home-promo__glow,
.home-page .home-promo__ring,
.home-page .home-promo__orbit {
  position: absolute;
  pointer-events: none;
  z-index: 0;
}

.home-page .home-promo__glow {
  inset: 6% auto auto 48%;
  width: min(62%, 26rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139, 92, 246, 0.38), transparent 70%);
  filter: blur(12px);
  animation: home-promo-pulse 5.5s ease-in-out infinite;
}

.home-page .home-promo__ring--a,
.home-page .home-promo__ring--b,
.home-page .home-promo__ring--c {
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-top-color: rgba(167, 139, 250, 0.55);
  border-right-color: rgba(129, 140, 248, 0.2);
  box-shadow:
    0 0 18px rgba(139, 92, 246, 0.22),
    inset 0 0 18px rgba(167, 139, 250, 0.08);
}

.home-page .home-promo__ring--a {
  inset: -22% -20% auto 38%;
  width: min(86%, 36rem);
  aspect-ratio: 1;
  animation: home-promo-spin 26s linear infinite;
}

.home-page .home-promo__ring--b {
  inset: -8% -8% auto 48%;
  width: min(68%, 28rem);
  aspect-ratio: 1;
  border-top-color: rgba(196, 181, 253, 0.45);
  animation: home-promo-spin-rev 34s linear infinite;
  opacity: 0.75;
}

.home-page .home-promo__ring--c {
  inset: 12% auto auto 58%;
  width: min(42%, 18rem);
  aspect-ratio: 1;
  border-width: 1px;
  border-top-color: rgba(221, 214, 254, 0.4);
  animation: home-promo-spin 18s linear infinite;
  opacity: 0.55;
}

.home-page .home-promo__orbit {
  inset: auto -12% -28% 44%;
  width: min(72%, 30rem);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(167, 139, 250, 0.28);
  animation: home-promo-spin-rev 48s linear infinite;
}

.home-page .home-promo__layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: center;
}

.home-page .home-promo__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.75rem;
  order: 1;
}

.home-page .home-promo__visual {
  position: relative;
  order: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  z-index: 1;
}

.home-page .home-promo__visual-fx {
  position: absolute;
  inset: -8% -6%;
  z-index: 0;
  pointer-events: none;
}

.home-page .home-promo__ring--local-a,
.home-page .home-promo__ring--local-b {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid transparent;
  border-left-color: rgba(167, 139, 250, 0.55);
  border-bottom-color: rgba(129, 140, 248, 0.18);
  box-shadow: 0 0 22px rgba(124, 58, 237, 0.28);
}

.home-page .home-promo__ring--local-a {
  inset: 2% 4% 8% 8%;
  animation: home-promo-spin 20s linear infinite;
}

.home-page .home-promo__ring--local-b {
  inset: 14% 14% 18% 18%;
  border-width: 1px;
  border-left-color: rgba(196, 181, 253, 0.4);
  animation: home-promo-spin-rev 28s linear infinite;
  opacity: 0.7;
}

.home-page .home-promo__line {
  position: absolute;
  height: 1px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(196, 181, 253, 0.15) 18%,
    rgba(167, 139, 250, 0.75) 50%,
    rgba(196, 181, 253, 0.15) 82%,
    transparent 100%
  );
  box-shadow: 0 0 10px rgba(139, 92, 246, 0.45);
  opacity: 0.8;
}

.home-page .home-promo__line--1 {
  width: 68%;
  top: 18%;
  left: 16%;
  transform: rotate(-18deg);
  animation: home-promo-line 4.5s ease-in-out infinite;
}

.home-page .home-promo__line--2 {
  width: 54%;
  bottom: 22%;
  right: 10%;
  transform: rotate(14deg);
  animation: home-promo-line 5.2s ease-in-out infinite reverse;
}

.home-page .home-promo__img {
  position: relative;
  z-index: 1;
  width: min(100%, 28rem);
  height: auto;
  max-height: 18rem;
  object-fit: contain;
  background: transparent;
  filter: drop-shadow(0 18px 30px rgba(67, 56, 202, 0.28));
  animation: home-soft-float 4.2s ease-in-out infinite;
}

.home-page .home-promo__logo {
  height: 2.05rem;
  width: auto;
  max-width: 10rem;
  object-fit: contain;
  margin-bottom: 0.1rem;
}

.home-page .home-promo__eyebrow {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--promo-accent);
}

.home-page .home-promo__title {
  margin: 0;
  font-size: clamp(1.25rem, 4vw, 1.95rem);
  font-weight: 800;
  line-height: 1.55;
  letter-spacing: -0.02em;
  color: var(--promo-ink);
  max-width: 16ch;
}

.home-page .home-promo__features {
  list-style: none;
  margin: 0.25rem 0 0.1rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1rem;
  width: 100%;
}

.home-page .home-promo__features li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--promo-ink);
}

.home-page .home-promo__feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  border: 1.5px solid color-mix(in srgb, var(--promo-accent) 45%, transparent);
  background: color-mix(in srgb, var(--promo-accent) 12%, transparent);
  color: var(--promo-accent);
  flex-shrink: 0;
}

.home-page .home-promo__feature-icon i {
  font-size: 0.95rem;
  line-height: 1;
}

@keyframes home-promo-pulse {
  0%,
  100% {
    opacity: 0.7;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.08);
  }
}

@keyframes home-promo-spin {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

@keyframes home-promo-spin-rev {
  from {
    transform: rotate(360deg);
  }

  to {
    transform: rotate(0deg);
  }
}

@keyframes home-promo-line {
  0%,
  100% {
    opacity: 0.45;
    filter: brightness(0.95);
  }

  50% {
    opacity: 0.95;
    filter: brightness(1.25);
  }
}

@media (min-width: 768px) {
  .home-page .home-promo {
    padding: 1.45rem 1.35rem 1.45rem 1.1rem;
  }

  .home-page .home-promo__layout {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.95fr);
    gap: 0.75rem 1rem;
  }

  .home-page .home-promo__visual {
    order: 0;
  }

  .home-page .home-promo__copy {
    order: 0;
    align-items: flex-start;
    text-align: right;
    padding-inline-end: 0.35rem;
  }

  .home-page .home-promo__features {
    justify-content: flex-start;
    gap: 0.7rem 1.15rem;
  }

  .home-page .home-promo__img {
    width: min(100%, 34rem);
    max-height: none;
  }

  .home-page .home-promo__features li {
    font-size: 0.86rem;
  }

  .home-page .home-promo__title {
    max-width: 14ch;
  }
}

@media (min-width: 992px) {
  .home-page .home-promo {
    padding: 1.65rem 1.5rem 1.65rem 1.35rem;
    border-radius: 1.65rem;
  }

  .home-page .home-promo__title {
    font-size: 2.05rem;
  }

  .home-page .home-promo__logo {
    height: 2.25rem;
  }

  .home-page .home-promo__eyebrow {
    font-size: 0.92rem;
  }
}

/* ---- Steps ---- */
.home-page .home-section-title {
  margin: 0 0 var(--home-title-gap);
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.6;
  letter-spacing: -0.01em;
  color: #111827;
  text-align: center;
  text-wrap: balance;
}

@media (min-width: 768px) {
  .home-page .home-section-title {
    font-size: 1.15rem;
  }
}

.home-page .home-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
  height: auto;
  min-height: 0;
  align-content: start;
}

@media (min-width: 768px) {
  .home-page .home-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 992px) {
  .home-page .home-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-card-gap);
  }

  /* دقیقاً ۴ مرحله → ۲×۲ تا کارت آخر تنها نماند */
  .home-page .home-steps:has(> .home-step:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 576px) and (max-width: 767.98px) {
  .home-page .home-steps:has(> .home-step:nth-child(4):last-child) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.home-page .home-step {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: var(--home-card-pad);
  border-radius: 0.95rem;
  border: 1px solid #f3f4f6;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 10px -4px rgba(15, 23, 42, 0.1);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.home-page .home-step:hover {
  transform: translateY(-2px);
  border-color: #dbeafe;
  box-shadow: 0 8px 20px -8px rgba(37, 99, 235, 0.22);
}

.home-page .home-step__icon {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 0.65rem;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: linear-gradient(135deg, #ecfdf5, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.home-page .home-step--2 .home-step__icon {
  background: linear-gradient(135deg, #f0f9ff, #fff);
}

.home-page .home-step--3 .home-step__icon {
  background: linear-gradient(135deg, #f5f3ff, #fff);
}

.home-page .home-step--4 .home-step__icon {
  background: linear-gradient(135deg, #f0fdfa, #fff);
}

.home-page .home-step__icon i {
  font-size: 1.5rem;
  color: #059669;
  transition: transform 0.3s;
}

.home-page .home-step--2 .home-step__icon i {
  color: #0284c7;
}

.home-page .home-step--3 .home-step__icon i {
  color: #7c3aed;
}

.home-page .home-step--4 .home-step__icon i {
  color: #0d9488;
}

.home-page .home-step:hover .home-step__icon i {
  transform: scale(1.1);
}

.home-page .home-step__badge {
  position: absolute;
  top: 0.2rem;
  left: 0.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(to left, #10b981, #14b8a6);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.home-page .home-step--2 .home-step__badge {
  background: linear-gradient(to left, #0ea5e9, #2563eb);
}

.home-page .home-step--3 .home-step__badge {
  background: linear-gradient(to left, #8b5cf6, #4f46e5);
}

.home-page .home-step--4 .home-step__badge {
  background: linear-gradient(to left, #14b8a6, #0d9488);
}

.home-page .home-step__body {
  min-width: 0;
  flex: 1;
  text-align: right;
}

.home-page .home-step__body h3 {
  margin: 0;
  font-size: 0.875rem;
  font-weight: 800;
  line-height: 1.4;
  color: #111827;
  text-align: right;
  transition: color 0.2s;
}

.home-page .home-step:hover .home-step__body h3 {
  color: #1d4ed8;
}

.home-page .home-step__body p {
  margin: 0.35rem 0 0;
  font-size: 0.75rem;
  line-height: 1.6;
  color: #6b7280;
  text-align: right;
}

/* ---- Features checklist ---- */
.home-page .home-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--home-card-gap);
  height: auto;
  min-height: min-content;
  align-content: start;
  overflow: visible;
}

.home-page .home-features-section,
.home-page .home-promo-section,
.home-page .home-open-section {
  background: transparent !important;
  background-color: transparent !important;
}

.home-page .home-features-section .home-panel__inner,
.home-page .home-promo-section .home-panel__inner,
.home-page .home-open-section .home-panel__inner {
  padding-block: 0;
}

.home-page .home-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  padding: var(--home-card-pad);
  border-radius: 1rem;
  border: 1px solid #f3f4f6;
  background: #fff;
  box-shadow: 0 2px 12px -4px rgba(15, 23, 42, 0.1);
  height: auto;
  min-height: 0;
  overflow: visible;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .home-page .home-features {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 992px) {
  .home-page .home-features {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--home-card-gap);
  }

  .home-page .home-feature {
    flex-direction: column;
    align-items: flex-start;
    min-height: 100%;
    padding: var(--home-card-pad);
  }
}

.home-page .home-feature__check {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-top: 0.1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: linear-gradient(135deg, #10b981, #14b8a6);
  box-shadow: 0 6px 14px -4px rgba(16, 185, 129, 0.5);
  font-size: 1.25rem;
}

.home-page .home-feature p {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.6;
  color: #1f2937;
  text-align: right;
}

/* ---- Downstream sections on catalog bg ---- */
.home-page .home-stack > section:not(.home-hero):not(.glass-torn-section),
.home-page .home-stack > .section:not(.home-hero):not(.glass-torn-section) {
  margin: 0;
  padding: var(--home-section-pad-y) 0;
  background: transparent;
  background-color: transparent;
  width: 100%;
}

.home-page .home-stack>.section.home-soft-card,
.home-page .home-stack>.glass-torn-section.home-panel:not(.home-hero) {
  padding: 0;
  overflow: visible;
}

.home-page .home-stack>.glass-torn-section.home-panel.home-hero {
  padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
}

.home-page .home-soft-card {
  overflow: visible;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-inline: 0;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--home-card-shadow);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

.home-page .home-soft-card__accent {
  height: 3px;
  background: linear-gradient(to left, #818cf8, var(--accent-color, #4154f1), #312e81);
}

.home-page .home-soft-card__body {
  padding-block: var(--home-section-pad-y);
}

.home-page .home-stack .section-title {
  padding-bottom: var(--home-title-gap);
}

.home-page .home-stack .section-title h2 {
  font-size: 0.75rem;
  padding: 0.35rem 0.85rem;
  letter-spacing: 0.02em;
  text-transform: none;
}

.home-page .home-stack .section-title p {
  margin-top: 0.55rem;
  font-size: 1.05rem;
  font-weight: 800;
  line-height: 1.55;
}

.home-page .home-stack .section-title h2,
.home-page .home-stack .section-title p {
  text-align: center;
}

@media (min-width: 768px) {
  .home-page .home-stack .section-title p {
    font-size: 1.15rem;
  }
}

@media (min-width: 1200px) {
  .home-page .home-stack .section-title p {
    font-size: 1.25rem;
  }
}

.home-page .stats .stats-item {
  gap: 0.85rem;
  min-height: 100%;
  padding: var(--home-card-pad);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 6px 20px -10px rgba(28, 18, 90, 0.16);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transition: transform 0.2s, box-shadow 0.2s;
  box-sizing: border-box;
}

.home-page .stats .stats-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -10px rgba(28, 18, 90, 0.22);
}

.home-page .stats .stats-item i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  margin-left: 0;
  border-radius: 0.85rem;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--accent-color, #4154f1) 10%, #fff);
}

.home-page .stats .stats-item .bi-journal-richtext {
  background: rgba(238, 108, 32, 0.1);
}

.home-page .stats .stats-item .bi-headset {
  background: rgba(21, 190, 86, 0.1);
}

.home-page .stats .stats-item .bi-people {
  background: rgba(187, 8, 82, 0.1);
}

.home-page .stats .stats-item .bi-emoji-smile {
  background: rgba(65, 84, 241, 0.1);
}

.home-page .stats .stats-item p {
  margin: 0.15rem 0 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

.home-page .stats .stats-item span,
.home-page .stats .stats-item .purecounter {
  font-size: clamp(1.5rem, 4.5vw, 2rem);
  line-height: 1.2;
}

.home-page .stats .container {
  max-width: var(--home-content-max, 960px);
  margin-inline: auto;
  padding-inline: 1rem;
}

@media (max-width: 767.98px) {
  .home-page .stats .row>[class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .home-page .stats .row {
    --bs-gutter-x: 0.75rem;
    --bs-gutter-y: 0.75rem;
  }

  .home-page .stats .stats-item {
    padding: 1rem 1.05rem;
    gap: 1rem;
    border-radius: 0.9rem;
  }

  .home-page .stats .stats-item i {
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.2rem;
    border-radius: 0.75rem;
  }

  .home-page .stats .stats-item span,
  .home-page .stats .stats-item .purecounter {
    font-size: 1.65rem;
  }

  .home-page .stats .stats-item p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
}

.home-page .faq .row {
  --bs-gutter-x: 1.25rem;
  --bs-gutter-y: 1.25rem;
}

.home-page .faq .faq-container {
  display: flex;
  flex-direction: column;
  gap: var(--home-card-gap);
  padding: 0;
}

.home-page .faq .faq-item {
  border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(2px);
  box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.12);
}

.home-page .faq .faq-container .faq-item {
  margin: 0;
  padding: var(--home-card-pad);
  border-bottom: 0;
  align-items: flex-start;
}

.home-page .faq .faq-container .faq-item h3,
.home-page .faq .faq-container .faq-item .faq-question {
  font-size: 0.92rem;
  line-height: 1.7;
  padding-inline-end: 0.35rem;
}

.home-page .faq .faq-container .faq-item .faq-content {
  padding-top: 0.65rem;
}

.home-page .faq .faq-container .faq-item .faq-toggle {
  margin-top: 0.15rem;
}

/* Contact: بدون fade-up — باعث پرش «از پایین» می‌شد */
.home-page .home-contact .home-panel__inner[data-aos],
.home-page .home-panel--flush-footer > .home-panel__inner[data-aos] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
  pointer-events: auto !important;
}

/* ---- Contact ---- */
.home-page .home-contact .section-title {
  padding-bottom: var(--home-title-gap);
}

.home-page .home-contact__layout {
  display: grid;
  gap: var(--home-card-gap);
}

.home-page .home-contact__infos {
  display: grid;
  gap: var(--home-card-gap);
}

.home-page .home-contact__card {
  display: flex;
  align-items: flex-start;
  gap: 0.9rem;
  margin: 0;
  padding: var(--home-card-pad);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 6px 18px -10px rgba(28, 18, 90, 0.16);
  backdrop-filter: blur(2px);
  height: 100%;
  box-sizing: border-box;
}

.home-page .home-contact__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 0.85rem;
  color: #4154f1;
  background: rgba(65, 84, 241, 0.1);
}

.home-page .home-contact__icon i {
  font-size: 1.25rem;
  line-height: 1;
  color: inherit;
}

.home-page .home-contact__icon--phone {
  color: #0ea5e9;
  background: rgba(14, 165, 233, 0.12);
}

.home-page .home-contact__icon--clock {
  color: #10b981;
  background: rgba(16, 185, 129, 0.12);
}

.home-page .home-contact__card-body {
  min-width: 0;
  flex: 1;
  text-align: right;
}

.home-page .home-contact__card h3 {
  margin: 0 0 0.35rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  color: var(--heading-color, #012970);
  text-align: right;
}

.home-page .home-contact__card p {
  margin: 0;
  font-size: 0.82rem;
  line-height: 1.65;
  color: #4b5563;
  text-align: right;
}

.home-page .home-contact__ltr {
  direction: ltr;
  unicode-bidi: isolate;
  text-align: right;
}

.home-page .home-contact__ltr a {
  color: inherit;
  text-decoration: none;
  font-weight: 600;
}

.home-page .home-contact__ltr a:hover {
  color: var(--accent-color, #4154f1);
}

.home-page .home-contact__form {
  margin: 0;
  height: auto;
  padding: 1.15rem 1.15rem 1.25rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 24px -12px rgba(28, 18, 90, 0.18);
  backdrop-filter: blur(2px);
}

.home-page .home-contact__form-title {
  margin: 0 0 1rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--heading-color, #012970);
  text-align: right;
}

.home-page .home-contact__form .form-control {
  min-height: 2.75rem;
  border-radius: 0.75rem;
  border-color: #e5e7eb;
  background: #fff;
}

.home-page .home-contact__form textarea.form-control {
  min-height: 8rem;
  resize: vertical;
}

.home-page .home-contact__form .form-control:focus {
  border-color: color-mix(in srgb, var(--accent-color, #4154f1) 45%, #e5e7eb);
  box-shadow: 0 0 0 3px rgba(65, 84, 241, 0.12);
}

.home-page .home-contact__actions {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.5rem;
}

.home-page .home-contact__form button[type="submit"] {
  width: 100%;
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1.25rem;
  font-weight: 700;
  color: #fff;
  background: var(--accent-color, #4154f1);
  box-shadow: 0 10px 22px -10px rgba(65, 84, 241, 0.55);
  transition: background 0.2s, transform 0.2s;
}

.home-page .home-contact__form button[type="submit"]:hover {
  background: color-mix(in srgb, var(--accent-color, #4154f1), #000 8%);
  transform: translateY(-1px);
}

@media (min-width: 576px) {
  .home-page .home-contact__infos {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 768px) {
  .home-page .home-contact__infos {
    grid-template-columns: 1fr;
    gap: var(--home-card-gap);
  }

  .home-page .home-contact__card {
    flex-direction: row;
    align-items: flex-start;
    padding: var(--home-card-pad);
  }

  .home-page .home-contact__form {
    padding: 1.4rem 1.45rem 1.55rem;
  }

  .home-page .home-contact__actions {
    align-items: flex-end;
  }

  .home-page .home-contact__form button[type="submit"] {
    width: auto;
    min-width: 10rem;
  }
}

@media (min-width: 992px) {
  .home-page .home-contact__layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.2fr);
    gap: calc(var(--home-card-gap) + 0.2rem);
    align-items: stretch;
  }

  .home-page .home-contact__infos {
    grid-template-columns: 1fr;
    gap: var(--home-card-gap);
  }

  .home-page .home-contact__card {
    flex-direction: row;
    align-items: flex-start;
  }

  .home-page .home-contact__form {
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}

[data-theme="dark"] .home-page .home-contact__card,
[data-theme="dark"] .home-page .home-contact__form {
  background: rgba(18, 24, 34, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

.home-page .testimonials,
.home-page .clients {
  padding-block: var(--home-section-pad-y);
}

@keyframes home-hero-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-14px);
  }
}

@keyframes home-soft-float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-7px);
  }
}

@keyframes home-soft-pulse {

  0%,
  100% {
    opacity: 0.55;
    transform: translateX(-50%) scale(1);
  }

  50% {
    opacity: 0.9;
    transform: translateX(-50%) scale(1.06);
  }
}

.home-page .home-hero__visual-glow {
  transform: none;
  animation-name: home-soft-pulse-local;
}

@keyframes home-soft-pulse-local {

  0%,
  100% {
    opacity: 0.55;
    transform: scale(1);
  }

  50% {
    opacity: 0.9;
    transform: scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {

  .home-page .home-hero__img,
  .home-page .home-promo__img,
  .home-page .home-hero__orb,
  .home-page .home-hero__visual-glow,
  .home-page .home-promo__glow,
  .home-page .home-promo__ring,
  .home-page .home-promo__orbit,
  .home-page .home-promo__line {
    animation: none;
  }
}

/* Dark mode */
[data-theme="dark"] .home-page .catalog-fixed-background.catalog-bg--home {
  background:
    radial-gradient(ellipse 32rem 32rem at 12% 6%, rgba(99, 102, 241, 0.28), transparent 72%),
    radial-gradient(ellipse 28rem 28rem at 88% 12%, rgba(56, 189, 248, 0.18), transparent 72%),
    linear-gradient(180deg, #0b1220 0%, #111827 50%, #0f172a 100%);
}

[data-theme="dark"] .home-page .glass-torn-section.home-panel {
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .home-page .home-soft-card {
  background: rgba(18, 24, 34, 0.88);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .home-page .home-hero__brand {
  color: #a5b4fc;
}

[data-theme="dark"] .home-page .home-hero__title,
[data-theme="dark"] .home-page .home-section-title,
[data-theme="dark"] .home-page .home-promo__title,
[data-theme="dark"] .home-page .home-step__body h3,
[data-theme="dark"] .home-page .home-feature p,
[data-theme="dark"] .home-page .home-login-cta__title,
[data-theme="dark"] .home-page .home-contact__card h3,
[data-theme="dark"] .home-page .home-contact__form-title,
[data-theme="dark"] .home-page .home-stack .section-title h2 {
  color: #f3f4f6;
}

[data-theme="dark"] .home-page .home-hero__desc,
[data-theme="dark"] .home-page .home-step__body p,
[data-theme="dark"] .home-page .home-login-cta__desc,
[data-theme="dark"] .home-page .home-contact__card p,
[data-theme="dark"] .home-page .home-stack .section-title p,
[data-theme="dark"] .home-page .home-panel__inner>p {
  color: #9ca3af;
}

[data-theme="dark"] .home-page .home-step,
[data-theme="dark"] .home-page .home-feature,
[data-theme="dark"] .home-page .home-contact__card,
[data-theme="dark"] .home-page .home-contact__form {
  background: rgba(18, 24, 34, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .home-page .home-promo {
  --promo-bg-1: #07081a;
  --promo-bg-2: #0d0f28;
  --promo-bg-3: #12143a;
  --promo-ink: #eef0ff;
  --promo-muted: #b7b4ea;
  --promo-accent: #c4b5fd;
  --promo-cta-bg: #c7c2ff;
  --promo-cta-ink: #1a1640;
  --promo-border: rgba(167, 139, 250, 0.28);
  --promo-glow: rgba(124, 58, 237, 0.38);
  border-color: var(--promo-border);
  background:
    radial-gradient(ellipse 58% 72% at 88% 50%, var(--promo-glow), transparent 68%),
    radial-gradient(ellipse 36% 50% at 12% 18%, rgba(99, 102, 241, 0.22), transparent 64%),
    linear-gradient(135deg, var(--promo-bg-1) 0%, var(--promo-bg-2) 48%, var(--promo-bg-3) 100%);
  box-shadow: 0 22px 48px -24px rgba(0, 0, 0, 0.75);
}

[data-theme="dark"] .home-page .home-promo__eyebrow {
  color: var(--promo-accent);
}

[data-theme="dark"] .home-page .home-promo__title {
  color: var(--promo-ink);
}

[data-theme="dark"] .home-page .home-promo__features li {
  color: #e8e7ff;
}

[data-theme="dark"] .home-page .home-promo__feature-icon {
  border-color: rgba(196, 181, 253, 0.45);
  background: rgba(196, 181, 253, 0.1);
  color: #ddd6fe;
}

[data-theme="dark"] .home-page .home-promo__ring {
  border-color: transparent;
}

[data-theme="dark"] .home-page .home-promo__ring--a {
  border-top-color: rgba(196, 181, 253, 0.55);
  box-shadow:
    0 0 24px rgba(139, 92, 246, 0.35),
    inset 0 0 20px rgba(124, 58, 237, 0.12);
}

[data-theme="dark"] .home-page .home-promo__ring--b {
  border-top-color: rgba(167, 139, 250, 0.5);
}

[data-theme="dark"] .home-page .home-promo__ring--c {
  border-top-color: rgba(221, 214, 254, 0.42);
}

[data-theme="dark"] .home-page .home-promo__orbit {
  border-color: rgba(167, 139, 250, 0.35);
}

[data-theme="dark"] .home-page .home-promo__ring--local-a,
[data-theme="dark"] .home-page .home-promo__ring--local-b {
  border-left-color: rgba(196, 181, 253, 0.6);
  box-shadow: 0 0 28px rgba(139, 92, 246, 0.4);
}

[data-theme="dark"] .home-page .home-promo__line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(167, 139, 250, 0.12) 18%,
    rgba(196, 181, 253, 0.9) 50%,
    rgba(167, 139, 250, 0.12) 82%,
    transparent 100%
  );
  box-shadow: 0 0 14px rgba(167, 139, 250, 0.55);
}

[data-theme="dark"] .home-page .home-promo__glow {
  background: radial-gradient(circle, rgba(139, 92, 246, 0.5), transparent 70%);
}

[data-theme="dark"] .home-page .home-step:hover,
[data-theme="dark"] .home-page .home-feature:hover {
  border-color: rgba(165, 180, 252, 0.35);
}

[data-theme="dark"] .home-page .home-step__icon {
  border-color: rgba(255, 255, 255, 0.12);
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(30, 41, 59, 0.9));
  box-shadow: none;
}

[data-theme="dark"] .home-page .home-step--2 .home-step__icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.18), rgba(30, 41, 59, 0.9));
}

[data-theme="dark"] .home-page .home-step--3 .home-step__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.18), rgba(30, 41, 59, 0.9));
}

[data-theme="dark"] .home-page .home-step--4 .home-step__icon {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.18), rgba(30, 41, 59, 0.9));
}

[data-theme="dark"] .home-page .stats .stats-item {
  background: rgba(18, 24, 34, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .home-page .faq .faq-item,
[data-theme="dark"] .home-page .faq .faq-container .faq-item {
  background: rgba(18, 24, 34, 0.78);
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: none;
}

[data-theme="dark"] .home-page .home-contact__form .form-control {
  background: #1a2230;
  border-color: rgba(255, 255, 255, 0.12);
  color: #e5e7eb;
}

[data-theme="dark"] .home-page .home-contact__form .form-control::placeholder {
  color: #6b7280;
}

[data-theme="dark"] .home-page .home-contact__form .form-control:focus {
  background: #1a2230;
  border-color: color-mix(in srgb, var(--accent-color, #4154f1) 45%, transparent);
  color: #f3f4f6;
}

[data-theme="dark"] .home-page .home-contact__ltr a {
  color: #a5b4fc;
}

[data-theme="dark"] .home-page .home-login-cta__icon {
  background: linear-gradient(135deg, rgba(65, 84, 241, 0.28), rgba(56, 189, 248, 0.16));
  box-shadow: 0 8px 20px -10px rgba(65, 84, 241, 0.35);
}

[data-theme="dark"] .home-page .comment-form .home-contact__form {
  background: transparent;
  border: 0;
  box-shadow: none;
}

[data-theme="dark"] .home-page .home-hero__glow {
  background: radial-gradient(ellipse at top, rgba(99, 102, 241, 0.22) 0%, rgba(56, 189, 248, 0.08) 45%, transparent 72%);
}

[data-theme="dark"] .home-page .home-hero__orb {
  background: rgba(99, 102, 241, 0.18);
}

[data-theme="dark"] .home-page .stats .stats-item i,
[data-theme="dark"] .home-page .stats .stats-item .bi-journal-richtext,
[data-theme="dark"] .home-page .stats .stats-item .bi-headset,
[data-theme="dark"] .home-page .stats .stats-item .bi-people,
[data-theme="dark"] .home-page .stats .stats-item .bi-emoji-smile {
  background: rgba(123, 156, 255, 0.16);
}

[data-theme="dark"] .home-page .stats .stats-item span,
[data-theme="dark"] .home-page .stats .stats-item .purecounter {
  color: #f3f4f6;
}

[data-theme="dark"] .home-page .stats .stats-item p {
  color: #9ca3af;
}

[data-theme="dark"] .home-page .stats,
[data-theme="dark"] .home-page .testimonials,
[data-theme="dark"] .home-page .clients {
  background: transparent;
}

[data-theme="dark"] .home-page .home-feature__check {
  box-shadow: 0 6px 14px -4px rgba(16, 185, 129, 0.35);
}

/* Hero two-column — must come AFTER base .home-hero__content { display:flex } */
@media (min-width: 900px) {

  .home-page .home-hero,
  .home-page .home-stack>.glass-torn-section.home-panel.home-hero {
    padding: var(--home-hero-pad-top) 0 var(--home-section-pad-y);
  }

  .home-page .home-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(11rem, 0.8fr);
    align-items: center;
    column-gap: 1.5rem;
    row-gap: 1.1rem;
    max-width: var(--home-content-max);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--home-inline);
    box-sizing: border-box;
  }

  .home-page .home-hero__copy {
    align-items: flex-start;
    text-align: right;
    order: 1;
    width: 100%;
    min-width: 0;
  }

  .home-page .home-hero__visual {
    order: 2;
    margin-bottom: 0;
    justify-self: center;
  }

  .home-page .home-hero__brand,
  .home-page .home-hero__title,
  .home-page .home-hero__desc,
  .home-page .home-hero h1.home-hero__title,
  .home-page .home-hero h2.home-hero__title {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    text-align: right !important;
  }

  .home-page .home-hero__title {
    font-size: clamp(1.3rem, 2.1vw, 1.6rem);
    line-height: 1.5;
  }

  .home-page .home-hero__desc {
    max-width: 32rem;
    margin-inline: 0;
    margin-inline-end: auto;
    margin-top: 0.65rem;
    font-size: 0.92rem;
    text-align: right;
  }

  .home-page .home-hero__cta {
    justify-content: flex-start !important;
    margin-top: 1.05rem;
    margin-bottom: 0.25rem;
  }

  .home-page .home-hero__img {
    width: 12.5rem;
  }

  .home-page .home-hero--compact {
    padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
  }

  .home-page .home-hero--compact .home-hero__content {
    grid-template-columns: minmax(10rem, 0.75fr) minmax(0, 1.25fr);
  }

  .home-page .home-hero--compact .home-hero__visual {
    order: 1;
  }

  .home-page .home-hero--compact .home-hero__copy {
    order: 2;
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 11rem;
  }

  .home-page #org-credit.home-hero--compact .home-hero__visual {
    order: 2;
  }

  .home-page #org-credit.home-hero--compact .home-hero__copy {
    order: 1;
  }
}

@media (min-width: 992px) {

  .home-page .home-hero,
  .home-page .home-stack>.glass-torn-section.home-panel.home-hero {
    padding: var(--home-hero-pad-top) 0 var(--home-section-pad-y);
  }

  .home-page .home-hero__content {
    column-gap: 2rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(12rem, 0.8fr);
  }

  .home-page .home-hero__title {
    font-size: clamp(1.35rem, 2vw, 1.65rem);
  }

  .home-page .home-hero__desc {
    font-size: 0.95rem;
    margin-top: 0.7rem;
  }

  .home-page .home-hero__cta {
    margin-top: 1.15rem;
  }

  .home-page .home-hero__img {
    width: 14rem;
  }

  .home-page .home-hero--compact {
    padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
  }

  .home-page .home-hero--compact .home-hero__content {
    grid-template-columns: minmax(11rem, 0.75fr) minmax(0, 1.25fr);
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 12rem;
  }
}

/* ---- Large monitors: wider canvas + roomier type ---- */
@media (min-width: 1200px) {
  .home-page {
    --home-gap: 1.5rem;
    --home-inline: 2rem;
    --home-section-pad-y: 1.85rem;
    --home-card-gap: 1rem;
    --home-card-pad: 1.2rem 1.25rem;
    --home-title-gap: 1rem;
  }

  .home-page .home-stack {
    --home-content-max: 1140px;
    gap: var(--home-gap);
    padding-top: 0;
    padding-bottom: 0.75rem;
  }

  .home-page .main.home-main {
    padding-bottom: 2.25rem;
  }

  .home-page .home-panel__inner,
  .home-page .home-hero__content,
  .home-page .home-soft-card__body,
  .home-page .home-stack>.section>.container {
    max-width: var(--home-content-max);
    padding-inline: var(--home-inline);
  }

  .home-page .home-panel__inner {
    padding-block: var(--home-section-pad-y);
  }

  .home-page .home-section-title {
    margin-bottom: var(--home-title-gap);
    font-size: 1.25rem;
  }

  .home-page .home-hero,
  .home-page .home-stack>.glass-torn-section.home-panel.home-hero {
    padding: var(--home-hero-pad-top) 0 var(--home-section-pad-y);
  }

  .home-page .home-hero__content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(14rem, 0.85fr);
    align-items: center;
    column-gap: 2.75rem;
    row-gap: 1.25rem;
    max-width: var(--home-content-max);
    width: 100%;
    margin-inline: auto;
    padding-inline: var(--home-inline);
  }

  .home-page .home-hero__title {
    font-size: clamp(1.45rem, 1.8vw, 1.85rem);
    text-align: right !important;
  }

  .home-page .home-hero__desc {
    max-width: 36rem;
    margin-inline: 0;
    margin-inline-end: auto;
    font-size: 1rem;
    margin-top: 0.75rem;
    text-align: right;
  }

  .home-page .home-hero__cta {
    justify-content: flex-start !important;
    margin-top: 1.25rem;
    margin-bottom: 0.35rem;
  }

  .home-page .home-hero__img {
    width: 16rem;
  }

  .home-page .home-hero--compact {
    padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
  }

  .home-page .home-hero--compact .home-hero__content {
    grid-template-columns: minmax(13rem, 0.8fr) minmax(0, 1.2fr);
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 13.5rem;
  }

  .home-page .home-promo {
    padding: 1.65rem 2rem 1.65rem 1.4rem;
  }

  .home-page .home-promo__title {
    font-size: 2.15rem;
  }

  .home-page .home-promo__img {
    width: min(100%, 28rem);
  }

  .home-page .home-steps {
    gap: var(--home-card-gap);
  }

  .home-page .home-step {
    flex-direction: column;
    align-items: flex-start;
    padding: var(--home-card-pad);
    border-radius: 1.1rem;
    min-height: 0;
    height: auto;
  }

  .home-page .home-step__body h3 {
    font-size: 1rem;
  }

  .home-page .home-step__body p {
    font-size: 0.85rem;
    line-height: 1.7;
  }

  .home-page .home-feature p {
    font-size: 0.95rem;
  }

  .home-page .faq .row {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 1.5rem;
  }

  .home-page .home-contact__layout {
    gap: calc(var(--home-card-gap) + 0.35rem);
  }

  .home-page .testimonials,
  .home-page .clients {
    padding-block: var(--home-section-pad-y);
  }
}

@media (min-width: 1400px) {
  .home-page {
    --home-gap: 1.5rem;
    --home-inline: 2.5rem;
    --home-section-pad-y: 2rem;
    --home-card-gap: 1.1rem;
    --home-card-pad: 1.25rem 1.3rem;
    --home-title-gap: 1.05rem;
  }

  .home-page .home-stack {
    --home-content-max: 1280px;
    gap: var(--home-gap);
  }

  .home-page .home-hero__content {
    column-gap: 3.25rem;
    padding-inline: var(--home-inline);
  }

  .home-page .home-hero__img {
    width: 17.5rem;
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 14.5rem;
  }

  .home-page .home-hero__title {
    font-size: 1.9rem;
  }

  .home-page .home-panel__inner {
    padding-block: var(--home-section-pad-y);
    padding-inline: var(--home-inline);
  }
}

/* Organization comment form inside glass panel */
.home-page .comment-form .home-contact__form {
  background: transparent;
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
  padding: clamp(18px, 3vw, 32px);
}

/* Organization FAQ cards */
.home-page .home-org-cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--home-card-gap);
}

@media (min-width: 576px) {
  .home-page .home-org-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 768px) {
  .home-page .home-org-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1200px) {
  .home-page .home-org-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.home-page .home-org-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  height: 100%;
  margin: 0;
  padding: 1.15rem 1.1rem 1.2rem;
  overflow: hidden;
  border-radius: 1.05rem;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.92) 100%);
  box-shadow: 0 4px 18px -12px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-page .home-org-card::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 3px;
  background: linear-gradient(to left, #4338ca, #6366f1, #93c5fd);
  opacity: 0.85;
}

.home-page .home-org-card--2::before {
  background: linear-gradient(to left, #0284c7, #38bdf8, #bae6fd);
}

.home-page .home-org-card--3::before {
  background: linear-gradient(to left, #0d9488, #2dd4bf, #99f6e4);
}

.home-page .home-org-card--4::before {
  background: linear-gradient(to left, #7c3aed, #a78bfa, #ddd6fe);
}

.home-page .home-org-card--5::before {
  background: linear-gradient(to left, #db2777, #f472b6, #fbcfe8);
}

.home-page .home-org-card--6::before {
  background: linear-gradient(to left, #ea580c, #fb923c, #fed7aa);
}

.home-page .home-org-card:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px -16px rgba(67, 56, 202, 0.28);
}

.home-page .home-org-card__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.15rem;
  height: 3.15rem;
  border-radius: 0.85rem;
  color: #4338ca;
  border: 1px solid rgba(255, 255, 255, 0.7);
  background: linear-gradient(135deg, #eef2ff, #fff);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

.home-page .home-org-card__icon i {
  font-size: 1.35rem;
  line-height: 1;
  transition: transform 0.25s ease;
}

.home-page .home-org-card:hover .home-org-card__icon i {
  transform: scale(1.08);
}

.home-page .home-org-card--2 .home-org-card__icon {
  color: #0284c7;
  background: linear-gradient(135deg, #f0f9ff, #fff);
}

.home-page .home-org-card--3 .home-org-card__icon {
  color: #0d9488;
  background: linear-gradient(135deg, #f0fdfa, #fff);
}

.home-page .home-org-card--4 .home-org-card__icon {
  color: #7c3aed;
  background: linear-gradient(135deg, #f5f3ff, #fff);
}

.home-page .home-org-card--5 .home-org-card__icon {
  color: #db2777;
  background: linear-gradient(135deg, #fdf2f8, #fff);
}

.home-page .home-org-card--6 .home-org-card__icon {
  color: #ea580c;
  background: linear-gradient(135deg, #fff7ed, #fff);
}

.home-page .home-org-card__body {
  min-width: 0;
  flex: 1;
  text-align: right;
}

.home-page .home-org-card__body h3 {
  margin: 0;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.55;
  color: #111827;
}

.home-page .home-org-card__body p {
  margin: 0.5rem 0 0;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.75;
  color: #6b7280;
}

@media (min-width: 992px) {
  .home-page .home-org-card {
    padding: 1.3rem 1.25rem 1.35rem;
  }

  .home-page .home-org-card__body h3 {
    font-size: 1rem;
  }

  .home-page .home-org-card__body p {
    font-size: 0.86rem;
  }
}

[data-theme="dark"] .home-page .home-org-card {
  background: linear-gradient(165deg, rgba(24, 30, 42, 0.92), rgba(15, 20, 30, 0.88));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .home-page .home-org-card__icon {
  border-color: rgba(255, 255, 255, 0.08);
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.22), rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .home-page .home-org-card--2 .home-org-card__icon {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.2), rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .home-page .home-org-card--3 .home-org-card__icon {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.2), rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .home-page .home-org-card--4 .home-org-card__icon {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.22), rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .home-page .home-org-card--5 .home-org-card__icon {
  background: linear-gradient(135deg, rgba(236, 72, 153, 0.2), rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .home-page .home-org-card--6 .home-org-card__icon {
  background: linear-gradient(135deg, rgba(249, 115, 22, 0.2), rgba(255, 255, 255, 0.04));
}

[data-theme="dark"] .home-page .home-org-card__body h3 {
  color: #f3f4f6;
}

[data-theme="dark"] .home-page .home-org-card__body p {
  color: #9ca3af;
}

[data-theme="dark"] .home-page .home-org-card:hover {
  border-color: rgba(165, 180, 252, 0.35);
  box-shadow: 0 16px 32px -18px rgba(99, 102, 241, 0.4);
}

/* Partner organizations grid */
.home-page .home-section-desc {
  margin: -0.15rem auto 1.15rem;
  max-width: 36rem;
  text-align: center;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.75;
  color: #6b7280;
  text-wrap: pretty;
}

.home-page .home-orgs-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}

@media (min-width: 576px) {
  .home-page .home-orgs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

@media (min-width: 992px) {
  .home-page .home-orgs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }
}

.home-page .home-orgs-grid__item {
  min-width: 0;
  height: 100%;
}

.home-page .home-orgs-grid .org-logo-tile {
  --vendor-logo-size: 4.75rem;
  height: 100%;
}

.home-page .home-orgs-grid .vendor-logo-tile__link {
  gap: 0.15rem;
  padding: 1rem 0.7rem 0.85rem;
  border-radius: 1.05rem;
  border: 1px solid rgba(226, 232, 240, 0.95);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.94) 100%);
  box-shadow: 0 4px 16px -12px rgba(15, 23, 42, 0.16);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-page .home-orgs-grid .vendor-logo-tile__link:hover {
  transform: translateY(-3px);
  border-color: #c7d2fe;
  box-shadow: 0 14px 28px -16px rgba(67, 56, 202, 0.26);
}

.home-page .home-orgs-grid .vendor-logo-tile__media {
  border-radius: 0.95rem;
  border: 1px solid rgba(226, 232, 240, 0.85);
  background: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.home-page .home-orgs-grid .vendor-logo-tile__title {
  margin-top: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.45;
  color: #111827;
}

.home-page .home-orgs-grid .media-fallback--organization {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  color: #6366f1;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
}

.home-page .home-orgs-grid .media-fallback--organization .bi {
  font-size: 1.85rem;
}

@media (min-width: 768px) {
  .home-page .home-orgs-grid .org-logo-tile {
    --vendor-logo-size: 5.5rem;
  }

  .home-page .home-orgs-grid .vendor-logo-tile__link {
    padding: 1.15rem 0.85rem 1rem;
  }

  .home-page .home-orgs-grid .vendor-logo-tile__title {
    font-size: 0.84rem;
  }
}

[data-theme="dark"] .home-page .home-section-desc {
  color: #9ca3af;
}

[data-theme="dark"] .home-page .home-orgs-grid .vendor-logo-tile__link {
  background: linear-gradient(165deg, rgba(24, 30, 42, 0.92), rgba(15, 20, 30, 0.88));
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 22px -14px rgba(0, 0, 0, 0.55);
}

[data-theme="dark"] .home-page .home-orgs-grid .vendor-logo-tile__link:hover {
  border-color: rgba(165, 180, 252, 0.35);
  box-shadow: 0 16px 32px -18px rgba(99, 102, 241, 0.4);
}

[data-theme="dark"] .home-page .home-orgs-grid .vendor-logo-tile__media {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .home-page .home-orgs-grid .vendor-logo-tile__title {
  color: #f3f4f6;
}

[data-theme="dark"] .home-page .home-orgs-grid .media-fallback--organization {
  color: #a5b4fc;
  background: linear-gradient(135deg, rgba(67, 56, 202, 0.22), rgba(255, 255, 255, 0.04));
}

/* Customers login CTA */
.home-page .home-login-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 28rem;
  margin-inline: auto;
  padding: 0.5rem 0.25rem 0.75rem;
}

.home-page .home-login-cta__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3.5rem;
  height: 3.5rem;
  margin-bottom: 1rem;
  border-radius: 1rem;
  color: var(--accent-color, #4154f1);
  background: linear-gradient(135deg, rgba(65, 84, 241, 0.14), rgba(56, 189, 248, 0.12));
  box-shadow: 0 8px 20px -10px rgba(65, 84, 241, 0.45);
}

.home-page .home-login-cta__icon i {
  font-size: 1.75rem;
  line-height: 1;
}

.home-page .home-login-cta__title {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
  line-height: 1.5;
  color: var(--heading-color, #012970);
  text-align: center;
}

.home-page .home-login-cta__desc {
  margin: 0.65rem 0 0;
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.75;
  color: #4b5563;
  text-align: center;
  text-wrap: pretty;
}

.home-page .home-login-cta__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.35rem;
  min-width: 12rem;
  padding: 0.9rem 1.5rem;
  border-radius: 0.9rem;
  border: 0;
  color: #fff;
  background: var(--accent-color, #4154f1);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 12px 28px -12px rgba(65, 84, 241, 0.55);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.home-page .home-login-cta__btn i {
  font-size: 1.1rem;
  transition: transform 0.2s;
}

.home-page .home-login-cta__btn:hover {
  color: #fff;
  background: color-mix(in srgb, var(--accent-color, #4154f1), #000 8%);
  transform: translateY(-2px);
  box-shadow: 0 14px 30px -12px rgba(65, 84, 241, 0.6);
}

.home-page .home-login-cta__btn:hover i {
  transform: translateX(3px);
}

@media (min-width: 768px) {
  .home-page .home-login-cta {
    max-width: 32rem;
    padding-block: 0.75rem 1rem;
  }

  .home-page .home-login-cta__title {
    font-size: 1.4rem;
  }

  .home-page .home-login-cta__desc {
    font-size: 1rem;
  }
}

/* ---- Responsive polish: mobile / tablet / laptop ---- */
@media (max-width: 575.98px) {
  .home-page .home-hero__content {
    max-width: 100%;
  }

  .home-page .home-hero__cta .btn-get-started,
  .home-page .home-login-cta__btn,
  .home-page .home-contact__form button[type="submit"] {
    width: 100%;
    max-width: 100%;
  }

  .home-page .home-contact__form .row>[class*="col-"] {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .home-page .home-orgs-grid .vendor-logo-tile__title {
    font-size: 0.72rem;
  }

  .home-page .home-org-card {
    padding: 1rem 0.95rem 1.05rem;
  }

  .home-page .home-org-card__body h3 {
    font-size: 0.88rem;
  }

  .home-page .home-org-card__body p {
    font-size: 0.78rem;
  }
}

@media (max-width: 767.98px) {
  .home-page {
    --home-gap: 1.15rem;
    --home-inline: 1rem;
    --home-section-pad-y: 1.35rem;
    --home-card-gap: 0.75rem;
    --home-card-pad: 0.95rem 1rem;
    --home-title-gap: 0.8rem;
  }

  .home-page .main.home-main {
    padding-bottom: 2rem;
    overflow-x: clip;
  }

  .home-page .home-stack {
    padding-top: 0;
    padding-bottom: 0.35rem;
  }

  .home-page .home-hero,
  .home-page .home-stack>.glass-torn-section.home-panel.home-hero {
    padding: var(--home-section-pad-y) var(--home-inline);
  }

  .home-page .home-hero--compact {
    padding: var(--home-hero-pad-top) var(--home-inline) var(--home-section-pad-y);
  }

  .home-page .home-hero__img {
    width: 11.5rem;
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 10rem;
  }

  .home-page .home-hero__title {
    font-size: clamp(1.15rem, 4.6vw, 1.4rem);
    line-height: 1.5;
  }

  .home-page .home-hero__desc {
    margin-top: 0.6rem;
    font-size: 0.9rem;
    line-height: 1.7;
  }

  .home-page .home-hero__cta {
    margin-top: 1rem;
    margin-bottom: 0.65rem;
    width: 100%;
  }

  .home-page .home-hero__cta .btn-get-started {
    width: min(100%, 18rem);
    padding: 0.75rem 1.25rem;
    font-size: 0.95rem;
  }

  .home-page .home-section-title {
    margin-bottom: var(--home-title-gap);
    padding-inline: 0.15rem;
    font-size: 0.98rem;
  }

  .home-page .home-section-desc {
    margin-bottom: 0.95rem;
    font-size: 0.85rem;
    padding-inline: 0.15rem;
  }

  .home-page .home-panel__inner>p,
  .home-page .home-panel__inner .text-center.mb-4 {
    margin-bottom: 0.95rem !important;
    padding-inline: 0.1rem;
    line-height: 1.7;
    font-size: 0.9rem;
  }

  .home-page .home-step {
    gap: 0.7rem;
  }

  .home-page .home-step__icon {
    width: 3.1rem;
    height: 3.1rem;
  }

  .home-page .home-step__body h3 {
    font-size: 0.9rem;
  }

  .home-page .home-step__body p {
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.65;
  }

  .home-page .home-feature {
    gap: 0.75rem;
  }

  .home-page .home-feature__check {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.1rem;
  }

  .home-page .home-feature p {
    font-size: 0.85rem;
    line-height: 1.65;
  }

  .home-page .home-stack .section-title {
    padding-bottom: var(--home-title-gap);
  }

  .home-page .faq .faq-container {
    gap: var(--home-card-gap);
  }

  .home-page .faq .faq-item,
  .home-page .faq .faq-container .faq-item {
    padding: var(--home-card-pad);
  }

  .home-page .faq .faq-container .faq-item h3,
  .home-page .faq .faq-container .faq-item .faq-question {
    font-size: 0.88rem;
  }

  .home-page .home-contact .section-title {
    padding-bottom: var(--home-title-gap);
  }

  .home-page .home-contact__form {
    padding: 1.05rem 1rem 1.15rem;
  }

  .home-page .home-contact__form-title {
    font-size: 0.98rem;
  }

  .home-page .home-contact__card {
    gap: 0.75rem;
  }

  .home-page .testimonials,
  .home-page .clients {
    padding-block: var(--home-section-pad-y);
  }

  /* فروشگاه‌های برتر → سازمان‌ها: فاصله بین سکشن روی موبایل کمتر */
  .home-page .testimonials-vendors-home {
    padding-bottom: 0.25rem;
  }

  .home-page .clients-orgs-home {
    padding-top: 0.25rem;
  }

  .home-page .home-stack > .testimonials-vendors-home + .clients-orgs-home {
    margin-top: calc(var(--home-gap) * -0.55);
  }

  .home-page .testimonials-vendors-home .swiper,
  .home-page .clients-orgs-home .swiper {
    padding-top: 8px;
    padding-bottom: 4px;
  }

  .home-page .testimonials-vendors-home .swiper-pagination,
  .home-page .clients-orgs-home .swiper-pagination {
    margin-top: 10px;
  }

  .home-page .home-login-cta {
    padding: 0.4rem 0.25rem 0.75rem;
  }

  .home-page .stats .container {
    padding-inline: var(--home-inline);
  }

  .home-page .stats .stats-item {
    padding: 0.9rem 0.95rem;
  }
}

/* Tablet */
@media (min-width: 768px) and (max-width: 899.98px) {
  .home-page .home-hero__content {
    max-width: 40rem;
  }

  .home-page .home-hero__img {
    width: 13.5rem;
  }

  .home-page .home-hero--compact .home-hero__img {
    width: 11.5rem;
  }

  .home-page .home-hero__title {
    font-size: clamp(1.3rem, 2.8vw, 1.55rem);
  }

  .home-page .home-hero__desc {
    font-size: 0.95rem;
    max-width: 36rem;
  }

  .home-page .home-promo__title {
    font-size: 1.55rem;
  }

  .home-page .stats .row {
    --bs-gutter-x: 0.9rem;
    --bs-gutter-y: 0.9rem;
  }

  .home-page .stats .stats-item {
    padding: 1.05rem 1.1rem;
  }

  .home-page .home-orgs-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .home-contact__layout {
    max-width: 40rem;
    margin-inline: auto;
  }
}

/* Laptop fine-tune (already has side hero at 992) */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .home-page .home-promo__title {
    font-size: 1.75rem;
  }

  .home-page .home-orgs-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .home-page .home-step__body h3 {
    font-size: 0.95rem;
  }

  .home-page .faq .faq-container .faq-item h3,
  .home-page .faq .faq-container .faq-item .faq-question {
    font-size: 0.94rem;
  }
}

/* Consistent, readable surfaces for contact and cooperation forms. */
[data-theme="dark"] .home-page .home-section-desc,
[data-theme="dark"] .home-page .home-login-cta__desc,
[data-theme="dark"] .home-page .home-hero__desc,
[data-theme="dark"] .home-page .home-step__body p,
[data-theme="dark"] .home-page .home-feature p,
[data-theme="dark"] .home-page .home-org-card__body p,
[data-theme="dark"] .home-page .home-contact__card p,
[data-theme="dark"] .home-page .stats .stats-item p,
[data-theme="dark"] .home-page .home-stack .section-title p,
[data-theme="dark"] .home-page .home-panel__inner > p {
  color: #c0ccdc;
}

.home-page .home-promo,
[data-theme="dark"] .home-page .home-promo {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.home-page .home-stack > .glass-torn-section.home-panel.testimonials-vendors-home,
.home-page .home-stack > .glass-torn-section.home-panel.clients-orgs-home {
  padding-top: clamp(28px, 4vw, 48px);
}

[data-theme="dark"] .home-page form[data-dynamic-form].home-contact__form,
[data-theme="dark"] .home-page .comment-form form[data-dynamic-form].home-contact__form {
  background: #283448;
  border: 1px solid rgba(203, 213, 225, 0.24);
}

/* Informational cards: readable glass in dark mode, without changing light UI. */
[data-theme="dark"] body.home-page {
  --home-info-card-bg: #283448;
  --home-info-card-border: rgba(203, 213, 225, .24);
  --home-info-card-title: #f1f5f9;
  --home-info-card-text: #d6deea;
}

[data-theme="dark"] body.home-page:is([data-page="home"], [data-page="organizations"], [data-page="about"], [data-page="help"])
  :is(.home-feature, .home-step, .home-org-card, .faq .faq-container .faq-item) {
  background: var(--home-info-card-bg);
  border-color: var(--home-info-card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 20px rgba(2, 6, 23, .1);
  color: var(--home-info-card-text);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  [data-theme="dark"] body.home-page:is([data-page="home"], [data-page="organizations"], [data-page="about"], [data-page="help"])
    :is(.home-feature, .home-step, .home-org-card, .faq .faq-container .faq-item) {
    background: linear-gradient(145deg, rgba(49, 63, 85, .76), rgba(35, 48, 68, .82));
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
  }
}

[data-theme="dark"] body.home-page:is([data-page="home"], [data-page="organizations"], [data-page="about"], [data-page="help"])
  :is(.home-feature, .home-step, .home-org-card, .faq .faq-container .faq-item):is(:hover, :focus-within) {
  border-color: rgba(165, 180, 252, .45);
}

[data-theme="dark"] body.home-page:is([data-page="home"], [data-page="organizations"], [data-page="about"], [data-page="help"])
  :is(.home-feature p, .home-step__body h3, .home-org-card__body h3, .faq .faq-item h3, .faq .faq-item .faq-question) {
  color: var(--home-info-card-title);
}

[data-theme="dark"] body.home-page:is([data-page="home"], [data-page="organizations"], [data-page="about"], [data-page="help"])
  :is(.home-step__body p, .home-org-card__body p, .faq .faq-content p) {
  color: var(--home-info-card-text);
}

[data-theme="dark"] body.home-page:is([data-page="home"], [data-page="organizations"], [data-page="about"], [data-page="help"])
  .faq .faq-item .faq-toggle {
  color: #b9c7ff;
}

/* Statistics and contact details share the same surface and text hierarchy. */
[data-theme="dark"] body.home-page :is(.stats .stats-item, .home-contact__card) {
  background: var(--home-info-card-bg);
  border-color: var(--home-info-card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 6px 20px rgba(2, 6, 23, .1);
}

@supports ((backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px))) {
  [data-theme="dark"] body.home-page :is(.stats .stats-item, .home-contact__card) {
    background: linear-gradient(145deg, rgba(49, 63, 85, .76), rgba(35, 48, 68, .82));
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
    backdrop-filter: blur(12px) saturate(1.15);
  }
}

[data-theme="dark"] body.home-page :is(.stats .stats-item, .home-contact__card):is(:hover, :focus-within) {
  border-color: rgba(165, 180, 252, .45);
}

[data-theme="dark"] body.home-page :is(.home-contact__card h3, .home-contact__card a, .stats .stats-item span) {
  color: var(--home-info-card-title);
}

[data-theme="dark"] body.home-page :is(.home-contact__card p, .stats .stats-item p) {
  color: var(--home-info-card-text);
}
