/* صفحة الترحيب — لقطة افتتاحية متحركة لمدارس الأجيال الأهلية */
:root {
  --ink: #121233;
  --navy: #30308f;
  --gold: #f4a52a;
  --gold-2: #ffbe4d;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body.welcome {
  font-family: "Tajawal", system-ui, sans-serif;
  background: var(--ink);
  color: #fff;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}
img, picture { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.w-hero { position: relative; height: 100svh; min-height: 560px; display: flex; align-items: center; overflow: hidden; }

.w-bg { position: absolute; inset: -6% -4%; z-index: 0; }
.w-bg img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); animation: w-kenburns 22s ease-in-out infinite alternate; }
@keyframes w-kenburns { to { transform: scale(1.22) translate(2%, -2%); } }

.w-veil { position: absolute; inset: 0; z-index: 1; background:
    radial-gradient(120% 95% at 80% 10%, rgba(244, 165, 42, .2), transparent 55%),
    linear-gradient(105deg, rgba(8, 8, 36, .94) 0%, rgba(18, 18, 51, .72) 46%, rgba(18, 18, 51, .34) 100%); }

.w-orb { position: absolute; z-index: 1; border-radius: 50%; filter: blur(46px); opacity: .55; }
.w-orb.a { width: 360px; height: 360px; background: radial-gradient(circle, rgba(244, 165, 42, .5), transparent 70%); top: -90px; inset-inline-start: -60px; animation: w-floatA 15s ease-in-out infinite; }
.w-orb.b { width: 300px; height: 300px; background: radial-gradient(circle, rgba(48, 48, 143, .65), transparent 70%); bottom: -80px; inset-inline-end: 6%; animation: w-floatB 19s ease-in-out infinite; }
@keyframes w-floatA { 50% { transform: translate(30px, 40px); } }
@keyframes w-floatB { 50% { transform: translate(-40px, -30px); } }

.w-top { position: absolute; z-index: 3; top: 0; inset-inline: 0; padding: 26px clamp(20px, 5vw, 60px); }
.w-brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 900; animation: w-fade .9s var(--ease) both; }
.w-brand img { width: 50px; height: 50px; object-fit: contain; }
.w-brand span { line-height: 1.25; font-size: 1.05rem; }
.w-brand i { font-style: normal; font-size: .62rem; letter-spacing: .22em; opacity: .72; }

.w-content { position: relative; z-index: 2; width: min(1100px, calc(100% - 40px)); margin-inline: auto; padding-top: 40px; }
.w-eyebrow { display: inline-block; font-weight: 800; letter-spacing: .04em; color: var(--gold-2); margin-bottom: 20px; padding: 8px 16px; border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; animation: w-fade .9s var(--ease) .15s both; }
.w-title { font-family: "Reem Kufi", "Tajawal", sans-serif; font-weight: 700; font-size: clamp(2.6rem, 8.5vw, 6.4rem); line-height: 1.06; letter-spacing: -.02em; }
.w-title .ln { display: block; overflow: hidden; padding-block: .03em; }
.w-title .ln > span, .w-title .ln > em { display: inline-block; font-style: normal; animation: w-rise 1.15s var(--ease) both; }
.w-title .ln:nth-child(1) > span { animation-delay: .25s; }
.w-title .ln:nth-child(2) > span { animation-delay: .4s; }
.w-title .ln:nth-child(2) > em { animation-delay: .5s; color: var(--gold); }
.w-lead { max-width: 580px; margin: 26px 0 34px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); color: rgba(255, 255, 255, .9); animation: w-fade 1s var(--ease) .7s both; }
.w-actions { display: flex; flex-wrap: wrap; gap: 14px; animation: w-fade 1s var(--ease) .85s both; }

@keyframes w-rise { from { transform: translateY(118%); } to { transform: translateY(0); } }
@keyframes w-fade { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

.w-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; padding: 16px 34px; border-radius: 999px; font-weight: 900; font-size: 1.05rem; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s; }
.w-btn span { position: relative; z-index: 1; }
.w-btn.primary { background: var(--gold); color: var(--ink); box-shadow: 0 14px 34px rgba(244, 165, 42, .34); }
.w-btn.primary::before { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(101%); transition: transform .45s var(--ease); }
.w-btn.primary:hover { transform: translateY(-3px); box-shadow: 0 20px 46px rgba(244, 165, 42, .46); }
.w-btn.primary:hover::before { transform: translateY(0); }
.w-btn.ghost { border: 1px solid rgba(255, 255, 255, .42); color: #fff; }
.w-btn.ghost:hover { background: rgba(255, 255, 255, .12); border-color: #fff; transform: translateY(-3px); }

.w-enter { position: absolute; z-index: 3; bottom: 26px; inset-inline-start: 50%; transform: translateX(50%); display: inline-flex; align-items: center; gap: 8px; color: rgba(255, 255, 255, .82); font-weight: 700; font-size: .9rem; animation: w-fade 1s var(--ease) 1.1s both; }
.w-enter .arrow { display: inline-grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 999px; animation: w-bob 1.8s ease-in-out infinite; }
@keyframes w-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 4px; }

@media (max-width: 560px) {
  .w-btn { padding: 14px 26px; font-size: .98rem; }
  .w-content { padding-top: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .w-bg img, .w-orb.a, .w-orb.b, .w-enter .arrow { animation: none; }
  .w-brand, .w-eyebrow, .w-lead, .w-actions, .w-enter,
  .w-title .ln > span, .w-title .ln > em { animation: none; opacity: 1; transform: none; }
}
