/* ============================================
   Tilawa Website — Main Styles
   Dark/Light Theme + Responsive + RTL Support
   ============================================ */

/* ---------- Theme Variables ---------- */
:root {
  --teal: #0D7377;
  --teal-dark: #095456;
  --teal-light: #10999E;
  --teal-glow: #14B8BD;
  --gold: #C8A951;
  --gold-light: #E0C96E;
  --gold-dark: #A88B3D;
  --green: #2D6A4F;
  --error-red: #C0392B;
  --success-green: #27AE60;
}

/* Dark theme (default) */
:root, [data-theme="dark"] {
  --bg-primary: #0F1923;
  --bg-secondary: #1B2838;
  --bg-hero: linear-gradient(145deg, #0F1923 0%, #1B2838 50%, #0F1923 100%);
  --warm-white: #FAF8F5;
  --text-primary: #E8E6E1;
  --text-secondary: #8E99A4;
  --text-muted: #5A6674;
  --surface: rgba(255,255,255,0.03);
  --surface-hover: rgba(255,255,255,0.06);
  --border: rgba(255,255,255,0.06);
  --border-gold: rgba(200,169,81,0.15);
  --nav-bg: rgba(15,25,35,0.95);
  --card-bg: rgba(255,255,255,0.02);
  --card-hover-bg: rgba(255,255,255,0.05);
  --shadow: 0 4px 24px rgba(0,0,0,0.3);
  --hero-geo-opacity: 0.03;
  --input-bg: rgba(255,255,255,0.05);
  --input-border: rgba(255,255,255,0.1);
  --input-text: #E8E6E1;
}

/* Light theme */
[data-theme="light"] {
  --bg-primary: #FAF8F5;
  --bg-secondary: #F0EDE8;
  --bg-hero: linear-gradient(145deg, #F0EDE8 0%, #FAF8F5 50%, #F0EDE8 100%);
  --warm-white: #1B2838;
  --text-primary: #1B2838;
  --text-secondary: #5A6674;
  --text-muted: #8E99A4;
  --surface: rgba(0,0,0,0.03);
  --surface-hover: rgba(0,0,0,0.06);
  --border: rgba(0,0,0,0.08);
  --border-gold: rgba(200,169,81,0.2);
  --nav-bg: rgba(250,248,245,0.95);
  --card-bg: rgba(0,0,0,0.02);
  --card-hover-bg: rgba(0,0,0,0.04);
  --shadow: 0 4px 24px rgba(0,0,0,0.08);
  --hero-geo-opacity: 0.05;
  --input-bg: rgba(0,0,0,0.04);
  --input-border: rgba(0,0,0,0.12);
  --input-text: #1B2838;
}

/* ---------- Reset & Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Outfit', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background-color 0.3s, color 0.3s;
}

body.rtl {
  font-family: 'Noto Naskh Arabic', 'Amiri', 'Outfit', sans-serif;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

/* ---------- Navigation ---------- */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 0 40px; height: 72px;
  display: flex; align-items: center; justify-content: space-between;
  background: var(--nav-bg);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: background 0.4s, border-color 0.3s;
}
nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--border-gold);
}
.nav-brand {
  display: flex; align-items: center; gap: 12px; text-decoration: none;
}
.nav-brand svg { width: 36px; height: 36px; }
.nav-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem; font-weight: 700;
  color: var(--warm-white); letter-spacing: 0.05em;
}
.nav-center {
  display: flex; align-items: center; gap: 32px;
}
.nav-link {
  font-size: 0.88rem; font-weight: 400;
  color: var(--text-secondary);
  text-decoration: none; transition: color 0.3s;
  position: relative;
}
.nav-link:hover { color: var(--gold); }
.nav-link::after {
  content: ''; position: absolute; bottom: -4px; left: 0; right: 0;
  height: 1px; background: var(--gold);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-link:hover::after { transform: scaleX(1); }

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

/* Theme Toggle */
.theme-toggle {
  background: none; border: none; cursor: pointer;
  color: var(--text-secondary); padding: 8px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px; transition: color 0.3s, background 0.3s;
}
.theme-toggle:hover { color: var(--gold); background: var(--surface); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* Language Switcher */
.lang-switcher {
  position: relative;
}
.lang-btn {
  background: none; border: 1px solid var(--border); cursor: pointer;
  color: var(--text-secondary); padding: 6px 12px;
  display: flex; align-items: center; gap: 6px;
  border-radius: 8px; font-size: 0.82rem; font-family: 'Outfit', sans-serif;
  transition: color 0.3s, border-color 0.3s, background 0.3s;
}
.lang-btn:hover { color: var(--gold); border-color: var(--gold); background: var(--surface); }
.lang-btn svg { width: 16px; height: 16px; }
.lang-dropdown {
  display: none; position: absolute; top: calc(100% + 8px);
  right: 0; min-width: 180px; max-height: 320px; overflow-y: auto;
  background: var(--bg-secondary); border: 1px solid var(--border);
  border-radius: 12px; padding: 8px;
  box-shadow: var(--shadow); z-index: 200;
}
body.rtl .lang-dropdown { right: auto; left: 0; }
.lang-dropdown.open { display: block; }
.lang-option {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: none; background: none; cursor: pointer;
  color: var(--text-secondary); font-size: 0.85rem;
  font-family: 'Outfit', sans-serif; border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}
body.rtl .lang-option { text-align: right; }
.lang-option:hover { background: var(--surface-hover); color: var(--text-primary); }
.lang-option.active { color: var(--gold); font-weight: 500; }

/* Nav CTA */
.nav-cta {
  padding: 10px 24px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  white-space: nowrap;
}
.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(13,115,119,0.4);
}

/* Hamburger */
.hamburger {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--text-secondary);
}
.hamburger svg { width: 24px; height: 24px; }
.mobile-menu {
  display: none; position: fixed; top: 72px; left: 0; right: 0; bottom: 0;
  background: var(--bg-primary); padding: 40px; z-index: 99;
  flex-direction: column; gap: 24px;
}
.mobile-menu.open { display: flex; }
.mobile-menu .nav-link { font-size: 1.2rem; }
.mobile-menu .nav-cta { text-align: center; display: block; }

/* ---------- Sections ---------- */
section { padding: 120px 40px; position: relative; }
.section-inner { max-width: 1200px; margin: 0 auto; }
.section-label {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 16px;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--warm-white); line-height: 1.15;
  margin-bottom: 20px;
}
.section-subtitle {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 600px; line-height: 1.7; font-weight: 300;
}

/* ---------- Hero ---------- */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  justify-content: center; text-align: center;
  padding: 120px 40px 80px;
  background: var(--bg-hero);
  position: relative; overflow: hidden;
}
.hero-geo {
  position: absolute; inset: 0; pointer-events: none;
  opacity: var(--hero-geo-opacity);
}
.hero-geo div {
  position: absolute; border: 1px solid var(--teal-glow);
  border-radius: 8px;
}
.hero-geo .geo1 {
  width: 300px; height: 300px; top: 10%; left: 5%;
  animation: geoRotate 30s linear infinite;
}
.hero-geo .geo2 {
  width: 200px; height: 200px; bottom: 15%; right: 10%;
  animation: geoRotate 25s linear infinite reverse;
}
.hero-geo .geo3 {
  width: 150px; height: 150px; top: 40%; right: 25%;
  animation: geoRotate 20s linear infinite;
}
@keyframes geoRotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.hero-content { position: relative; z-index: 2; max-width: 800px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 20px; border-radius: 100px;
  border: 1px solid var(--border-gold);
  background: rgba(200,169,81,0.06);
  font-size: 0.78rem; font-weight: 500;
  color: var(--gold); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 32px;
}
.hero-badge .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--success-green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.3); }
}

.hero-arabic {
  font-family: 'Amiri', serif;
  font-size: 5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--gold-light) 0%, var(--gold) 50%, var(--gold-dark) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px; line-height: 1.3;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem; font-weight: 700;
  color: var(--warm-white); line-height: 1.15;
  margin-bottom: 20px;
}
.hero-subtitle {
  font-size: 1.15rem; color: var(--text-secondary);
  max-width: 580px; margin: 0 auto 40px;
  line-height: 1.7; font-weight: 300;
}
.hero-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.btn-primary {
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; text-decoration: none;
  display: inline-flex; align-items: center; gap: 10px;
  transition: transform 0.3s, box-shadow 0.3s;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(13,115,119,0.4);
}
.btn-secondary {
  padding: 16px 36px; border-radius: 100px;
  font-size: 0.95rem; font-weight: 500;
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
  text-decoration: none; display: inline-flex; align-items: center; gap: 10px;
  transition: color 0.3s, border-color 0.3s;
  cursor: default; opacity: 0.6;
}
.btn-secondary.active {
  cursor: pointer; opacity: 1;
}
.btn-secondary.active:hover {
  color: var(--gold); border-color: var(--gold);
}

/* ---------- About / Mission ---------- */
.about { text-align: center; background: var(--bg-secondary); }
.about-quote {
  font-family: 'Amiri', serif;
  font-size: 1.8rem; color: var(--gold);
  margin-bottom: 8px; line-height: 1.6;
}
.about-quote-ref {
  font-size: 0.85rem; color: var(--text-muted);
  font-weight: 300; margin-bottom: 40px;
}
.about-text {
  font-size: 1.05rem; color: var(--text-secondary);
  max-width: 700px; margin: 0 auto 48px;
  line-height: 1.8; font-weight: 300;
}
.about-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px;
  max-width: 900px; margin: 0 auto;
}
.about-card {
  padding: 32px 24px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: border-color 0.3s, background 0.3s;
}
.about-card:hover { border-color: var(--border-gold); background: var(--card-hover-bg); }
.about-card-icon {
  width: 48px; height: 48px; margin: 0 auto 16px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(13,115,119,0.1);
  color: var(--teal-glow);
}
.about-card-icon svg { width: 24px; height: 24px; }
.about-card h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--warm-white); margin-bottom: 8px;
}
.about-card p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6; font-weight: 300;
}

/* ---------- Features ---------- */
.features { background: var(--bg-primary); }
.features-header { text-align: center; margin-bottom: 60px; }
.features-header .section-subtitle { margin: 0 auto; }

/* Feature category tabs */
.feature-tabs {
  display: flex; justify-content: center; gap: 8px;
  margin-bottom: 48px; flex-wrap: wrap;
}
.feature-tab {
  padding: 10px 24px; border-radius: 100px;
  font-size: 0.85rem; font-weight: 500;
  background: var(--surface); color: var(--text-secondary);
  border: 1px solid var(--border); cursor: pointer;
  transition: all 0.3s; font-family: 'Outfit', sans-serif;
}
.feature-tab:hover { border-color: var(--teal); color: var(--teal-glow); }
.feature-tab.active {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; border-color: transparent;
}

/* Feature grids */
.feature-grid {
  display: none;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-grid.active { display: grid; }

.feature-card {
  padding: 32px 28px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-gold);
  background: var(--card-hover-bg);
}
.feature-card-icon {
  width: 44px; height: 44px; margin-bottom: 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px; background: rgba(13,115,119,0.1);
  color: var(--teal-glow);
}
.feature-card-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--warm-white); margin-bottom: 8px;
}
.feature-card p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6; font-weight: 300;
}
.feature-badge {
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; font-size: 0.68rem;
  font-weight: 600; letter-spacing: 0.05em;
  text-transform: uppercase; margin-top: 12px;
}
.badge-free { background: rgba(45,106,79,0.15); color: var(--green); }
.badge-premium { background: rgba(200,169,81,0.15); color: var(--gold); }
.badge-coming { background: rgba(200,169,81,0.1); color: var(--gold-dark); border: 1px solid var(--border-gold); }

/* Coming soon cards have lower opacity */
.feature-card.coming-soon { opacity: 0.7; }
.feature-card.coming-soon:hover { opacity: 0.85; }

/* ---------- How It Works ---------- */
.how-it-works { background: var(--bg-secondary); }
.how-it-works-header { text-align: center; margin-bottom: 60px; }
.how-it-works-header .section-subtitle { margin: 0 auto; }
.steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px;
  max-width: 1100px; margin: 0 auto;
}
.step {
  text-align: center; padding: 32px 20px;
  position: relative;
}
.step-number {
  font-family: 'Playfair Display', serif;
  font-size: 3.5rem; font-weight: 700;
  background: linear-gradient(135deg, var(--teal-glow) 0%, var(--teal) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px; line-height: 1;
}
.step h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--warm-white); margin-bottom: 8px;
}
.step p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6; font-weight: 300;
}

/* ---------- Technology / Authenticity ---------- */
.tech { background: var(--bg-primary); }
.tech-header { text-align: center; margin-bottom: 60px; }
.tech-header .section-subtitle { margin: 0 auto; }
.tech-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1100px; margin: 0 auto;
}
.tech-card {
  padding: 32px 24px; border-radius: 16px;
  background: var(--card-bg); border: 1px solid var(--border);
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
}
.tech-card:hover { border-color: var(--border-gold); background: var(--card-hover-bg); }
.tech-card-icon {
  width: 56px; height: 56px; margin: 0 auto 20px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 14px; background: rgba(200,169,81,0.08);
  color: var(--gold);
}
.tech-card-icon svg { width: 28px; height: 28px; }
.tech-card h3 {
  font-size: 1.05rem; font-weight: 600;
  color: var(--warm-white); margin-bottom: 8px;
}
.tech-card p {
  font-size: 0.85rem; color: var(--text-secondary);
  line-height: 1.6; font-weight: 300;
}

/* ---------- Pricing ---------- */
.pricing { background: var(--bg-secondary); }
.pricing-header { text-align: center; margin-bottom: 60px; }
.pricing-header .section-subtitle { margin: 0 auto; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px;
  max-width: 800px; margin: 0 auto;
}
.pricing-card {
  padding: 40px 32px; border-radius: 20px;
  background: var(--card-bg); border: 1px solid var(--border);
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover { transform: translateY(-4px); }
.pricing-card.featured {
  border-color: var(--teal);
  background: linear-gradient(145deg, rgba(13,115,119,0.08) 0%, var(--card-bg) 100%);
  position: relative;
}
.pricing-popular {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  padding: 6px 20px; border-radius: 100px;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap;
}
.pricing-name {
  font-size: 1.2rem; font-weight: 600;
  color: var(--warm-white); margin-bottom: 8px;
}
.pricing-price {
  font-family: 'Playfair Display', serif;
  font-size: 2.8rem; font-weight: 700;
  color: var(--warm-white); margin-bottom: 4px;
}
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-secondary); }
.pricing-period {
  font-size: 0.85rem; color: var(--text-muted);
  margin-bottom: 24px; font-weight: 300;
}
.pricing-yearly {
  display: inline-block; padding: 4px 12px;
  border-radius: 100px; font-size: 0.75rem;
  background: rgba(200,169,81,0.12); color: var(--gold);
  font-weight: 500; margin-bottom: 24px;
}
.pricing-features {
  list-style: none; margin-bottom: 32px;
}
.pricing-features li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.5; font-weight: 300; padding: 6px 0;
}
.pricing-features li svg {
  width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px;
}
.pricing-features li .check { color: var(--teal-glow); }
.pricing-features li .coming { color: var(--gold); }
.pricing-btn {
  display: block; width: 100%; padding: 14px;
  border-radius: 100px; font-size: 0.92rem; font-weight: 500;
  text-align: center; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  font-family: 'Outfit', sans-serif; border: none; cursor: pointer;
}
.pricing-btn-primary {
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff;
}
.pricing-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,115,119,0.4);
}
.pricing-btn-outline {
  background: transparent; color: var(--text-secondary);
  border: 1px solid var(--border);
}
.pricing-btn-outline:hover {
  border-color: var(--teal); color: var(--teal-glow);
}

/* ---------- Comparison ---------- */
.comparison { background: var(--bg-primary); }
.comparison-header { text-align: center; margin-bottom: 48px; }
.comparison-table {
  max-width: 900px; margin: 0 auto;
  border-radius: 16px; overflow: hidden;
  border: 1px solid var(--border);
}
.comparison-table table {
  width: 100%; border-collapse: collapse;
}
.comparison-table th {
  padding: 16px 20px; text-align: left;
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); letter-spacing: 0.04em;
  text-transform: uppercase; background: var(--surface);
  border-bottom: 1px solid var(--border);
}
body.rtl .comparison-table th { text-align: right; }
.comparison-table td {
  padding: 14px 20px; font-size: 0.9rem;
  color: var(--text-secondary); font-weight: 300;
  border-bottom: 1px solid rgba(255,255,255,0.03);
}
[data-theme="light"] .comparison-table td {
  border-bottom-color: rgba(0,0,0,0.04);
}
.comparison-table tr:hover { background: var(--surface); }
.comparison-table .check-icon { color: var(--teal-glow); }
.comparison-table .cross-icon { color: var(--text-muted); }

/* ---------- Stats ---------- */
.stats { background: var(--bg-secondary); }
.stats-header { text-align: center; margin-bottom: 48px; }
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  max-width: 1000px; margin: 0 auto;
}
.stat-card {
  text-align: center; padding: 32px 20px;
  border-radius: 16px; background: var(--card-bg);
  border: 1px solid var(--border);
}
.stat-number {
  font-family: 'Playfair Display', serif;
  font-size: 2.4rem; font-weight: 700;
  color: var(--teal-glow); margin-bottom: 8px;
}
.stat-label {
  font-size: 0.88rem; color: var(--text-secondary);
  font-weight: 300;
}

/* ---------- FAQ ---------- */
.faq { background: var(--bg-primary); }
.faq-header { text-align: center; margin-bottom: 48px; }
.faq-list {
  max-width: 760px; margin: 0 auto;
}
.faq-item {
  border-bottom: 1px solid var(--border);
}
.faq-question {
  width: 100%; display: flex; align-items: center;
  justify-content: space-between; gap: 16px;
  padding: 24px 0; background: none; border: none;
  cursor: pointer; text-align: left;
  font-size: 1.05rem; font-weight: 500;
  color: var(--warm-white);
  font-family: 'Outfit', sans-serif;
  transition: color 0.3s;
}
body.rtl .faq-question { text-align: right; }
.faq-question:hover { color: var(--gold); }
.faq-question svg {
  width: 20px; height: 20px; flex-shrink: 0;
  color: var(--text-muted); transition: transform 0.3s;
}
.faq-item.open .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-answer p {
  font-size: 0.92rem; color: var(--text-secondary);
  line-height: 1.7; font-weight: 300;
  padding-bottom: 24px;
}

/* ---------- Contact ---------- */
.contact { background: var(--bg-secondary); }
.contact-header { text-align: center; margin-bottom: 48px; }
.contact-header .section-subtitle { margin: 0 auto; }
.contact-form {
  max-width: 640px; margin: 0 auto;
}
.form-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 16px;
}
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 500;
  color: var(--text-secondary); margin-bottom: 8px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 14px 16px;
  border-radius: 12px; border: 1px solid var(--input-border);
  background: var(--input-bg); color: var(--input-text);
  font-size: 0.92rem; font-family: 'Outfit', sans-serif;
  transition: border-color 0.3s, box-shadow 0.3s;
  outline: none;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--teal); box-shadow: 0 0 0 3px rgba(13,115,119,0.15);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-group select { cursor: pointer; }
.form-group select option {
  background: var(--bg-secondary); color: var(--text-primary);
}
.form-submit {
  display: block; width: 100%; padding: 16px;
  border-radius: 100px; border: none;
  background: linear-gradient(135deg, var(--teal) 0%, var(--teal-light) 100%);
  color: #fff; font-size: 0.95rem; font-weight: 500;
  font-family: 'Outfit', sans-serif; cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}
.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(13,115,119,0.4);
}
.form-submit:disabled {
  opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: none;
}
.form-message {
  text-align: center; padding: 12px; margin-top: 16px;
  border-radius: 12px; font-size: 0.88rem; font-weight: 400;
  display: none;
}
.form-message.success {
  display: block; background: rgba(39,174,96,0.1);
  color: var(--success-green); border: 1px solid rgba(39,174,96,0.2);
}
.form-message.error {
  display: block; background: rgba(192,57,43,0.1);
  color: var(--error-red); border: 1px solid rgba(192,57,43,0.2);
}

/* ---------- CTA ---------- */
.cta {
  background: var(--bg-primary); text-align: center;
  padding: 100px 40px;
}
.cta-arabic {
  font-family: 'Amiri', serif;
  font-size: 1.6rem; color: var(--gold);
  margin-bottom: 16px; line-height: 1.6;
}
.cta .section-title { margin-bottom: 32px; }
.cta-buttons {
  display: flex; gap: 16px; justify-content: center; flex-wrap: wrap;
}
.store-btn {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 14px 28px; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-primary); text-decoration: none;
  transition: border-color 0.3s, background 0.3s, transform 0.3s;
}
.store-btn:hover {
  border-color: var(--teal); background: var(--surface-hover);
  transform: translateY(-2px);
}
.store-btn.disabled {
  opacity: 0.5; cursor: default; pointer-events: none;
}
.store-btn svg { width: 28px; height: 28px; }
.store-btn-text { text-align: left; }
body.rtl .store-btn-text { text-align: right; }
.store-btn-text small {
  display: block; font-size: 0.68rem;
  color: var(--text-muted); font-weight: 300;
}
.store-btn-text strong {
  display: block; font-size: 0.95rem; font-weight: 600;
}

/* ---------- Footer ---------- */
footer {
  padding: 60px 40px 40px;
  border-top: 1px solid var(--border);
  background: var(--bg-secondary);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
}
.footer-brand p {
  font-size: 0.88rem; color: var(--text-secondary);
  line-height: 1.6; font-weight: 300; margin-top: 12px;
  max-width: 280px;
}
.footer-col h4 {
  font-size: 0.82rem; font-weight: 600;
  color: var(--text-muted); letter-spacing: 0.1em;
  text-transform: uppercase; margin-bottom: 16px;
}
.footer-col a {
  display: block; font-size: 0.88rem;
  color: var(--text-secondary); font-weight: 300;
  padding: 4px 0; transition: color 0.3s;
}
.footer-col a:hover { color: var(--gold); }
.footer-bottom {
  max-width: 1200px; margin: 40px auto 0;
  padding-top: 24px; border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px;
}
.footer-bottom p {
  font-size: 0.78rem; color: var(--text-muted); font-weight: 300;
}
.footer-bottom a { color: var(--gold); text-decoration: none; }
.footer-legal-links {
  display: flex; gap: 20px;
}
.footer-legal-links a {
  font-size: 0.78rem; color: var(--text-muted);
  text-decoration: none; transition: color 0.3s;
}
.footer-legal-links a:hover { color: var(--text-secondary); }

/* ---------- Animations ---------- */
.fade-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  section { padding: 80px 20px; }
  nav { padding: 0 20px; }
  .nav-center { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: block; }
  .hero { padding: 100px 20px 60px; min-height: auto; }
  .hero-arabic { font-size: 3.5rem; }
  .hero-title { font-size: 2.2rem; }
  .section-title { font-size: 2rem; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .tech-grid { grid-template-columns: 1fr 1fr; }
  .pricing-grid { grid-template-columns: 1fr; max-width: 400px; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .comparison-table { overflow-x: auto; }
  .form-row { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .footer-legal-links { justify-content: center; }
  .cta { padding: 60px 20px; }
}

@media (max-width: 480px) {
  .hero-arabic { font-size: 2.8rem; }
  .hero-title { font-size: 1.8rem; }
  .section-title { font-size: 1.7rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .tech-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .hero-buttons { flex-direction: column; align-items: center; }
  .cta-buttons { flex-direction: column; align-items: center; }
  .footer-inner { grid-template-columns: 1fr; }
  .feature-tabs { gap: 4px; }
  .feature-tab { padding: 8px 16px; font-size: 0.78rem; }
}

/* ---------- RTL Overrides ---------- */
body.rtl .nav-center { direction: rtl; }
body.rtl .feature-card { text-align: right; }
body.rtl .about-card { text-align: right; }
body.rtl .step { text-align: right; }
body.rtl .tech-card { text-align: right; }
body.rtl .pricing-features li { flex-direction: row-reverse; }
body.rtl .footer-col { text-align: right; }
body.rtl .footer-brand { text-align: right; }
body.rtl .form-group label { text-align: right; }
body.rtl .form-group input,
body.rtl .form-group select,
body.rtl .form-group textarea { text-align: right; }
