/* architecture: landing — جداکننده آبی بین بخش‌ها (mobile-first) */

.section-divider {
  position: relative;
  z-index: 6;
  height: 0;
  margin: 0;
  padding: 0;
  border: none;
  overflow: visible;
  background: transparent !important;
  pointer-events: none;
}

.section-divider-inner {
  position: absolute;
  inset-inline: 0;
  top: 0;
  transform: translateY(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  column-gap: 10px;
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--gutter-safe);
  box-sizing: border-box;
}

.section-divider-line {
  display: block;
  position: relative;
  width: 100%;
  height: 2px;
  min-width: 0;
  border-radius: 0;
  clip-path: polygon(
    0 50%,
    4px 0,
    calc(100% - 4px) 0,
    100% 50%,
    calc(100% - 4px) 100%,
    4px 100%
  );
  background: linear-gradient(
    90deg,
    rgba(96, 165, 250, 0.22) 0%,
    rgba(96, 165, 250, 0.38) 50%,
    rgba(96, 165, 250, 0.22) 100%
  );
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7),
    0 3px 10px rgba(37, 99, 235, 0.1),
    0 0 12px rgba(96, 165, 250, 0.14);
  overflow: hidden;
}

.section-divider-line:first-child {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.12) 0%, rgba(96, 165, 250, 0.38) 100%);
}

.section-divider-line:last-child {
  background: linear-gradient(90deg, rgba(96, 165, 250, 0.38) 0%, rgba(96, 165, 250, 0.12) 100%);
}

.section-divider-line::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 35%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.35),
    rgba(96, 165, 250, 0.65),
    rgba(255, 255, 255, 0.35),
    transparent
  );
  filter: blur(0.4px);
  animation: dividerShimmer 3.6s ease-in-out infinite;
  opacity: 0.6;
}

.section-divider-line:first-child::after {
  animation-delay: 0s;
}

.section-divider-line:last-child::after {
  animation-delay: 1.8s;
}

@keyframes dividerShimmer {
  0% { transform: translateX(-120%); opacity: 0; }
  15% { opacity: 0.9; }
  50% { opacity: 1; }
  85% { opacity: 0.9; }
  100% { transform: translateX(320%); opacity: 0; }
}

.section-divider-gem {
  flex-shrink: 0;
  width: 11px;
  height: 11px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: linear-gradient(145deg, #93c5fd 0%, #60a5fa 42%, #2563eb 100%);
  transform: rotate(45deg);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.22) inset,
    0 0 0 1px rgba(0, 0, 0, 0.35),
    0 6px 14px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(96, 165, 250, 0.16);
  position: relative;
  z-index: 1;
  animation: dividerGemPulse 2.8s ease-in-out infinite;
  transform-style: preserve-3d;
}

.section-divider-gem::before {
  content: '';
  display: block;
  position: absolute;
  inset: 2px;
  border-radius: 1px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), transparent 55%);
  pointer-events: none;
}

.section-divider-gem::after {
  content: '';
  display: block;
  position: absolute;
  inset: -6px;
  border-radius: 4px;
  background: radial-gradient(circle, rgba(96, 165, 250, 0.22) 0%, transparent 70%);
  z-index: -1;
  animation: dividerGemGlow 2.8s ease-in-out infinite;
}

@keyframes dividerGemPulse {
  0%, 100% { transform: rotate(45deg) scale(1); }
  50% { transform: rotate(45deg) scale(1.08); }
}

@keyframes dividerGemGlow {
  0%, 100% { opacity: 0.35; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(1.1); }
}

@media (min-width: 768px) {
  .section-divider-inner {
    column-gap: 16px;
  }

  .section-divider-line {
    height: 3px;
    clip-path: polygon(
      0 50%,
      5px 0,
      calc(100% - 5px) 0,
      100% 50%,
      calc(100% - 5px) 100%,
      5px 100%
    );
  }

  .section-divider-gem {
    width: 14px;
    height: 14px;
    border-radius: 3px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .section-divider-line::after,
  .section-divider-gem,
  .section-divider-gem::after {
    animation: none;
  }
}
