.solutions-scroll-zone {
  position: relative;
}

.solutions-page-main {
  scroll-snap-type: y proximity;
}

.solution-full-section {
  scroll-snap-align: start;
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
}

.solution-full-section .solution-glow {
  position: absolute;
  width: 24rem;
  height: 24rem;
  border-radius: 9999px;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
}

.solution-nav-dots {
  position: fixed;
  left: 1.25rem;
  top: 50%;
  transform: translateY(-50%);
  z-index: 40;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  opacity: 1;
  pointer-events: auto;
  transition: opacity 0.25s ease;
}

.solution-nav-dots.solution-nav-dots--hidden {
  opacity: 0;
  pointer-events: none;
}

.solution-nav-dots a {
  width: 10px;
  height: 10px;
  border-radius: 9999px;
  background: rgba(148, 163, 184, 0.5);
  transition: transform 0.2s, background 0.2s;
}

.solution-nav-dots a:hover,
.solution-nav-dots a.active {
  transform: scale(1.35);
  background: #2563eb;
}

.solutions-list-wrap {
  position: relative;
}

/* پیش‌نمایش: همان سکشن کامل، بریده‌شده */
.solutions-peek {
  position: relative;
  max-height: 42vh;
  overflow: hidden;
  pointer-events: none;
}

.solutions-peek.hidden {
  display: none;
}

.solutions-peek .solution-full-section {
  scroll-snap-align: none;
}

/* نوار باز کردن — روی لبهٔ پایین پیش‌نمایش */
.solutions-reveal-top {
  position: relative;
  z-index: 12;
  margin-top: -5rem;
  height: 5rem;
  pointer-events: none;
}

.solutions-reveal-top.hidden {
  display: none;
}

.solutions-reveal-hit {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.solutions-reveal-hit__fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(249, 250, 251, 0) 0%,
    rgba(249, 250, 251, 0.72) 48%,
    #f9fafb 100%
  );
  pointer-events: none;
}

.solutions-reveal-hit__core {
  position: absolute;
  left: 50%;
  bottom: 0.65rem;
  transform: translateX(-50%);
  z-index: 2;
  width: 2rem;
  height: 2rem;
  border: 1px solid #e2e8f0;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease, background 0.2s ease;
  pointer-events: none;
}

.solutions-reveal-hit:hover .solutions-reveal-hit__core {
  border-color: #cbd5e1;
  background: #fff;
}

.solutions-reveal-hit:focus-visible .solutions-reveal-hit__core {
  outline: 2px solid #cbd5e1;
  outline-offset: 2px;
}

.solutions-reveal-hit__chevron {
  display: block;
  width: 0.5rem;
  height: 0.5rem;
  border-right: 2px solid #94a3b8;
  border-bottom: 2px solid #94a3b8;
  transform: rotate(45deg);
  margin-top: -0.2rem;
  transition: transform 0.4s cubic-bezier(0.32, 0.72, 0, 1), margin 0.4s ease;
}

.solutions-reveal-hit__chevron.is-up {
  transform: rotate(-135deg);
  margin-top: 0.15rem;
}

/* بستن — پایین لیست */
.solutions-reveal-bottom {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 1.5rem 1rem 0.75rem;
}

.solutions-reveal-bottom.hidden {
  display: none;
}

.solutions-reveal-hit--collapse {
  position: relative;
  inset: auto;
  width: auto;
  height: auto;
  padding: 0.5rem;
}

.solutions-reveal-hit--collapse .solutions-reveal-hit__core {
  position: relative;
  left: auto;
  bottom: auto;
  transform: none;
}

.solutions-reveal-hit--collapse:hover .solutions-reveal-hit__core {
  transform: scale(1.06);
}

.solutions-extra {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.65s cubic-bezier(0.32, 0.72, 0, 1);
}

.solutions-extra.is-expanded {
  grid-template-rows: 1fr;
}

.solutions-extra-inner {
  overflow: hidden;
  min-height: 0;
  opacity: 0;
  transform: translateY(-1rem);
  transition:
    opacity 0.5s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.65s cubic-bezier(0.32, 0.72, 0, 1);
}

.solutions-extra.is-expanded .solutions-extra-inner {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .solutions-extra,
  .solutions-extra-inner,
  .solutions-reveal-hit__chevron {
    transition-duration: 0.01ms;
  }
}

@media (max-width: 768px) {
  .solution-nav-dots {
    display: none;
  }

  .solutions-peek {
    max-height: 36vh;
  }
}
