/* ============================================================
   Center Plus — Landing Page
   Brand: purple #5B4A99 · green #7CB928 · navy #25518C
   ============================================================ */

:root {
  /* Brand */
  --purple: #5B4A99;
  --purple-dark: #463877;
  --purple-light: #695CA5;
  --purple-soft: #efecf8;
  --green: #7CB928;
  --green-dark: #6aa31f;
  --green-light: #ADCA20;
  --navy: #25518C;

  /* Neutrals */
  --ink: #1e1b2e;
  --body: #4a4860;
  --muted: #8a87a0;
  --line: #ece9f3;
  --bg: #ffffff;
  --bg-soft: #f7f6fb;
  --bg-soft-2: #f2f0fa;

  /* Effects */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(35, 30, 70, .06);
  --shadow: 0 18px 40px -18px rgba(91, 74, 153, .28);
  --shadow-lg: 0 30px 60px -25px rgba(91, 74, 153, .45);
  --ring: 0 0 0 4px rgba(91, 74, 153, .15);

  /* Type */
  --font-ar: 'Cairo', system-ui, sans-serif;
  --font-en: 'Poppins', system-ui, sans-serif;
  --font: var(--font-ar);

  --container: 1180px;
}

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

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
h1, h2, h3, h4, h5 { color: var(--ink); line-height: 1.25; font-weight: 800; }

.container { width: min(var(--container), 100% - 2.5rem); margin-inline: auto; }

.skip-link {
  position: absolute; inset-inline-start: -9999px; top: 0; z-index: 200;
  background: var(--purple); color: #fff; padding: .6rem 1rem; border-radius: 0 0 8px 8px;
}
.skip-link:focus { inset-inline-start: 1rem; }

/* ---------- Icons ---------- */
.ic {
  width: 24px; height: 24px; fill: none;
  stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  flex: none;
}
.ic--lg { width: 30px; height: 30px; }

/* ---------- Buttons ---------- */
.btn {
  --bg-btn: var(--purple);
  display: inline-flex; align-items: center; gap: .5rem; justify-content: center;
  font-family: inherit; font-weight: 700; font-size: 1rem;
  padding: .8rem 1.5rem; border-radius: 999px; border: 2px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn--sm { padding: .55rem 1.1rem; font-size: .95rem; }
.btn--lg { padding: 1rem 2rem; font-size: 1.08rem; }
.btn--primary { background: var(--purple); color: #fff; box-shadow: 0 12px 24px -10px rgba(91,74,153,.7); }
.btn--primary:hover { background: var(--purple-dark); transform: translateY(-2px); box-shadow: 0 18px 30px -12px rgba(91,74,153,.8); }
.btn--green { background: var(--green); color: #fff; box-shadow: 0 12px 24px -10px rgba(124,185,40,.7); }
.btn--green:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--purple); border-color: rgba(91,74,153,.25); }
.btn--ghost:hover { border-color: var(--purple); background: var(--purple-soft); transform: translateY(-2px); }
.btn--white { background: #fff; color: var(--purple); }
.btn--white:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s ease, border-color .25s ease, background .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 30px -18px rgba(35,30,70,.35); border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 1.2rem; min-height: 74px; }

.brand { display: flex; align-items: center; gap: .6rem; }
.brand__icon { width: 42px; height: 42px; object-fit: contain; }
.brand__name { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name-en { font-family: var(--font-en); font-weight: 800; font-size: 1.18rem; color: var(--purple); letter-spacing: -.01em; }
.brand__plus { color: var(--green); }
.brand__name-ar { font-family: var(--font-ar); font-weight: 700; font-size: .82rem; color: var(--navy); }

.nav-links { display: flex; align-items: center; gap: .35rem; margin-inline: auto; }
.nav-links a {
  padding: .5rem .85rem; border-radius: 10px; font-weight: 600; color: var(--body);
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--purple); background: var(--purple-soft); }

.nav-actions { display: flex; align-items: center; gap: .6rem; }
.lang-toggle {
  font-family: var(--font-en); font-weight: 700; font-size: .9rem;
  background: var(--purple-soft); color: var(--purple);
  border: none; border-radius: 999px; width: 44px; height: 38px; cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}
.lang-toggle:hover { background: #e4dff5; transform: translateY(-1px); }

.nav-burger { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-burger span { width: 24px; height: 2.5px; background: var(--ink); border-radius: 2px; transition: .25s ease; }
.nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 4.5rem 0 5.5rem; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.blob--purple { width: 480px; height: 480px; background: var(--purple-light); inset-inline-end: -120px; top: -140px; }
.blob--green { width: 360px; height: 360px; background: var(--green-light); inset-inline-start: -100px; bottom: -120px; opacity: .35; }
.grid-dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(91,74,153,.10) 1.2px, transparent 1.2px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 30%, transparent 75%);
}
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; }

.eyebrow {
  display: inline-block; font-weight: 700; font-size: .92rem;
  color: var(--purple); background: var(--purple-soft);
  padding: .4rem 1rem; border-radius: 999px; margin-bottom: 1.2rem;
}
.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; color: var(--ink); margin-bottom: 1.1rem; }
.hero__subtitle { font-size: 1.12rem; color: var(--body); max-width: 38ch; margin-bottom: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-bottom: 2rem; }
.hero__highlights { display: flex; flex-wrap: wrap; gap: 1rem 1.6rem; }
.hero__highlights li { display: flex; align-items: center; gap: .5rem; font-weight: 600; color: var(--ink); }
.hero__highlights .ic { width: 20px; height: 20px; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; stroke-width: 3; }

/* Dashboard mockup */
.hero__visual { position: relative; }
.mock {
  background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(0deg);
}
.mock__bar { display: flex; gap: 7px; padding: 14px 18px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.mock__bar span { width: 11px; height: 11px; border-radius: 50%; background: #d9d5e6; }
.mock__bar span:first-child { background: #ff6058; } .mock__bar span:nth-child(2){ background:#ffbd2e;} .mock__bar span:nth-child(3){ background:#28c840;}
.mock__body { display: grid; grid-template-columns: 64px 1fr; min-height: 320px; }
.mock__side { background: linear-gradient(180deg, var(--purple), var(--purple-dark)); padding: 16px 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.mock__logo { width: 30px; height: 30px; border-radius: 9px; background: var(--green); }
.mock__side i { width: 26px; height: 8px; border-radius: 4px; background: rgba(255,255,255,.4); }
.mock__side i:first-of-type { background: #fff; }
.mock__main { padding: 22px; display: flex; flex-direction: column; gap: 18px; }
.mock__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mstat { background: var(--bg-soft); border-radius: 14px; padding: 14px; text-align: center; }
.mstat b { display: block; font-size: 1.5rem; color: var(--purple); font-family: var(--font-en); }
.mstat em { font-style: normal; font-size: .8rem; color: var(--muted); }
.mstat--green b { color: var(--green); }
.mock__chart { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding: 14px; background: var(--bg-soft); border-radius: 16px; }
.mock__chart span { flex: 1; height: var(--h); background: linear-gradient(180deg, var(--purple-light), var(--purple)); border-radius: 6px 6px 0 0; }
.mock__chart span:nth-child(even) { background: linear-gradient(180deg, var(--green-light), var(--green)); }
.mock__rows { display: flex; flex-direction: column; gap: 10px; }
.mrow { height: 12px; border-radius: 6px; background: var(--bg-soft-2); }
.mrow:nth-child(1){ width: 100%; } .mrow:nth-child(2){ width: 82%; } .mrow:nth-child(3){ width: 64%; }

.mock__badge {
  position: absolute; bottom: -18px; inset-inline-start: -14px;
  background: #fff; border-radius: 14px; box-shadow: var(--shadow);
  padding: .7rem 1rem; display: flex; align-items: center; gap: .5rem; font-weight: 700; color: var(--ink); font-size: .92rem;
  animation: float 4s ease-in-out infinite;
}
.mock__badge .ic { width: 20px; height: 20px; color: #fff; background: var(--green); border-radius: 50%; padding: 3px; stroke-width: 3; }
@keyframes float { 0%,100%{ transform: translateY(0);} 50%{ transform: translateY(-9px);} }

/* ---------- Value strip ---------- */
.strip { background: var(--purple); color: #fff; }
.strip__inner { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; padding: 2.2rem 0; }
.strip__item { display: flex; align-items: center; gap: .9rem; }
.strip__item .ic { color: var(--green-light); }
.strip__item b { display: block; color: #fff; font-size: 1.05rem; }
.strip__item span { color: rgba(255,255,255,.8); font-size: .9rem; line-height: 1.4; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section--alt { background: var(--bg-soft); }
.section__head { text-align: center; max-width: 640px; margin-inline: auto; margin-bottom: 3rem; }
.section__title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 900; margin-bottom: .8rem; }
.section__lead { color: var(--body); font-size: 1.1rem; }

/* ---------- Feature cards ---------- */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.5rem; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card__ic {
  display: inline-flex; align-items: center; justify-content: center;
  width: 54px; height: 54px; border-radius: 16px; margin-bottom: 1.1rem;
  background: var(--purple-soft); color: var(--purple);
}
.card:hover .card__ic { background: var(--purple); color: #fff; }
.card:nth-child(4n+2) .card__ic { background: rgba(124,185,40,.14); color: var(--green-dark); }
.card:nth-child(4n+2):hover .card__ic { background: var(--green); color: #fff; }
.card h3 { font-size: 1.18rem; margin-bottom: .55rem; }
.card p { color: var(--body); font-size: .98rem; }

/* ---------- Why ---------- */
.why { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.why__text { margin-top: 1rem; color: var(--body); }
.why__compare { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.compare { border-radius: var(--radius); padding: 1.6rem; border: 1px solid var(--line); background: #fff; }
.compare h4 { font-size: 1.1rem; margin-bottom: 1rem; padding-bottom: .8rem; border-bottom: 1px dashed var(--line); }
.compare ul { display: flex; flex-direction: column; gap: .8rem; }
.compare li { position: relative; padding-inline-start: 1.8rem; font-size: .96rem; color: var(--body); }
.compare li::before { position: absolute; inset-inline-start: 0; top: -1px; font-weight: 800; }
.compare--bad { background: var(--bg-soft); }
.compare--bad h4 { color: var(--muted); }
.compare--bad li::before { content: "✕"; color: #d05a5a; }
.compare--good { border-color: rgba(124,185,40,.35); box-shadow: 0 18px 40px -22px rgba(124,185,40,.5); }
.compare--good h4 { color: var(--green-dark); }
.compare--good li::before { content: "✓"; color: var(--green); }

/* ---------- Audience ---------- */
.audience { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem; }
.audience__col {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 2.2rem; box-shadow: var(--shadow-sm);
  border-top: 5px solid var(--purple);
}
.audience__col--green { border-top-color: var(--green); }
.audience__head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.audience__ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 16px; background: var(--purple-soft); color: var(--purple); }
.audience__col--green .audience__ic { background: rgba(124,185,40,.14); color: var(--green-dark); }
.audience__head h3 { font-size: 1.3rem; }
.ticks { display: flex; flex-direction: column; gap: .9rem; }
.ticks li { position: relative; padding-inline-start: 2rem; color: var(--body); }
.ticks li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px;
  width: 22px; height: 22px; display: grid; place-items: center;
  background: var(--purple-soft); color: var(--purple); border-radius: 50%; font-size: .75rem; font-weight: 800;
}
.audience__col--green .ticks li::before { background: rgba(124,185,40,.16); color: var(--green-dark); }

/* ---------- Vision / Mission (dark) ---------- */
.section--dark { background: linear-gradient(135deg, var(--purple-dark), var(--purple) 55%, var(--navy)); color: #fff; position: relative; overflow: hidden; }
.section--dark::before { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: var(--green); opacity: .12; filter: blur(40px); inset-inline-end: -100px; top: -120px; }
.vm { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; position: relative; }
.vm__card { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius-lg); padding: 2.4rem; backdrop-filter: blur(6px); }
.vm__ic { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 16px; background: rgba(255,255,255,.14); color: var(--green-light); margin-bottom: 1.2rem; }
.vm__card h3 { color: #fff; font-size: 1.5rem; margin-bottom: .9rem; }
.vm__card p { color: rgba(255,255,255,.85); font-size: 1.05rem; }

/* ---------- Values ---------- */
.values { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.2rem; }
.value { text-align: center; padding: 1.8rem 1.2rem; border-radius: var(--radius); background: var(--bg-soft); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.value:hover { transform: translateY(-5px); box-shadow: var(--shadow); background: #fff; }
.value__ic { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px; border-radius: 50%; margin-bottom: 1rem; background: #fff; color: var(--purple); box-shadow: var(--shadow-sm); }
.value:nth-child(even) .value__ic { color: var(--green-dark); }
.value b { display: block; font-size: 1.1rem; color: var(--ink); margin-bottom: .4rem; }
.value span { font-size: .9rem; color: var(--body); }

/* ---------- CTA band ---------- */
.cta-band { padding: 4.5rem 0; background: linear-gradient(120deg, var(--purple), var(--navy)); color: #fff; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.cta-band__copy h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.3rem); margin-bottom: .7rem; }
.cta-band__copy p { color: rgba(255,255,255,.88); max-width: 52ch; }
.cta-band__actions { display: flex; gap: .9rem; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { background: #1a1730; color: rgba(255,255,255,.72); padding-top: 3.5rem; }
.footer__inner { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.footer__logo { width: 130px; background: #fff; border-radius: 14px; padding: 12px; margin-bottom: 1rem; }
.footer__brand p { max-width: 36ch; font-size: .95rem; }
.footer__col h5 { color: #fff; font-size: 1.02rem; margin-bottom: 1.1rem; }
.footer__col a { display: block; padding: .35rem 0; color: rgba(255,255,255,.72); transition: color .15s ease; }
.footer__col a:hover { color: var(--green-light); }
.footer__social { display: flex; gap: .6rem; margin-top: 1.2rem; }
.footer__social a { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.8); transition: background .15s ease, color .15s ease, transform .15s ease; }
.footer__social a:hover { background: var(--green); color: #fff; transform: translateY(-2px); }
.footer__social .ic { width: 20px; height: 20px; }
.footer__bar { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; font-size: .9rem; }
.footer__bar .container { text-align: center; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .cards { grid-template-columns: repeat(3, 1fr); }
  .values { grid-template-columns: repeat(3, 1fr); }
  .strip__inner { grid-template-columns: repeat(2, 1fr); gap: 1.6rem 2rem; }
}
@media (max-width: 860px) {
  .nav-links {
    position: fixed; inset-block: 74px auto; inset-inline: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: .6rem 1.25rem 1.2rem; margin: 0;
    box-shadow: 0 20px 40px -20px rgba(35,30,70,.4); border-bottom: 1px solid var(--line);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: .22s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: .85rem .5rem; border-bottom: 1px solid var(--line); }
  .nav-burger { display: flex; }
  .nav-actions .btn--sm { display: none; }

  .hero__inner { grid-template-columns: 1fr; gap: 3.5rem; text-align: center; }
  .hero__copy { order: 1; }
  .hero__visual { order: 2; max-width: 460px; margin-inline: auto; }
  .hero__subtitle { margin-inline: auto; }
  .hero__actions, .hero__highlights { justify-content: center; }

  .why { grid-template-columns: 1fr; gap: 2rem; }
  .audience { grid-template-columns: 1fr; }
  .vm { grid-template-columns: 1fr; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .section { padding: 3.8rem 0; }
  .cards { grid-template-columns: 1fr; }
  .values { grid-template-columns: 1fr 1fr; }
  .why__compare { grid-template-columns: 1fr; }
  .strip__inner { grid-template-columns: 1fr; }
  .cta-band__inner { flex-direction: column; text-align: center; }
  .cta-band__actions { justify-content: center; width: 100%; }
  .footer__inner { grid-template-columns: 1fr; gap: 2rem; }
  .brand__name-en { font-size: 1.05rem; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .mock__badge { animation: none; }
  * { transition: none !important; }
}
