/* styles.css – Modern, clean, mobile-first, Material-inspired */
:root {
  /* Light theme (default) – soft green/blue gradient friendly */
  --bg-page: #f8fafc;
  --surface: #ffffff;
  --text-primary: #0b2b26;
  --text-secondary: #2c4a44;
  --primary: #0f6b5e;
  --primary-light: #1e8a7a;
  --primary-soft: #d2f0e8;
  --accent: #3b82f6;
  --border-light: #e2e8f0;
  --shadow-sm: 0 6px 12px -6px rgba(0, 40, 30, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.02);
  --shadow-md: 0 12px 24px -12px rgba(15, 107, 94, 0.12), 0 4px 10px -4px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 20px 30px -12px rgba(15, 107, 94, 0.15);
  --gradient-hero: linear-gradient(145deg, #e6f7f2 0%, #dbeafe 100%);
  --card-bg: #ffffff;
  --footer-bg: #ffffffcc;
  --header-bg: rgba(255, 255, 255, 0.8);
  --disclaimer-bg: #fff8e5;
  --disclaimer-border: #ffe5b4;
}

/* Dark mode override */
html.dark {
  --bg-page: #0f1a1a;
  --surface: #1a2a28;
  --text-primary: #e2f0ed;
  --text-secondary: #bcd0ca;
  --primary: #35b5a2;
  --primary-light: #4ecdb9;
  --primary-soft: #1c3d38;
  --accent: #60a5fa;
  --border-light: #2a403c;
  --shadow-sm: 0 6px 12px -6px #00000030;
  --shadow-md: 0 12px 24px -12px #00000040;
  --gradient-hero: linear-gradient(145deg, #1a2f2c 0%, #1a2938 100%);
  --card-bg: #1e302e;
  --footer-bg: #142120cc;
  --header-bg: rgba(20, 35, 33, 0.8);
  --disclaimer-bg: #2e3a2a;
  --disclaimer-border: #5f7340;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Cairo', 'Inter', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.2s ease, color 0.2s;
}

/* English page uses Inter, Arabic uses Cairo. We set accordingly */
html[lang="en"] body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

html[lang="ar"] body {
  font-family: 'Cairo', system-ui, sans-serif;
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-light);
  transition: box-shadow 0.3s, background 0.2s;
  padding: 0.75rem 0;
}

.site-header.scrolled {
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}

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

.logo-area {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.app-icon {
  font-size: 2rem;
  color: var(--primary);
  font-variation-settings: 'FILL' 0;
}

.app-name {
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
  background: linear-gradient(145deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.header-actions {
  display: flex;
  gap: 0.5rem;
}

.icon-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-primary);
  transition: background 0.2s, transform 0.1s;
  background-color: var(--surface);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-light);
}

.icon-btn:hover {
  background-color: var(--primary-soft);
  transform: scale(1.02);
}

.icon-btn .material-symbols-outlined {
  font-size: 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 60px;
  padding: 0.75rem 2rem;
  text-decoration: none;
  transition: all 0.2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-sm);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 10px 18px -8px var(--primary);
  border: none;
}

.btn-primary:hover {
  background: var(--primary-light);
  box-shadow: 0 12px 22px -10px var(--primary);
  transform: translateY(-2px);
}

.btn-large {
  padding: 1rem 2.5rem;
  font-size: 1.15rem;
}

.btn .material-symbols-outlined {
  font-size: 22px;
}

/* Hero */
.hero {
  padding: 4rem 0 3.5rem;
  background: var(--gradient-hero);
  text-align: center;
  border-bottom: 1px solid var(--border-light);
}

.hero-title {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 1rem;
  letter-spacing: -0.02em;
}

.badge {
  display: inline-block;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1rem;
  padding: 0.2rem 1rem;
  border-radius: 40px;
  margin-inline-start: 0.75rem;
  vertical-align: middle;
  font-weight: 500;
}

.hero-tagline {
  font-size: 1.5rem;
  margin-bottom: 2rem;
  color: var(--text-secondary);
}

.hero-note {
  margin-top: 1.5rem;
  font-size: 0.95rem;
  opacity: 0.8;
}

/* Section */
.section {
  padding: 4.5rem 0;
}

.bg-light {
  background-color: var(--primary-soft);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
  color: var(--text-primary);
}

.section-title::after {
  content: '';
  display: block;
  width: 70px;
  height: 4px;
  background: var(--primary);
  margin: 0.75rem auto 0;
  border-radius: 10px;
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 2rem;
}

.feature-card {
  background: var(--card-bg);
  padding: 2rem 1.5rem;
  border-radius: 28px;
  box-shadow: var(--shadow-md);
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  border: 1px solid var(--border-light);
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.feature-icon {
  font-size: 3.2rem;
  color: var(--primary);
  margin-bottom: 1rem;
}

.feature-card h3 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.feature-card p {
  color: var(--text-secondary);
}

/* How it works steps */
.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem 3rem;
}

.step {
  flex: 1 1 200px;
  max-width: 260px;
  text-align: center;
  background: var(--card-bg);
  padding: 2rem 1.2rem;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--border-light);
  position: relative;
}

.step-number {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.3rem;
  box-shadow: var(--shadow-sm);
}

.step-icon {
  font-size: 3rem;
  color: var(--primary);
  margin: 1.2rem 0 0.8rem;
}

.step h4 {
  font-size: 1.3rem;
  margin-bottom: 0.3rem;
}

/* Screenshots */
.screenshot-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2rem;
}

.phone-mockup {
  width: 200px;
  background: var(--surface);
  border-radius: 36px;
  padding: 14px 8px;
  box-shadow: var(--shadow-lg), 0 0 0 1px var(--border-light);
  border: 1px solid var(--border-light);
}

.mockup-screen {
  background: var(--bg-page);
  border-radius: 24px;
  padding: 2rem 0.5rem;
  text-align: center;
  aspect-ratio: 9 / 18;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  border: 1px dashed var(--border-light);
}

.mockup-screen .material-symbols-outlined {
  font-size: 3.5rem;
  color: var(--primary);
  margin-bottom: 0.5rem;
}

/* Disclaimer */
.disclaimer-card {
  background: var(--disclaimer-bg);
  border-left: 6px solid var(--primary);
  padding: 1.5rem 2rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow-sm);
  color: var(--text-primary);
  border: 1px solid var(--disclaimer-border);
  font-weight: 500;
}

.disclaimer-card .material-symbols-outlined {
  font-size: 2.5rem;
  color: var(--primary);
}

/* Footer */
.site-footer {
  background: var(--footer-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-top: 1px solid var(--border-light);
  padding: 2rem 0;
  margin-top: 1rem;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--text-secondary);
}

.language-switch {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 500;
}

.lang-link {
  text-decoration: none;
  color: var(--text-secondary);
  padding: 0.25rem 0.5rem;
  border-radius: 30px;
  transition: all 0.2s;
}

.lang-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.lang-link.active {
  background: var(--primary);
  color: white;
  padding: 0.25rem 1rem;
}

.separator {
  color: var(--border-light);
}

/* Fade-in animation */
@keyframes fadeSlide {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

.hero, .features, .how-it-works, .screenshots, .disclaimer {
  animation: fadeSlide 0.6s ease-out;
}

/* Mobile fine-tuning */
@media (max-width: 640px) {
  .container { padding: 0 1.2rem; }
  .hero-title { font-size: 2.2rem; }
  .badge { display: block; margin: 0.5rem auto 0; width: fit-content; }
  .hero-tagline { font-size: 1.3rem; }
  .section-title { font-size: 1.9rem; }
  .phone-mockup { width: 160px; }
  .footer-content { flex-direction: column; text-align: center; }
  .step { max-width: 100%; }
}

/* RTL specific adjustments handled by logical properties + dir */
html[dir="rtl"] .disclaimer-card {
  border-left: none;
  border-right: 6px solid var(--primary);
}

html[dir="rtl"] .step-number {
  left: auto;
  right: 50%;
  transform: translateX(50%);
}