:root {
  --bg-dark: #07070a;
  --card-bg: rgba(18, 18, 25, 0.72);
  --border-light: rgba(255, 255, 255, 0.1);
  --indigo: #6366f1;
  --pink: #ec4899;
  --emerald: #10b981;
  --text-main: #f9fafb;
  --text-muted: #9ca3af;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Cairo', 'Plus Jakarta Sans', sans-serif;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  overflow-x: hidden;
  line-height: 1.65;
}

/* خلفية الإضاءات المحيطية المتحركة */
.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.35;
  animation: floatOrb 14s infinite alternate ease-in-out;
}

.orb-1 { width: 420px; height: 420px; background: #6366f1; top: -100px; right: 15%; }
.orb-2 { width: 380px; height: 380px; background: #ec4899; top: 35%; left: -80px; animation-delay: 3s; }
.orb-3 { width: 450px; height: 450px; background: #10b981; bottom: -120px; right: 20%; animation-delay: 6s; }

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(40px, 30px) scale(1.12); }
}

.grid-overlay {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at center, black 40%, transparent 90%);
}

/* شريط التنقل */
.navbar {
  position: sticky;
  top: 14px;
  z-index: 100;
  display: flex;
  justify-content: center;
  padding: 0 20px;
}

.nav-container {
  width: 100%;
  max-width: 1060px;
  background: rgba(14, 14, 20, 0.78);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-light);
  border-radius: 99px;
  padding: 10px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
}

.brand-dot {
  width: 10px;
  height: 10px;
  background: var(--emerald);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--emerald);
}

.version-pill {
  background: rgba(99, 102, 241, 0.2);
  color: #a5b4fc;
  font-size: 11px;
  padding: 1px 8px;
  border-radius: 10px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 24px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  transition: 0.2s;
}

.nav-links a:hover { color: #fff; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-light);
  color: #e5e7eb;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.2s;
}

.lang-btn:hover { background: rgba(255, 255, 255, 0.16); }

.nav-cta {
  background: var(--indigo);
  color: #fff;
  text-decoration: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  transition: 0.25s;
}

.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(99, 102, 241, 0.45); }

/* القسم الرئيسي Hero */
.hero {
  max-width: 1060px;
  margin: 0 auto;
  padding: 65px 20px 50px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-light);
  padding: 5px 16px;
  border-radius: 99px;
  font-size: 12.5px;
  color: #d1d5db;
  margin-bottom: 18px;
}

.pulse-ring {
  width: 8px;
  height: 8px;
  background: var(--indigo);
  border-radius: 50%;
  box-shadow: 0 0 10px var(--indigo);
}

.hero-title {
  font-size: clamp(32px, 5vw, 54px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 16px;
}

.gradient-text {
  background: linear-gradient(135deg, #818cf8, #f472b6, #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  max-width: 680px;
  margin: 0 auto 28px;
  color: var(--text-muted);
  font-size: 16px;
}

/* أزرار تجربة الثيمات */
.demo-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.demo-label { font-size: 13px; color: #9ca3af; }

.demo-theme-pills {
  display: flex;
  gap: 6px;
  background: rgba(255, 255, 255, 0.05);
  padding: 4px;
  border-radius: 14px;
  border: 1px solid var(--border-light);
}

.d-theme {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 4px 12px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}

.d-theme.active { background: #fff; color: #000; }

/* مسرح المحاكاة الحية للكبسولة */
.screen-stage {
  max-width: 680px;
  margin: 0 auto 32px;
}

.screen-top-bezel {
  background: linear-gradient(180deg, rgba(255,255,255,0.06) 0%, rgba(255,255,255,0.01) 100%);
  border: 1px solid var(--border-light);
  border-bottom: none;
  border-radius: 32px 32px 18px 18px;
  padding: 0 18px 26px;
  display: flex;
  justify-content: center;
  position: relative;
}

.dock-simulator {
  width: 100%;
  max-width: 490px;
  background: rgba(14, 14, 18, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-top: none;
  border-radius: 0 0 28px 28px;
  padding: 14px 18px 18px;
  text-align: start;
  transition: all 0.35s ease;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.65);
}

/* ثيمات التوهج في المحاكي */
.dock-simulator.theme-indigo {
  border-color: rgba(99, 102, 241, 0.65);
  box-shadow: 0 16px 45px rgba(99, 102, 241, 0.35);
}

@keyframes rgbSim {
  0%   { border-color: rgba(236, 72, 153, 0.7); box-shadow: 0 16px 45px rgba(236, 72, 153, 0.35); }
  50%  { border-color: rgba(99, 102, 241, 0.7); box-shadow: 0 16px 45px rgba(99, 102, 241, 0.35); }
  100% { border-color: rgba(16, 185, 129, 0.7); box-shadow: 0 16px 45px rgba(16, 185, 129, 0.35); }
}
.dock-simulator.theme-rgb { animation: rgbSim 4s infinite alternate linear; }

.dock-simulator.theme-battery {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 16px 45px rgba(16, 185, 129, 0.32);
}

.sim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap;
}

.sim-tabs { display: flex; gap: 4px; }
.sim-tab {
  background: transparent;
  border: none;
  color: #9ca3af;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.sim-tab.active { background: rgba(255,255,255,0.14); color: #fff; }

.sim-badges { display: flex; gap: 4px; font-size: 10.5px; color: #9ca3af; }
.sim-badges span { background: rgba(255,255,255,0.06); padding: 2px 7px; border-radius: 7px; }
.bat-charge { color: #34d399 !important; }

.sim-panel { display: none; min-height: 155px; }
.sim-panel.active { display: block; animation: fadeUp 0.25s ease; }

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

.sim-input-row { display: flex; gap: 6px; margin-bottom: 10px; }
.sim-input-row input {
  flex: 1;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 6px 12px;
  color: #fff;
  font-size: 12.5px;
  outline: none;
}
.sim-input-row button {
  background: var(--indigo);
  border: none;
  color: #fff;
  width: 34px;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
}

.sim-task-list { list-style: none; display: flex; flex-direction: column; gap: 6px; }
.sim-date-lbl { font-size: 11px; color: #34d399; font-weight: 700; }
.sim-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.05);
  padding: 7px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  border-inline-start: 3px solid var(--emerald);
}
.sim-item .done { text-decoration: line-through; color: #6b7280; }

.sim-media-box { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.sim-art {
  width: 46px; height: 46px; border-radius: 12px;
  background: linear-gradient(135deg, #6366f1, #ec4899);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.sim-media-box h4 { font-size: 13.5px; }
.sim-media-box p { font-size: 11.5px; color: #9ca3af; }

.sim-sliders { display: flex; flex-direction: column; gap: 8px; }
.sim-slider-row {
  display: flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.06); padding: 7px 12px; border-radius: 10px; font-size: 12px;
}
.sim-slider-row input { flex: 1; accent-color: var(--indigo); }

.sim-timer-wrap { text-align: center; padding: 10px 0; }
.sim-clock { font-size: 42px; font-weight: 800; color: #a5b4fc; font-variant-numeric: tabular-nums; }
.sim-timer-btns { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.s-btn { padding: 6px 22px; border-radius: 10px; border: none; font-weight: 700; cursor: pointer; font-size: 12.5px; }
.s-btn.green { background: var(--emerald); color: #fff; }
.s-btn.dark { background: rgba(255,255,255,0.12); color: #fff; }

.sim-tools-grid { display: flex; flex-direction: column; gap: 10px; }
.sim-pad { background: rgba(255,255,255,0.05); padding: 8px 12px; border-radius: 12px; }
.sim-pad-top { display: flex; justify-content: space-between; align-items: center; font-size: 11.5px; color: #9ca3af; margin-bottom: 6px; }
.fix-pill { background: var(--indigo); border: none; color: #fff; padding: 2px 10px; border-radius: 7px; font-size: 11px; font-weight: 700; cursor: pointer; }
.sim-pad textarea { width: 100%; height: 42px; background: transparent; border: none; color: #fff; font-size: 13px; resize: none; outline: none; }
.sim-shortcuts-demo { display: flex; gap: 6px; flex-wrap: wrap; }
.sc-tag { background: rgba(255,255,255,0.08); padding: 4px 10px; border-radius: 8px; font-size: 11px; }

.stage-hint { font-size: 12.5px; color: #9ca3af; margin-top: 10px; }

/* أزرار الدعوة للإجراء */
.hero-cta-group { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #fff;
  text-decoration: none;
  padding: 13px 26px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14.5px;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.4);
  transition: 0.25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(99, 102, 241, 0.55); }

.btn-secondary {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--border-light);
  color: #fff;
  text-decoration: none;
  padding: 13px 24px;
  border-radius: 16px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.25s;
}
.btn-secondary:hover { background: rgba(255, 255, 255, 0.14); }

/* الأقسام والمميزات */
.section { max-width: 1060px; margin: 0 auto; padding: 70px 20px; }
.section-head { text-align: center; margin-bottom: 42px; }
.sec-tag { color: #a5b4fc; font-size: 13px; font-weight: 700; display: block; margin-bottom: 6px; }
.section-head h2 { font-size: clamp(24px, 3.5vw, 36px); font-weight: 800; }

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.bento-card {
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 26px;
  transition: 0.3s;
}
.bento-card:hover { transform: translateY(-4px); border-color: rgba(99, 102, 241, 0.45); }
.bento-card.span-2 { grid-column: span 2; }

.card-icon {
  width: 44px; height: 44px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; margin-bottom: 14px;
}
.card-icon.indigo { background: rgba(99, 102, 241, 0.2); }
.card-icon.emerald { background: rgba(16, 185, 129, 0.2); }
.card-icon.pink { background: rgba(236, 72, 153, 0.2); }
.card-icon.amber { background: rgba(245, 158, 11, 0.2); }
.card-icon.sky { background: rgba(56, 189, 248, 0.2); }
.card-icon.purple { background: rgba(168, 85, 247, 0.2); }

.bento-card h3 { font-size: 17px; margin-bottom: 8px; }
.bento-card p { font-size: 13.5px; color: var(--text-muted); }

/* خطوات التتوريال */
.steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-bottom: 24px; }
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 24px;
}
.step-num { font-size: 28px; font-weight: 900; color: var(--indigo); margin-bottom: 8px; }
.step-card h4 { font-size: 16px; margin-bottom: 6px; }
.step-card p { font-size: 13.5px; color: var(--text-muted); }

kbd {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  padding: 1px 7px;
  font-size: 12px;
  font-family: monospace;
  color: #fff;
}

.shortcuts-table-box {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: 22px;
  padding: 22px 26px;
}
.shortcuts-table-box h4 { margin-bottom: 14px; font-size: 15px; color: #a5b4fc; }
.kbd-list { display: flex; flex-direction: column; gap: 10px; }
.kbd-item {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,0.06);
  font-size: 13.5px;
}
.kbd-item:last-child { border-bottom: none; padding-bottom: 0; }

/* قسم التحميل */
.download-card {
  position: relative;
  background: linear-gradient(135deg, rgba(22, 22, 32, 0.9), rgba(14, 14, 20, 0.95));
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-radius: 30px;
  padding: 46px 28px;
  text-align: center;
  overflow: hidden;
}

.dl-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
  padding: 4px 14px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}

.download-card h2 { font-size: clamp(24px, 3.5vw, 34px); margin: 14px 0 10px; }
.download-card > p { max-width: 600px; margin: 0 auto 28px; color: var(--text-muted); font-size: 14.5px; }

.dl-buttons { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.dl-main, .dl-port { text-align: start; padding: 14px 24px; }
.dl-main strong, .dl-port strong { display: block; font-size: 14.5px; }
.dl-main small, .dl-port small { font-size: 11.5px; opacity: 0.85; font-weight: 400; }

.smartscreen-note {
  max-width: 640px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: start;
  font-size: 12.5px;
  color: #d1d5db;
}

/* الفوتر */
.footer {
  border-top: 1px solid var(--border-light);
  padding: 28px 20px;
  margin-top: 30px;
}

.footer-content {
  max-width: 1060px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}

.footer-brand { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-muted); }
.footer-brand strong { color: #fff; }

.footer-dev-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(236, 72, 153, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  padding: 7px 16px;
  border-radius: 99px;
  font-size: 13px;
  transition: 0.25s;
}
.footer-dev-btn:hover {
  background: linear-gradient(135deg, #6366f1, #ec4899);
  transform: translateY(-2px);
}

/* انيميشن الظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(22px); transition: all 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 820px) {
  .bento-grid, .steps-grid { grid-template-columns: 1fr; }
  .bento-card.span-2 { grid-column: span 1; }
  .nav-links { display: none; }
}
