:root{
  --bg:#110D28;
  --bg2:#0b0820;
  --surface:rgba(255,255,255,.03);
  --surface2:rgba(255,255,255,.05);

  --text:#F4F6FF;
  --muted:#B8C0E6;
  --muted2:#8E98C8;

  --brand:#7A5CFF;
  --line:rgba(255,255,255,.09);
  --line2:rgba(255,255,255,.14);

  --shadow:0 18px 60px rgba(0,0,0,.55);
  --radius:18px;

  --pad:clamp(18px,2vw,22px);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color:var(--text);
  background:
    radial-gradient(900px 500px at 12% 12%, rgba(122,92,255,.10), transparent 60%),
    radial-gradient(900px 500px at 90% 18%, rgba(106,228,255,.08), transparent 60%),
    linear-gradient(180deg,var(--bg),var(--bg2));
  line-height:1.55;
  overflow-x:hidden;
}

a{color:inherit;text-decoration:none}
.container{width:min(1160px,92vw);margin-inline:auto}
img{max-width:100%;height:auto;display:block}
input,
textarea,
select,
button{
  font:inherit;
}
.brand,
.nav,
.navCtas,
.heroCopy,
.heroCard,
.proofCard,
.card,
.priceCard,
.contactGrid > *,
.caseHead,
.sectionHead > div,
.stepBody{
  min-width:0;
}
html[dir="rtl"] body{
  font-family: "Tajawal", system-ui, sans-serif;
}
/* Topbar */
.topbar{
  border-bottom:1px solid var(--line);
  background:rgba(11,16,32,.30);
  backdrop-filter:blur(12px);
}
.topbarRow{
  display:flex;justify-content:space-between;align-items:center;gap:14px;
  padding:10px 0;
  color:var(--muted);
  font-size:13px;
  flex-wrap:wrap;
}
.topbarLeft, .topbarRight{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
.sep{opacity:.5}
.topLink{color:var(--text);opacity:.9}
.topLink:hover{opacity:1;text-decoration:underline}

.signal{
  width:8px;height:8px;border-radius:50%;
  background:var(--brand);
  box-shadow:0 0 0 6px rgba(122,92,255,.14);
}

/* Header */
.header{
  position:sticky;top:0;z-index:50;
  border-bottom:1px solid var(--line);
  background:linear-gradient(to bottom, rgba(14,10,32,.75), rgba(14,10,32,.30));
  backdrop-filter:blur(14px);
}
.navRow{
  display:flex;align-items:center;justify-content:space-between;gap:14px;
  padding:14px 0;
}
.brand{display:flex;align-items:center;gap:10px;font-weight:900}
.brandText small{
  display:block;
  color:var(--muted);
  font-weight:700;
  font-size:12.5px;
  margin-top:2px;
  letter-spacing:.2px;
}
.mark{
  width:36px;height:36px;border-radius:12px;
  background:linear-gradient(135deg, rgba(122,92,255,.95), rgba(106,228,255,.60));
  box-shadow:0 10px 30px rgba(122,92,255,.18);
}
.logo{
  width:55px;
  height:55px;
  object-fit:contain;
}

.nav{display:flex;gap:6px;align-items:center}
.nav a{
  padding:10px 12px;
  border-radius:12px;
  color:var(--muted);
  font-weight:800;
  font-size:14px;
}
.nav a:hover{color:var(--text);background:rgba(255,255,255,.04);}

.navCtas{display:flex;gap:10px;align-items:center}
.navCtas .btn{white-space:nowrap}

/* Buttons */
.btn{
  display:inline-flex;align-items:center;justify-content:center;gap:10px;
  padding:12px 14px;border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.04);
  color:var(--text);
  font-weight:900;
  font-size:14px;
  cursor:pointer;
  transition:transform .15s ease, background .15s ease, border-color .15s ease;
}
.btn:hover{transform:translateY(-1px);background:rgba(255,255,255,.06);border-color:var(--line2)}
.btn:active{transform:translateY(0px)}
.btn.primary{
  border-color:rgba(122,92,255,.35);
  background:linear-gradient(135deg, rgba(122,92,255,.20), rgba(106,228,255,.10));
}
.btn.ghost{background:transparent}
.btn.full{width:100%}
.iconOnly{padding:10px 12px;border-radius:12px;display:none}

/* Mobile nav */
.mobileNav{
  display:none;
  padding:0 0 14px 0;
}
.mobileNav.open{display:grid}
.mobileNav a{
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:900;
}
.mobileNav a:hover{background:rgba(255,255,255,.05);color:var(--text)}

/* Hero */
.hero{padding:52px 0 28px}
.heroGrid{
  display:grid;
  grid-template-columns:1.15fr .85fr;
  gap:16px;
  align-items:stretch;
}
.eyebrow{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.pill{
  display:inline-flex;align-items:center;
  padding:8px 12px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:800;
  font-size:13px;
}

h1{
  margin:0 0 12px;
  font-size:clamp(32px,4.2vw,54px);
  line-height:1.06;
  letter-spacing:-.9px;
}
.lead{
  margin:0;
  color:var(--muted);
  font-size:clamp(16px,1.55vw,18.5px);
  max-width:62ch;
}
.heroActions{display:flex;gap:12px;flex-wrap:wrap;margin-top:18px}
.heroActions .btn{min-width:min(100%,220px)}

.trustLine{
  margin-top:18px;
  display:flex;gap:10px;flex-wrap:wrap;
}
.trustItem{
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:900;
  font-size:12.5px;
}
.region{
  margin-top:12px;
  color:var(--muted2);
  font-weight:700;
  font-size:13px;
}

.heroCard{
  border:1px solid var(--line);
  background:linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
  border-radius:var(--radius);
  box-shadow:var(--shadow);
  padding:var(--pad);
}
.heroCardHead{
  display:flex;align-items:flex-start;justify-content:space-between;gap:12px;
}
.heroCard h2{
  margin:0;
  font-size:18px;
}
.heroCard p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:13.5px;
}
.badge{
  text-align: center;
  padding:7px 10px;
  border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.03);
  color:var(--muted);
  font-weight:900;
  font-size:12.5px;
}
.miniGrid{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.mini{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:14px;
  padding:12px;
}
.mini b{display:block;font-size:14px}
.mini small{display:block;margin-top:4px;color:var(--muted);font-weight:650}

.cardCtas{
  display:grid;
  gap:10px;
  margin-top:14px;
}
.note{
  margin-top:10px;
  color:var(--muted2);
  font-size:12.8px;
  font-weight:650;
}

/* Proof */
.proof{padding:10px 0 56px}
.proofGrid{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}
.proofCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  padding:var(--pad);
}
.proofCard b{display:block;margin-bottom:6px}
.proofCard p{margin:0;color:var(--muted);font-size:14px}

/* Sections */
.section{padding:64px 0}
.section.alt{
  background:linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,0));
  border-top:1px solid rgba(255,255,255,.06);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.sectionHead{
  display:flex;align-items:flex-end;justify-content:space-between;gap:14px;
  flex-wrap:wrap;
  margin-bottom:16px;
}
.sectionHead h2{
  margin:0;
  font-size:clamp(22px,2.4vw,32px);
  letter-spacing:-.5px;
}
.sectionHead p{margin:6px 0 0;color:var(--muted);max-width:62ch}

.cards3{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
}

.card{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  padding:var(--pad);
  transition:transform .18s ease, border-color .18s ease, background .18s ease;
}
.card:hover{
  transform:translateY(-2px);
  border-color:var(--line2);
  background:rgba(255,255,255,.03);
}
.card h3{margin:0 0 8px;font-size:16px}
.card p{margin:0;color:var(--muted);font-size:14.2px}

.bullets{
  margin:12px 0 0;
  padding-left:18px;
  color:var(--muted);
  display:grid;
  gap:8px;
  font-size:14px;
}
.cardRow{
  display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;
}

.splitCards{
  display:grid;
  grid-template-columns:1.1fr .9fr;
  gap:14px;
  margin-top:14px;
}
.twoCol{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  margin-top:10px;
}
.kv{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:14px;
  padding:12px;
}
.kv b{display:block}
.kv span{display:block;margin-top:4px;color:var(--muted);font-weight:650;font-size:13px}

/* Timeline */
.timeline{display:grid;gap:12px;margin-top:10px}
.step{
  display:grid;
  grid-template-columns:72px 1fr;
  gap:12px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  padding:var(--pad);
}
.stepNum{
  width:56px;height:56px;border-radius:16px;
  display:flex;align-items:center;justify-content:center;
  border:1px solid rgba(122,92,255,.30);
  background:rgba(122,92,255,.10);
  font-weight:900;
}
.stepBody h3{margin:0 0 6px;font-size:16px}
.stepBody p{margin:0;color:var(--muted);font-size:14px}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.chip2{
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:900;
  font-size:12.5px;
}

.ctaBar{
  margin-top:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  padding:16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  flex-wrap:wrap;
}
.ctaBar b{color:var(--text)}
.ctaBar .sub{color:var(--muted);font-size:13.5px;margin-top:4px}

/* Case studies */
.caseHead{
  display:flex;align-items:flex-start;justify-content:space-between;gap:10px;
  flex-wrap:wrap;
}
.tag{
  text-align: center;
  padding:7px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:900;
  font-size:12.5px;
}
.metaRow{
  margin-top:12px;
  display:flex;gap:8px;flex-wrap:wrap;
}
.metaRow span{
  padding:6px 10px;border-radius:999px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.015);
  color:var(--muted2);
  font-weight:850;
  font-size:12.2px;
}

/* Pricing */
.pricing{
  display:grid;
  grid-template-columns:repeat(3, minmax(0,1fr));
  gap:14px;
  margin-top:10px;
}
.priceCard{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  padding:var(--pad);
  box-shadow:var(--shadow);
}
.priceTop{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}
.priceTop h3{margin:0}
.priceNote{color:var(--muted2);font-weight:800;font-size:12.8px}
.priceLine{
  margin-top:10px;
  font-weight:900;
  color:var(--text);
  opacity:.92;
}
.priceCard.featured{
  border-color:rgba(122,92,255,.35);
  background:linear-gradient(180deg, rgba(122,92,255,.10), rgba(255,255,255,.02));
}
.miniNote{
  margin-top:14px;
  color:var(--muted2);
  font-weight:650;
  font-size:13px;
}

/* FAQ */
.faq{display:grid;gap:10px}
details{
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  border-radius:var(--radius);
  padding:12px 14px;
}
summary{
  cursor:pointer;list-style:none;
  display:flex;align-items:center;justify-content:space-between;gap:12px;
  font-weight:900;
}
summary::-webkit-details-marker{display:none}
details p{margin:10px 0 0;color:var(--muted);font-size:14px}
.plus{
  width:28px;height:28px;border-radius:10px;
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--muted);
  font-weight:900;
}

/* Contact */
.contactGrid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:14px;
  align-items:start;
}
label{font-size:13px;color:var(--muted);font-weight:900}
input,textarea,select{
  width:100%;
  padding:12px 12px;
  border-radius:14px;
  border:1px solid var(--line);
  background:rgba(255,255,255,.02);
  color:var(--text);
  outline:none;
}
textarea{min-height:128px;resize:vertical}
input:focus,textarea:focus,select:focus{border-color:rgba(122,92,255,.35)}
.row2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.directBox{
  margin-top:10px;
  display:grid;gap:10px;
}
/* --- Better dropdown styling (where supported) --- */
select{
  background-color: rgba(255,255,255,.02);
  color: var(--text);
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
select option, select optgroup{
  background-color: #0f0b24;
  color: #f2f4ff;
}

/* Keep numbers/emails readable in RTL */
.ltr{ direction:ltr; unicode-bidi:plaintext; }

/* --- RTL support --- */
html[dir="rtl"] body{ direction:rtl; }
/* html[dir="rtl"] .navRow{ flex-direction:row-reverse; } */
/* ===== RTL Header Fix ===== */
html[dir="rtl"] .navRow{
  flex-direction:row;              /* keep normal */
}

html[dir="rtl"] .brand{ order:3; }  /* brand right side */
html[dir="rtl"] .nav{ order:2; }    /* nav middle */
html[dir="rtl"] .navCtas{ order:1; }/* buttons left */

.brandText{ text-align:start; }     /* auto: left in LTR, right in RTL */
html[dir="rtl"] .topbarRow{ flex-direction:row-reverse; }
html[dir="rtl"] .heroGrid{ direction:rtl; }
html[dir="rtl"] .sectionHead{ flex-direction:row-reverse; }
html[dir="rtl"] .caseHead{ flex-direction:row-reverse; }
html[dir="rtl"] .footerRow{ flex-direction:row-reverse; }
html[dir="rtl"] .footLinks{ justify-content:flex-start; }
html[dir="rtl"] .trustLine{ justify-content:flex-start; }
html[dir="rtl"] .ctaBar{ flex-direction:row-reverse; }
html[dir="rtl"] summary{ flex-direction:row-reverse; }

/* Timeline numbers box stays same but alignment feels better */
/* html[dir="rtl"] .step{ grid-template-columns:1fr 72px; } */
/* ===== RTL Timeline Fix ===== */
html[dir="rtl"] .timeline{ direction:rtl; }


html[dir="rtl"] .stepNum{
  justify-self:end;
}

html[dir="rtl"] .stepBody{
  text-align:right;
}
html[dir="rtl"] .stepNum{ justify-self:end; }

/* Inputs in RTL look nicer */
html[dir="rtl"] input, 
html[dir="rtl"] textarea, 
html[dir="rtl"] select{
  text-align:right;
}
html[dir="rtl"] input.ltr,
html[dir="rtl"] a.ltr{
  text-align:left;
}
/* Focus */
select:focus{
  border-color: rgba(122,92,255,.45);
}
.directLine{
  display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;
  border:1px solid var(--line);
  background:rgba(255,255,255,.015);
  border-radius:14px;
  padding:12px;
  color:var(--muted);
}
.directLine b{color:var(--text)}
.btnCol{display:grid;gap:10px;margin-top:12px}
.callout{
  margin-top:12px;
  border:1px dashed rgba(255,255,255,.16);
  background:rgba(255,255,255,.015);
  border-radius:14px;
  padding:12px;
  color:var(--muted);
  font-size:13.5px;
}

/* Footer */
.footer{
  padding:34px 0 60px;
  border-top:1px solid rgba(255,255,255,.08);
  color:var(--muted);
}
.footerRow{display:flex;justify-content:space-between;gap:14px;flex-wrap:wrap}
.footBrand{margin-bottom:10px}
.footNote{color:var(--muted2);font-weight:650;font-size:13px}
.footLinks{display:flex;gap:14px;flex-wrap:wrap}
.footLinks a{color:var(--muted);font-weight:800}
.footLinks a:hover{color:var(--text);text-decoration:underline}

/* Floating */
.float{
  position:fixed;right:16px;bottom:16px;z-index:80;
  display:grid;gap:10px;
}
.fab{
  padding:12px 14px;
  border-radius:16px;
  border:1px solid var(--line2);
  background:rgba(18,26,51,.75);
  color:var(--text);
  font-weight:950;
  box-shadow:var(--shadow);
  text-align:center;
}
.fab.primary{
  border-color:rgba(122,92,255,.40);
  background:linear-gradient(135deg, rgba(122,92,255,.20), rgba(106,228,255,.10));
}
.fab:hover{transform:translateY(-1px)}

/* Toast */
.toast{
  position:fixed;left:50%;bottom:22px;transform:translateX(-50%);
  padding:12px 14px;border-radius:14px;
  border:1px solid var(--line2);
  background:rgba(18,26,51,.88);
  box-shadow:var(--shadow);
  color:var(--text);
  opacity:0;pointer-events:none;
  transition:opacity .22s ease, transform .22s ease;
  z-index:120;
  max-width:min(92vw,560px);
  text-align:center;
  font-weight:900;
}
.toast.show{
  opacity:1;
  pointer-events:auto;
  transform:translateX(-50%) translateY(-6px);
}

/* Reveal */
.reveal{
  opacity:0;
  transform:translateY(10px);
  transition:opacity .55s ease, transform .55s ease;
}
.reveal.in{opacity:1;transform:translateY(0px)}

/* Responsive */
@media (max-width:980px){
  .topbarRow{
    justify-content:center;
    text-align:center;
  }
  .header{
    position:sticky;
    top:0;
  }
  .navRow{
    grid-template-columns:1fr auto;
    display:grid;
    align-items:center;
  }
  .brand{
    min-width:0;
  }
  .brandText{
    max-width:100%;
  }
  .brandText small{
    line-height:1.35;
  }
  .heroGrid{grid-template-columns:1fr}
  .cards3{grid-template-columns:1fr}
  .splitCards{grid-template-columns:1fr}
  .proofGrid{grid-template-columns:1fr}
  .pricing{grid-template-columns:1fr}
  .contactGrid{grid-template-columns:1fr}
  .nav{display:none}
  .navCtas{
    justify-content:flex-end;
    flex-wrap:wrap;
  }
  .navCtas .btn.primary{
    display:none;
  }
  .iconOnly{display:inline-flex}
  .mobileNav{margin-top:10px}
  .section{
    padding:56px 0;
  }
  .proof{
    padding:8px 0 42px;
  }
  .float{
    right:14px;
    bottom:14px;
  }
}
@media (max-width:720px){
  .container{
    width:min(1160px,calc(100vw - 28px));
  }
  .hero{
    padding:40px 0 22px;
  }
  .heroCardHead,
  .priceTop,
  .sectionHead,
  .footerRow{
    align-items:flex-start;
  }
  .step{
    grid-template-columns:1fr;
  }
  .stepNum{
    width:48px;
    height:48px;
  }
  .tag,
  .badge{
    max-width:100%;
  }
  .float{
    left:14px;
    right:14px;
    bottom:12px;
  }
  .fab{
    width:100%;
  }
}
@media (max-width:560px){
  .topbar{
    display:none;
  }
  .navRow{
    grid-template-columns:1fr;
    justify-items:start;
    gap:12px;
  }
  .navCtas{
    width:100%;
    justify-content:space-between;
  }
  .navCtas .btn{
    flex:1 1 auto;
  }
  .navCtas .btn.ghost:not(.iconOnly){
    min-width:max-content;
  }
  .brand{
    align-items:flex-start;
  }
  .logo{
    width:48px;
    height:48px;
  }
  h1{
    line-height:1.1;
  }
  .row2{grid-template-columns:1fr}
  .heroActions{flex-direction:column}
  .btn{width:100%}
  .heroActions .btn{
    min-width:0;
  }
  .trustLine,
  .footLinks{
    gap:8px;
  }
  .section{
    padding:48px 0;
  }
  .float{
    left:12px;
    right:12px;
    bottom:12px;
  }
  .toast{
    bottom:88px;
  }
}
@media (max-width:400px){
  .container{
    width:min(1160px,calc(100vw - 20px));
  }
  .brandText{
    font-size:15px;
  }
  .brandText small{
    font-size:11px;
  }
  .navCtas{
    gap:8px;
  }
  .btn,
  input,
  textarea,
  select{
    padding-inline:12px;
  }
}
