/* عبارة عربية مميزة — فوق قسم الثقة */
.q-trust-pitch {
  position: relative;
  padding: clamp(2.25rem, 5vw, 3.85rem) 0;
  overflow: hidden;
  border-block: 1px solid rgba(148, 163, 184, 0.12);
  background:
    radial-gradient(ellipse 100% 85% at 50% -25%, rgba(244, 63, 94, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 0% 60%, rgba(232, 197, 71, 0.06), transparent 50%),
    radial-gradient(ellipse 55% 45% at 100% 40%, rgba(245, 158, 11, 0.16), transparent 50%),
    linear-gradient(180deg, rgba(28, 25, 23, 0.97) 0%, rgba(12, 10, 9, 0.9) 100%);
}

.q-trust-pitch__inner {
  position: relative;
  text-align: center;
  z-index: 1;
  padding-inline: 0.5rem;
}

.q-trust-pitch__inner::before,
.q-trust-pitch__inner::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 3px;
  height: min(140px, 28vw);
  border-radius: 999px;
  transform: translateY(-50%);
  background: linear-gradient(180deg, transparent, rgba(244, 63, 94, 0.55), rgba(245, 158, 11, 0.5), transparent);
  opacity: 0.55;
  animation: q-trust-pitch-pillar 4s ease-in-out infinite;
  pointer-events: none;
}

.q-trust-pitch__inner::before {
  inset-inline-end: 0;
  animation-delay: 0s;
}

.q-trust-pitch__inner::after {
  inset-inline-start: 0;
  animation-delay: 2s;
}

@keyframes q-trust-pitch-pillar {
  0%,
  100% {
    opacity: 0.35;
    filter: blur(0);
  }
  50% {
    opacity: 0.85;
    filter: blur(0.5px);
  }
}

@media (max-width: 640px) {
  .q-trust-pitch__inner::before,
  .q-trust-pitch__inner::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__inner::before,
  .q-trust-pitch__inner::after {
    animation: none;
    opacity: 0.45;
  }
}

.q-trust-pitch__grid {
  position: absolute;
  inset: 0;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  left: 50%;
  transform: translateX(-50%);
  background-image:
    linear-gradient(rgba(244, 63, 94, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(244, 63, 94, 0.045) 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: radial-gradient(ellipse 72% 68% at 50% 48%, black 12%, transparent 74%);
  pointer-events: none;
  z-index: 0;
  animation: q-trust-pitch-grid-drift 22s linear infinite;
}

@keyframes q-trust-pitch-grid-drift {
  0% {
    background-position: 0 0, 0 0;
  }
  100% {
    background-position: 40px 40px, -40px 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__grid {
    animation: none;
  }
}

.q-trust-pitch__orb {
  position: absolute;
  width: min(480px, 85vw);
  height: min(480px, 85vw);
  border-radius: 50%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(244, 63, 94, 0.16) 0%, rgba(245, 158, 11, 0.09) 42%, transparent 68%);
  filter: blur(36px);
  pointer-events: none;
  z-index: 0;
  animation: q-trust-pitch-orb 10s ease-in-out infinite alternate;
}

@keyframes q-trust-pitch-orb {
  from {
    opacity: 0.55;
    transform: translate(-50%, -50%) scale(0.92);
  }
  to {
    opacity: 0.92;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__orb {
    animation: none;
  }
}

/* حلقات نبض خلفية */
.q-trust-pitch__rings {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  width: min(520px, 95vw);
  height: min(520px, 95vw);
  pointer-events: none;
  z-index: 0;
}

.q-trust-pitch__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(244, 63, 94, 0.12);
  animation: q-trust-pitch-ring 5s ease-out infinite;
}

.q-trust-pitch__ring--delay {
  animation-delay: 2.5s;
  border-color: rgba(245, 158, 11, 0.15);
}

@keyframes q-trust-pitch-ring {
  0% {
    transform: scale(0.35);
    opacity: 0.65;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__rings {
    display: none;
  }
}

.q-trust-pitch__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.q-trust-pitch__spark {
  position: absolute;
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  color: rgba(232, 197, 71, 0.55);
  text-shadow: 0 0 14px rgba(244, 63, 94, 0.35);
  animation: q-trust-pitch-spark 3.2s ease-in-out infinite;
}

.q-trust-pitch__spark--a {
  top: 18%;
  inset-inline-start: 12%;
  animation-delay: 0s;
}

.q-trust-pitch__spark--b {
  bottom: 22%;
  inset-inline-end: 14%;
  animation-delay: 1.1s;
}

@keyframes q-trust-pitch-spark {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.9) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: scale(1.15) rotate(18deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__spark {
    animation: none;
    opacity: 0.5;
  }
}

.q-trust-pitch__eyebrow {
  position: relative;
  margin: 0 0 0.75rem;
  font-family: var(--q-font-display), "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(0.78rem, 1.8vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(244, 63, 94, 0.92);
  animation: q-trust-pitch-eyebrow 5s ease-in-out infinite;
}

@keyframes q-trust-pitch-eyebrow {
  0%,
  100% {
    opacity: 0.85;
    text-shadow: 0 0 0 transparent;
  }
  50% {
    opacity: 1;
    text-shadow: 0 0 20px rgba(244, 63, 94, 0.25);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__eyebrow {
    animation: none;
  }
}

.q-trust-pitch__line {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 0.2rem 0.45rem;
  text-align: center;
}

.q-trust-pitch.is-inview .q-trust-pitch__line {
  animation: q-trust-pitch-line-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes q-trust-pitch-line-in {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch.is-inview .q-trust-pitch__line {
    animation: none;
  }
}

.q-trust-pitch__mark {
  font-family: var(--q-font-display), "IBM Plex Sans Arabic", sans-serif;
  font-size: clamp(2.1rem, 7vw, 3.8rem);
  font-weight: 800;
  line-height: 0.88;
  background: linear-gradient(185deg, #fff 0%, rgba(251, 191, 36, 0.88) 45%, rgba(244, 63, 94, 0.75) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  user-select: none;
  flex-shrink: 0;
  animation: q-trust-pitch-mark-glow 4s ease-in-out infinite;
}

@keyframes q-trust-pitch-mark-glow {
  0%,
  100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__mark {
    animation: none;
  }
}

.q-trust-pitch__mark:first-of-type {
  margin-inline-end: -0.08em;
}

.q-trust-pitch__mark:last-of-type {
  margin-inline-start: -0.08em;
}

.q-trust-pitch__text {
  font-family: var(--q-font-display), "IBM Plex Sans Arabic", system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 4.8vw, 3.1rem);
  line-height: 1.22;
  letter-spacing: 0;
  max-width: min(95%, 22ch);
  text-wrap: balance;
  background: linear-gradient(
    118deg,
    #fff7ed 0%,
    #ffffff 18%,
    #fecaca 38%,
    #fde68a 62%,
    #fafaf9 100%
  );
  background-size: 240% auto;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(244, 63, 94, 0.22));
  animation: q-trust-pitch-shine 8s ease-in-out infinite, q-trust-pitch-text-float 6s ease-in-out infinite;
}

@keyframes q-trust-pitch-shine {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes q-trust-pitch-text-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-3px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__text {
    animation: none;
    background-position: 50% 50%;
  }
}

.q-trust-pitch__rule {
  width: min(360px, 78%);
  height: 3px;
  margin: clamp(1.35rem, 3vw, 2rem) auto 0;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(232, 197, 71, 0.45) 18%,
    rgba(244, 63, 94, 0.55) 42%,
    rgba(245, 158, 11, 0.65) 58%,
    rgba(244, 63, 94, 0.45) 82%,
    transparent
  );
  background-size: 200% 100%;
  animation: q-trust-pitch-rule 5.5s ease-in-out infinite;
  box-shadow:
    0 0 22px rgba(244, 63, 94, 0.18),
    0 0 36px rgba(245, 158, 11, 0.12);
}

@keyframes q-trust-pitch-rule {
  0%,
  100% {
    background-position: 0% 0;
    opacity: 0.82;
    transform: scaleX(1);
  }
  50% {
    background-position: 100% 0;
    opacity: 1;
    transform: scaleX(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .q-trust-pitch__rule {
    animation: none;
  }
}

/* شريط الثقة — شعارات تقنية */
.q-trust {
  padding: var(--q-space-xl) 0;
  border-block: 1px solid var(--q-border);
  background: rgba(12, 10, 9, 0.5);
}

/* شريط شعارات متحرك (LTR: من اليسار إلى اليمين) */
.q-trust__marquee {
  margin-top: 2rem;
  position: relative;
  overflow: hidden;
  border-radius: clamp(12px, 2vw, 18px);
  border: 1px solid var(--q-border);
  background: linear-gradient(180deg, rgba(41, 37, 36, 0.55) 0%, rgba(12, 10, 9, 0.38) 100%);
  padding-block: clamp(0.65rem, 1.8vw, 0.95rem);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 12px 40px rgba(0, 0, 0, 0.2);
  mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 5%, #000 95%, transparent 100%);
}

.q-trust__marquee-track {
  display: flex;
  flex-direction: row;
  width: max-content;
  animation: q-trust-marquee-ltr 40s linear infinite;
  will-change: transform;
}

.q-trust__marquee:hover .q-trust__marquee-track {
  animation-play-state: paused;
}

@keyframes q-trust-marquee-ltr {
  from {
    transform: translate3d(-50%, 0, 0);
  }
  to {
    transform: translate3d(0, 0, 0);
  }
}

.q-trust__marquee-row {
  display: flex;
  flex-direction: row;
  flex-shrink: 0;
  align-items: center;
  gap: clamp(1.25rem, 3.5vw, 2.75rem);
  padding-inline: clamp(0.75rem, 2vw, 1.5rem);
}

.q-trust__brand {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
}

.q-trust__brand img {
  height: clamp(38px, 5.2vw, 54px);
  width: auto;
  max-width: min(168px, 24vw);
  object-fit: contain;
  opacity: 0.9;
  filter: drop-shadow(0 2px 14px rgba(0, 0, 0, 0.35));
  transition:
    opacity var(--q-dur-fast),
    transform var(--q-dur-fast),
    filter var(--q-dur-fast);
}

.q-trust__marquee:hover .q-trust__brand img {
  opacity: 1;
  filter: drop-shadow(0 2px 18px rgba(244, 63, 94, 0.12));
}

@media (prefers-reduced-motion: reduce) {
  .q-trust__marquee {
    mask-image: none;
    -webkit-mask-image: none;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .q-trust__marquee-track {
    animation: none;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 100%;
  }

  .q-trust__marquee-row[aria-hidden="true"] {
    display: none;
  }
}

.q-trust__caption {
  text-align: center;
  margin-top: var(--q-space-lg);
  font-size: 0.95rem;
  color: var(--q-text-muted);
  max-width: 52ch;
  margin-inline: auto;
}
