/* ===== Base & Tokens ===== */
:root {
  --bg: #06060f;
  --bg2: #0a0a1a;
  --card: rgba(255,255,255,0.03);
  --card-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.07);
  --border-hover: rgba(0,212,255,0.25);
  --text: #c8ccd4;
  --muted: #6b7280;
  --white: #f0f0f5;
  --cyan: #00d4ff;
  --blue: #3b82f6;
  --purple: #8b5cf6;
  --green: #22c55e;
  --yellow: #facc15;
  --radius: 20px;
  --radius-sm: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.hidden { display: none !important; }

/* ===== Particles ===== */
#particles {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
  pointer-events: none;
}

/* ===== Navigation ===== */
nav {
  position: fixed;
  top: 0; width: 100%;
  z-index: 1000;
  padding: 14px 0;
  background: rgba(6,6,15,0.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
}
nav.scrolled {
  padding: 10px 0;
  background: rgba(6,6,15,0.92);
  box-shadow: 0 4px 30px rgba(0,0,0,0.3);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo { font-size: 22px; font-weight: 800; color: #fff; letter-spacing: -0.5px; }
.logo span {
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s;
  position: relative;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--cyan);
  transition: width 0.3s;
  border-radius: 2px;
}
.nav-links a:hover::after { width: 100%; }

.lang-toggle { display: flex; gap: 4px; }
.lang-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  transition: all 0.3s;
  font-family: var(--font);
}
.lang-btn:hover, .lang-btn.active {
  background: rgba(0,212,255,0.08);
  border-color: rgba(0,212,255,0.3);
  color: var(--cyan);
}

.mobile-menu {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.mobile-menu span {
  width: 22px; height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: 0.3s;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  z-index: 1;
  padding: 160px 28px 60px;
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  padding: 8px 20px;
  border-radius: 50px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.15);
  color: var(--cyan);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 28px;
  animation: fadeInUp 0.8s ease;
}
.hero h1 {
  font-size: clamp(38px, 7vw, 72px);
  font-weight: 900;
  line-height: 1.08;
  margin-bottom: 24px;
  color: var(--white);
  letter-spacing: -2px;
  animation: fadeInUp 0.8s ease 0.1s both;
}
.gradient-text {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 40%, var(--purple) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.8;
  animation: fadeInUp 0.8s ease 0.2s both;
}
.hero-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease 0.3s both;
}

/* Buttons */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 16px;
  border: none;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 4px 20px rgba(0,212,255,0.2);
  font-family: var(--font);
}
.btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 40px rgba(0,212,255,0.35);
}
.btn-glass {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 36px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s;
  backdrop-filter: blur(10px);
  font-family: var(--font);
}
.btn-glass:hover {
  border-color: rgba(0,212,255,0.3);
  background: rgba(0,212,255,0.06);
  transform: translateY(-2px);
}
.btn-lg { font-size: 18px; padding: 18px 44px; }
.w-full { width: 100%; justify-content: center; }

/* Hero Image */
.hero-image-wrap {
  position: relative;
  display: inline-block;
  margin-top: 60px;
  animation: fadeInUp 1s ease 0.4s both;
}
.glow-orb {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(0,212,255,0.12) 0%, rgba(59,130,246,0.06) 40%, transparent 70%);
  border-radius: 50%;
  animation: pulse 4s ease-in-out infinite;
  pointer-events: none;
}
.hero-image {
  max-width: 380px;
  width: 100%;
  border-radius: 28px;
  position: relative;
  z-index: 2;
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,0.5));
}

/* Hero Stats */
.hero-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 60px;
  animation: fadeInUp 0.8s ease 0.5s both;
}
.stat { text-align: center; }
.stat-num {
  font-size: 40px;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -1px;
}
.stat-suffix {
  font-size: 28px;
  font-weight: 700;
  color: var(--cyan);
}
.stat-label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
  margin-top: 4px;
}
.stat-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
}

/* ===== Sections ===== */
section {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 28px;
}
.section-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: rgba(0,212,255,0.06);
  border: 1px solid rgba(0,212,255,0.12);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
}
.section-title {
  font-size: clamp(30px, 4.5vw, 48px);
  font-weight: 800;
  margin-bottom: 16px;
  color: var(--white);
  letter-spacing: -1px;
  line-height: 1.15;
}
.section-sub {
  color: var(--muted);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 56px;
  line-height: 1.7;
}
.features-section, .pricing-section, .compat-section { text-align: center; }
.features-section .section-sub, .pricing-section .section-sub, .compat-section .section-sub { margin-left: auto; margin-right: auto; }
.screenshots-section { text-align: center; }

/* ===== Feature Cards ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  text-align: left;
}
.f-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: all 0.4s cubic-bezier(.4,0,.2,1);
  position: relative;
  overflow: hidden;
}
.f-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at top left, rgba(0,212,255,0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.f-card:hover {
  border-color: var(--border-hover);
  background: var(--card-hover);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,0.3);
}
.f-card:hover::before { opacity: 1; }
.f-card.featured {
  border-color: rgba(139,92,246,0.3);
  background: rgba(139,92,246,0.04);
}
.f-icon {
  width: 52px; height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 20px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--c1) 12%, transparent), color-mix(in srgb, var(--c2) 8%, transparent));
  border: 1px solid color-mix(in srgb, var(--c1) 15%, transparent);
}
.f-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 10px;
}
.f-card p {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
}
.f-badge {
  position: absolute;
  top: 20px; right: 20px;
  padding: 4px 12px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--purple), var(--blue));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ===== Screenshots ===== */
.screenshots-wrap {
  margin-top: 32px;
  position: relative;
}
.screenshots-img {
  max-width: 860px;
  width: 100%;
  border-radius: var(--radius);
  filter: drop-shadow(0 30px 80px rgba(0,0,0,0.5));
}

/* ===== Pricing ===== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  max-width: 700px;
  margin: 0 auto;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: left;
  position: relative;
  transition: all 0.4s;
}
.price-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.price-card.premium {
  border-color: rgba(0,212,255,0.3);
  background: linear-gradient(160deg, rgba(0,212,255,0.06) 0%, rgba(59,130,246,0.03) 100%);
  box-shadow: 0 0 60px rgba(0,212,255,0.06);
}
.price-popular {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  padding: 6px 20px;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
  white-space: nowrap;
}
.price-header h3 {
  font-size: 24px;
  font-weight: 800;
  color: var(--white);
  margin-bottom: 4px;
}
.price-header p { font-size: 14px; color: var(--muted); margin-bottom: 24px; }
.price-amount {
  font-size: 48px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 28px;
  letter-spacing: -2px;
}
.price-amount span {
  font-size: 16px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0;
}
.price-features {
  list-style: none;
  margin-bottom: 28px;
}
.price-features li {
  padding: 8px 0;
  font-size: 14px;
  color: var(--text);
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.price-features li.disabled { color: var(--muted); opacity: 0.5; }
.price-note {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 12px;
}

/* ===== Compatibility ===== */
.compat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.compat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
  transition: all 0.4s;
}
.compat-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
}
.compat-emoji { font-size: 40px; margin-bottom: 16px; }
.compat-card h3 { font-size: 16px; color: var(--white); font-weight: 700; margin-bottom: 6px; }
.compat-card p { font-size: 13px; color: var(--muted); }

/* ===== CTA ===== */
.cta-section {
  text-align: center;
  padding: 100px 28px;
  position: relative;
}
.cta-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(0,212,255,0.06) 0%, rgba(59,130,246,0.03) 40%, transparent 70%);
  pointer-events: none;
}

/* ===== Footer ===== */
footer {
  position: relative;
  z-index: 1;
  border-top: 1px solid var(--border);
  background: rgba(6,6,15,0.8);
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 28px 40px;
  display: flex;
  justify-content: space-between;
  gap: 60px;
}
.footer-brand { max-width: 280px; }
.footer-brand p { font-size: 14px; color: var(--muted); margin-top: 12px; }
.footer-cols { display: flex; gap: 60px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: var(--white); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 4px; }
.footer-col a { font-size: 14px; color: var(--muted); text-decoration: none; transition: color 0.3s; }
.footer-col a:hover { color: var(--cyan); }
.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 28px;
  border-top: 1px solid var(--border);
  text-align: center;
}
.footer-bottom p { font-size: 12px; color: #444; }
.footer-legal { margin-top: 8px; }
.footer-legal a { color: #555; text-decoration: underline; }

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 1; transform: translate(-50%, -50%) scale(1.1); }
}

[data-aos] {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.7s cubic-bezier(.4,0,.2,1);
}
[data-aos].visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== RTL ===== */
[lang="ar"] { direction: rtl; font-family: 'SF Arabic', 'Geeza Pro', Tahoma, var(--font); }
[lang="ar"] .hero, [lang="ar"] .screenshots-section, [lang="ar"] .cta-section,
[lang="ar"] .features-section, [lang="ar"] .pricing-section, [lang="ar"] .compat-section { text-align: center; }
[lang="ar"] .f-card, [lang="ar"] .price-card { text-align: right; }
[lang="ar"] .nav-links { direction: ltr; }
[lang="ar"] .f-badge { right: auto; left: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0;
    width: 100%;
    background: rgba(6,6,15,0.97);
    padding: 20px 28px;
    border-bottom: 1px solid var(--border);
    gap: 16px;
    backdrop-filter: blur(20px);
  }
  .mobile-menu { display: flex; }
  .hero { padding: 130px 20px 50px; }
  .hero h1 { letter-spacing: -1px; }
  .features-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-stats { gap: 20px; flex-wrap: wrap; }
  .stat-num { font-size: 32px; }
  .footer-inner { flex-direction: column; gap: 40px; }
  .footer-cols { flex-wrap: wrap; gap: 40px; }
  section { padding: 60px 20px; }
}
