/* صياغ — صفحة الروابط
   الألوان: #0e3a57 كحلي · #fdfaf1 عاجي · #668ea8 أزرق متوسط · #c0d2df أزرق فاتح */

:root {
  --navy: #0e3a57;
  --ivory: #fdfaf1;
  --mid: #668ea8;
  --light: #c0d2df;
  --font: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --enter: 600ms;   /* مدة ظهور العناصر */
  --step: 70ms;     /* الفاصل بين ظهور زر وآخر */
  --hover: 200ms;   /* مدة تفاعل التمرير */
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--ivory);
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--navy);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
}

/* الشعار */
.logo {
  margin: 0;
  line-height: 0;
}

.logo img {
  display: block;
  width: clamp(132px, 38vw, 172px);
  height: auto;
}

/* العبارة التعريفية */
.tagline {
  margin: 22px 0 0;
  color: var(--mid);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.6;
  text-align: center;
}

/* الأزرار */
.links {
  width: 100%;
  max-width: 360px;
  margin-top: 40px;
  display: grid;
  gap: 12px;
}

.link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 56px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--ivory);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
  transition: transform var(--hover) var(--ease), box-shadow var(--hover) var(--ease);
}

.icon {
  position: absolute;
  inset-inline-start: 18px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  fill: none;
  stroke: var(--light);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke var(--hover) var(--ease);
}

/* شعارات المنصات (إنستغرام، تيك توك، واتساب) */
.icon.brand {
  fill: var(--light);
  stroke: none;
  transition: fill var(--hover) var(--ease);
}

.soon {
  position: absolute;
  inset-inline-end: 14px;
  top: 50%;
  transform: translateY(-50%);
  padding: 1px 9px;
  border: 1px solid var(--mid);
  border-radius: 6px;
  color: var(--light);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

/* زر غير مفعّل (الموقع قبل إضافة رابطه) */
.link[aria-disabled="true"] {
  cursor: default;
}

/* الظهور عند فتح الصفحة */
@keyframes fade-in {
  from { opacity: 0; }
}

@keyframes rise-in {
  from { opacity: 0; transform: translateY(6px); }
}

.logo     { animation: fade-in calc(var(--enter) + 100ms) var(--ease) backwards; }
.tagline  { animation: fade-in var(--enter) var(--ease) 120ms backwards; }
.link     { animation: rise-in var(--enter) var(--ease) backwards; }
.link:nth-child(1) { animation-delay: calc(260ms + var(--step) * 0); }
.link:nth-child(2) { animation-delay: calc(260ms + var(--step) * 1); }
.link:nth-child(3) { animation-delay: calc(260ms + var(--step) * 2); }
.link:nth-child(4) { animation-delay: calc(260ms + var(--step) * 3); }
.link:nth-child(5) { animation-delay: calc(260ms + var(--step) * 4); }

/* التفاعل */
@media (hover: hover) {
  .link:not([aria-disabled="true"]):hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px -14px rgba(14, 58, 87, .5);
  }
  .link:not([aria-disabled="true"]):hover .icon {
    stroke: var(--ivory);
  }
  .link:not([aria-disabled="true"]):hover .icon.brand {
    stroke: none;
    fill: var(--ivory);
  }
}

.link:not([aria-disabled="true"]):active {
  transform: scale(.985);
  box-shadow: none;
  transition-duration: 90ms;
}

.link:focus-visible {
  outline: 2px solid var(--mid);
  outline-offset: 3px;
}

/* الشاشات الصغيرة جدًا */
@media (max-width: 340px) {
  .page { padding: 40px 18px; }
  .link { padding: 0 48px; font-size: 15px; }
  .icon { inset-inline-start: 14px; }
  .soon { inset-inline-end: 10px; padding: 1px 7px; font-size: 11px; }
}

/* الشاشات الكبيرة */
@media (min-width: 768px) {
  .logo img { width: 176px; }
  .tagline { font-size: 16px; margin-top: 24px; }
  .links { max-width: 380px; margin-top: 44px; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .logo,
  .tagline,
  .link { animation: none; }
  .link,
  .icon { transition: none; }
  .link:not([aria-disabled="true"]):hover,
  .link:not([aria-disabled="true"]):active { transform: none; }
}
