:root {
  --gold: #e4a600;
  --gold-bright: #ffc400;
  --gold-dark: #9b7000;
  --gold-soft: #fff5d5;
  --green: #006233;
  --green-dark: #004b27;
  --green-soft: #eaf5ef;
  --red: #d21034;
  --red-dark: #a60d28;
  --red-soft: #fdecef;
  --ink: #183027;
  --muted: #667169;
  --paper: #fffdf7;
  --line: rgba(24, 48, 39, 0.12);
  --white: #ffffff;
  --shadow: 0 24px 80px rgba(17, 58, 39, 0.14);
  --radius-xl: 36px;
  --radius-lg: 28px;
  --radius-md: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 2%, rgba(228, 166, 0, 0.14), transparent 22rem),
    radial-gradient(circle at 91% 27%, rgba(0, 98, 51, 0.12), transparent 29rem),
    radial-gradient(circle at 10% 69%, rgba(210, 16, 52, 0.06), transparent 24rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

html[lang="ar"] body {
  font-family: "Scheherazade New", "Noto Naskh Arabic", Tahoma, Arial, serif;
  font-size: 18px;
}

html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] .eyebrow { letter-spacing: 0; }
html[lang="ar"] h1 { line-height: 1.12; }
html[lang="ar"] .hero-lead,
html[lang="ar"] .section-heading p,
html[lang="ar"] .app-copy > p,
html[lang="ar"] .step p,
html[lang="ar"] .mission-copy p,
html[lang="ar"] .who-copy p { line-height: 1.95; }

/* Product names stay in their Latin brand type even on the Arabic page. */
.brand-name,
.app-copy h3,
.store-btn strong { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }

.page-shell { overflow: hidden; }
.page-shell::before {
  content: "";
  display: block;
  height: 6px;
  background: linear-gradient(90deg,
    var(--red) 0 16%,
    var(--green) 16% 42%,
    var(--gold-bright) 42% 58%,
    var(--green) 58% 84%,
    var(--red) 84% 100%);
}

.site-header {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.brand-suite { display: inline-flex; align-items: center; gap: 12px; flex: 0 0 auto; }
.brand-app {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 850;
  font-size: 1rem;
  transition: transform .2s ease, color .2s ease;
}
.brand-app:hover { transform: translateY(-1px); color: var(--green); }
.brand-divider { width: 1px; height: 30px; background: var(--line); }
.brand-mark {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid rgba(228,166,0,.18);
  box-shadow: 0 8px 24px rgba(17, 58, 39, 0.08);
}
.brand-mark img { width: 31px; height: 31px; object-fit: contain; }
.brand-mark.pro-mark { border-color: rgba(210,16,52,.16); }
.brand-mark.pro-mark img { width: 34px; height: 34px; }
.brand-mark.small { width: 38px; height: 38px; }
.brand-mark.small img { width: 26px; height: 26px; }
.brand-name { letter-spacing: -0.03em; }

.header-actions { display: flex; align-items: center; gap: 20px; font-size: 0.88rem; font-weight: 750; }
.header-actions > a { color: var(--muted); transition: color .2s ease; white-space: nowrap; }
.header-actions > a:hover { color: var(--green); }
.lang-switch {
  padding: 4px;
  display: inline-flex;
  direction: ltr;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.82);
  backdrop-filter: blur(12px);
}
.lang-switch button {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 800;
  min-height: 34px;
  padding: 0 10px;
  border-radius: 999px;
  cursor: pointer;
}
.lang-switch button.active { color: var(--white); background: var(--green); box-shadow: 0 3px 12px rgba(0,98,51,.18); }

.section-pad { width: min(calc(100% - 40px), var(--max)); margin: 0 auto; }
.hero {
  min-height: 720px;
  padding-top: 92px;
  padding-bottom: 96px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  color: var(--green);
  font-size: .82rem;
  font-weight: 850;
  letter-spacing: .06em;
}
body[dir="ltr"] .eyebrow { text-transform: uppercase; }
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--red), var(--gold)); }
.eyebrow.light { color: #ffe8a5; }
.eyebrow.light::before { background: linear-gradient(90deg, #ffb5c1, #ffe8a5); }

h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(3.5rem, 7.4vw, 6.9rem);
  line-height: .98;
  letter-spacing: -0.055em;
  max-width: 9.5ch;
}
.hero-lead {
  max-width: 620px;
  color: var(--muted);
  font-size: clamp(1.08rem, 1.8vw, 1.35rem);
  line-height: 1.75;
}
.hero-ctas, .final-buttons { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.btn {
  min-height: 54px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-radius: 16px;
  font-weight: 850;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--green); color: var(--white); box-shadow: 0 14px 32px rgba(0,98,51,.20); }
.btn-primary:hover { background: var(--green-dark); box-shadow: 0 18px 36px rgba(0,98,51,.24); }
.btn-secondary { background: var(--white); border: 1px solid rgba(210,16,52,.24); color: var(--ink); }
.btn-secondary:hover { border-color: var(--red); }

.trust-row { margin-top: 48px; display: flex; gap: 36px; flex-wrap: wrap; }
.trust-row div { display: flex; flex-direction: column; gap: 4px; }
.trust-row strong { font-size: .95rem; color: var(--green); }
.trust-row div:nth-child(2) strong { color: var(--gold-dark); }
.trust-row div:nth-child(3) strong { color: var(--red-dark); }
.trust-row span { color: var(--muted); font-size: .78rem; }

.hero-visual { min-height: 570px; position: relative; }
.hero-visual::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  inset: 15% auto auto 14%;
  border: 2px solid rgba(0,98,51,.12);
  border-radius: 50%;
}
.hero-visual::after {
  content: "";
  position: absolute;
  width: 115px;
  height: 8px;
  inset-inline-end: 12%;
  top: 5%;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--red), var(--gold), var(--green));
  opacity: .72;
}
.glow {
  position: absolute;
  inset: 12% 8% 8%;
  background: radial-gradient(circle, rgba(228,166,0,.28), rgba(0,98,51,.12) 48%, rgba(210,16,52,.06) 64%, transparent 74%);
  filter: blur(12px);
}
.phone {
  position: absolute;
  width: min(270px, 48%);
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #eee;
  border: 1px solid rgba(24,48,39,.09);
}
.phone img { width: 100%; height: auto; }
.phone-back { top: 24px; inset-inline-start: 6%; transform: rotate(-6deg); }
.phone-front { bottom: 8px; inset-inline-end: 7%; transform: rotate(5deg); }
.hero-badge {
  position: absolute;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 9px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(24,48,39,.10);
  border-radius: 999px;
  padding: 11px 15px;
  box-shadow: 0 12px 32px rgba(17,58,39,.12);
  font-weight: 800;
  font-size: .85rem;
}
.hero-badge-top { top: 13%; inset-inline-end: 2%; border-color: rgba(210,16,52,.18); }
.hero-badge-bottom { bottom: 11%; inset-inline-start: 0; border-color: rgba(0,98,51,.18); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 5px rgba(0,98,51,.12); }
.spark { color: var(--red); }

.apps-section { padding-top: 112px; padding-bottom: 112px; }
.section-heading { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.section-heading.compact { margin-bottom: 38px; }
.section-heading h2, .mission-card h2, .who-card h2, .final-cta h2 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 4.3vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.045em;
}
html[lang="ar"] .section-heading h2,
html[lang="ar"] .mission-card h2,
html[lang="ar"] .who-card h2,
html[lang="ar"] .final-cta h2 { line-height: 1.35; }
.section-heading p { color: var(--muted); font-size: 1.05rem; line-height: 1.8; }

.app-grid { display: grid; gap: 26px; }
.app-card {
  position: relative;
  min-height: 560px;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  gap: 36px;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(17,58,39,.08);
}
.app-card::before { content: ""; position: absolute; z-index: 4; inset: 0 0 auto; height: 4px; }
.employer-card::before { background: linear-gradient(90deg, var(--green), var(--gold)); }
.pro-card::before { background: linear-gradient(90deg, var(--red), var(--gold)); }
.app-card.pro-card { grid-template-columns: .92fr 1.08fr; }
.app-card.pro-card .app-copy { order: 2; }
.app-card.pro-card .app-preview { order: 1; }
.app-copy { padding: 56px 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.app-kicker { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .86rem; font-weight: 800; margin-bottom: 16px; }
.app-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(228,166,0,.18); }
.app-icon img { width: 28px; height: 28px; object-fit: contain; }
.app-icon.pro { background: var(--red-soft); border-color: rgba(210,16,52,.14); }
.app-icon.pro img { width: 31px; height: 31px; }
.app-copy h3 { margin-bottom: 14px; font-size: clamp(2.4rem, 4.6vw, 4rem); letter-spacing: -0.04em; }
.app-copy > p { color: var(--muted); font-size: 1.02rem; line-height: 1.75; max-width: 600px; }
.feature-list { list-style: none; margin: 20px 0 30px; padding: 0; display: grid; gap: 11px; }
.feature-list li { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 650; }
.feature-list li::before { content: "✓"; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green); font-size: .75rem; font-weight: 900; flex: 0 0 auto; font-family: Inter, sans-serif; }
.pro-card .feature-list li::before { background: var(--red-soft); color: var(--red); }

.download-row { display: flex; flex-wrap: wrap; gap: 10px; }
.store-btn {
  min-width: 176px;
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 15px;
  background: var(--ink);
  color: var(--white);
  border-radius: 14px;
  transition: transform .2s ease, opacity .2s ease, box-shadow .2s ease, background .2s ease;
}
.store-btn:hover { transform: translateY(-2px); background: var(--green-dark); box-shadow: 0 12px 26px rgba(0,75,39,.20); }
.pro-card .store-btn:hover { background: #6b1829; }
.store-btn svg { width: 24px; height: 24px; fill: currentColor; flex: 0 0 auto; }
.store-btn span { display: flex; flex-direction: column; line-height: 1.05; }
.store-btn small { opacity: .74; font-size: .66rem; margin-bottom: 4px; }
.store-btn strong { font-size: .92rem; }
.store-btn.pending { opacity: .48; cursor: not-allowed; }
.store-btn.pending:hover { transform: none; box-shadow: none; background: var(--ink); }

.app-preview { min-height: 560px; display: grid; place-items: end center; padding: 42px 32px 0; background: linear-gradient(145deg, #eff9f3, #fff2c7); overflow: hidden; }
.app-preview.pro-preview { background: linear-gradient(145deg, #fff0f2, #fff4cf); }
.app-preview img { width: min(300px, 78%); border-radius: 32px 32px 0 0; filter: drop-shadow(0 20px 35px rgba(17,58,39,.16)); transform: translateY(8px); }
.ios-note { margin: 22px auto 0; max-width: 680px; text-align: center; color: var(--muted); font-size: .86rem; }

.how-section { padding-top: 104px; padding-bottom: 118px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step { position: relative; padding: 34px 30px; border: 1px solid var(--line); border-radius: 24px; background: rgba(255,255,255,.75); backdrop-filter: blur(10px); overflow: hidden; }
.step::after { content: ""; position: absolute; inset: auto 0 0; height: 3px; background: var(--green); opacity: .8; }
.step:nth-child(2)::after { background: var(--gold); }
.step:nth-child(3)::after { background: var(--red); }
.step-number { display: inline-block; margin-bottom: 44px; color: var(--green); font-size: .78rem; font-weight: 900; letter-spacing: .08em; font-family: Inter, sans-serif; }
.step:nth-child(2) .step-number { color: var(--gold-dark); }
.step:nth-child(3) .step-number { color: var(--red-dark); }
.step h3 { margin-bottom: 10px; font-size: 1.25rem; }
.step p { margin-bottom: 0; color: var(--muted); line-height: 1.75; font-size: .93rem; }

.mission-section { padding-bottom: 92px; }
.mission-card {
  position: relative;
  padding: 68px;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 72px;
  align-items: center;
  color: var(--white);
  background: linear-gradient(135deg, #006233, #004523 70%, #183b2d);
  border-radius: var(--radius-xl);
  box-shadow: 0 26px 70px rgba(0,75,39,.24);
  overflow: hidden;
}
.mission-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: linear-gradient(90deg, var(--red) 0 26%, var(--gold-bright) 26% 74%, var(--red) 74%); }
.mission-card::after { content: ""; position: absolute; width: 260px; height: 260px; border: 2px solid rgba(255,196,0,.16); border-radius: 50%; inset-inline-end: -110px; bottom: -130px; }
.mission-card h2 { margin-bottom: 0; max-width: 12ch; }
.mission-copy { position: relative; z-index: 1; }
.mission-copy p { color: rgba(255,255,255,.78); line-height: 1.85; font-size: 1rem; }
.text-link { display: inline-flex; align-items: center; gap: 10px; color: #ffe39a; font-weight: 850; margin-top: 10px; }
.text-link:hover { color: var(--white); }

.who-section { padding-bottom: 100px; }
.who-card {
  position: relative;
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  gap: 42px;
  align-items: center;
  padding: 60px;
  background: rgba(255,255,255,.86);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: 0 18px 58px rgba(17,58,39,.08);
  overflow: hidden;
}
.who-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--green) 0 38%, var(--gold) 38% 62%, var(--red) 62%);
}
.who-copy h2 { max-width: 18ch; margin-bottom: 18px; }
.who-copy p { max-width: 720px; margin-bottom: 0; color: var(--muted); font-size: 1.02rem; line-height: 1.8; }
.contact-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  padding: 30px;
  background: linear-gradient(145deg, var(--green-soft), #fffaf0);
  border: 1px solid rgba(0,98,51,.13);
  border-radius: 24px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: var(--white);
  background: var(--green);
  box-shadow: 0 10px 24px rgba(0,98,51,.16);
}
.contact-icon svg { width: 24px; height: 24px; fill: currentColor; }
.contact-kicker { display: block; margin-bottom: 3px; color: var(--red-dark); font-size: .82rem; font-weight: 900; }
.contact-card p { margin-bottom: 13px; color: var(--muted); font-size: .9rem; line-height: 1.5; }
.contact-email { display: inline-flex; align-items: center; gap: 9px; color: var(--green); font-family: Inter, sans-serif; font-weight: 850; border-bottom: 1px solid rgba(0,98,51,.22); padding-bottom: 3px; }
.contact-email:hover { color: var(--red-dark); border-color: rgba(210,16,52,.32); }

.final-cta { padding-bottom: 110px; }
.final-cta-inner {
  position: relative;
  text-align: center;
  max-width: 860px;
  margin: 0 auto;
  padding: 54px 44px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(234,245,239,.9), rgba(255,245,213,.75), rgba(253,236,239,.45));
}
.final-cta-inner::before { content: ""; position: absolute; width: 70px; height: 5px; top: 0; left: 50%; transform: translateX(-50%); border-radius: 0 0 99px 99px; background: linear-gradient(90deg, var(--green), var(--gold), var(--red)); }
.final-cta h2 { margin-bottom: 14px; }
.final-cta p { color: var(--muted); font-size: 1.05rem; }
.final-buttons { justify-content: center; }

.site-footer {
  width: min(calc(100% - 40px), var(--max));
  min-height: 120px;
  margin: 0 auto;
  padding: 28px 0;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  color: var(--muted);
  font-size: .82rem;
}
.footer-brand { display: flex; align-items: center; gap: 11px; }
.footer-brand > div { display: flex; flex-direction: column; gap: 2px; }
.footer-brand strong { color: var(--green); font-size: .95rem; font-family: Inter, sans-serif; }
.site-footer p { margin: 0; }

.toast {
  position: fixed;
  z-index: 50;
  inset-inline-start: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  min-width: min(420px, calc(100vw - 32px));
  padding: 13px 18px;
  text-align: center;
  color: var(--white);
  background: rgba(0,75,39,.95);
  border-radius: 14px;
  box-shadow: 0 14px 40px rgba(0,75,39,.24);
  font-size: .88rem;
}
html[dir="rtl"] .toast { transform: translateX(50%); }

@media (max-width: 1080px) {
  .header-actions { gap: 15px; }
  .header-actions > a { font-size: .82rem; }
  .brand-app { font-size: .92rem; }
}

@media (max-width: 980px) {
  .header-actions > a { display: none; }
  .hero { grid-template-columns: 1fr; gap: 30px; padding-top: 68px; }
  .hero-copy { text-align: center; }
  h1 { margin-inline: auto; max-width: 12ch; }
  .hero-lead { margin-inline: auto; }
  .hero-ctas, .trust-row { justify-content: center; }
  .hero-visual { width: min(600px, 100%); margin: 0 auto; min-height: 520px; }
  .app-card, .app-card.pro-card { grid-template-columns: 1fr 1fr; }
  .app-copy { padding: 42px 34px; }
  .mission-card { padding: 50px; grid-template-columns: 1fr; gap: 28px; }
  .who-card { grid-template-columns: 1fr; padding: 48px; }
  .who-copy h2 { max-width: 22ch; }
}

@media (max-width: 760px) {
  .site-header, .section-pad, .site-footer { width: min(calc(100% - 28px), var(--max)); }
  .site-header { min-height: 80px; }
  .brand-suite { gap: 8px; }
  .brand-app { gap: 6px; }
  .brand-name { font-size: .82rem; }
  .brand-mark { width: 37px; height: 37px; border-radius: 12px; }
  .brand-mark img { width: 25px; height: 25px; }
  .brand-mark.pro-mark img { width: 28px; height: 28px; }
  .brand-divider { height: 25px; }
  .lang-switch button { padding: 0 8px; min-height: 32px; }
  .hero { min-height: auto; padding-top: 54px; padding-bottom: 72px; }
  h1 { font-size: clamp(3.15rem, 16vw, 5rem); }
  html[lang="ar"] h1 { font-size: clamp(3.1rem, 15vw, 4.8rem); }
  .hero-lead { font-size: 1.03rem; }
  .trust-row { gap: 20px 30px; }
  .hero-visual { min-height: 430px; }
  .hero-visual::before { width: 280px; height: 280px; }
  .phone { width: min(215px, 53%); border-radius: 26px; }
  .hero-badge { font-size: .74rem; padding: 9px 12px; }
  .apps-section, .how-section { padding-top: 78px; padding-bottom: 82px; }
  .app-card, .app-card.pro-card { display: flex; flex-direction: column; min-height: auto; }
  .app-card.pro-card .app-copy { order: 1; }
  .app-card.pro-card .app-preview { order: 2; }
  .app-copy { padding: 38px 26px 32px; }
  .download-row { flex-direction: column; }
  .store-btn { width: 100%; justify-content: flex-start; }
  .app-preview { min-height: 430px; }
  .app-preview img { width: min(270px, 78%); }
  .steps { grid-template-columns: 1fr; }
  .step-number { margin-bottom: 24px; }
  .mission-card { padding: 38px 26px; border-radius: 28px; }
  .who-card { padding: 38px 26px; border-radius: 28px; }
  .contact-card { padding: 24px; }
  .final-cta-inner { padding: 44px 26px; }
  .site-footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 520px) {
  .brand-name { display: none; }
  .brand-divider { display: block; }
}

@media (max-width: 430px) {
  .hero-ctas, .final-buttons { flex-direction: column; }
  .btn { width: 100%; }
  .hero-visual { min-height: 365px; }
  .phone { width: 188px; }
  .phone-back { inset-inline-start: -4%; }
  .phone-front { inset-inline-end: -4%; }
  .hero-badge-top { inset-inline-end: -3%; }
  .hero-badge-bottom { inset-inline-start: -3%; }
  .contact-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
