/* ==========================================================================
   منصتي — الصفحة العامة. ملف واحد مستقل (من غير سكريبت) عشان يتخدم كمان من Cloudflare
   والجهاز مقفول. نفس ألوان البورتال.
   ========================================================================== */

:root {
  --bg: #0a0714;
  --panel: rgba(24, 18, 46, 0.66);
  --border: rgba(160, 120, 255, 0.18);
  --border-strong: rgba(168, 85, 247, 0.5);
  --text: #eeeaff;
  --text-dim: #b3abd4;
  --accent: #a855f7;
  --accent2: #6366f1;
  --accent3: #ec4899;
  --cyan: #38e1ff;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, "SF Arabic", "Segoe UI", Tahoma, Arial, sans-serif;
  color: var(--text);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 700px at 85% -10%, rgba(99, 102, 241, 0.24), transparent 60%),
    radial-gradient(900px 600px at 0% 20%, rgba(168, 85, 247, 0.17), transparent 60%),
    radial-gradient(800px 600px at 60% 110%, rgba(236, 72, 153, 0.10), transparent 60%),
    var(--bg);
  background-attachment: fixed;
}
body::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: 0.35;
  background: url("/img/backdrop.webp") center / cover no-repeat;
}
.top, main, .foot { position: relative; z-index: 1; }

a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }
::selection { background: rgba(168, 85, 247, 0.45); }

.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: #fff; color: #1a1235; padding: 8px 14px;
  border-radius: 10px; z-index: 5; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- الهيدر */
.top { max-width: 1120px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.3rem; }
.brand small { font-weight: 400; font-size: 0.8rem; color: var(--text-dim); }
.top-nav { display: flex; align-items: center; gap: 10px; }

.cta, .ghost { display: inline-block; text-decoration: none; font-weight: 700; border-radius: 14px;
  padding: 13px 26px; transition: transform 0.25s var(--ease), box-shadow 0.25s, background 0.25s; white-space: nowrap; }
.cta { color: #fff; background: linear-gradient(135deg, #7c3aed, #6366f1 55%, #c026d3);
  box-shadow: 0 10px 34px rgba(124, 58, 237, 0.45); }
.cta:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(124, 58, 237, 0.6); }
.cta.small { padding: 9px 18px; font-size: 0.92rem; border-radius: 12px; }
.ghost { color: var(--text); border: 1px solid var(--border); background: rgba(255, 255, 255, 0.04); padding: 12px 20px; }
.ghost:hover { background: rgba(255, 255, 255, 0.09); }
.top-nav .ghost { padding: 8px 16px; font-size: 0.92rem; border-radius: 12px; }

/* ---------------------------------------------------------------- الواجهة */
.hero { max-width: 1120px; margin: 0 auto; padding: 34px 20px 40px; display: grid;
  grid-template-columns: 1.05fr 0.95fr; gap: 28px; align-items: center; }
.badge { display: inline-block; margin: 0 0 18px; padding: 6px 14px; border-radius: 999px; font-size: 0.82rem;
  color: #d9ccff; background: rgba(124, 58, 237, 0.18); border: 1px solid var(--border-strong); }
.hero h1 { margin: 0 0 18px; font-size: clamp(2.1rem, 5.4vw, 3.7rem); line-height: 1.25; letter-spacing: 0; }
.grad { background: linear-gradient(100deg, #c4b5fd, #a855f7 45%, #38e1ff); -webkit-background-clip: text;
  background-clip: text; color: transparent; }
.lead { margin: 0 0 28px; font-size: clamp(1.02rem, 1.7vw, 1.2rem); color: var(--text-dim); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero-art { text-align: center; }
.hero-art img { width: 100%; max-width: 520px; height: auto;
  filter: drop-shadow(0 30px 60px rgba(124, 58, 237, 0.5)); animation: drift 9s ease-in-out infinite; }
@keyframes drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

/* ---------------------------------------------------------------- الأقسام */
.block { max-width: 1120px; margin: 0 auto; padding: 34px 20px; }
.block h2, .closing h2 { margin: 0 0 22px; font-size: clamp(1.4rem, 3vw, 1.9rem); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.steps li, .card { background: var(--panel); border: 1px solid var(--border); border-radius: 20px; padding: 22px 20px;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.num { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; font-weight: 800;
  color: #fff; background: linear-gradient(135deg, #7c3aed, #2563eb); margin-bottom: 12px; }
.steps h3, .card h3 { margin: 0 0 6px; font-size: 1.08rem; }
.steps p, .card p { margin: 0; color: var(--text-dim); font-size: 0.93rem; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card img { width: 56px; height: 56px; margin-bottom: 10px; }
.card { transition: transform 0.3s var(--ease), border-color 0.3s; }
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); }

.closing { max-width: 760px; margin: 26px auto 10px; padding: 40px 24px; text-align: center; border-radius: 26px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, rgba(124, 58, 237, 0.22), rgba(37, 99, 235, 0.10)); }
.closing h2 { margin-bottom: 8px; }
.closing p { margin: 0 0 22px; color: var(--text-dim); }

.foot { max-width: 1120px; margin: 0 auto; padding: 30px 20px 40px; display: flex; flex-wrap: wrap; gap: 12px;
  justify-content: space-between; color: var(--text-dim); font-size: 0.86rem; }
.foot-links { display: inline-flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--text); text-decoration: underline; }

/* ---------------------------------------------------------------- الشاشات الصغيرة */
@media (max-width: 960px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr; padding-top: 12px; text-align: center; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 250px; }
  .lead { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .closing { margin-inline: 16px; }
}
@media (max-width: 520px) {
  .steps, .cards { grid-template-columns: 1fr; }
  .brand small { display: none; }
  .hero-actions .cta, .hero-actions .ghost { width: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-art img { animation: none; }
  .cta, .card { transition: none; }
}
