:root {
  --bg: #0a0a0f;
  --bg2: #111118;
  --bg3: #1a1a25;
  --surface: #16161f;
  --border: #2a2a3a;
  --accent: #00e5ff;
  --accent2: #7c3aed;
  --accent3: #10b981;
  --text: #f0f0ff;
  --text2: #a0a0c0;
  --text3: #6060a0;
  --card-shadow: 0 0 40px rgba(0,229,255,0.06);
  --glow: 0 0 20px rgba(0,229,255,0.3);
  --radius: 16px;
  --font-ar: 'Cairo', sans-serif;
  --font-en: 'Space Mono', monospace;
}

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

html { direction: rtl; }
body { font-family: var(--font-ar); }
.wa-float { left: 28px; right: auto; align-items: flex-start; }
@media (max-width: 600px) {
  .wa-float { left: 18px; right: auto; }
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ar);
  font-size: 16px;
  line-height: 1.7;
  transition: background 0.3s, color 0.3s;
  overflow-x: hidden;
}

[data-lang="ar"] { direction: rtl; }

/* NOISE OVERLAY */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.5;
}

/* HEADER */
header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,15,0.85);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 24px;
  height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  transition: background 0.3s;
}
[data-theme="light"] header { background: rgba(244,244,255,0.88); }

.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  display: flex; align-items: center; gap: 10px;
}
.logo span { color: var(--text); }
.logo-dot { width: 8px; height: 8px; background: var(--accent); border-radius: 50%; display: inline-block; animation: pulse 2s infinite; }

.header-controls {
  display: flex; align-items: center; gap: 12px;
}

.toggle-btn {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 0.78rem;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s;
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
}
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.toggle-btn .icon { font-size: 1rem; }

/* HERO */
.hero {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 100px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  opacity: 0.3;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 0%, transparent 100%);
}

.hero-glow {
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.12) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,229,255,0.08);
  border: 1px solid rgba(0,229,255,0.25);
  border-radius: 999px;
  padding: 6px 18px;
  font-size: 0.75rem;
  color: var(--accent);
  margin-bottom: 28px;
  position: relative;
  animation: fadeUp 0.6s ease both;
}
.badge-dot { width: 6px; height: 6px; background: var(--accent); border-radius: 50%; animation: pulse 1.5s infinite; }

h1 {
  font-size: clamp(2rem, 6vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
  position: relative;
  animation: fadeUp 0.7s 0.1s ease both;
}
h1 em {
  font-style: normal;
  color: var(--accent);
  position: relative;
}
h1 em::after {
  content: '';
  position: absolute; bottom: -4px; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
  border-radius: 2px;
}

.hero-sub {
  font-size: clamp(0.95rem, 2.5vw, 1.15rem);
  color: var(--text2);
  max-width: 600px;
  margin: 0 auto 40px;
  position: relative;
  animation: fadeUp 0.7s 0.2s ease both;
}

.hero-ctas {
  display: flex; flex-wrap: wrap; gap: 14px; justify-content: center;
  position: relative;
  animation: fadeUp 0.7s 0.3s ease both;
}

.btn-primary {
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: var(--glow);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 0 32px rgba(0,229,255,0.5); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 32px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.25s;
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }

/* STATS BAR */
.stats-bar {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  margin-top: 60px; position: relative;
}
.stat-item {
  flex: 1; min-width: 140px;
  padding: 28px 20px;
  text-align: center;
  border-left: 1px solid var(--border);
  transition: background 0.2s;
}
.stat-item:first-child { border-left: none; }
[data-lang="ar"] .stat-item:first-child { border-left: 1px solid var(--border); }
[data-lang="ar"] .stat-item:last-child { border-left: none; }
.stat-item:hover { background: var(--bg3); }
.stat-num {
  font-size: 2rem; font-weight: 900;
  color: var(--accent);
  display: block; line-height: 1;
}
.stat-label { font-size: 0.78rem; color: var(--text2); margin-top: 6px; }

/* SECTION */
section { padding: 80px 24px; max-width: 1100px; margin: 0 auto; }

.section-tag {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.section-tag::before { content: '//'; opacity: 0.5; }

h2 {
  font-size: clamp(1.6rem, 4vw, 2.5rem);
  font-weight: 900;
  margin-bottom: 16px;
  line-height: 1.2;
}
.section-desc {
  color: var(--text2);
  max-width: 560px;
  margin-bottom: 50px;
  font-size: 1rem;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.step {
  background: var(--surface);
  padding: 36px 28px;
  position: relative;
  transition: background 0.2s;
}
.step:hover { background: var(--bg3); }
.step-num {
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--border);
  line-height: 1;
  margin-bottom: 16px;
  font-family: 'Space Mono', monospace;
  transition: color 0.2s;
}
.step:hover .step-num { color: var(--accent); }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
.step-icon {
  font-size: 1.8rem;
  margin-bottom: 12px;
  display: block;
}

/* PLATFORMS */
.platforms-section { text-align: center; }
.platforms-group { margin-bottom: 48px; }
.platforms-group-title {
  font-size: 0.75rem;
  color: var(--text3);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.platforms-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
}
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 18px 28px;
  font-size: 0.95rem;
  font-weight: 600;
  display: flex; align-items: center; gap: 10px;
  transition: all 0.25s;
  cursor: pointer;
  }
.platform-card:hover {
  border-color: var(--accent);
  box-shadow: var(--glow);
  transform: translateY(-3px);
}
.platform-card .picon { font-size: 1.4rem; }

.connector {
  display: flex; align-items: center; justify-content: center;
  gap: 16px;
  padding: 32px 0;
  color: var(--text3);
  font-size: 0.85rem;
}
.connector-line {
  flex: 1; max-width: 120px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

/* FEATURES */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  position: relative;
  overflow: hidden;
  transition: all 0.25s;
}
.feature-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  opacity: 0;
  transition: opacity 0.3s;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); border-color: rgba(0,229,255,0.3); }
.feature-card:hover::before { opacity: 1; }
.feature-icon { font-size: 2rem; margin-bottom: 16px; display: block; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.feature-card p { font-size: 0.875rem; color: var(--text2); line-height: 1.65; }

/* FLOW DIAGRAM */
.flow {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 24px;
  overflow-x: auto;
}
.flow-track {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 600px;
  justify-content: center;
}
.flow-node {
  text-align: center;
  flex: 1;
}
.flow-box {
  display: inline-block;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 16px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  transition: all 0.25s;
}
.flow-box:hover { border-color: var(--accent); color: var(--accent); }
.flow-box .ficon { display: block; font-size: 1.3rem; margin-bottom: 4px; }
.flow-arrow {
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
  padding: 0 4px;
}

/* PRICING */
.pricing-card {
  max-width: 480px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.pricing-card::after {
  content: '';
  position: absolute;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0,229,255,0.08) 0%, transparent 70%);
  bottom: -100px; right: -100px;
  pointer-events: none;
}
.pricing-label {
  font-size: 0.72rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}
.pricing-price {
  font-size: 3.5rem;
  font-weight: 900;
  line-height: 1;
  font-family: 'Space Mono', monospace;
  color: var(--text);
  margin-bottom: 6px;
}
.pricing-period { color: var(--text2); font-size: 0.88rem; margin-bottom: 32px; }
.pricing-features { list-style: none; margin-bottom: 36px; text-align: start; }
.pricing-features li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
  display: flex; align-items: center; gap: 10px;
  color: var(--text2);
}
.pricing-features li::before { content: '✓'; color: var(--accent3); font-weight: 700; flex-shrink: 0; }

/* CONTACT */
.contact-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 60px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 700px;
  margin: 0 auto;
}
.contact-section::before {
  content: '';
  position: absolute; top: -2px; left: 20%; right: 20%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}
.contact-section h2 { margin-bottom: 14px; }
.contact-section p { color: var(--text2); margin-bottom: 36px; }
.wa-btn {
  display: inline-flex; align-items: center; gap: 12px;
  background: #25D366;
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 16px 40px;
  font-size: 1.05rem;
  font-weight: 700;
  font-family: inherit;
  transition: all 0.25s;
  box-shadow: 0 0 30px rgba(37,211,102,0.3);
}
.wa-btn:hover { transform: translateY(-3px); box-shadow: 0 0 40px rgba(37,211,102,0.5); }
.wa-icon { font-size: 1.4rem; }

/* FOOTER */
footer {
  text-align: center;
  padding: 40px 24px;
  border-top: 1px solid var(--border);
  color: var(--text3);
  font-size: 0.8rem;
}

/* ANIMATIONS */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: none; }

/* MOBILE */
@media (max-width: 600px) {
  header { padding: 0 16px; }
  .toggle-btn { padding: 5px 11px; font-size: 0.72rem; }
  .logo { font-size: 0.95rem; }
  section { padding: 60px 16px; }
  .pricing-card, .contact-section { padding: 36px 22px; }
  .stat-item { min-width: 110px; }
}

/* ABOUT ME */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 32px; }
}
.about-avatar {
  display: flex; justify-content: center; align-items: center;
}
.avatar-ring {
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  position: relative;
  background: var(--surface);
}
.avatar-ring::before {
  content: '';
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), var(--accent2), transparent) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: destination-out;
  mask-composite: exclude;
}
.avatar-emoji { font-size: 5rem; }
.about-bio {
  font-size: 0.95rem;
  color: var(--text2);
  line-height: 1.8;
  margin-bottom: 28px;
}
.about-stats {
  display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 28px;
}
.about-stat {
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 22px;
  flex: 1; min-width: 90px;
}
.about-stat .num { font-size: 1.8rem; font-weight: 900; color: var(--accent); font-family: 'Space Mono', monospace; display: block; line-height: 1; }
.about-stat .lbl { font-size: 0.72rem; color: var(--text3); margin-top: 5px; }
.mostaql-btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  font-size: 0.88rem;
  font-weight: 600;
  font-family: inherit;
  transition: all 0.25s;
}
.mostaql-btn:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); box-shadow: var(--glow); }
.mostaql-logo { font-size: 1.1rem; }

/* EXPERIENCE SLIDER */
.slider-wrapper {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px 10px;
}
.slider-track {
  display: flex;
  gap: 20px;
  padding: 20px 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
}
.slider-track::-webkit-scrollbar { display: none; }
.slider-track.dragging { cursor: grabbing; scroll-snap-type: none; }
.store-card {
  scroll-snap-align: start;
  flex-shrink: 0;
  width: 180px;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px;
  text-align: center;
  transition: all 0.25s;
  user-select: none;
}
.store-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--glow); }
.store-logo {
  width: 64px; height: 64px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}
.store-name { font-size: 0.9rem; font-weight: 700; color: var(--text); }
.store-tag { font-size: 0.7rem; color: var(--text3); }
.slider-nav {
  display: flex; justify-content: center; gap: 10px; padding: 12px 0 4px;
}
.slider-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--border);
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}
.slider-dot.active { background: var(--accent); width: 20px; border-radius: 3px; }
.slider-arrows {
  display: flex; gap: 8px; justify-content: flex-end; padding: 0 24px 12px;
}
.slider-arrow {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text2);
  width: 36px; height: 36px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.slider-arrow:hover { border-color: var(--accent); color: var(--accent); }

/* FLOATING WHATSAPP */
.wa-float {
  position: fixed;
  bottom: 28px;
  left: 28px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.wa-float-bubble {
  background: #25D366;
  color: white;
  width: 58px; height: 58px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(37,211,102,0.45);
  transition: transform 0.25s, box-shadow 0.25s;
  text-decoration: none;
  position: relative;
}
.wa-float-bubble:hover { transform: scale(1.1); box-shadow: 0 6px 32px rgba(37,211,102,0.6); }
.wa-float-bubble::before {
  content: '';
  position: absolute; inset: -4px;
  border-radius: 50%;
  border: 2px solid rgba(37,211,102,0.35);
  animation: wa-ping 2s ease-out infinite;
}
@keyframes wa-ping {
  0%   { transform: scale(1); opacity: 0.7; }
  100% { transform: scale(1.55); opacity: 0; }
}

.wa-float-tooltip {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 7px 14px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(0,0,0,0.2);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.wa-float:hover .wa-float-tooltip { opacity: 1; transform: translateY(0); }

@media (max-width: 600px) {
  .wa-float { bottom: 20px; left: 18px; }
  .wa-float-bubble { width: 52px; height: 52px; font-size: 1.5rem; }
}

[data-lang="ar"] .en-text { display: none; }