:root {
  --bg: #06080f;
  --bg-soft: #0b101c;
  --card: rgba(255, 255, 255, 0.04);
  --card-border: rgba(255, 255, 255, 0.09);
  --text: #eef2f9;
  --text-dim: #93a0b8;
  --primary: #00c6ff;
  --primary-deep: #0072ff;
  --glow: rgba(0, 153, 255, 0.35);
  --radius: 16px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Sora", "Cairo", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

html[dir="rtl"] body { font-family: "Cairo", "Sora", sans-serif; }

::selection { background: var(--primary); color: #031019; }

/* ---------- Background ---------- */
.bg-orbs {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  animation: drift 18s ease-in-out infinite alternate;
}
.orb-1 { width: 480px; height: 480px; background: #003d7a; top: -140px; left: -120px; }
.orb-2 { width: 420px; height: 420px; background: #005f8a; bottom: -160px; right: -100px; animation-delay: -6s; }
.orb-3 { width: 300px; height: 300px; background: #001f4d; top: 40%; left: 55%; animation-delay: -12s; }
html[dir="rtl"] .orb-1 { left: auto; right: -120px; }
html[dir="rtl"] .orb-2 { right: auto; left: -100px; }

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, -40px) scale(1.15); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, #000 30%, transparent 75%);
}

/* ---------- Header ---------- */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px clamp(20px, 5vw, 56px);
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-logo { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: 0.4px; white-space: nowrap; }
.brand-name span { color: var(--primary); }

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 100px;
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.25s, box-shadow 0.25s, transform 0.2s;
}
.lang-toggle:hover {
  border-color: var(--primary);
  box-shadow: 0 0 18px var(--glow);
  transform: translateY(-1px);
}

/* ---------- Hero ---------- */
.main { flex: 1; }
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: clamp(40px, 8vh, 90px) 24px 60px;
  max-width: 860px;
  margin: 0 auto;
}

.logo-wrap { position: relative; width: 150px; height: 150px; margin-bottom: 34px; }
.hero-logo {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: float 5s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.logo-ring {
  position: absolute;
  inset: -22px;
  border-radius: 50%;
  border: 1px dashed rgba(0, 198, 255, 0.35);
  animation: spin 24s linear infinite;
}
.logo-ring::before {
  content: "";
  position: absolute;
  top: -4px; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary);
}
@keyframes spin { to { transform: rotate(360deg); } }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 20px;
  border-radius: 100px;
  border: 1px solid rgba(0, 198, 255, 0.35);
  background: rgba(0, 198, 255, 0.08);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 26px;
}
html[dir="rtl"] .badge { letter-spacing: 0.5px; }
.pulse-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--primary);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.6); }
  50% { box-shadow: 0 0 0 8px rgba(0, 198, 255, 0); }
}

.title {
  font-size: clamp(2rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1.18;
  background: linear-gradient(120deg, #ffffff 30%, var(--primary) 70%, var(--primary-deep));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 20px;
}

.subtitle {
  max-width: 620px;
  color: var(--text-dim);
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  line-height: 1.8;
  margin-bottom: 40px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 52px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 32px;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.25s, border-color 0.25s;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  color: #031019;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  box-shadow: 0 8px 28px var(--glow);
}
html[dir="rtl"] .btn-primary svg { transform: scaleX(-1); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 40px var(--glow); }

.btn-ghost {
  color: var(--text);
  border: 1px solid var(--card-border);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--primary); transform: translateY(-3px); }

/* ---------- Progress ---------- */
.progress-wrap { width: min(480px, 100%); }
.progress-info {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 10px;
}
#progressPct { color: var(--primary); font-weight: 700; }
.progress-bar {
  height: 8px;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  width: 0;
  border-radius: 100px;
  background: linear-gradient(90deg, var(--primary-deep), var(--primary));
  box-shadow: 0 0 14px var(--glow);
  transition: width 1.8s cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Socials ---------- */
.socials {
  max-width: 900px;
  margin: 0 auto;
  padding: 30px 24px 80px;
  text-align: center;
}
.section-title {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
  font-weight: 800;
  margin-bottom: 36px;
}
.social-group { margin-bottom: 40px; }
.group-label {
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 18px;
}
html[dir="rtl"] .group-label { letter-spacing: 0.5px; }

.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  max-width: 720px;
  margin: 0 auto;
}
.social-grid-sm { max-width: 480px; }

.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 22px 14px;
  border-radius: var(--radius);
  border: 1px solid var(--card-border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  transition: transform 0.22s, border-color 0.25s, box-shadow 0.25s, color 0.25s;
  backdrop-filter: blur(8px);
}
.social-card svg { color: var(--text-dim); transition: color 0.25s, transform 0.25s; }
.social-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 12px 32px var(--glow);
  color: var(--primary);
}
.social-card:hover svg { color: var(--primary); transform: scale(1.15); }

.social-card.founder { flex-direction: row; justify-content: center; padding: 16px 20px; }

/* ---------- Footer ---------- */
.footer {
  padding: 26px 20px;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* ---------- Reveal animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  animation: reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes reveal {
  to { opacity: 1; transform: translateY(0); }
}

/* ---------- Responsive ---------- */
@media (max-width: 560px) {
  .header { padding: 16px 18px; }
  .logo-wrap { width: 120px; height: 120px; }
  .cta-row { flex-direction: column; width: 100%; }
  .btn { justify-content: center; width: 100%; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .social-grid-sm { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
