/* ════════════════════════════════════════════════════
   تواصُل · Home Page
   ════════════════════════════════════════════════════ */

.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-8) var(--space-5) calc(var(--footer-h) + var(--space-8));
  min-height: calc(100vh - var(--header-h));
  min-height: calc(100dvh - var(--header-h));
  position: relative;
  z-index: 1;
  animation: emerge 1.5s var(--ease-out);
}

/* ═══════════════ الزخرفة الافتتاحية ═══════════════ */
.ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-7);
  opacity: 0.7;
  animation: emerge 1.5s var(--ease-out) 0.2s both;
}

.ornament-line {
  width: 80px;
  height: 1px;
  background: linear-gradient(
    90deg, 
    transparent 0%, 
    var(--turquoise) 50%, 
    transparent 100%
  );
}

.ornament-diamond {
  width: 8px;
  height: 8px;
  background: var(--turquoise);
  transform: rotate(45deg);
  box-shadow: 0 0 12px var(--turquoise-glow);
  position: relative;
}

.ornament-diamond::before {
  content: '';
  position: absolute;
  inset: -3px;
  border: 1px solid var(--turquoise-line);
  transform: rotate(0deg);
}

/* ═══════════════ النداء ═══════════════ */
.invocation {
  text-align: center;
  margin-bottom: var(--space-7);
  animation: emerge 1.5s var(--ease-out) 0.3s both;
}

.invocation-text {
  font-family: var(--font-arabic);
  font-style: normal;
  font-weight: var(--weight-regular);
  font-size: clamp(1.5rem, 4vw, 2.2rem);
  color: var(--pearl);
  letter-spacing: 0.05em;
  line-height: 1.3;
  background: linear-gradient(
    180deg,
    var(--pearl) 0%,
    var(--pearl-dim) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ═══════════════ صندوق اللصق (Vessel) ═══════════════ */
.vessel-wrap {
  width: 100%;
  max-width: 680px;
  position: relative;
  animation: emerge 1.5s var(--ease-out) 0.4s both;
}

.vessel {
  position: relative;
  display: block;
}

.vessel-inner {
  position: relative;
  display: flex;
  align-items: stretch;
  background: rgba(19, 17, 16, 0.6);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  transition: all var(--duration-base) var(--ease-out);
  backdrop-filter: blur(10px);
  overflow: hidden;
  z-index: 2;
}

/* الزوايا النحاسية/الفيروزية - تكبر عند التركيز */
.vessel-inner::before,
.vessel-inner::after {
  content: '';
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--turquoise);
  transition: all var(--duration-base) var(--ease-out);
  pointer-events: none;
  z-index: 3;
}

.vessel-inner::before {
  top: -1px;
  right: -1px;
  border-bottom: none;
  border-left: none;
  border-top-right-radius: var(--radius-md);
}

.vessel-inner::after {
  bottom: -1px;
  left: -1px;
  border-top: none;
  border-right: none;
  border-bottom-left-radius: var(--radius-md);
}

.vessel-inner:focus-within {
  border-color: var(--turquoise-line);
  background: rgba(19, 17, 16, 0.85);
}

.vessel-inner:focus-within::before,
.vessel-inner:focus-within::after {
  width: 22px;
  height: 22px;
  border-color: var(--turquoise-bright);
  box-shadow: 0 0 8px var(--turquoise-glow);
}

/* الإضاءة الخلفية */
.vessel-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse 60% 80% at 50% 50%,
    var(--turquoise-soft) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity var(--duration-slow) var(--ease-out);
  pointer-events: none;
  z-index: 1;
  border-radius: var(--radius-lg);
}

.vessel:focus-within .vessel-glow {
  opacity: 1;
}

/* حقل الإدخال */
.vessel-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  padding: var(--space-5) var(--space-5);
  font-family: var(--font-mono);
  font-weight: var(--weight-light);
  font-size: 1rem;
  color: var(--pearl);
  text-align: center;
  letter-spacing: 0.02em;
  min-width: 0;
}

.vessel-input::placeholder {
  color: var(--whisper);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  font-weight: var(--weight-light);
  letter-spacing: 0;
  opacity: 0.6;
}

/* زر الإرسال */
.vessel-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  background: transparent;
  color: var(--whisper);
  border: none;
  border-right: 1px solid var(--line);
  transition: all var(--duration-base) var(--ease-out);
  cursor: pointer;
}

.vessel-submit:hover {
  color: var(--turquoise-bright);
  background: var(--turquoise-soft);
}

.vessel-submit svg {
  transition: transform var(--duration-base) var(--ease-spring);
}

.vessel-submit:hover svg {
  transform: translateX(-3px);
}

/* في RTL: السهم يجب أن يكون لليسار */
[dir="rtl"] .vessel-submit svg {
  transform: scaleX(-1);
}

[dir="rtl"] .vessel-submit:hover svg {
  transform: scaleX(-1) translateX(-3px);
}

/* عندما يكون هناك مدخل صحيح */
.vessel.active .vessel-submit {
  color: var(--turquoise-bright);
}

/* ═══════════════ مؤشرات المنصات ═══════════════ */
.signals {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  margin-top: var(--space-6);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--whisper-light);
  letter-spacing: 0.4em;
  text-transform: uppercase;
  animation: emerge 1.5s var(--ease-out) 0.5s both;
}

.signal {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-sm);
  transition: all var(--duration-base) var(--ease-out);
  opacity: 0.5;
  cursor: default;
}

.signal-dot {
  width: 5px;
  height: 5px;
  border-radius: var(--radius-full);
  background: var(--whisper);
  transition: all var(--duration-base) var(--ease-out);
}

.signal-sep {
  width: 1px;
  height: 12px;
  background: var(--line);
}

.signal.active {
  opacity: 1;
  color: var(--pearl);
}

.signal.active .signal-dot {
  background: var(--turquoise-bright);
  box-shadow: 0 0 12px var(--turquoise-glow);
  transform: scale(1.4);
}

/* ═══════════════ المسارات السريعة ═══════════════ */
.quick-paths {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-7);
  margin-top: var(--space-10);
  animation: emerge 1.5s var(--ease-out) 0.6s both;
}

.quick-path {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  background: transparent;
  border: none;
  color: var(--pearl-dim);
  cursor: pointer;
  transition: all var(--duration-base) var(--ease-out);
  position: relative;
}

.quick-path::after {
  content: '';
  position: absolute;
  bottom: -2px;
  right: 50%;
  width: 0;
  height: 1px;
  background: var(--turquoise);
  transform: translateX(50%);
  transition: width var(--duration-base) var(--ease-out);
}

.quick-path:hover {
  color: var(--pearl);
  transform: translateY(-2px);
}

.quick-path:hover::after {
  width: 80%;
}

.quick-path-glyph {
  font-family: var(--font-arabic);
  font-size: 1.5rem;
  color: var(--turquoise);
  text-shadow: 0 0 12px var(--turquoise-glow);
  transition: transform var(--duration-base) var(--ease-spring);
}

.quick-path:hover .quick-path-glyph {
  transform: scale(1.15) rotate(-5deg);
}

.quick-path-label {
  font-family: var(--font-arabic);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

/* ═══════════════ موبايل ═══════════════ */
@media (max-width: 768px) {
  .stage {
    padding: var(--space-6) var(--space-4) calc(var(--footer-h) + var(--space-6));
  }
  
  .ornament {
    margin-bottom: var(--space-5);
  }
  
  .ornament-line {
    width: 50px;
  }
  
  .invocation {
    margin-bottom: var(--space-5);
  }
  
  .vessel-input {
    padding: var(--space-4);
    font-size: 0.9rem;
  }
  
  .vessel-input::placeholder {
    font-size: 1.2rem;
  }
  
  .vessel-submit {
    width: 48px;
  }
  
  .signals {
    gap: var(--space-2);
    font-size: 0.6rem;
    letter-spacing: 0.3em;
  }
  
  .signal {
    padding: var(--space-2);
  }
  
  .quick-paths {
    gap: var(--space-5);
    margin-top: var(--space-8);
  }
  
  .quick-path-glyph {
    font-size: 1.3rem;
  }
  
  .quick-path-label {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .signal-name {
    font-size: 0.6rem;
  }
  
  .quick-paths {
    gap: var(--space-4);
  }
}
