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

:root {
  --primary: #b8737a;
  --primary-dark: #9a5d63;
  --primary-light: #dfb2b7;
  --bg-dark: #0a0a14;
  --bg-card: #12121f;
  --bg-elevated: #1a1a2e;
  --text: #f0ece4;
  --text-muted: #a0988e;
  --text-dim: #6b6359;
  --gold: #d4a853;
  --gold-muted: rgba(212, 168, 83, 0.12);
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 12px 48px rgba(0,0,0,0.4);
  --transition: 0.4s cubic-bezier(.4,0,.2,1);
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Inter', sans-serif;
  --font-display: 'Playfair Display', serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
}

body.ltr { direction: ltr; }

a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

#loader {
  position: fixed;
  inset: 0;
  background: var(--bg-dark);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s, visibility 0.5s;
}
#loader.hidden { opacity: 0; visibility: hidden; }

.loader-ring {
  width: 46px;
  height: 46px;
  border: 3px solid var(--bg-elevated);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

#progress-bar {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--primary));
  width: 0%;
  z-index: 9999;
  transition: width 0.1s;
}

#particles-canvas {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

#header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9998;
  padding: 18px 0;
  transition: background var(--transition), padding var(--transition);
}
#header.scrolled {
  background: rgba(10,10,20,0.8);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 12px 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.logo span { color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 14px; }

.lang-switcher {
  display: flex;
  gap: 3px;
  background: var(--bg-elevated);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-family: var(--font-en);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn.active {
  background: var(--gold);
  color: #111;
}

.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 0 80px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.18;
}
.shape-1 {
  width: 550px; height: 550px;
  background: var(--primary);
  top: -150px; right: -100px;
  animation: floatA 10s ease-in-out infinite;
}
.shape-2 {
  width: 450px; height: 450px;
  background: var(--gold);
  bottom: -100px; left: -100px;
  animation: floatB 12s ease-in-out infinite;
}
.shape-3 {
  width: 300px; height: 300px;
  background: var(--primary-light);
  top: 40%; left: 60%;
  animation: floatC 14s ease-in-out infinite;
}

@keyframes floatA {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(50px,-50px); }
}
@keyframes floatB {
  0%,100% { transform: translate(0,0); }
  50% { transform: translate(-40px,40px); }
}
@keyframes floatC {
  0%,100% { transform: translate(0,0) scale(1); }
  50% { transform: translate(30px,-30px) scale(1.08); }
}

.hero-content {
  text-align: center;
  position: relative;
  z-index: 1;
  max-width: 720px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 22px;
  border-radius: 50px;
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 20px;
  animation: pulseBadge 2s ease-in-out infinite;
}
@keyframes pulseBadge {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.hero-name {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 12px;
}
.hero-name span { color: var(--gold); }

.hero-title {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  font-weight: 400;
}

.hero-desc {
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 540px;
  margin: 0 auto 36px;
  line-height: 1.9;
}

.coming-soon-grid {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.coming-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 50px;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.04);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition);
}
.coming-item:hover {
  border-color: rgba(212,168,83,0.2);
  color: var(--gold);
  transform: translateY(-2px);
}
.coming-item i {
  font-size: 1rem;
  color: var(--gold);
}

.hero-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-social a {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--bg-elevated);
  border: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted);
  transition: all var(--transition);
  font-size: 1.05rem;
}
.hero-social a:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-4px);
  box-shadow: 0 6px 20px var(--gold-muted);
}

.launch-info {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(255,255,255,0.02);
  border: 1px dashed rgba(255,255,255,0.06);
}
.launch-info i { color: var(--gold); }

.scroll-indicator {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: var(--text-dim);
  font-size: 0.78rem;
  animation: bounceDown 2.5s ease-in-out infinite;
}
@keyframes bounceDown {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(8px); }
}

/* ===== TEASER ===== */
.teaser {
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}

.teaser-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.04);
  border-radius: var(--radius);
  padding: 60px 50px;
  position: relative;
  overflow: hidden;
}

.teaser-shape {
  position: absolute;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(212,168,83,0.06), transparent 70%);
  top: -150px;
  left: -150px;
  pointer-events: none;
}

.teaser-card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  margin-bottom: 12px;
}

.teaser-card > p {
  color: var(--text-dim);
  font-size: 0.95rem;
  max-width: 580px;
  margin-bottom: 36px;
  line-height: 1.8;
}

.teaser-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.teaser-feature {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 20px;
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
  transition: all var(--transition);
}
.teaser-feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.teaser-feature i {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: var(--gold-muted);
  color: var(--gold);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.teaser-feature strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 2px;
}
.teaser-feature span {
  font-size: 0.82rem;
  color: var(--text-dim);
}

/* ===== FOOTER ===== */
footer {
  border-top: 1px solid rgba(255,255,255,0.04);
  padding: 22px 0;
  position: relative;
  z-index: 1;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-inner p {
  font-size: 0.82rem;
  color: var(--text-dim);
}
.footer-social {
  display: flex;
  gap: 10px;
}
.footer-social a {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--bg-elevated);
  color: var(--text-muted);
  font-size: 0.8rem;
  transition: all var(--transition);
}
.footer-social a:hover {
  background: var(--gold);
  color: #111;
}

#back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--gold);
  color: #111;
  border: none;
  font-size: 0.95rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all var(--transition);
  z-index: 999;
  box-shadow: 0 4px 15px rgba(212,168,83,0.3);
}
#back-to-top.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 25px rgba(212,168,83,0.4);
}

.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .teaser-features { grid-template-columns: 1fr; }
  .teaser-card { padding: 40px 28px; }
}

@media (max-width: 768px) {
  .hero-name { font-size: clamp(2.2rem, 9vw, 3rem); }
  .coming-soon-grid { gap: 10px; }
  .coming-item { padding: 8px 16px; font-size: 0.82rem; }
  .hero-social a { width: 38px; height: 38px; font-size: 0.95rem; }
  .teaser { padding: 40px 0 60px; }
  .teaser-card { padding: 30px 20px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .hero { padding: 100px 0 60px; }
  .hero-desc { font-size: 0.92rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}
