/* ==========================================================
   وصلت | WASALT — صفحة «قريبًا»
   ========================================================== */

@font-face {
  font-family: "Hayyakum Allah";
  src: url("../fonts/hayyakum-allah.woff2") format("woff2");
  font-display: swap;
}

/* ---------- الألوان والخطوط ---------- */
:root {
  --violet: #6f10a2;
  --violet-deep: #4a0a6c;
  --lavender: #d9b8f0;
  --white: #ffffff;
  --muted: #e6d6f0;
  --display: "Hayyakum Allah", "IBM Plex Sans Arabic", Tahoma, sans-serif;
  --body: "IBM Plex Sans Arabic", Tahoma, sans-serif;
}

/* ---------- الأساسيات ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { font-synthesis: none; -webkit-font-smoothing: antialiased; }

html, body { height: 100%; }

body {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--violet-deep);
  background-image:
    radial-gradient(ellipse at 50% 45%, #7d18b4 0%, #6f10a2 40%, rgba(74, 10, 108, 0) 85%);
  color: var(--white);
  font-family: var(--body);
  overflow-x: hidden;
}

/* الشريط الجانبي */
body::before {
  content: "";
  position: fixed;
  inset: 0 0 0 auto;
  width: 12px;
  background: var(--lavender);
}

/* ---------- المحتوى ---------- */
main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  gap: 20px;
}

.soon {
  font-size: clamp(18px, 2.2vw, 24px);
  font-weight: 600;
  color: var(--lavender);
  border: 1px solid rgba(217, 184, 240, .5);
  border-radius: 999px;
  padding: 6px 22px;
}

h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(96px, 16vw, 190px);
  line-height: 1.1;
  color: var(--white);
}

.tagline {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(28px, 4.4vw, 52px);
  line-height: 1.4;
  color: var(--white);
}

.latin {
  direction: ltr;
  font-size: clamp(16px, 2vw, 24px);
  font-weight: 600;
  letter-spacing: .6em;
  margin-inline-start: .6em; /* يوازن مسافة الحرف الأخير */
  color: var(--lavender);
}

.rule {
  width: 120px;
  height: 3px;
  background: var(--lavender);
  margin: 12px 0;
}

.desc {
  max-width: 780px;
  text-wrap: balance;
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.8;
  color: var(--muted);
}

/* ---------- شريط هدية الإطلاق ---------- */
.offer {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding: 12px 24px 12px 14px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(217, 184, 240, .45);
  border-radius: 999px;
  max-width: 640px;
}
.offer-tag {
  flex-shrink: 0;
  background: var(--white);
  color: var(--violet);
  font-size: 15px;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 999px;
}
.offer p {
  font-size: 17px;
  line-height: 1.6;
  color: var(--white);
  text-align: right;
}

/* ---------- الأزرار ---------- */
.actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 200px;
  padding: 14px 32px;
  border-radius: 999px;
  font-family: var(--body);
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:focus-visible { outline: 3px solid var(--lavender); outline-offset: 3px; }

.btn-primary {
  background: var(--white);
  color: var(--violet);
  border: 2px solid var(--white);
}
.btn-primary:hover { background: #f3eafa; border-color: #f3eafa; }

.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255, 255, 255, .6);
}
.btn-outline:hover { background: rgba(255, 255, 255, .12); border-color: var(--white); }

/* ---------- التذييل ---------- */
footer {
  text-align: center;
  padding: 24px;
  font-size: 14px;
  color: var(--muted);
  opacity: .7;
}

/* ---------- حركة الدخول ---------- */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: rise .9s cubic-bezier(.2, .7, .2, 1) forwards;
}
.soon.reveal    { animation-delay: .1s; }
h1.reveal       { animation-delay: .25s; }
.latin.reveal   { animation-delay: .45s; }
.rule           { transform: scaleX(0); animation: grow .8s .65s cubic-bezier(.2, .7, .2, 1) forwards; }
.tagline.reveal { animation-delay: .85s; }
.desc.reveal    { animation-delay: .95s; }
.offer.reveal   { animation-delay: 1.1s; }
.actions.reveal { animation-delay: 1.25s; }

@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes grow { to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  .reveal, .rule { animation: none; opacity: 1; transform: none; }
}

/* ---------- الجوال ---------- */
@media (max-width: 600px) {
  .offer { flex-direction: column-reverse; border-radius: 20px; padding: 16px; text-align: center; }
  .offer p { text-align: center; }
  .actions { flex-direction: column; width: 100%; max-width: 320px; }
  .btn { width: 100%; }
  body::before { width: 6px; }
  .rule { width: 80px; }
}
