:root {
  --primary: #4f46e5;
  --primary-dark: #3730a3;
  --accent: #06b6d4;
  --text: #1e293b;
  --muted: #64748b;
  --bg: #f8fafc;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  overflow-x: hidden;
  position: relative;
}

/* خلفية زخرفية */
.bg-shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: .35;
  z-index: 0;
  animation: float 10s ease-in-out infinite;
}
.shape-1 { width: 380px; height: 380px; background: var(--primary); top: -120px; right: -100px; }
.shape-2 { width: 320px; height: 320px; background: var(--accent); bottom: -100px; left: -80px; animation-delay: -5s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(30px); }
}

.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  border-radius: 24px;
  padding: 48px 32px;
  text-align: center;
  box-shadow: 0 20px 60px rgba(15, 23, 42, .12);
  animation: rise .8s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

.logo {
  width: 84px; height: 84px;
  margin: 0 auto 20px;
  display: grid; place-items: center;
  border-radius: 22px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-weight: 800;
  font-size: 1.1rem;
}

.badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--primary);
  font-size: .9rem;
  font-weight: 600;
  margin-bottom: 14px;
}

h1 {
  font-size: clamp(2.8rem, 10vw, 4.5rem);
  font-weight: 800;
  line-height: 1.2;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.dots i {
  display: inline-block;
  width: 10px; height: 10px;
  margin-inline-start: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: blink 1.4s infinite both;
}
.dots i:nth-child(2) { animation-delay: .2s; }
.dots i:nth-child(3) { animation-delay: .4s; }

@keyframes blink {
  0%, 80%, 100% { opacity: .2; transform: scale(.8); }
  40% { opacity: 1; transform: scale(1.1); }
}

.lead {
  color: var(--muted);
  line-height: 1.9;
  margin: 16px 0 28px;
}

/* شريط التقدم */
.progress {
  height: 10px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}
.bar {
  height: 100%;
  width: 75%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  animation: grow 1.6s ease-out both;
}
@keyframes grow { from { width: 0; } }

.progress-text {
  display: block;
  margin: 8px 0 28px;
  color: var(--muted);
}

/* نموذج التسجيل */
.subscribe {
  display: flex;
  gap: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 6px;
}
.subscribe input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 10px 14px;
  font: inherit;
  background: transparent;
}
.subscribe button {
  border: 0;
  cursor: pointer;
  padding: 10px 22px;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  transition: background .2s, transform .2s;
}
.subscribe button:hover { background: var(--primary-dark); transform: translateY(-1px); }
.subscribe:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(79, 70, 229, .15); }

/* التواصل الاجتماعي */
.social {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}
.social a {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: #eef2ff;
  color: var(--primary);
  text-decoration: none;
  font-weight: 700;
  font-size: .8rem;
  transition: background .2s, color .2s, transform .2s;
}
.social a:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }

footer {
  position: relative;
  z-index: 1;
  margin-top: 24px;
  color: var(--muted);
  font-size: .85rem;
}

@media (max-width: 480px) {
  .card { padding: 36px 20px; }
  .subscribe { flex-direction: column; }
  .subscribe button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; }
}