/* 
  RecoverX - Global Stylesheet
  Focus: Modern, High-trust, Performance-marketing ready, Dark Mode by default.
*/
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Tajawal:wght@400;500;700;800&display=swap');

:root {
  --bg-main: #0B0E17;
  --bg-card: #151A28;
  --border-light: rgba(255, 255, 255, 0.08);
  --border-glow: rgba(0, 240, 255, 0.3);
  
  --primary: #2563EB;
  --primary-light: #3B82F6;
  --accent: #00F0FF;
  --success: #10B981;
  --warning: #F59E0B;
  --danger: #EF4444;

  --text-main: #F8FAFC;
  --text-muted: #94A3B8;

  --font-en: 'Inter', sans-serif;
  --font-ar: 'Tajawal', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  background-color: var(--bg-main);
  color: var(--text-main);
}

html[lang="en"] {
  font-family: var(--font-en);
}

html[lang="ar"] {
  font-family: var(--font-ar);
}

/* Language Toggling Utilities */
html[lang="en"] .lang-ar { display: none !important; }
html[lang="ar"] .lang-en { display: none !important; }

/* In Arabic layout ensure RTL behaviors */
html[lang="ar"] .flex-row-reverse-ar {
  flex-direction: row-reverse;
}
html[lang="ar"] .text-start-ar { text-align: right; }
html[lang="en"] .text-start-ar { text-align: left; }

body {
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}
a:hover { color: var(--primary-light); }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 5%;
}

/* Typography */
h1, h2, h3, h4, h5 { font-weight: 700; line-height: 1.2; margin-bottom: 1rem; }
h1 { font-size: clamp(2.5rem, 5vw, 4.5rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.75rem; }
p { margin-bottom: 1rem; color: var(--text-muted); font-size: 1.125rem; }

html[lang="ar"] h1, html[lang="ar"] h2 {
  letter-spacing: 0;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  gap: 0.5rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 240, 255, 0.25);
}
.btn-primary:hover {
  box-shadow: 0 6px 20px rgba(0, 240, 255, 0.4);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-light);
}
.btn-outline:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-glow);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem 0;
  z-index: 100;
  background: rgba(11, 14, 23, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: -0.5px;
}
.logo span {
  color: var(--accent);
}
.nav-links {
  display: flex;
  gap: 2rem;
  align-items: center;
}
.nav-links a {
  color: var(--text-main);
  font-weight: 500;
  font-size: 1rem;
}
.nav-links a:hover {
  color: var(--accent);
}
.lang-toggle {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border-light);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.2s;
}
.lang-toggle:hover { background: rgba(255, 255, 255, 0.2); }

/* Hero Section */
.hero {
  padding: 160px 0 100px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(37,99,235,0.15) 0%, rgba(11,14,23,0) 70%);
  z-index: -1;
  pointer-events: none;
}
.hero-badge {
  display: inline-block;
  padding: 0.4rem 1rem;
  background: rgba(0, 240, 255, 0.1);
  border: 1px solid var(--border-glow);
  color: var(--accent);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}
.hero-text {
  max-width: 800px;
  margin: 0 auto;
}
.hero-cta {
  margin-top: 2.5rem;
  display: flex;
  justify-content: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* Trust Bar */
.trust-bar {
  padding: 2rem 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  background: rgba(255,255,255,0.01);
}
.trust-items {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4rem;
  flex-wrap: wrap;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item svg { width: 24px; height: 24px; color: var(--accent); }

/* Features Section */
.features {
  padding: 100px 0;
}
.section-header {
  text-align: center;
  margin-bottom: 4rem;
}
.section-header h2 { margin-bottom: 1rem; }
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 2.5rem;
  transition: transform 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-glow);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: rgba(37,99,235,0.1);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
  color: var(--primary-light);
}

/* Legal Pages (Privacy, Terms) */
.legal-page {
  padding: 140px 0 80px;
  flex: 1;
}
.legal-content {
  max-width: 840px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: 24px;
  padding: 3rem;
}
.legal-content h1 {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #fff;
}
.legal-content .last-updated {
  color: var(--accent);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
  display: block;
}
.legal-content h2 {
  font-size: 1.5rem;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  color: #fff;
  border-bottom: 1px solid var(--border-light);
  padding-bottom: 0.5rem;
}
.legal-content p, .legal-content li {
  margin-bottom: 1rem;
  color: var(--text-muted);
  line-height: 1.7;
}
.legal-content ul {
  padding-inline-start: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Footer */
footer {
  border-top: 1px solid var(--border-light);
  padding: 4rem 0 2rem;
  background: var(--bg-card);
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-col h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
}
.footer-links {
  list-style: none;
}
.footer-links li { margin-bottom: 0.75rem; }
.footer-links a { color: var(--text-muted); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 2rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

@media (max-width: 768px) {
  .nav-links { display: none; }
  .heroes-split { flex-direction: column !important; }
  .legal-content { padding: 1.5rem; }
  .trust-items { gap: 1.5rem; flex-direction: column; align-items: flex-start; }
}
