:root {
  --p: #421ce6;
  --p2: #9d78f5;
  --ink: #18151f;
  --muted: #716c78;
  --line: #e9e5ee;
  --paper: #f6f4fa;
  --green: #2eaf78;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  direction: rtl;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
a:hover { color: var(--p); }

[hidden] { display: none !important; }

.wrap { width: min(1160px, calc(100% - 44px)); margin: auto; }
.wrap-narrow { width: min(760px, calc(100% - 44px)); }
.wrap-md { width: min(900px, calc(100% - 44px)); }

/* NAV */
.nav {
  height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 3;
}
.logo { display: flex; align-items: center; direction: ltr; }
.logo-img { height: 19px; width: auto; display: block; }
footer .logo-img { height: 16px; }
.navlinks { display: flex; gap: 28px; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.navActions { display: flex; align-items: center; gap: 12px; }
.navcta {
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 18px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

/* HERO */
.hero {
  position: relative;
  overflow: hidden;
  background: radial-gradient(circle at 50% 0%, #f3effc 0%, #fbfaff 45%, #ffffff 75%);
}
.rings { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.ring {
  position: absolute;
  left: 50%;
  top: 64px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 1px solid #eae3fb;
}
.ring1 { width: 980px; height: 980px; }
.ring2 { width: 760px; height: 760px; border-color: #e4dafa; }
.ring3 { width: 540px; height: 540px; border-color: #ded1f8; }
.heroCenter {
  width: min(680px, calc(100% - 44px));
  margin: auto;
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 56px 0 10px;
}
.fileBadges { display: flex; justify-content: center; gap: 10px; margin-bottom: 10px; }
.fileBadge {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 8px 20px -12px #2a174f30;
  display: grid;
  place-items: center;
}
.fileBadgesCaption { font-size: 12.5px; color: var(--muted); margin: 0 0 22px; }
.hero h1 {
  color: var(--ink);
  font-size: clamp(32px, 4.4vw, 48px);
  line-height: 1.25;
  letter-spacing: -1px;
  margin: 0 0 16px;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--p); }
.hero .lead {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.85;
  max-width: 460px;
  margin: 0 auto 28px;
}
.heroActions { display: flex; justify-content: center; align-items: center; gap: 18px; margin-bottom: 36px; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 28px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 20px 40px -16px #421ce670;
  transition: transform 0.2s ease;
}
.button:hover { transform: translateY(-2px); }
.watchLink { font-size: 14px; font-weight: 700; color: var(--ink); }

/* DEMO BAR (hero) */
.demoBar {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  text-align: right;
  box-shadow: 0 35px 70px -35px #2a174f40;
}
.demoBarRow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.demoChip {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 11px;
  color: #59535e;
  flex-shrink: 0;
}
.demoRequest { flex: 1; min-width: 180px; font-size: 13px; color: var(--ink); }
.demoRunBtn {
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 9px;
  padding: 8px 14px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  flex-shrink: 0;
}
.progress {
  height: 4px;
  background: var(--paper);
  border-radius: 5px;
  margin: 16px 0 0;
  overflow: hidden;
}
.progressLight { background: #fff; }
.progressBar {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--p), var(--p2));
  animation: barProgress 4.5s ease-in-out infinite;
}
.demoResult { margin-top: 14px; animation: resultsReveal 4.5s ease-in-out infinite; }
.demoResultLabel { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--green); font-weight: 700; }
.demoResultFiles { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.demoResultFiles span {
  background: var(--paper);
  border-radius: 8px;
  padding: 7px 11px;
  font-size: 10.5px;
  color: #59535e;
}
.microNote { font-size: 12px; color: var(--muted); margin: 18px 0 0; }
.heroSpacer { height: 70px; }

.done {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #e3f7ed;
  color: var(--green);
  display: grid;
  place-items: center;
  font-size: 9px;
  flex-shrink: 0;
}

@keyframes barProgress { 0%, 8% { width: 0%; } 55%, 100% { width: 100%; } }
@keyframes resultsReveal { 0%, 52% { opacity: 0; transform: translateY(8px); } 62%, 100% { opacity: 1; transform: none; } }

/* SHARED SECTION */
.section { padding: 110px 0; }
.center { text-align: center; }
.kicker {
  display: inline-flex;
  color: var(--p);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 15px;
}
.title { font-size: clamp(28px, 3.4vw, 42px); line-height: 1.3; letter-spacing: -0.5px; margin: 0 0 16px; }
.title em { font-style: normal; color: var(--p); }
.teamsSection .title, .whyForma .title { margin-bottom: 55px; }

/* PROBLEM */
.problemSection { background: #fff; }
.problemLead { color: var(--muted); font-size: 14.5px; line-height: 1.9; max-width: 540px; margin: 0 auto 50px; }
.problemGrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; text-align: right; }
.problemCard { background: var(--paper); border-radius: 16px; padding: 22px; }
.problemIcon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 16px;
  margin-bottom: 14px;
}
.problemCard h3 { font-size: 14.5px; margin: 0 0 7px; }
.problemCard p { font-size: 11.5px; color: var(--muted); line-height: 1.7; margin: 0; }
.problemClose { font-weight: 700; font-size: 16px; margin: 44px 0 0; }

/* SPLIT SECTIONS (solution / client journey / scale) */
.splitGrid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 70px; align-items: center; }
.splitCopy { text-align: right; }
.splitCopy .title { margin-bottom: 16px; }
.splitLead { color: var(--muted); font-size: 14.5px; line-height: 1.9; max-width: 400px; margin: 0 0 22px; }
.splitBold { font-weight: 700; font-size: 15px; margin: 0; }

.solutionSection { background: var(--paper); }
.clientSection { background: #fff; }
.scaleSection { background: var(--paper); }

.demoCard {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 30px 65px -35px #2a174f35;
}
.demoBubble {
  background: #28232e;
  color: #fff;
  border-radius: 14px 14px 4px 14px;
  padding: 13px 16px;
  font-size: 13px;
  display: inline-block;
  margin-bottom: 18px;
}
.demoSingleResult { animation: resultsReveal 3.8s ease-in-out infinite; }
.demoSingleFile {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.demoSingleFile .fileIcon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eee8fb;
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 13px;
  flex-shrink: 0;
}
.demoSingleFileName { flex: 1; font-size: 12.5px; }
.demoSingleFile .done { width: 17px; height: 17px; }
.demoSingleNote { text-align: center; font-size: 11.5px; color: var(--muted); margin: 14px 0 0; }

.clientCard { background: var(--paper); border-radius: 20px; padding: 24px; }
.demoBubbleWide { display: block; padding: 14px 16px; font-size: 12.5px; line-height: 1.8; }
.clientCard .progress { background: #fff; }
.clientTags { display: flex; gap: 8px; flex-wrap: wrap; margin: 18px 0; animation: resultsReveal 4.2s ease-in-out infinite; }
.clientTags span {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 13px;
  font-size: 11px;
}
.clientArrow { text-align: center; color: #c3bccc; font-size: 16px; margin-bottom: 14px; animation: resultsReveal 4.2s ease-in-out infinite; }
.clientFiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: resultsReveal 4.2s ease-in-out infinite; }
.clientFiles div {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 12px;
  font-size: 12px;
  text-align: center;
}

.scaleChips { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.scaleChips span { background: var(--paper); border-radius: 8px; padding: 7px 11px; font-size: 10.5px; color: #59535e; }
.scaleSection .demoBubble { display: block; margin-bottom: 16px; }
.scaleSection .progress { margin: 0 0 16px; }
.scaleProgressLabel { font-size: 11.5px; color: var(--muted); margin: 0 0 8px; animation: resultsReveal 4.8s ease-in-out infinite; }
.scaleFiles { display: grid; gap: 7px; animation: resultsReveal 4.8s ease-in-out infinite; }
.scaleFiles div {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 9px 13px;
  font-size: 11.5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scaleFiles span.tick { color: var(--green); font-size: 11px; }

/* SUMMARY BANNER */
.summaryBanner { padding: 70px 0; background: #1a1621; text-align: center; }
.summaryBanner h2 { color: #fff; font-size: clamp(24px, 2.8vw, 32px); line-height: 1.4; letter-spacing: -0.5px; margin: 0; }
.summaryBanner em { font-style: normal; color: var(--p2); }

/* TEAMS */
.teamsSection { background: #fff; }
.departments { display: grid; grid-template-columns: repeat(3, 1fr); gap: 13px; margin-top: 55px; }
.dept {
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 21px;
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--paper);
  text-align: right;
}
.dept .icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: #fff;
  color: var(--p);
  display: grid;
  place-items: center;
  font-size: 19px;
  flex-shrink: 0;
}
.dept h3 { font-size: 15px; margin: 0 0 6px; }
.dept p { font-size: 11px; color: var(--muted); margin: 0; }
.teamsNote { text-align: center; color: #a39cab; font-size: 13px; margin-top: 26px; }

/* TESTIMONIALS */
.testimonialsSection { padding: 0 0 120px; background: #fff; }
.testimonialGrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.testimonialCard { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 24px; text-align: right; }
.quoteMark { color: var(--p); font-size: 22px; line-height: 1; }
.testimonialCard p { font-size: 13.5px; line-height: 1.9; color: #4d4753; margin: 8px 0 18px; }
.testimonialAuthor { display: flex; align-items: center; gap: 10px; }
.avatarInitial {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--p);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  flex-shrink: 0;
}
.testimonialAuthor b { font-size: 12.5px; display: block; }
.testimonialAuthor small { font-size: 11px; color: var(--muted); }

/* FAQ */
.faq { padding: 0 0 120px; background: #fff; }
.faqList { display: flex; flex-direction: column; gap: 10px; margin-top: 44px; }
.faqItem { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faqQ {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  padding: 18px 20px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
  text-align: right;
}
.faqIcon { color: var(--p); font-size: 20px; font-weight: 400; transition: transform 0.2s ease; flex-shrink: 0; }
.faqItem.open .faqIcon { transform: rotate(45deg); }
.faqA { margin: 0; padding: 0 20px 18px; font-size: 14px; line-height: 1.9; color: var(--muted); display: none; }
.faqItem.open .faqA { display: block; }

/* FINAL CTA */
.joinSection { padding: 0 0 100px; background: #fff; }
.joinCard {
  width: min(1000px, calc(100% - 44px));
  margin: auto;
  background: linear-gradient(180deg, #f6f2ff 0%, #fdfcff 100%);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 70px 40px;
  text-align: center;
}
.joinCard .kicker { text-transform: uppercase; letter-spacing: 1.5px; }
.joinTitle { color: var(--ink); font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; letter-spacing: -0.5px; margin: 0 0 32px; }
.ctaSuccess {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 14px;
  padding: 18px 28px;
  font-size: 15px;
  font-weight: 700;
}
.joinCard button.button {
  border-radius: 14px;
  padding: 18px 34px;
  font-size: 15px;
  box-shadow: 0 20px 50px -15px #421ce670;
}
.joinCard > small { display: block; margin-top: 18px; color: var(--muted); font-size: 12px; }

/* FOOTER */
footer { padding: 32px 0; background: #fff; border-top: 1px solid var(--line); }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
footer small { color: var(--muted); font-size: 12px; }

/* WAITLIST MODAL */
.modalOverlay {
  position: fixed;
  inset: 0;
  background: #0f0d1acc;
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 100;
}
.modalCard {
  background: #fff;
  color: var(--ink);
  border-radius: 20px;
  padding: 34px 32px;
  max-width: 460px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 90px #00000060;
  text-align: right;
}
.modalHead {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}
.modalHeadTitle { flex: 1; }
.modalHead h3 { margin: 0; font-size: 21px; letter-spacing: -0.3px; color: var(--ink); }
.modalBack,
.modalClose {
  background: var(--paper);
  border: none;
  border-radius: 8px;
  height: 30px;
  font-size: 14px;
  font-family: inherit;
  color: var(--muted);
  cursor: pointer;
  flex-shrink: 0;
}
.modalBack { padding: 0 12px; }
.modalClose { width: 30px; padding: 0; }
.modalSub { font-size: 13px; color: var(--muted); margin: 0 0 22px; line-height: 1.7; }
.stepDots { display: flex; gap: 6px; margin-bottom: 24px; }
.stepDot { height: 4px; flex: 1; border-radius: 3px; background: var(--line); }
.stepDot.done { background: var(--p); }

.optionList { display: flex; flex-direction: column; gap: 10px; }
.optionBtn {
  text-align: right;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 14px;
  cursor: pointer;
}
.optionBtn.selected { border-color: var(--p); background: #f3effd; }

.checkList { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.checkBtn {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: right;
  font-family: inherit;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 12px;
  padding: 13px 16px;
  font-size: 13.5px;
  cursor: pointer;
}
.checkBtn.selected { border-color: var(--p); background: #f3effd; }
.checkBox {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1.5px solid #c9c3d0;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  flex-shrink: 0;
}
.checkBtn.selected .checkBox { border-color: var(--p); background: var(--p); }
.checkBtn.selected .checkBox::after { content: "✓"; }

.modalNext,
.modalSubmit {
  width: 100%;
  background: var(--p);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px;
  font-family: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
}
.modalNext:disabled { opacity: 0.5; cursor: default; }
.modalSubmit:disabled { opacity: 0.6; cursor: default; }
.modalHint { text-align: center; color: var(--muted); font-size: 11.5px; margin: 10px 0 0; }

.field { margin-bottom: 16px; }
.field label { display: block; font-size: 12.5px; font-weight: 700; color: var(--ink); margin-bottom: 7px; }
.field input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--paper);
  outline: none;
  text-align: left;
}
.field input[type="email"]:focus { border-color: var(--p); background: #fff; }

/* RESPONSIVE */
@media (max-width: 900px) {
  .splitGrid { grid-template-columns: 1fr; gap: 45px; }
  .splitCopy { text-align: center; }
  .splitCopy .splitLead { margin-left: auto; margin-right: auto; }
  .problemGrid { grid-template-columns: 1fr 1fr; }
  .departments { grid-template-columns: 1fr 1fr; }
  .testimonialGrid { grid-template-columns: 1fr; }
  .clientFiles { grid-template-columns: 1fr 1fr; }
  .ring1, .ring2, .ring3 { display: none; }
}

@media (max-width: 640px) {
  .navlinks { display: none; }
  .section { padding: 70px 0; }
  .problemGrid { grid-template-columns: 1fr; }
  .departments { grid-template-columns: 1fr; }
  .heroActions { flex-direction: column; gap: 14px; }
  .joinCard { padding: 44px 24px; }
  .modalCard { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; }
}
