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

:root {
  --bg-primary: #ffffff;
  --bg-secondary: #f8f9fa;
  --text-primary: #0a0a0a;
  --text-secondary: #6b7280;
  --accent: #3b82f6;
  --border: #e5e7eb;
  --card-bg: #ffffff;
  --header-bg: rgba(255, 255, 255, 0.8);
}

[data-theme="dark"] {
  --bg-primary: #0a0a0a;
  --bg-secondary: #111111;
  --text-primary: #ffffff;
  --text-secondary: #9ca3af;
  --accent: #3b82f6;
  --border: #1f1f1f;
  --card-bg: #111111;
  --header-bg: rgba(10, 10, 10, 0.8);
}

body {
  font-family: "IBM Plex Sans", "IBM Plex Sans Arabic", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

[dir="rtl"] body {
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

/* Header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: all 0.3s ease;
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
}

.logo svg {
  color: var(--accent);
}

.nav-desktop {
  display: none;
  gap: 32px;
}

.nav-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s ease;
  position: relative;
}

.nav-link:hover {
  color: var(--text-primary);
}

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

.icon-btn {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.icon-btn:hover {
  background: var(--bg-secondary);
}

.moon-icon {
  display: none;
}

[data-theme="dark"] .sun-icon {
  display: none;
}

[data-theme="dark"] .moon-icon {
  display: block;
}

.menu-btn {
  width: 40px;
  height: 40px;
  border: none;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.menu-btn span {
  width: 20px;
  height: 2px;
  background: var(--text-primary);
  transition: all 0.3s ease;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  transform: translateY(-100%);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.mobile-menu.active {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

.mobile-nav {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mobile-nav-link {
  color: var(--text-primary);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

/* Hero Section */
.hero {
  padding: 160px 0 0px;
  text-align: center;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 56px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.hero-title-line {
  display: block;
}

.hero-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 0px;
  line-height: 1.6;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  font-family: inherit;
  position: relative;
  overflow: hidden;
  text-decoration: none;
}

/* Improved button hover effect without shadows */
.cta-button::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.2) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.cta-button:hover {
  transform: translateY(-3px) scale(1.02);
  background: #2563eb;
}

.cta-button:hover::before {
  opacity: 1;
}

.cta-button:active {
  transform: translateY(-1px) scale(0.98);
}

/* Trust Badge */
.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
  margin-bottom: 0;
  padding: 12px 20px;
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 14px;
}

.trust-text {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.stars {
  color: #fbbf24;
  font-size: 16px;
  letter-spacing: 2px;
}

.rating-score {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
}

.rating-icon {
  width: 20px;
  height: 20px;
  background: linear-gradient(135deg, #4285f4, #34a853, #fbbc05, #ea4335);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: white;
}

/* Dashboard Preview */
.dashboard-preview {
  padding: 80px 0;
}

.dashboard-mockup {
  position: relative;
  border-radius: 14px;
  overflow: visible;
  max-width: 1100px;
  margin: 0 auto;
}

.dashboard-image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  position: relative;
  z-index: 0;
}

/* Fixed blue glow to extend beyond image from top with correct color */
.image-glow-top {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  height: 200px;
  background: radial-gradient(
    ellipse at center top,
    rgba(59, 130, 246, 0.4) 0%,
    rgba(59, 130, 246, 0.25) 30%,
    rgba(59, 130, 246, 0.1) 50%,
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
  filter: blur(50px);
}

/* Added static white horizontal glow above image with faded edges */
.image-white-glow {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 100px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.4) 0%,
    rgba(255, 255, 255, 0.2) 40%,
    rgba(255, 255, 255, 0.05) 70%,
    transparent 100%
  );
  mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, black 10%, black 90%, transparent 100%);
  pointer-events: none;
  z-index: 2;
  border-radius: 14px;
}

[data-theme="dark"] .image-white-glow {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.2) 0%,
    rgba(255, 255, 255, 0.1) 40%,
    rgba(255, 255, 255, 0.03) 70%,
    transparent 100%
  );
}

/* Fixed blue shine line to fade from both sides with opacity 0 at edges */
.image-shine-line {
  position: absolute;
  top: 0;
  left: 0;
  height: 2px;
  width: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.3) 20%,
    rgba(255, 255, 255, 0.8) 50%,
    rgba(255, 255, 255, 0.3) 80%,
    rgba(255, 255, 255, 0) 100%
  );
  border-radius: 14px;
  animation: shineMove 3s ease-in-out infinite;
  z-index: 3;
}

@keyframes shineMove {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  25% {
    opacity: 1;
  }
  50% {
    transform: translateX(0%);
    opacity: 1;
  }
  75% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}


@keyframes swordGleam {
  0% {
    transform: translateX(-100%);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* Value Proposition */
.value-prop {
  padding: 80px 0;
  background: var(--bg-secondary);
}

/* Increased width of value proposition content */
.value-prop-content {
  max-width: 900px;
  margin: 0 auto;
}

.section-title {
  font-size: 42px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  letter-spacing: -0.01em;
}

/* Why Choose Section */
.why-choose {
  padding: 120px 0;
}

.section-heading {
  font-size: 48px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 64px;
  letter-spacing: -0.02em;
}

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.feature-card {
  padding: 32px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  width: 56px;
  height: 56px;
  background: var(--bg-secondary);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--accent);
  transition: transform 0.3s ease;
}

.feature-card:hover .feature-icon {
  transform: scale(1.15);
}

.feature-title {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
}

/* Products Section */
.products {
  padding: 120px 0;
  background: var(--bg-secondary);
}

.products-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
}

.product-card {
  padding: 40px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
}

.product-icon {
  margin-bottom: 24px;
  color: var(--accent);
}

.product-title {
  font-size: 28px;
  font-weight: 600;
  margin-bottom: 16px;
}

.product-description {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.6;
  margin-bottom: 24px;
}

.product-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.product-features li {
  color: var(--text-secondary);
  font-size: 15px;
  padding-left: 24px;
  position: relative;
}

.product-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 600;
}

[dir="rtl"] .product-features li {
  padding-left: 0;
  padding-right: 24px;
}

[dir="rtl"] .product-features li::before {
  left: auto;
  right: 0;
}

/* CTA Section */
.cta-section {
  padding: 120px 0;
  position: relative;
  overflow: hidden;
}

/* Added center glow effect for CTA section */
.cta-glow {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.15) 0%,
    rgba(59, 130, 246, 0.08) 50%,
    transparent 50%
  );
  pointer-events: none;
  filter: blur(60px);
}

[data-theme="dark"] .cta-glow {
  background: radial-gradient(
    circle at center,
    rgba(59, 130, 246, 0.25) 0%,
    rgba(59, 130, 246, 0.12) 30%,
    transparent 70%
  );
}

.cta-content {
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.cta-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
}

.cta-description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

.cta-button-large {
  padding: 16px 32px;
  font-size: 18px;
}

/* Footer */
.footer {
  padding: 80px 0 32px;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand {
  max-width: 400px;
}

.footer-tagline {
  margin-top: 16px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 32px;
}

.footer-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.footer-heading {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 8px;
}

.footer-link {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 15px;
  transition: color 0.2s ease;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 14px;
}

/* Added fixed WhatsApp button */
.whatsapp-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25d366;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  transition: all 0.3s ease;
  z-index: 1000;
  text-decoration: none;
  animation: whatsappPulse 2.5s ease-in-out infinite;
}

@keyframes whatsappPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 4px 16px rgba(37, 211, 102, 0.4);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 28px rgba(37, 211, 102, 0.6);
  }
}



[dir="ltr"] .whatsapp-btn {
  right: auto;
  left: 24px;
}

/* Added section dividers */
.section-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border) 20%, var(--border) 80%, transparent 100%);
  margin: 0 auto;
  max-width: 1280px;
}

/* Added FAQ Section styles */
.faq-section {
  padding: 120px 0;
}

.faq-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  max-width: 900px;
  margin: 0 auto;
  align-items: start;     
  align-content: start;
}

.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  border-color: var(--accent);
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  background: transparent;
  border: none;
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  text-align: right;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: inherit;
}

[dir="rtl"] .faq-question {
  text-align: left;
}

.faq-icon {
  flex-shrink: 0;
  transition: transform 0.3s ease;
  color: var(--accent);
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 24px;              /* بدون padding سفلي افتراضي */
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-answer.is-open {
  padding: 0 24px 24px;         /* يظهر البادينج السفلي عند الفتح */
}


.faq-answer p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin: 0;
  margin-bottom: 10px;
}

/* Responsive Design */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }

  .menu-btn {
    display: none;
  }

  .hero-title {
    font-size: 72px;
  }

  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .footer-content {
    grid-template-columns: 1.5fr 1fr;
  }

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .hero-title {
    font-size: 84px;
  }

  .section-title {
    font-size: 52px;
  }

  .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
