@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&family=Fira+Code:wght@400;500;600&display=swap');

:root {
  --bg-dark: #09090b;
  --bg-card: #18181b;
  --bg-card-hover: #27272a;
  --bg-glass: rgba(9, 9, 11, 0.85);
  
  --border-color: #27272a;
  --border-light: #3f3f46;
  --border-accent: rgba(255, 107, 43, 0.4);
  
  --zinc-50: #fafafa;
  --zinc-100: #f4f4f5;
  --zinc-200: #e4e4e7;
  --zinc-300: #d4d4d8;
  --zinc-400: #a1a1aa;
  --zinc-500: #71717a;
  --zinc-600: #52525b;
  --zinc-700: #3f3f46;
  --zinc-800: #27272a;
  --zinc-900: #18181b;
  --zinc-950: #09090b;
  
  --accent: #FF6B2B;
  --accent-light: #FF8F5C;
  --accent-glow: rgba(255, 107, 43, 0.2);
  --accent-emerald: #10b981;
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --font-display: 'PT Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'Fira Code', monospace;
  --font-arabic: 'Cairo', 'Tajawal', -apple-system, sans-serif;
}

[dir="rtl"], .rtl {
  font-family: var(--font-arabic);
  direction: rtl;
  text-align: right;
}

[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] h4, .rtl h1, .rtl h2, .rtl h3, .rtl h4 {
  font-family: var(--font-arabic);
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-dark);
  color: var(--zinc-100);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  transition: background-color 0.3s, color 0.3s;
}

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

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 99px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
}

.grid-bg {
  position: fixed;
  inset: 0;
  background-image: radial-gradient(circle at 50% 0%, var(--accent-glow) 0%, transparent 50%),
                    linear-gradient(to right, rgba(255, 255, 255, 0.02) 1px, transparent 1px),
                    linear-gradient(to bottom, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 100% 100%, 40px 40px, 40px 40px;
  pointer-events: none;
  z-index: -1;
}

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

.nav-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border: none;
  padding: 20px 0;
  transition: var(--transition);
}

.nav-header.scrolled {
  background: linear-gradient(180deg, rgba(9, 9, 11, 0.92) 0%, rgba(9, 9, 11, 0.6) 100%);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: none;
  padding: 14px 0;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--zinc-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}

.brand-logo {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  border: 1px solid var(--border-light);
  box-shadow: none;
}

.brand-tag {
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 107, 43, 0.12);
  border: 1px solid rgba(255, 107, 43, 0.3);
  color: var(--accent-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.nl {
  position: relative;
  color: var(--zinc-400);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: color 0.22s cubic-bezier(.4,0,.2,1);
}

.nl::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 1.5px;
  background: var(--accent);
  transition: width 0.22s cubic-bezier(.4,0,.2,1);
}

.nl:hover {
  color: var(--zinc-100);
}

.nl:hover::after {
  width: 100%;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--accent);
  color: #ffffff;
  border-color: rgba(255, 107, 43, 0.5);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.btn-primary:hover {
  background: var(--accent-light);
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(255, 107, 43, 0.35);
}

.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: rgba(255, 255, 255, 0.22);
  transform: skewX(-20deg);
  transition: left 0.4s cubic-bezier(.4,0,.2,1);
}

.shimmer:hover::after {
  left: 160%;
}

.btn-secondary {
  background: var(--zinc-900);
  color: var(--zinc-200);
  border-color: var(--border-color);
}

.btn-secondary:hover {
  background: var(--zinc-800);
  border-color: var(--border-light);
  color: var(--zinc-100);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.88rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1rem;
  border-radius: var(--radius-md);
}

.hero {
  padding-top: 150px;
  padding-bottom: 80px;
  text-align: center;
  position: relative;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  background: var(--zinc-900);
  border: 1px solid var(--border-color);
  font-size: 0.85rem;
  color: var(--zinc-300);
  margin-bottom: 24px;
}

.badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 10px var(--accent);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 24px;
  color: var(--zinc-100);
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--zinc-400);
  max-width: 680px;
  margin: 0 auto 36px;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}

.hero-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  color: var(--zinc-500);
  font-size: 0.88rem;
  margin-bottom: 56px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.preview-wrapper {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  padding: 6px;
  background: var(--zinc-900);
  border: 1px solid var(--border-color);
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, 0.5);
}

.preview-window {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--zinc-950);
  border: 1px solid var(--border-color);
}

.preview-bar {
  height: 38px;
  background: var(--zinc-900);
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 8px;
  border-bottom: 1px solid var(--border-color);
}

.preview-dots {
  display: flex;
  gap: 6px;
}

.preview-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--zinc-700);
}

.preview-title {
  margin-left: auto;
  margin-right: auto;
  font-size: 0.8rem;
  color: var(--zinc-500);
  font-family: var(--font-mono);
}

.preview-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.section {
  padding: 90px 0;
  position: relative;
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 56px;
}

.section-label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-title {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: var(--zinc-100);
}

.section-desc {
  font-size: 1.05rem;
  color: var(--zinc-400);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

.feature-card {
  background: var(--zinc-900);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 32px;
  transition: transform 0.28s cubic-bezier(.4,0,.2,1), border-color 0.18s;
  position: relative;
  overflow: hidden;
}

.pricing-card {
  overflow: visible !important;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: var(--bg-card-hover);
  border-color: var(--border-light);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: rgba(255, 107, 43, 0.1);
  border: 1px solid rgba(255, 107, 43, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--accent);
}

.feature-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--zinc-100);
}

.feature-text {
  font-size: 0.95rem;
  color: var(--zinc-400);
  line-height: 1.6;
}

.download-box {
  background: var(--zinc-900);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 48px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.os-selector {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 32px 0;
  flex-wrap: wrap;
}

.os-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: var(--radius-md);
  background: var(--zinc-950);
  border: 1px solid var(--border-color);
  color: var(--zinc-300);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.os-btn:hover {
  background: var(--zinc-800);
  color: var(--zinc-100);
  border-color: var(--border-light);
}

.os-btn.active {
  background: rgba(255, 107, 43, 0.12);
  color: var(--zinc-100);
  border-color: var(--accent);
  box-shadow: 0 4px 16px var(--accent-glow);
}

.download-details {
  background: var(--zinc-950);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  max-width: 520px;
  margin: 0 auto 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}

.detail-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
}

.detail-label {
  color: var(--zinc-500);
}

.detail-val {
  font-family: var(--font-mono);
  color: var(--zinc-200);
  font-weight: 500;
}

footer {
  border: none;
  padding: 60px 0 40px;
  background: linear-gradient(0deg, var(--zinc-950) 0%, transparent 100%);
}

.footer-centered {
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-centered {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--zinc-100);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 600px) {
  .hero-ctas {
    flex-direction: column;
    width: 100%;
  }
  .btn {
    width: 100%;
  }
}
