/* ─── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* ─── CSS Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:           #ffffff;
  --bg-alt:       #f5f5f7;
  --bg-alt2:      #fbfbfd;
  --text:         #1d1d1f;
  --text-muted:   #6e6e73;
  --text-subtle:  #86868b;
  --accent:       #0071e3;
  --accent-hover: #0077ed;
  --accent-dark:  #004f9e;
  --border:       #d2d2d7;
  --border-light: #e8e8ed;
  --card-bg:      #ffffff;
  --card-shadow:  0 2px 20px rgba(0,0,0,0.08);
  --card-shadow-hover: 0 8px 40px rgba(0,0,0,0.12);
  --radius:       18px;
  --radius-sm:    12px;
  --nav-height:   52px;
  --font-en:      -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
  --font-ar:      "Noto Naskh Arabic", "SF Arabic", "Geeza Pro", serif;
  --transition:   0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-en);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul { list-style: none; }

/* ─── Arabic Text ────────────────────────────────────────────────────────────── */
.ar {
  font-family: var(--font-ar);
  direction: rtl;
  unicode-bidi: embed;
}

/* ─── Navigation ─────────────────────────────────────────────────────────────── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0,0,0,0.08);
}

.nav-inner {
  max-width: 980px;
  margin: 0 auto;
  padding: 0 22px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
  text-decoration: none;
}

.nav-logo .logo-en {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.02em;
}

.nav-logo .logo-ar {
  font-family: var(--font-ar);
  font-size: 12px;
  color: var(--text-subtle);
  direction: rtl;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-links a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  opacity: 0.8;
  transition: opacity var(--transition);
}

.nav-links a:hover { opacity: 1; color: var(--text); }
.nav-links a.active { opacity: 1; color: var(--accent); }

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--text);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.nav-mobile {
  display: none;
  position: absolute;
  top: var(--nav-height);
  left: 0;
  right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 22px;
  flex-direction: column;
  gap: 20px;
}

.nav-mobile.open { display: flex; }
.nav-mobile a { font-size: 16px; color: var(--text); font-weight: 400; }

/* ─── Hero ───────────────────────────────────────────────────────────────────── */
.hero {
  text-align: center;
  padding: 100px 22px 80px;
  background: linear-gradient(180deg, #fbfbfd 0%, #ffffff 100%);
  position: relative;
  overflow: hidden;
}

/* subtle geometric decoration */
.hero::before {
  content: '';
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(0,113,227,0.06) 0%, transparent 70%);
  pointer-events: none;
}

.hero-eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--text);
  margin-bottom: 6px;
}

.hero-subtitle-ar {
  font-family: var(--font-ar);
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 500;
  color: var(--text-muted);
  direction: rtl;
  margin-bottom: 22px;
}

.hero-desc {
  max-width: 560px;
  margin: 0 auto 10px;
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.55;
}

.hero-desc-ar {
  font-family: var(--font-ar);
  font-size: 16px;
  color: var(--text-subtle);
  max-width: 480px;
  margin: 0 auto 42px;
  direction: rtl;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 26px;
  border-radius: 980px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,113,227,0.3);
}

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

.btn-secondary:hover {
  background: var(--border-light);
  color: var(--text);
  transform: translateY(-1px);
}

.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.badge-note {
  font-size: 12px;
  color: var(--text-subtle);
  margin-top: 16px;
  font-style: italic;
}

/* ─── Section Shell ──────────────────────────────────────────────────────────── */
section { padding: 80px 22px; }
section.alt { background: var(--bg-alt2); }

.section-header {
  text-align: center;
  margin-bottom: 56px;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.section-header h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 8px;
}

.section-header .h2-ar {
  font-family: var(--font-ar);
  font-size: clamp(18px, 2.5vw, 24px);
  color: var(--text-muted);
  direction: rtl;
  display: block;
}

/* ─── Feature Grid ───────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  max-width: 980px;
  margin: 0 auto;
}

.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 32px 28px;
  transition: box-shadow var(--transition), transform var(--transition);
}

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

.feature-icon {
  font-size: 32px;
  margin-bottom: 16px;
  display: block;
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  color: var(--text);
}

.feature-card .h3-ar {
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--text-subtle);
  direction: rtl;
  display: block;
  margin-bottom: 12px;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 8px;
}

.feature-card .desc-ar {
  font-family: var(--font-ar);
  font-size: 13px;
  color: var(--text-subtle);
  direction: rtl;
  line-height: 1.8;
}

/* ─── Highlight Banner ───────────────────────────────────────────────────────── */
.highlight-banner {
  background: linear-gradient(135deg, #0071e3 0%, #005ab5 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: 60px 40px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.highlight-banner h2 {
  font-size: clamp(24px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}

.highlight-banner .h2-ar {
  font-family: var(--font-ar);
  font-size: clamp(16px, 2vw, 22px);
  opacity: 0.8;
  direction: rtl;
  display: block;
  margin-bottom: 24px;
}

.highlight-banner p { opacity: 0.85; font-size: 16px; margin-bottom: 32px; }

.highlight-banner .btn-primary {
  background: #fff;
  color: var(--accent);
}

.highlight-banner .btn-primary:hover {
  background: #f0f0f0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
}

/* ─── Prose (Privacy, About, Support) ───────────────────────────────────────── */
.prose-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 60px 22px 80px;
}

.prose-page .page-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: rgba(0,113,227,0.07);
  padding: 4px 12px;
  border-radius: 980px;
  margin-bottom: 18px;
}

.prose-page h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 6px;
}

.prose-page .page-h1-ar {
  font-family: var(--font-ar);
  font-size: clamp(18px, 2.5vw, 26px);
  color: var(--text-muted);
  direction: rtl;
  display: block;
  margin-bottom: 36px;
}

.prose-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: 40px 0;
}

.prose-page h2 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 12px;
}

.prose-page p {
  font-size: 16px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 16px;
}

.prose-page a { color: var(--accent); }
.prose-page a:hover { text-decoration: underline; }

.prose-page .meta {
  font-size: 13px;
  color: var(--text-subtle);
  margin-bottom: 40px;
}

/* ─── FAQ Accordion ──────────────────────────────────────────────────────────── */
.faq-list { margin-top: 8px; }

.faq-item {
  border-bottom: 1px solid var(--border-light);
}

.faq-item:first-child { border-top: 1px solid var(--border-light); }

.faq-question {
  width: 100%;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  padding: 18px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  transition: color var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-chevron {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
  color: var(--text-subtle);
}

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

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-item.open .faq-answer { max-height: 400px; }

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
}

/* ─── Contact Card ───────────────────────────────────────────────────────────── */
.contact-card {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 32px;
  margin-top: 40px;
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.contact-icon {
  font-size: 28px;
  flex-shrink: 0;
}

.contact-card h3 {
  font-size: 17px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}

.contact-card p { font-size: 14px; color: var(--text-muted); margin-bottom: 4px; }
.contact-card a { font-size: 15px; font-weight: 500; color: var(--accent); }

/* ─── About Mission ──────────────────────────────────────────────────────────── */
.mission-block {
  background: linear-gradient(135deg, #f5f5f7 0%, #fbfbfd 100%);
  border-radius: var(--radius);
  padding: 48px 40px;
  margin-bottom: 48px;
}

.mission-block p {
  font-size: 20px;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text);
  margin-bottom: 16px;
}

.mission-block .mission-ar {
  font-family: var(--font-ar);
  font-size: 18px;
  direction: rtl;
  color: var(--text-muted);
  line-height: 2;
}

/* ─── Feature Summary List ───────────────────────────────────────────────────── */
.feature-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
  margin-top: 32px;
}

.feature-list-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px;
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
}

.feature-list-item .icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }

.feature-list-item .label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.feature-list-item .label-ar {
  font-family: var(--font-ar);
  font-size: 12px;
  color: var(--text-subtle);
  direction: rtl;
}

/* ─── Category Tag ───────────────────────────────────────────────────────────── */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 5px 14px;
  border-radius: 980px;
  margin-bottom: 32px;
}

/* ─── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background: var(--bg-alt2);
  border-top: 1px solid var(--border-light);
  padding: 48px 22px 32px;
}

.footer-inner {
  max-width: 980px;
  margin: 0 auto;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand .logo-en {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.footer-brand .logo-ar {
  font-family: var(--font-ar);
  font-size: 14px;
  color: var(--text-subtle);
  direction: rtl;
  display: block;
  margin-top: 2px;
}

.footer-brand .tagline {
  font-size: 13px;
  color: var(--text-subtle);
  margin-top: 8px;
  max-width: 220px;
  line-height: 1.5;
}

.footer-links {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-links-group h4 {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-subtle);
  margin-bottom: 14px;
}

.footer-links-group a {
  display: block;
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 10px;
  transition: color var(--transition);
}

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

.footer-bottom {
  border-top: 1px solid var(--border-light);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  font-size: 13px;
  color: var(--text-subtle);
}

.footer-bottom a {
  font-size: 13px;
  color: var(--text-muted);
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 740px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }

  .hero { padding: 72px 22px 60px; }

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

  .highlight-banner { padding: 40px 24px; }

  .mission-block { padding: 32px 24px; }
  .mission-block p { font-size: 17px; }

  .contact-card { flex-direction: column; gap: 12px; }

  .footer-top { flex-direction: column; gap: 32px; }
  .footer-links { gap: 32px; }

  .footer-bottom { flex-direction: column; align-items: flex-start; }

  .prose-page { padding: 40px 22px 60px; }
}

@media (max-width: 480px) {
  .hero-actions { flex-direction: column; align-items: center; }
  .btn { width: 100%; justify-content: center; max-width: 300px; }
}
