@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Arabic:wght@400;500;600;700;800;900&family=Fira+Code:wght@400;500;600&display=swap');
@import url('https://api.fontshare.com/v2/css?f[]=satoshi@300,400,500,700,900&display=swap');

:root {
  /* Dark Theme (Default) */
  --bg-color: #09090b;
  --panel-bg: rgba(24, 24, 27, 0.6);
  --panel-border: rgba(255, 255, 255, 0.08);
  --panel-border-hover: rgba(255, 255, 255, 0.15);
  --text-primary: #fafafa;
  --text-secondary: #a1a1aa;

  --primary: #5244B9;
  --primary-hover: #4539A3;
  --primary-bg: rgba(82, 68, 185, 0.12);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.1);

  --warning: #f59e0b;
  --danger: #ef4444;

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 20px rgba(82, 68, 185, 0.2);

  --code-bg: #18181b;
  --code-text: #e4e4e7;
}

[data-theme="light"] {
  --bg-color: #ffffff;
  --panel-bg: rgba(255, 255, 255, 0.85);
  --panel-border: rgba(0, 0, 0, 0.1);
  --panel-border-hover: rgba(0, 0, 0, 0.2);
  --text-primary: #18181b;
  --text-secondary: #3f3f46;

  --primary: #5244B9;
  --primary-hover: #4539A3;
  --primary-bg: rgba(82, 68, 185, 0.08);

  --success: #059669;
  --success-bg: rgba(5, 150, 105, 0.08);

  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.1);
  --shadow-glow: 0 10px 30px rgba(82, 68, 185, 0.15);

  --code-bg: #f4f4f5;
  --code-text: #18181b;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
  background-color: var(--bg-color);
  color: var(--text-primary);
  min-height: 100vh;
  direction: rtl;
  line-height: 1.6;
  overflow-x: hidden;
}

html,
body,
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

*::-webkit-scrollbar {
  width: 0;
  height: 0;
}

/* Glassmorphism utility */
.glass-panel {
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}

/* Layout */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  width: 100%;
  height: 80px;
  z-index: 1000;
  display: flex;
  align-items: center;
  border-radius: 0;
  border-top: none;
  border-left: none;
  border-right: none;
  background: var(--panel-bg);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--panel-border);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .navbar {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.app-version {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  margin-inline-start: 2px;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  color: var(--primary);
  background: var(--primary-bg);
  border: 1px solid rgba(82, 68, 185, 0.28);
  line-height: 1;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

[data-theme="light"] .app-version {
  background: rgba(82, 68, 185, 0.08);
  border-color: rgba(82, 68, 185, 0.22);
}

.site-logo {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 10px;
  flex-shrink: 0;
  display: block;
}

.site-logo-sm {
  width: 32px;
  height: 32px;
  border-radius: 8px;
}

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

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 16px;
  position: relative;
  padding: 8px 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text-primary);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width 0.3s ease;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

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

/* Theme Toggle Switch */
.theme-toggle {
  width: 64px;
  height: 34px;
  border-radius: 50px;
  border: 1px solid var(--panel-border);
  background: #18181b;
  position: relative;
  cursor: pointer;
  padding: 0;
  overflow: hidden;
}

.theme-toggle #icon-moon,
.theme-toggle #icon-sun {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  font-size: 14px;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.theme-toggle #icon-moon {
  right: 10px;
  color: white;
  opacity: 1;
}

.theme-toggle #icon-sun {
  left: 10px;
  color: #a1a1aa;
  opacity: 1;
}

.toggle-slider {
  position: absolute;
  top: 3px;
  right: 3px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--primary);
  transition: all 0.3s ease;
  z-index: 2;
}

[data-theme="light"] .theme-toggle {
  background: #e4e4e7;
}

[data-theme="light"] .toggle-slider {
  right: calc(100% - 29px);
  background: var(--primary);
}

[data-theme="light"] .theme-toggle #icon-moon {
  color: #a1a1aa;
}

[data-theme="light"] .theme-toggle #icon-sun {
  color: white;
}

.menu-toggle {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.btn-primary {
  background: var(--primary);
  color: white;
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-glow);
}

.btn-secondary {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: var(--primary-bg);
  color: var(--primary);
  transform: translateY(-2px);
}

/* Sections */
section {
  padding: 100px 0;
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-title {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.section-title span {
  color: var(--primary);
}

.section-desc {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* Hero Section */
.hero-section {
  padding-top: 160px;
  min-height: 90vh;
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  background-color: var(--primary);
}

/* Animated SVG Waves */
.hero-waves-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 15vh;
  min-height: 100px;
  max-height: 150px;
  z-index: 1;
}

.waves {
  position: relative;
  width: 100%;
  height: 100%;
  margin-bottom: -7px;
  /* Fix for safari gap */
}

.parallax>use {
  animation: move-forever 25s cubic-bezier(.55, .5, .45, .5) infinite;
}

.parallax>use:nth-child(1) {
  animation-delay: -2s;
  animation-duration: 7s;
}

.parallax>use:nth-child(2) {
  animation-delay: -3s;
  animation-duration: 10s;
}

.parallax>use:nth-child(3) {
  animation-delay: -4s;
  animation-duration: 13s;
}

.parallax>use:nth-child(4) {
  animation-delay: -5s;
  animation-duration: 20s;
}

@keyframes move-forever {
  0% {
    transform: translate3d(-90px, 0, 0);
  }

  100% {
    transform: translate3d(85px, 0, 0);
  }
}

.hero-centered {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  z-index: 10;
}

.hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.hero-title {
  font-size: 64px;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -1px;
  color: white;
}

.hero-title span {
  color: rgba(255, 255, 255, 0.7);
}

.hero-desc {
  font-size: 20px;
  color: rgba(255, 255, 255, 0.8);
  max-width: 700px;
}

.search-container {
  width: 100%;
  max-width: 500px;
  position: relative;
  margin-top: 16px;
}

.search-input {
  width: 100%;
  padding: 20px 60px 20px 24px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.15);
  color: white;
  font-family: inherit;
  font-size: 16px;
  outline: none;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-sm);
}

.search-input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-input:focus {
  border-color: white;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.15);
}

.search-icon {
  position: absolute;
  right: 24px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
}

.hero-section .btn-primary {
  background: white;
  color: var(--primary);
}

.hero-section .btn-primary:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}


/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

.stat-card {
  padding: 32px;
  border-radius: 20px;
  text-align: center;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 8px;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.stat-label {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Language Cards */
.languages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}

.lang-card {
  padding: 32px 24px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.lang-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.lang-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
}

.lang-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-primary);
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.lang-desc {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* Coming Soon Badge & Card */
.lang-card.coming-soon {
  position: relative;
  background: rgba(63, 63, 70, 0.35);
  border-color: rgba(255, 255, 255, 0.05);
  cursor: not-allowed;
  overflow: hidden;
}

.lang-card.coming-soon .lang-logo {
  opacity: 0.35;
  filter: grayscale(100%);
}

.lang-card.coming-soon .lang-title {
  color: #71717a;
}

.lang-card.coming-soon .lang-desc {
  color: #52525b;
}

.lang-card.coming-soon:hover {
  transform: none;
  border-color: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}

[data-theme="light"] .lang-card.coming-soon {
  background: rgba(212, 212, 216, 0.3);
  border-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .lang-card.coming-soon .lang-logo {
  opacity: 0.3;
  filter: grayscale(100%);
}

[data-theme="light"] .lang-card.coming-soon .lang-title {
  color: #a1a1aa;
}

[data-theme="light"] .lang-card.coming-soon .lang-desc {
  color: #a1a1aa;
}

[data-theme="light"] .lang-card.coming-soon:hover {
  border-color: rgba(0, 0, 0, 0.06);
}

.soon-badge {
  position: absolute;
  top: 14px;
  left: -32px;
  background: #71717a;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 40px;
  transform: rotate(45deg);
  z-index: 10;
  letter-spacing: 0.5px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Features */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.feature-card {
  padding: 40px 32px;
  border-radius: 24px;
  text-align: right;
}

.feature-card:hover {
  border-color: var(--panel-border-hover);
  transform: translateY(-4px);
}

.feature-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background: var(--primary-bg);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 24px;
}

.feature-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 12px;
  color: var(--text-primary);
}

.feature-desc {
  color: var(--text-secondary);
  line-height: 1.7;
}

/* CTA */
.cta-box {
  padding: 80px 40px;
  border-radius: 32px;
  text-align: center;
  border: 1px solid var(--primary);
  background: var(--primary-bg);
  position: relative;
  overflow: hidden;
}

.cta-box h2 {
  font-size: 40px;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text-primary);
}

.cta-box p {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
}

/* ===== Testimonials ===== */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.testimonial-card {
  padding: 36px 28px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
}

.testimonial-card::before {
  content: '\201C';
  position: absolute;
  top: 16px;
  left: 24px;
  font-size: 72px;
  font-weight: 900;
  color: var(--primary);
  opacity: 0.1;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-card:hover {
  transform: translateY(-6px);
  border-color: var(--primary);
  box-shadow: var(--shadow-glow);
}

.testimonial-stars {
  display: flex;
  gap: 4px;
}

.testimonial-stars i {
  color: #f59e0b;
  font-size: 16px;
}

.testimonial-text {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
  flex: 1;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 16px;
  border-top: 1px solid var(--panel-border);
}

.author-avatar {
  width: 48px;
  height: 48px;
  min-width: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  font-weight: 800;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.author-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.author-role {
  font-size: 13px;
  color: var(--text-secondary);
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  border-radius: 16px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 28px;
  background: none;
  border: none;
  color: var(--text-primary);
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  text-align: right;
}

.faq-question span {
  flex: 1;
}

.faq-icon {
  font-size: 14px;
  color: var(--text-secondary);
  transition: transform 0.3s ease;
  min-width: 16px;
}

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

.faq-item.active {
  border-color: var(--primary);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
}

.faq-answer p {
  padding: 0 28px 22px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.8;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

/* Footer */
.footer {
  padding: 20px 0;
  border-top: 1px solid var(--panel-border);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--text-primary);
  font-weight: 800;
  font-size: 18px;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}


.footer-socials {
  display: flex;
  gap: 8px;
}

.social-btn {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 15px;
}

.social-btn:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.footer-copy {
  color: var(--text-secondary);
  font-size: 13px;
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
}

.footer-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--primary);
}

/* ===== English Text — Satoshi Bold Override ===== */
/* Target elements that commonly contain English-only text */
.lang-title,
.logo span,
.stat-number,
.footer-copy,
.soon-badge,
.hero-badge,
.search-input {
  font-family: 'Satoshi', 'Noto Sans Arabic', sans-serif;
}

/* Code blocks keep Fira Code */
code,
pre,
.code-editor {
  font-family: 'Fira Code', monospace;
}

/* Responsive */
@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

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

  .features-grid {
    grid-template-columns: 1fr;
  }

  .testimonials-grid {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 576px) {
  .footer-inner {
    justify-content: center;
    text-align: center;
  }

  .footer-logo {
    width: 100%;
    justify-content: center;
  }

  .footer-copy {
    width: 100%;
  }

  .footer-links {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 768px) {
  .nav-links {
    display: none;
    position: absolute;
    top: 80px;
    right: 0;
    left: 0;
    flex-direction: column;
    gap: 0;
    background: var(--panel-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--panel-border);
    padding: 16px 24px 24px;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links a {
    padding: 12px 0;
  }

  .navbar .container {
    position: relative;
  }

  .menu-toggle {
    display: block;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-primary);
    cursor: pointer;
  }

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

  .cta-box h2 {
    font-size: 32px;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .faq-question {
    padding: 18px 20px;
    font-size: 15px;
  }

  .faq-answer p {
    padding: 0 20px 18px;
  }
}
