/* Self-hosted fonts: IBM Plex Sans Arabic & Inter (SIL OFL 1.1) */
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plex-arabic-400.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/plex-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-arabic-500.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/plex-latin-500.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/plex-arabic-600.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/plex-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/plex-arabic-700.woff2) format("woff2");unicode-range:U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC}
@font-face{font-family:"IBM Plex Sans Arabic";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/plex-latin-700.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:400;font-display:swap;src:url(/assets/fonts/inter-400.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:600;font-display:swap;src:url(/assets/fonts/inter-600.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}
@font-face{font-family:"Inter";font-style:normal;font-weight:700;font-display:swap;src:url(/assets/fonts/inter-700.woff2) format("woff2");unicode-range:U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD}

:root {
  --bg: #FAF7F2;
  --surface: #FFFFFF;
  --ink: #13213A;
  --ink-soft: #4A5568;
  --line: #E7E1D7;
  --green: #0E8F63;
  --green-dark: #0A6E4C;
  --green-soft: #E3F4EC;
  --gold: #D9A43B;
  --chat-bg: #EFE8DD;
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(19, 33, 58, .35);
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}
html[lang="en"] body { font-family: "Inter", "IBM Plex Sans Arabic", system-ui, sans-serif; line-height: 1.65; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(250, 247, 242, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.logo-mark {
  width: 38px; height: 38px; border-radius: 11px;
  background: var(--ink); color: #fff;
  display: grid; place-items: center; font-size: 21px; font-weight: 700;
  font-family: "IBM Plex Sans Arabic", sans-serif;
}
.logo small { font-weight: 500; color: var(--ink-soft); font-size: 14px; }
.nav { display: flex; align-items: center; gap: 22px; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-soft); }
.nav a:hover { color: var(--ink); }
.nav a.btn-wa, .nav a.btn-wa:hover { color: #fff; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; color: var(--ink); }
@media (max-width: 760px) { .nav .hide-sm { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: transform .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-wa { background: var(--green); color: #fff; }
.btn-wa:hover { background: var(--green-dark); }
.btn-ghost { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { background: var(--surface); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.wa-icon { width: 20px; height: 20px; flex: none; }

/* ---------- Hero ---------- */
.hero { padding: 64px 0 72px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; gap: 40px; } .hero { padding-top: 40px; } }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--green-soft); color: var(--green-dark);
  padding: 6px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(14,143,99,.18); }
h1 {
  font-size: clamp(34px, 5.2vw, 56px); line-height: 1.25; margin: 20px 0 18px; font-weight: 700; letter-spacing: -.01em;
}
html[lang="en"] h1 { line-height: 1.12; letter-spacing: -.025em; }
h1 .accent { color: var(--green); }
.lead { font-size: 19px; color: var(--ink-soft); max-width: 560px; margin: 0 0 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 18px; font-size: 14px; color: var(--ink-soft); }

/* ---------- Phone / chat demo ---------- */
.phone {
  width: min(100%, 360px); margin-inline: auto;
  background: var(--ink); border-radius: 38px; padding: 12px;
  box-shadow: var(--shadow), 0 0 0 1px rgba(19,33,58,.1);
}
.chat { border-radius: 28px; overflow: hidden; background: var(--chat-bg); }
.chat-top { display: flex; align-items: center; gap: 10px; background: #0B5E43; color: #fff; padding: 14px 16px; }
.chat-top .avatar { width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #0B5E43; display: grid; place-items: center; font-weight: 700; }
.chat-top b { display: block; font-size: 15px; line-height: 1.2; }
.chat-top span { font-size: 12px; opacity: .8; }
.chat-body { padding: 16px 12px 20px; display: flex; flex-direction: column; gap: 8px; min-height: 420px; }
.bubble {
  max-width: 82%; padding: 9px 12px 18px; border-radius: 14px; font-size: 14.5px; line-height: 1.55;
  position: relative; box-shadow: 0 1px 1px rgba(0,0,0,.06);
  transition: opacity .35s ease, transform .35s ease;
}
.bubble time { position: absolute; bottom: 3px; inset-inline-end: 10px; font-size: 10.5px; color: #6B7280; }
.bubble.in-msg { background: #fff; align-self: flex-start; }
.bubble.out-msg { background: #D9FDD3; align-self: flex-end; }
html[dir="rtl"] .bubble.in-msg { border-top-right-radius: 4px; }
html[dir="rtl"] .bubble.out-msg { border-top-left-radius: 4px; }
html[dir="ltr"] .bubble.in-msg { border-top-left-radius: 4px; }
html[dir="ltr"] .bubble.out-msg { border-top-right-radius: 4px; }
.bubble.pending { opacity: 0; transform: translateY(6px); }
.chat-day { align-self: center; background: #fff; color: #6B7280; font-size: 11.5px; padding: 3px 10px; border-radius: 8px; }

/* ---------- Sections ---------- */
section { padding: 84px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--line); }
.kicker { color: var(--green-dark); font-weight: 700; font-size: 14px; letter-spacing: .02em; margin: 0 0 8px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; margin: 0 0 14px; font-weight: 700; }
html[lang="en"] h2 { letter-spacing: -.02em; line-height: 1.2; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--ink-soft); margin: 0; font-size: 18px; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .2s ease, box-shadow .2s ease;
}
.section-alt .card { background: var(--bg); }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.card h3 { margin: 14px 0 6px; font-size: 20px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 16px; }
.icon {
  width: 46px; height: 46px; border-radius: 13px; background: var(--green-soft); color: var(--green-dark);
  display: grid; place-items: center;
}
.icon svg { width: 24px; height: 24px; }

/* Steps */
.steps { counter-reset: step; }
.step-num {
  width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff;
  display: grid; place-items: center; font-weight: 700; font-family: "Inter", sans-serif;
}

/* Problem strip */
.problem { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .problem { grid-template-columns: 1fr; gap: 28px; } }
.problem-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.problem-list li {
  background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px;
  display: flex; gap: 12px; align-items: flex-start; font-size: 16.5px;
}
.problem-list li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 10px; border-radius: 50%; background: var(--gold); }

/* Industries */
.chips { display: flex; flex-wrap: wrap; gap: 12px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 18px; font-weight: 600; font-size: 16px;
}
.chip svg { width: 20px; height: 20px; color: var(--green-dark); }
.chips-note { margin-top: 18px; color: var(--ink-soft); font-size: 15px; }

/* Products */
.product { position: relative; }
.product .tag {
  position: absolute; top: 20px; inset-inline-end: 20px;
  background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}
.product ul { margin: 14px 0 0; padding-inline-start: 20px; color: var(--ink-soft); font-size: 15.5px; }
.product li { margin-bottom: 4px; }

/* About */
.about { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
@media (max-width: 900px) { .about { grid-template-columns: 1fr; gap: 24px; } }
.about-badge {
  background: var(--ink); color: #fff; border-radius: var(--radius); padding: 36px;
}
.about-badge .big { font-size: 64px; font-weight: 700; line-height: 1; font-family: "Inter", sans-serif; color: var(--gold); }
.about-badge p { margin: 10px 0 0; opacity: .85; }
.about-points { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; }
.about-points li { display: flex; gap: 10px; align-items: flex-start; }
.about-points svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 4px; }

/* FAQ */
.faq { max-width: 820px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 0 22px; margin-bottom: 12px;
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 600; font-size: 17px;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--green-dark); font-weight: 400; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--ink-soft); }

/* CTA */
.cta {
  background: var(--ink); color: #fff; border-radius: 28px; padding: 56px 40px; text-align: center;
  position: relative; overflow: hidden;
}
.cta::before {
  content: ""; position: absolute; inset: auto -80px -120px auto; width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,143,99,.45), transparent 70%);
}
.cta h2 { color: #fff; position: relative; }
.cta p { color: rgba(255,255,255,.8); max-width: 560px; margin: 0 auto 28px; font-size: 18px; position: relative; }
.cta .hero-cta { justify-content: center; position: relative; }
.cta .btn-ghost { color: #fff; border-color: rgba(255,255,255,.25); }
.cta .btn-ghost:hover { background: rgba(255,255,255,.08); }

/* Footer */
.site-footer { padding: 36px 0 48px; color: var(--ink-soft); font-size: 14.5px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ink); }

/* Floating WhatsApp */
.wa-float {
  position: fixed; bottom: 20px; inset-inline-end: 20px; z-index: 30;
  width: 58px; height: 58px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 24px -8px rgba(14,143,99,.7);
}
.wa-float svg { width: 30px; height: 30px; }

/* Reveal */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .bubble { transition: none; opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* Legal page */
.legal { max-width: 820px; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(30px, 4vw, 42px); }
.legal h2 { font-size: 22px; margin-top: 36px; }
.legal p, .legal li { color: var(--ink-soft); }
.legal .updated { font-size: 14px; color: var(--ink-soft); }
.legal hr { border: 0; border-top: 1px solid var(--line); margin: 56px 0; }

:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- Utilities (replace inline styles for strict CSP) ---------- */
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.intro-text { color: var(--ink-soft); font-size: 18px; margin: 0; }
.body-soft { color: var(--ink-soft); margin: 0; }
.no-pad { padding: 0; }
.demo-label { display: inline-block; font-size: 12px; font-weight: 600; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 2px 10px; margin-bottom: 10px; }
.is-hidden { display: none !important; }
