/* ============================================================
   دار الأرقم — Landing page
   Plain CSS conversion of the React/Tailwind template.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@300;400;500;600;700;800;900&family=Amiri:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* ---- Design tokens (from template/src/styles/theme.css) ---- */
:root {
  --background: #f7faf9;
  --foreground: #0f2421;
  --card: #ffffff;
  --primary: #169B88;
  --primary-foreground: #ffffff;
  --secondary: #e6f4f1;
  --secondary-foreground: #0d6b5e;
  --muted-foreground: #5a7d77;
  --accent: #0d6b5e;
  --border: rgba(22, 155, 136, 0.15);
  --input-background: #edf5f3;
  --radius: 0.625rem;
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: 'Cairo', sans-serif;
  background: var(--background);
  color: var(--foreground);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
.serif { font-family: 'Amiri', serif; }

/* ---- Layout helpers ---- */
.container { max-width: 80rem; margin: 0 auto; padding: 0 1.5rem; }
.container-6xl { max-width: 72rem; margin: 0 auto; padding: 0 1.5rem; }
.container-3xl { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; }

/* Icons */
.icon { width: 24px; height: 24px; flex-shrink: 0; }
svg.icon { stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ============================================================
   Navbar
   ============================================================ */
.header {
  position: fixed;
  top: 0; right: 0; left: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  max-width: 80rem; margin: 0 auto; padding: 0 1.5rem;
  height: 4rem;
  display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 0.75rem; }
.brand-logo {
  width: 2.25rem; height: 2.25rem; border-radius: 0.5rem;
  display: flex; align-items: center; justify-content: center;
}
.brand-logo svg { width: 18px; height: 18px; color: #fff; }
.brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.brand-name { font-size: 1.125rem; font-weight: 700; color: var(--foreground); }

.desktop-nav { display: flex; align-items: center; gap: 2rem; }
.desktop-nav a {
  font-size: 0.875rem; font-weight: 500; color: var(--muted-foreground);
  transition: color 0.2s;
}
.desktop-nav a:hover { color: var(--primary); }

.desktop-actions { display: flex; align-items: center; gap: 0.75rem; }

.btn-primary {
  padding: 0.5rem 1rem; border-radius: 0.5rem;
  background: var(--primary); color: #fff;
  font-size: 0.875rem; font-weight: 600;
  transition: background 0.2s;
}
.btn-primary:hover { background: var(--accent); }

.menu-toggle {
  display: none;
  padding: 0.5rem; border-radius: 0.5rem; color: var(--foreground);
  transition: background 0.2s;
}
.menu-toggle:hover { background: var(--secondary); }
.menu-toggle svg { width: 20px; height: 20px; }

.mobile-nav {
  display: none;
  background: #fff; border-top: 1px solid var(--border);
  padding: 1rem 1.5rem;
  flex-direction: column; gap: 1rem;
}
.mobile-nav.open { display: flex; }
.mobile-nav a { font-size: 0.875rem; font-weight: 500; color: var(--foreground); }
.mobile-nav .btn-primary { text-align: center; color: #fff; }

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  padding: 8rem 0 6rem;
  overflow: hidden;
  background: linear-gradient(135deg, #0a3d36 0%, #169B88 60%, #1eb89e 100%);
}
.islamic-pattern {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
}
.hero-inner { position: relative; }

.hero-text { text-align: center; margin: 0 auto 3.5rem; max-width: 48rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.375rem 0.75rem; border-radius: 9999px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.75rem; font-weight: 500;
  margin-bottom: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.badge-dot {
  width: 0.375rem; height: 0.375rem; border-radius: 9999px;
  background: #6ee7b7;
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }

.hero-title {
  font-size: 2.25rem; font-weight: 700; color: #fff;
  line-height: 1.4; margin-bottom: 1.5rem;
}
.hero-title .accent-text { color: #6ee7b7; }
.hero-lead {
  font-size: 1.125rem; color: rgba(255, 255, 255, 0.8);
  margin-bottom: 1rem; line-height: 1.7;
}
.hero-sub {
  color: rgba(255, 255, 255, 0.6); font-size: 0.875rem;
  line-height: 1.7; max-width: 36rem; margin: 0 auto;
}
.hero-sub strong { color: rgba(255, 255, 255, 0.8); }

.hero-cta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }
.btn-hero-light {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 0.75rem;
  background: #fff; color: var(--primary);
  font-weight: 700; font-size: 0.875rem;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  transition: background 0.2s;
}
.btn-hero-light:hover { background: #ecfdf5; }
.btn-hero-outline {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.75rem 1.75rem; border-radius: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff; font-weight: 600; font-size: 0.875rem;
  transition: background 0.2s;
}
.btn-hero-outline:hover { background: rgba(255, 255, 255, 0.1); }
.btn-hero-light svg { width: 16px; height: 16px; }

/* Hero screenshots */
.hero-shots {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem; align-items: end;
  max-width: 64rem; margin: 0 auto;
}
.shot { display: flex; flex-direction: column; align-items: center; gap: 0.75rem; }
.shot-frame {
  border-radius: 1rem; overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(0,0,0,0.25);
  border: 2px solid rgba(255, 255, 255, 0.2);
  width: 100%;
}
.shot-frame.phone { max-width: 200px; margin: 0 auto; }
.shot-frame img { width: 100%; object-fit: cover; }
.shot-label {
  color: rgba(255, 255, 255, 0.7); font-size: 0.75rem; font-weight: 500;
  background: rgba(255, 255, 255, 0.1); padding: 0.25rem 0.75rem;
  border-radius: 9999px; border: 1px solid rgba(255, 255, 255, 0.2);
}
.shot-1 { order: 2; }
.shot-2 { order: 3; }
.shot-3 { order: 1; }

/* ============================================================
   Section shared
   ============================================================ */
.section { position: relative; padding: 6rem 0; overflow: hidden; }
.section.bg-page { background: var(--background); }
.section.bg-white { background: #fff; }
.section-head { text-align: center; margin-bottom: 4rem; }
.section-eyebrow { color: var(--primary); font-weight: 600; font-size: 0.875rem; margin-bottom: 0.5rem; }
.section-title {
  font-size: 1.875rem; font-weight: 700; color: var(--foreground);
  margin-bottom: 1rem;
}
.section-desc { color: var(--muted-foreground); max-width: 36rem; margin: 0 auto; }

/* ============================================================
   Features
   ============================================================ */
.features-grid {
  position: relative;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem;
}
.feature-card {
  background: #fff; border-radius: 1rem; border: 1px solid var(--border);
  padding: 1.5rem;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.feature-card:hover {
  border-color: rgba(22, 155, 136, 0.4);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.feature-icon {
  width: 2.75rem; height: 2.75rem; border-radius: 0.75rem;
  background: rgba(22, 155, 136, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  transition: background 0.3s;
}
.feature-icon svg { width: 20px; height: 20px; color: var(--primary); transition: color 0.3s; }
.feature-card:hover .feature-icon { background: var(--primary); }
.feature-card:hover .feature-icon svg { color: #fff; }
.feature-card h3 { font-size: 1rem; font-weight: 700; color: var(--foreground); margin-bottom: 0.5rem; line-height: 1.375; }
.feature-card p { font-size: 0.875rem; color: var(--muted-foreground); line-height: 1.7; }

/* ============================================================
   Testimonials
   ============================================================ */
.testimonials {
  position: relative; padding: 6rem 0; overflow: hidden;
  background: linear-gradient(135deg, #0a3d36 0%, #169B88 100%);
}
.testimonials .section-eyebrow { color: #6ee7b7; }
.testimonials .section-title { color: #fff; }
.testimonials-grid { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.testimonial-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem; padding: 1.5rem;
}
.stars { display: flex; gap: 0.125rem; }
.stars svg { width: 14px; height: 14px; fill: #fbbf24; color: #fbbf24; stroke: #fbbf24; }
.testimonial-card p.text { color: rgba(255, 255, 255, 0.9); font-size: 0.875rem; line-height: 1.7; margin: 1rem 0; }
.testimonial-card .name { font-weight: 700; color: #fff; font-size: 0.875rem; }
.testimonial-card .role { color: rgba(255, 255, 255, 0.6); font-size: 0.75rem; }

/* ============================================================
   Stats
   ============================================================ */
.stats-grid { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
.stat-card {
  background: #fff; border-radius: 1rem; border: 1px solid var(--border);
  padding: 2rem; text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.stat-card:hover {
  border-color: rgba(22, 155, 136, 0.4);
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}
.stat-icon {
  width: 3rem; height: 3rem; border-radius: 0.75rem;
  background: rgba(22, 155, 136, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1rem;
}
.stat-icon svg { width: 22px; height: 22px; color: var(--primary); }
.stat-value { font-size: 2.25rem; font-weight: 800; color: var(--primary); margin-bottom: 0.25rem; }
.stat-label { font-size: 0.875rem; color: var(--muted-foreground); }

/* ============================================================
   Contact
   ============================================================ */
.contact { padding: 5rem 0; background: #fff; border-top: 1px solid var(--border); }
.contact-inner { max-width: 48rem; margin: 0 auto; padding: 0 1.5rem; text-align: center; }
.contact-icon {
  width: 3.5rem; height: 3.5rem; border-radius: 1rem;
  background: rgba(22, 155, 136, 0.1);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 1.25rem;
}
.contact-icon svg { width: 26px; height: 26px; color: var(--primary); }
.contact p.lead { color: var(--muted-foreground); margin-bottom: 2rem; line-height: 1.7; max-width: 32rem; margin-left: auto; margin-right: auto; }
.contact-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
  max-width: 28rem; margin: 0 auto 2rem;
}
.contact-btn {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.25rem; border-radius: 0.75rem;
  border: 1px solid var(--border); background: var(--secondary);
  color: var(--foreground); font-weight: 600; font-size: 0.875rem;
  transition: border-color 0.2s;
}
.contact-btn:hover { border-color: var(--primary); }
.contact-btn svg { width: 16px; height: 16px; color: var(--primary); }
.contact-notes {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
  font-size: 0.875rem; color: var(--muted-foreground);
}
.contact-note { display: flex; align-items: center; gap: 0.375rem; }
.contact-note svg { width: 14px; height: 14px; color: var(--primary); flex-shrink: 0; }

/* ============================================================
   Footer
   ============================================================ */
.footer { background: var(--foreground); color: #fff; padding: 3rem 0; }
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; margin-bottom: 2.5rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
.footer-brand .brand-logo { width: 2rem; height: 2rem; background: #fff; padding: 3px; }
.footer-brand .brand-logo svg { width: 15px; height: 15px; }
.footer-brand span { font-weight: 700; }
.footer-about { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; line-height: 1.7; }
.footer-col p.col-title { font-weight: 700; font-size: 0.875rem; margin-bottom: 1rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: rgba(255, 255, 255, 0.5); font-size: 0.875rem; transition: color 0.2s; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1); padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
}
.footer-bottom p { color: rgba(255, 255, 255, 0.4); font-size: 0.75rem; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
  .desktop-nav, .desktop-actions { display: none; }
  .menu-toggle { display: block; }
  .hero-shots { grid-template-columns: 1fr; }
  .shot-1, .shot-2, .shot-3 { order: 0; }
  .features-grid { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .contact-actions { grid-template-columns: 1fr; }
}

@media (min-width: 768px) {
  .hero-title { font-size: 3rem; }
  .section-title { font-size: 2.25rem; }
}

@media (min-width: 1024px) {
  .hero-title { font-size: 3.75rem; }
}
