:root {
  --navy: #1E293B;
  --navy-deep: #0F172A;
  --terracotta: #B0603A;
  --terracotta-light: #FBF1EC;
  --bg: #F8FAFC;
  --card: #FFFFFF;
  --muted: #64748B;
  --border: #E2E8F0;
  --teal: #2F9E9E;
  --teal-light: #F0FDFA;
  --purple: #8C6BAE;
  --purple-light: #F1EBF7;
  --amber: #B98122;
  --amber-light: #FBF2DF;
  --green: #10B981;
  --green-light: #ECFDF5;
  --radius: 16px;
  --radius-lg: 24px;
  --font-ar: 'Tajawal', sans-serif;
  --font-en: 'Inter', sans-serif;
  --shadow: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-ar);
  background: var(--bg);
  color: var(--navy-deep);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-sm { padding: 9px 18px; font-size: 13.5px; }
.btn-lg { padding: 15px 28px; font-size: 15.5px; }

.btn-primary {
  background: var(--terracotta);
  color: #fff;
  box-shadow: 0 4px 14px rgba(176, 96, 58, 0.28);
}
.btn-primary:hover { box-shadow: 0 6px 18px rgba(176, 96, 58, 0.36); }

.btn-ghost {
  background: rgba(30, 41, 59, 0.06);
  color: var(--navy-deep);
}
.btn-ghost:hover { background: rgba(30, 41, 59, 0.1); }

.btn-outline {
  background: transparent;
  color: var(--navy-deep);
  border: 1.5px solid var(--border);
}
.btn-outline:hover { border-color: var(--navy); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 250, 252, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 20px;
  color: var(--navy-deep);
}
.brand-mark { width: 30px; height: 30px; object-fit: contain; }
.brand-mark-sm { width: 24px; height: 24px; }

.main-nav {
  display: flex;
  align-items: center;
  gap: 32px;
  margin-inline-start: 16px;
  flex: 1;
}
.main-nav a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
}
.main-nav a:hover { color: var(--navy-deep); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-weight: 700;
  font-size: 12.5px;
  cursor: pointer;
  color: var(--navy-deep);
  transition: border-color 0.15s ease;
}
.lang-toggle:hover { border-color: var(--navy); }

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: none;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-burger span {
  width: 20px;
  height: 2px;
  background: var(--navy-deep);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 20px;
  border-top: 1px solid var(--border);
}
.mobile-nav a {
  padding: 12px 4px;
  font-weight: 500;
  color: var(--navy-deep);
  border-bottom: 1px solid var(--border);
}
.mobile-nav a:last-child { border-bottom: none; margin-top: 8px; }
.mobile-nav.open { display: flex; }

/* ===== Hero ===== */
.hero { padding: 88px 0 60px; overflow: hidden; }

.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 40px;
}

.eyebrow {
  display: inline-block;
  color: var(--terracotta);
  background: var(--terracotta-light);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: 48px;
  font-weight: 800;
  line-height: 1.2;
  color: var(--navy-deep);
  margin-bottom: 22px;
}
.hero h1 span { display: block; }
.hero h1 .accent { color: var(--terracotta); }

.hero-sub {
  font-size: 17.5px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 34px;
}

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

/* Hero visual */
.hero-visual {
  position: relative;
  height: 440px;
}

.visual-blob {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 65% 30%, rgba(176, 96, 58, 0.16), transparent 55%),
    radial-gradient(circle at 30% 75%, rgba(30, 41, 59, 0.1), transparent 50%);
  border-radius: var(--radius-lg);
}

.float-card {
  position: absolute;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 16px;
  border: 1px solid var(--border);
}

.card-main {
  width: 260px;
  top: 40px;
  inset-inline-start: 10%;
}
.fc-row { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fc-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.fc-icon-navy { background: #E2E8F0; color: var(--navy); }
.fc-icon-teal { background: var(--teal-light); color: var(--teal); }
.fc-icon-terracotta { background: var(--terracotta-light); color: var(--terracotta); }

.fc-text { display: flex; flex-direction: column; gap: 2px; }
.fc-text strong { font-size: 14.5px; color: var(--navy-deep); }
.fc-text span { font-size: 12.5px; color: var(--muted); }

.fc-pill {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.fc-pill-progress { background: #EFF6FF; color: #3B82F6; }
.fc-pill-done { background: var(--green-light); color: var(--green); margin-top: 4px; }

.card-side {
  width: 210px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.card-side-a { bottom: 90px; inset-inline-start: 0; }
.card-side-b { bottom: 10px; inset-inline-end: 4%; }

/* ===== Trust line ===== */
.trust-line {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.trust-line p {
  text-align: center;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
}

/* ===== Section head ===== */
.section-head {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 52px;
}
.section-head h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.section-sub { color: var(--muted); font-size: 16px; }

/* ===== Features ===== */
.features { padding: 96px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.icon-terracotta { background: var(--terracotta-light); color: var(--terracotta); }
.icon-navy { background: #E2E8F0; color: var(--navy); }
.icon-teal { background: var(--teal-light); color: var(--teal); }
.icon-purple { background: var(--purple-light); color: var(--purple); }
.icon-amber { background: var(--amber-light); color: var(--amber); }
.icon-green { background: var(--green-light); color: var(--green); }

.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.feature-card p { color: var(--muted); font-size: 14.5px; }

/* ===== How it works ===== */
.how { padding: 0 0 100px; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 28px;
  position: relative;
}

.step-num {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800;
  font-size: 16px;
  margin-bottom: 20px;
}

.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 14.5px; }

/* ===== CTA ===== */
.cta-section {
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  margin: 0 24px 96px;
  padding: 72px 24px;
}

.cta-inner { text-align: center; max-width: 560px; }

.cta-section h2 { color: #fff; font-size: 32px; font-weight: 800; margin-bottom: 14px; }
.cta-section p { color: rgba(255,255,255,0.7); font-size: 16.5px; margin-bottom: 34px; }

.contact-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
}
.contact-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,0.25);
}
.contact-actions .btn-outline:hover { border-color: rgba(255,255,255,0.5); }

/* ===== Footer ===== */
.site-footer { padding: 36px 0 48px; }
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  border-top: 1px solid var(--border);
  padding-top: 28px;
}
.footer-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 800; font-size: 16px;
}
.footer-nav { display: flex; gap: 24px; }
.footer-nav a { font-size: 14px; color: var(--muted); }
.footer-nav a:hover { color: var(--navy-deep); }
.footer-copy { font-size: 13.5px; color: var(--muted); }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { height: 340px; margin-top: 20px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 38px; }
}

@media (max-width: 720px) {
  .main-nav, .header-actions .btn { display: none; }
  .nav-burger { display: flex; }
  .hero { padding: 48px 0 40px; }
  .hero h1 { font-size: 32px; }
  .hero-sub { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .cta-section { margin: 0 16px 64px; padding: 48px 20px; }
  .cta-section h2 { font-size: 26px; }
  .footer-inner { flex-direction: column; text-align: center; }
  .card-side { display: none; }
  .card-main { width: 82%; inset-inline-start: 9%; top: 60px; }
}
