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

:root {
  --teal-50: #f0fdfa;
  --teal-100: #ccfbf1;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --teal-700: #0f766e;
  --orange-500: #f59e0b;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-900: #111827;
  --radius: 0.75rem;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.08);
  --shadow-lg: 0 10px 25px rgb(0 0 0 / 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  color: var(--gray-900);
  background: #fff;
  line-height: 1.6;
}

html.rtl body { font-family: 'Noto Sans Arabic', system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container { max-width: 80rem; margin: 0 auto; padding: 0 1rem; }

/* Beta banner */
.beta-banner {
  background: linear-gradient(90deg, var(--teal-700), var(--teal-600));
  color: #fff;
  text-align: center;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid var(--gray-100);
  background: rgb(255 255 255 / 0.95);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
  gap: 1rem;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.logo img { width: 36px; height: 36px; border-radius: 0.5rem; object-fit: cover; }

.logo span.accent {
  background: linear-gradient(90deg, var(--teal-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-desktop { display: none; gap: 0.25rem; flex-wrap: wrap; }

.nav-desktop a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-600);
  border-radius: 0.5rem;
  transition: color 0.15s, background 0.15s;
}

.nav-desktop a:hover { color: var(--teal-600); background: var(--gray-50); }

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

.lang-switch {
  display: flex;
  border: 1px solid var(--gray-200);
  border-radius: 0.5rem;
  overflow: hidden;
}

.lang-switch a {
  padding: 0.35rem 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-600);
}

.lang-switch a.active { background: var(--teal-50); color: var(--teal-700); }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius);
  border: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, opacity 0.15s;
}

.btn-primary {
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
  color: #fff;
  box-shadow: 0 4px 14px rgb(13 148 136 / 0.25);
}

.btn-primary:hover { opacity: 0.95; transform: translateY(-1px); }

.btn-outline {
  background: #fff;
  border: 1px solid var(--teal-100);
  color: var(--teal-700);
}

.btn-outline:hover { background: var(--teal-50); }

.btn-ghost {
  background: transparent;
  color: var(--gray-600);
  padding: 0.5rem 0.75rem;
}

.btn-lg { padding: 0.875rem 1.75rem; font-size: 1rem; }

.menu-toggle {
  display: flex;
  padding: 0.5rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--gray-700);
}

.menu-toggle svg { width: 24px; height: 24px; }

.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem;
  border-top: 1px solid var(--gray-100);
}

.nav-mobile.open { display: flex; }

.nav-mobile a {
  padding: 0.75rem;
  font-weight: 500;
  color: var(--gray-700);
  border-radius: 0.5rem;
}

.nav-mobile a:hover { background: var(--gray-50); color: var(--teal-600); }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .menu-toggle { display: none; }
  .header-actions .btn-ghost.hide-mobile { display: inline-flex; }
}

@media (max-width: 1023px) {
  .header-actions .btn-ghost.hide-mobile { display: none; }
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--teal-50), #fff 50%, #fff7ed);
  padding: 5rem 0 6rem;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 25% 0%, rgb(153 246 228 / 0.35), transparent 50%),
    radial-gradient(circle at 75% 30%, rgb(254 215 170 / 0.3), transparent 50%);
  pointer-events: none;
}

.hero-content { position: relative; text-align: center; max-width: 56rem; margin: 0 auto; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--teal-100);
  color: var(--teal-700);
  padding: 0.5rem 1rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero h1 .gradient {
  background: linear-gradient(90deg, var(--teal-600), var(--teal-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-sub { margin-top: 1.5rem; font-size: 1.125rem; color: var(--gray-600); max-width: 42rem; margin-left: auto; margin-right: auto; }

.hero-cta { margin-top: 2.5rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 56rem;
  margin: 4rem auto 0;
}

@media (min-width: 640px) { .stats-grid { grid-template-columns: repeat(4, 1fr); } }

.stat-card {
  background: rgb(255 255 255 / 0.85);
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-card .value {
  font-size: 1.875rem;
  font-weight: 800;
  background: linear-gradient(90deg, var(--teal-600), var(--orange-500));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.stat-card .label { margin-top: 0.5rem; font-size: 0.875rem; color: var(--gray-600); }

/* Sections */
.section { padding: 5rem 0; }

.section-alt { background: var(--gray-50); }

.section-header { text-align: center; max-width: 42rem; margin: 0 auto 3rem; }

.section-header h2 { font-size: clamp(1.75rem, 3vw, 2.25rem); font-weight: 800; letter-spacing: -0.02em; }

.section-header p { margin-top: 0.75rem; color: var(--gray-600); font-size: 1.05rem; }

.cards-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr;
}

@media (min-width: 640px) { .cards-grid.cols-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-3 { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-4 { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 768px) { .cards-grid.cols-audience { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .cards-grid.cols-audience { grid-template-columns: repeat(4, 1fr); } }

.card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card-icon {
  width: 3rem;
  height: 3rem;
  border-radius: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.card h3 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.5rem; }

.card p { font-size: 0.9375rem; color: var(--gray-600); line-height: 1.55; }

/* Problem stats */
.problem-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 2rem 0;
}

.problem-stat { text-align: center; padding: 1rem; }

.problem-stat .num { font-size: 2rem; font-weight: 800; color: var(--teal-600); }

.problem-stat .lbl { font-size: 0.8125rem; color: var(--gray-600); margin-top: 0.25rem; }

/* FAQ */
.faq-list { max-width: 48rem; margin: 0 auto; }

.faq-item { border: 1px solid var(--gray-200); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; background: #fff; }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  color: var(--gray-900);
}

html.rtl .faq-question { text-align: right; }

.faq-question svg { flex-shrink: 0; transition: transform 0.2s; color: var(--teal-600); }

.faq-item.open .faq-question svg { transform: rotate(180deg); }

.faq-answer { display: none; padding: 0 1.25rem 1.25rem; color: var(--gray-600); font-size: 0.9375rem; line-height: 1.6; }

.faq-item.open .faq-answer { display: block; }

/* Contact */
.contact-grid {
  display: grid;
  gap: 2rem;
  max-width: 56rem;
  margin: 0 auto;
}

@media (min-width: 768px) { .contact-grid { grid-template-columns: 1fr 1.2fr; } }

.contact-info-item { display: flex; gap: 1rem; margin-bottom: 1.25rem; }

.contact-info-item a { color: var(--teal-600); font-weight: 500; }
.contact-info-item a:hover { text-decoration: underline; }
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.5rem;
  background: var(--teal-100);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.form-group { margin-bottom: 1rem; }

.form-group label { display: block; font-size: 0.875rem; font-weight: 500; margin-bottom: 0.375rem; }

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.9375rem;
}

.form-group textarea { min-height: 120px; resize: vertical; }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--teal-700), var(--teal-600));
  color: #fff;
  text-align: center;
  padding: 4rem 1rem;
}

.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }

.cta-band p { margin-top: 1rem; opacity: 0.9; max-width: 36rem; margin-left: auto; margin-right: auto; }

.cta-band .hero-cta { margin-top: 2rem; }

.cta-band .btn-outline { border-color: rgb(255 255 255 / 0.4); color: #fff; background: transparent; }

.cta-band .btn-outline:hover { background: rgb(255 255 255 / 0.1); }

/* Footer */
.site-footer {
  background: var(--gray-900);
  color: #d1d5db;
  padding: 3rem 0 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 2rem;
}

@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

.site-footer h4 { color: #fff; font-size: 0.875rem; font-weight: 600; margin-bottom: 1rem; }

.site-footer ul { list-style: none; }

.site-footer li { margin-bottom: 0.5rem; }

.site-footer a { font-size: 0.875rem; color: #9ca3af; transition: color 0.15s; }

.site-footer a:hover { color: #fff; }

.footer-bottom {
  border-top: 1px solid #374151;
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.8125rem;
  color: #6b7280;
}

/* Page hero (inner pages) */
.page-hero {
  background: linear-gradient(135deg, var(--teal-50), #fff 60%, #fff7ed);
  padding: 4rem 0;
  text-align: center;
}

.page-hero.teal { background: linear-gradient(135deg, var(--teal-700), var(--teal-600)); color: #fff; }

.page-hero-icon {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1.5rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--teal-500), var(--teal-600));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  box-shadow: var(--shadow-lg);
}

.page-hero h1 { font-size: clamp(2rem, 4vw, 2.75rem); font-weight: 800; }

.page-hero .subtitle { margin-top: 0.75rem; font-size: 1.125rem; color: var(--teal-600); font-weight: 500; }

.page-hero.teal .subtitle { color: var(--teal-100); }

.page-hero .desc { margin-top: 1rem; max-width: 40rem; margin-left: auto; margin-right: auto; color: var(--gray-600); font-size: 1.05rem; }

.page-hero.teal .desc { color: rgb(255 255 255 / 0.85); }

/* Construction */
.construction-page {
  min-height: 50vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1rem;
  background: var(--gray-50);
}

.construction-box {
  text-align: center;
  max-width: 28rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: 1.25rem;
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-lg);
}

.construction-box .icon { font-size: 3.5rem; margin-bottom: 1rem; }

.construction-box h1 { font-size: 1.5rem; font-weight: 800; color: var(--gray-900); }

.construction-box p { margin-top: 0.75rem; color: var(--gray-600); font-size: 0.9375rem; }

.construction-box .btn { margin-top: 1.5rem; }

/* Legal */
.legal-section { padding: 3rem 0 4rem; background: var(--gray-50); }

.legal-card {
  background: #fff;
  border: 1px solid var(--gray-100);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.legal-card h2 { font-size: 1.125rem; font-weight: 700; margin-bottom: 0.75rem; color: var(--gray-900); }

.legal-card p { color: var(--gray-600); line-height: 1.65; font-size: 0.9375rem; }

/* Steps */
.steps { display: grid; gap: 2rem; margin-top: 2rem; }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

.step { text-align: center; }

.step-num {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--teal-600);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.step h3 { font-weight: 700; margin-bottom: 0.5rem; }

.step p { font-size: 0.875rem; color: var(--gray-600); }

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  background: var(--gray-900);
  color: #fff;
  padding: 0.875rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(1rem);
  transition: opacity 0.3s, transform 0.3s;
  z-index: 100;
  pointer-events: none;
}

html.rtl .toast { right: auto; left: 1.5rem; }

.toast.show { opacity: 1; transform: translateY(0); }
