:root {
  --primary: #2196f3;
  --primary-dark: #1565c0;
  --secondary: #03a9f4;
  --bg-light: #f8f9fa;
  --text-dark: #1c1c1c;
  --text-gray: #5f6368;
  --white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.12);
  --radius: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  outline: none;
}

body {
  font-family: 'Tajawal', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.7;
  overflow-x: hidden;
  padding-bottom: 80px;
}

a { 
  text-decoration: none; 
  color: inherit; 
}

.header {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
  padding: 40px 20px;
  position: relative;
  color: var(--white);
  border-bottom-left-radius: 30px;
  border-bottom-right-radius: 30px;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="2" fill="white" opacity="0.1"/></svg>');
  animation: float 20s linear infinite;
  pointer-events: none;
}

@keyframes float {
  from { transform: translateY(0); }
  to { transform: translateY(-100px); }
}

.app-header-content {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.app-logo {
  width: 100px;
  height: 100px;
  border-radius: 22px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.3);
  object-fit: cover;
  flex-shrink: 0;
}

.app-info h1 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 5px;
}

.app-category {
  font-size: 14px;
  opacity: 0.95;
  margin-bottom: 10px;
  font-weight: 500;
}

.app-mini-stats {
  display: flex;
  gap: 15px;
  font-size: 13px;
  background: rgba(255,255,255,0.15);
  padding: 8px 15px;
  border-radius: 50px;
  width: fit-content;
  backdrop-filter: blur(5px);
}

.stats-bar {
  background: var(--white);
  max-width: 900px;
  margin: -30px auto 30px;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  z-index: 10;
  width: 90%;
}

.stat-item { 
  text-align: center; 
  border-left: 1px solid #eee; 
}

.stat-item:last-child { 
  border-left: none; 
}

.stat-value { 
  font-size: 22px; 
  font-weight: 800; 
  color: var(--primary); 
  display: block; 
}

.stat-label { 
  font-size: 12px; 
  color: var(--text-gray); 
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

.article-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-sm);
}

.article-section h2 { 
  color: var(--primary-dark); 
  font-size: 22px; 
  margin-bottom: 15px; 
  position: relative; 
  padding-bottom: 10px; 
}

.article-section h2::after { 
  content: ''; 
  position: absolute; 
  bottom: 0; 
  right: 0; 
  width: 60px; 
  height: 3px; 
  background: var(--secondary); 
  border-radius: 2px; 
}

.article-section h3 { 
  font-size: 19px; 
  margin: 25px 0 10px; 
  color: #333; 
}

.article-section h4 { 
  font-size: 17px; 
  margin: 20px 0 10px; 
  color: var(--primary); 
  font-weight: 700;
}

.article-section p { 
  margin-bottom: 15px; 
  text-align: justify; 
  color: #444; 
  line-height: 1.9;
}

.article-section ul, 
.article-section ol { 
  margin-right: 20px; 
  margin-bottom: 15px; 
}

.article-section li { 
  margin-bottom: 8px; 
}

.article-section strong {
  color: var(--primary);
  font-weight: 700;
}

.highlight-box {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
  border-right: 4px solid var(--primary);
  padding: 20px;
  border-radius: 8px;
  margin: 20px 0;
}

.highlight-box p {
  margin-bottom: 0;
}

.section-header {
  margin-bottom: 30px;
}

.section-title { 
  font-size: 24px; 
  font-weight: 800; 
  text-align: center; 
  margin-bottom: 10px; 
  color: var(--text-dark); 
}

.section-subtitle { 
  text-align: center; 
  color: var(--text-gray); 
  margin-bottom: 30px; 
  font-size: 15px; 
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin-bottom: 50px;
}

.feature-card {
  background: var(--white);
  padding: 25px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s ease;
  border-top: 4px solid var(--primary);
}

.feature-card:hover { 
  transform: translateY(-5px); 
  box-shadow: var(--shadow-md); 
}

.feature-title { 
  font-weight: 700; 
  font-size: 18px; 
  margin-bottom: 10px; 
  color: var(--primary-dark); 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.feature-desc { 
  font-size: 14px; 
  color: var(--text-gray); 
}

.screenshots-wrapper {
  position: relative;
  margin-bottom: 50px;
}

.screenshots-gallery {
  display: flex;
  gap: 15px;
  overflow-x: auto;
  padding: 20px 5px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--primary) rgba(33, 150, 243, 0.1);
}

.screenshots-gallery::-webkit-scrollbar { 
  height: 6px; 
}

.screenshots-gallery::-webkit-scrollbar-track {
  background: rgba(33, 150, 243, 0.1);
  border-radius: 10px;
}

.screenshots-gallery::-webkit-scrollbar-thumb {
  background: var(--primary);
  border-radius: 10px;
}

.screenshot-item {
  flex: 0 0 auto;
  scroll-snap-align: center;
  width: 160px;
  transition: transform 0.3s;
}

.screenshot-item:hover {
  transform: scale(1.05);
}

.screenshot-item img {
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  border: 4px solid var(--white);
}

.screenshot-label { 
  text-align: center; 
  font-size: 13px; 
  font-weight: 600; 
  margin-top: 10px; 
  color: var(--primary); 
}

.additional-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.small-feature {
  background: var(--bg-light);
  border-radius: 8px;
  border-right: 3px solid var(--primary);
  padding: 15px;
  transition: all 0.3s ease;
}

.small-feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.small-feature-title {
  color: var(--primary);
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}

.small-feature-desc {
  color: var(--text-gray);
  font-size: 13px;
}

.cta-section {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius);
  padding: 30px 25px;
  text-align: center;
  margin: 40px 0;
  box-shadow: var(--shadow-md);
}

.cta-section h3 {
  color: var(--white);
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 10px;
}

.cta-section p {
  color: rgba(255, 255, 255, 0.95);
  font-size: 15px;
  margin-bottom: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--white);
  color: var(--primary);
  padding: 14px 30px;
  border-radius: 12px;
  font-weight: 700;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.btn:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: translateY(0);
}

.mobile-sticky-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--white);
  padding: 12px 20px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  border-top: 1px solid #eee;
}

.mobile-app-info { 
  display: flex; 
  align-items: center; 
  gap: 10px; 
}

.mobile-app-icon { 
  width: 40px; 
  height: 40px; 
  border-radius: 8px; 
}

.mobile-app-text h4 { 
  font-size: 14px; 
  margin: 0; 
}

.mobile-app-text span { 
  font-size: 11px; 
  color: var(--text-gray); 
}

.footer {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border-top: 1px solid #eee;
  margin-top: 40px;
  border-radius: var(--radius) var(--radius) 0 0;
}

.footer-logo {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.footer p { 
  font-size: 14px; 
  color: var(--text-gray); 
  margin-bottom: 5px; 
}

.footer a { 
  color: var(--primary); 
  font-weight: 600; 
}

.footer a:hover {
  text-decoration: underline;
}

/* قسم الفيديو التوضيحي */
.video-section {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 30px;
  margin-bottom: 40px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.video-header {
  text-align: center;
  margin-bottom: 30px;
}

.video-title {
  font-size: 26px;
  font-weight: 800;
  color: var(--primary-dark);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.video-title i {
  color: var(--primary);
  font-size: 30px;
}

.video-subtitle {
  font-size: 15px;
  color: var(--text-gray);
  margin: 0;
}

.video-wrapper {
  max-width: 900px;
  margin: 0 auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(33, 150, 243, 0.2);
  margin-bottom: 25px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.1) 0%, rgba(25, 118, 210, 0.05) 100%);
}

.video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 16px;
}

.video-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 30px;
  flex-wrap: wrap;
  padding: 20px;
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.05) 0%, rgba(25, 118, 210, 0.02) 100%);
  border-radius: 12px;
}

.video-stat-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-weight: 600;
  font-size: 15px;
}

.video-stat-item i {
  font-size: 18px;
}

.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: all 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 600px) {
  .app-header-content { 
    flex-direction: column; 
    text-align: center; 
  }
  
  .app-logo { 
    width: 80px; 
    height: 80px; 
  }
  
  .app-mini-stats { 
    margin: 0 auto; 
  }
  
  .stats-bar { 
    grid-template-columns: repeat(2, 1fr); 
    gap: 15px; 
    padding: 15px; 
  }
  
  .stat-item { 
    border: none; 
    background: #f8f9fa; 
    padding: 10px; 
    border-radius: 8px; 
  }
  
  .article-section { 
    padding: 20px; 
  }
  
  .video-section {
    padding: 25px 20px;
  }
  
  .video-title {
    font-size: 20px;
    flex-direction: column;
    gap: 8px;
  }
  
  .video-subtitle {
    font-size: 14px;
  }
  
  .video-stats {
    gap: 15px;
  }
  
  .video-stat-item {
    font-size: 13px;
  }
  
  .download-hero-btn { 
    display: none; 
  }
}

@media (min-width: 601px) {
  .mobile-sticky-bar { 
    display: none; 
  }
  
  body { 
    padding-bottom: 0; 
  }
}

@media (min-width: 769px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}