:root {
  --bg0: #05070c;
  --bg1: #070b12;
  --page-bg:
    radial-gradient(1100px 600px at 80% -10%, rgba(47, 225, 163, .14), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(56, 189, 248, .10), transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, rgba(47, 225, 163, .08), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 60%, #04060b 100%);
  --stars-opacity: .9;
  --noise-opacity: var(--noise-opacity);
  --card: #0b1220cc;
  /* glass */
  --card2: #0b1220f2;
  --stroke: rgba(255, 255, 255, .08);
  --stroke2: rgba(255, 255, 255, .12);
  --text: #e9eef8;
  --muted: rgba(233, 238, 248, .68);
  --muted2: rgba(233, 238, 248, .50);
  --accent: #2FE1A3;
  /* mint */
  --accent2: #38BDF8;
  /* sky */
  --shadow: 0 18px 50px rgba(0, 0, 0, .55);
  --shadow2: 0 30px 80px rgba(0, 0, 0, .60);
  --r16: 16px;
  --r20: 20px;
  --r24: 24px;
  --r28: 28px;
  --max: 1200px;
  --ease: cubic-bezier(.2, .9, .2, 1);
}

/* light theme */
html[data-theme="light"] {
  --bg0: #f6f8fb;
  --bg1: #eef2f7;
  --card: rgba(255, 255, 255, .78);
  --card2: rgba(255, 255, 255, .92);
  --stroke: rgba(10, 20, 30, .10);
  --stroke2: rgba(10, 20, 30, .14);
  --text: #0b1220;
  --muted: rgba(11, 18, 32, .72);
  --muted2: rgba(11, 18, 32, .55);
  --accent: #0ea5a4;
  --accent2: #2563eb;
  --shadow: 0 18px 50px rgba(10, 20, 30, .12);
  --shadow2: 0 30px 80px rgba(10, 20, 30, .12);
  --page-bg:
    radial-gradient(1100px 600px at 75% -10%, rgba(14, 165, 164, .12), transparent 60%),
    radial-gradient(900px 600px at 10% 0%, rgba(37, 99, 235, .10), transparent 55%),
    radial-gradient(1200px 800px at 50% 120%, rgba(14, 165, 164, .10), transparent 55%),
    linear-gradient(180deg, var(--bg0), var(--bg1) 55%, #ffffff 100%);
  --stars-opacity: .28;
  --noise-opacity: .22;
}

html[data-theme="light"] .topbar {
  background: linear-gradient(180deg, rgba(246, 248, 251, .82), rgba(246, 248, 251, .35));
  border-bottom: 1px solid rgba(10, 20, 30, .08);
}

html[data-theme="light"] .pill,
html[data-theme="light"] .btn,
html[data-theme="light"] .stepCard,
html[data-theme="light"] .priceCard,
html[data-theme="light"] .aiPanel,
html[data-theme="light"] .prodCard,
html[data-theme="light"] .formCard,
html[data-theme="light"] .drawerPanel {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(10, 20, 30, .10);
}

html[data-theme="light"] .btn.btnPrimary {
  color: #052014;
  box-shadow: 0 18px 60px rgba(14, 165, 164, .18);
}

html[data-theme="light"] .btn.btnGhost {
  background: rgba(255, 255, 255, .45);
}

html[data-theme="light"] .navlinks {
  color: rgba(11, 18, 32, .70);
}

html[data-theme="light"] .navlinks a:hover {
  color: rgba(11, 18, 32, .95);
}

html[data-theme="light"] footer {
  border-top: 1px solid rgba(10, 20, 30, .08);
  color: rgba(11, 18, 32, .66);
}

html[data-theme="light"] .footerRow a {
  color: rgba(11, 18, 32, .70);
}

html[data-theme="light"] .footerRow a:hover {
  color: rgba(11, 18, 32, .92);
}

* {
  box-sizing: border-box
}

html,
body {
  height: 100%
}

body {
  margin: 0;
  font-family: "Tajawal", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--page-bg);
  overflow-x: hidden;
  transition: background .35s var(--ease), color .25s var(--ease);
}

/* subtle stars */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 20% 10%, rgba(255, 255, 255, .07) 0 1px, transparent 2px),
    radial-gradient(circle at 80% 30%, rgba(255, 255, 255, .06) 0 1px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(255, 255, 255, .06) 0 1px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(255, 255, 255, .05) 0 1px, transparent 2px),
    radial-gradient(circle at 10% 55%, rgba(255, 255, 255, .05) 0 1px, transparent 2px);
  opacity: var(--stars-opacity);
  mix-blend-mode: screen;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  opacity: .35;
}

a {
  color: inherit;
  text-decoration: none
}

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(5, 7, 12, .72), rgba(5, 7, 12, .25));
  border-bottom: 1px solid rgba(255, 255, 255, .06);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  gap: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brandMark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 2px solid rgba(47, 225, 163, .55);
  box-shadow: 0 0 0 6px rgba(47, 225, 163, .08);
}

.brandText {
  line-height: 1.05;
  text-align: left;
  direction: ltr;
}

.brandText b {
  font-size: 20px;
  letter-spacing: .2px;
}

.brandText small {
  display: block;
  font-size: 11px;
  letter-spacing: 2px;
  opacity: .7;
  margin-top: 3px;
}

.navlinks {
  display: flex;
  gap: 18px;
  align-items: center;
  color: rgba(233, 238, 248, .78);
  font-weight: 600;
}

.navlinks a {
  opacity: .85
}

.navlinks a:hover {
  opacity: 1;
  color: var(--text)
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--stroke);
  background: rgba(11, 18, 32, .55);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
  font-size: 12px;
  color: rgba(233, 238, 248, .80);
}

.pill strong {
  color: var(--accent);
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(11, 18, 32, .55);
  color: var(--text);
  font-weight: 800;
  transition: transform .18s var(--ease), background .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
  box-shadow: 0 10px 26px rgba(0, 0, 0, .28);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(255, 255, 255, .18);
}

.btn:active {
  transform: translateY(0) scale(.99);
}

.btnPrimary {
  border-color: rgba(47, 225, 163, .22);
  background: linear-gradient(180deg, rgba(47, 225, 163, 1), rgba(47, 225, 163, .86));
  color: #08121a;
  box-shadow: 0 18px 60px rgba(47, 225, 163, .18);
}

.btnGhost {
  background: rgba(11, 18, 32, .25);
}

.langBtn {
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: .6px;
  direction: ltr;
  border-radius: 10px;
  opacity: .85;
}

.menuBtn {
  display: none;
}

/* hero */
header.hero {
  padding: 70px 0 42px;
  position: relative;
}

.heroGrid {
  display: grid;
  grid-template-columns: 1fr;
  place-items: center;
  text-align: center;
  gap: 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -.6px;
}

.hero h1 .accent {
  background: linear-gradient(90deg, #a7f3d0, var(--accent), #22c55e);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p {
  margin: 0;
  max-width: 760px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--muted);
}

.ctaRow {
  display: flex;
  gap: 14px;
  margin-top: 10px;
  flex-wrap: wrap;
  justify-content: center;
}

.section {
  padding: 58px 0;
  position: relative;
}

.sectionTitle {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.sectionTitle h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -.3px;
}

.sectionTitle h2 .accent {
  color: var(--accent);
}

.sectionTitle p {
  margin: 0;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.9;
  font-size: 14px;
}

/* roadmap cards */
.roadmap {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.stepCard {
  background: linear-gradient(180deg, rgba(11, 18, 32, .70), rgba(11, 18, 32, .45));
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 22px;
  padding: 22px 18px;
  min-height: 190px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .25);
}

.stepCard::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(260px 140px at 85% 20%, rgba(47, 225, 163, .16), transparent 60%);
  opacity: .85;
}

.stepCard .num {
  position: absolute;
  top: 18px;
  left: 18px;
  font-size: 36px;
  font-weight: 900;
  color: rgba(47, 225, 163, .18);
  direction: ltr;
  letter-spacing: 1px;
}

.stepCard h3 {
  margin: 0;
  font-size: 18px;
  position: relative;
  z-index: 1;
}

.stepCard p {
  margin: 8px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

/* programs */
.pricing {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.priceCard {
  background: linear-gradient(180deg, rgba(11, 18, 32, .72), rgba(11, 18, 32, .44));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 26px;
  padding: 26px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.priceCard .tag {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(11, 18, 32, .55);
  color: rgba(233, 238, 248, .8);
}

.priceCard.featured {
  border-color: rgba(47, 225, 163, .35);
  box-shadow: 0 26px 90px rgba(47, 225, 163, .10), var(--shadow2);
}

.icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  display: grid;
  place-items: center;
  font-size: 20px;
}

.priceHead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.priceCard h3 {
  margin: 0;
  font-size: 20px;
  direction: ltr;
  text-align: left;
}

.priceCard .duration {
  color: var(--accent);
  font-weight: 800;
  font-size: 13px;
  margin-top: 4px;
  direction: ltr;
  text-align: left;
}

.priceCard p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
}

.list {
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
  color: rgba(233, 238, 248, .78);
  font-size: 13px;
  line-height: 1.7;
}

.list li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(47, 225, 163, .75);
  margin-top: 7px;
  flex: 0 0 auto;
  box-shadow: 0 0 0 6px rgba(47, 225, 163, .08);
}

.priceCard .btn {
  width: 100%;
  margin-top: 18px;
  border-radius: 14px;
}

/* AI section */
.aiWrap {
  display: grid;
  place-items: center;
  margin-top: 22px;
}

.aiPanel {
  width: min(720px, 100%);
  background: linear-gradient(180deg, rgba(11, 18, 32, .72), rgba(11, 18, 32, .44));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  padding: 24px;
  box-shadow: var(--shadow2);
  position: relative;
  overflow: hidden;
}

.aiPanel::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(520px 240px at 50% 100%, rgba(47, 225, 163, .14), transparent 60%);
  opacity: .85;
  pointer-events: none;
}

.aiPanel textarea {
  width: 100%;
  min-height: 120px;
  resize: none;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(0, 0, 0, .18);
  color: rgba(233, 238, 248, .86);
  padding: 16px 16px;
  outline: none;
  font-size: 14px;
  line-height: 1.8;
  position: relative;
  z-index: 1;
}

.aiPanel textarea::placeholder {
  color: rgba(233, 238, 248, .35);
}

.aiPanel .btnPrimary {
  width: 100%;
  margin-top: 12px;
  border-radius: 16px;
  position: relative;
  z-index: 1;
}

/* Products */
.products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.prodCard {
  background: linear-gradient(180deg, rgba(11, 18, 32, .72), rgba(11, 18, 32, .44));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 28px;
  padding: 24px;
  min-height: 250px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.prodCard::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: radial-gradient(360px 160px at 20% 10%, rgba(56, 189, 248, .10), transparent 60%);
  opacity: .75;
}

.prodCard .mini {
  font-size: 11px;
  letter-spacing: .9px;
  color: var(--accent);
  font-weight: 800;
  position: relative;
  z-index: 1;
  direction: ltr;
  text-align: left;
}

.prodCard h3 {
  margin: 8px 0 0;
  font-size: 22px;
  position: relative;
  z-index: 1;
  direction: ltr;
  text-align: left;
}

.prodCard p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.9;
  font-size: 14px;
  position: relative;
  z-index: 1;
}

.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 14px;
  position: relative;
  z-index: 1;
  justify-content: flex-start;
  direction: ltr;
}

.chip {
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(255, 255, 255, .04);
  font-size: 11px;
  color: rgba(233, 238, 248, .76);
}

/* Contact */
.contactGrid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
}

.formCard {
  background: linear-gradient(180deg, rgba(11, 18, 32, .72), rgba(11, 18, 32, .44));
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 30px;
  padding: 22px;
  box-shadow: var(--shadow2);
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.field label {
  font-size: 12px;
  color: rgba(233, 238, 248, .70);
  font-weight: 700;
}

.field input,
.field textarea {
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, .10);
  background: rgba(0, 0, 0, .18);
  color: rgba(233, 238, 248, .88);
  padding: 12px 14px;
  outline: none;
  font-size: 14px;
}

.field textarea {
  min-height: 100px;
  resize: none;
  line-height: 1.8;
}

.helper {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.contactTitle {
  font-size: 44px;
  margin: 0 0 10px;
  line-height: 1.05;
}

footer {
  padding: 26px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, .06);
  color: rgba(233, 238, 248, .62);
  font-size: 13px;
}

.footerRow {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.footerRow a {
  color: rgba(233, 238, 248, .72);
}

.footerRow a:hover {
  color: rgba(233, 238, 248, .92);
}

/* language-specific footer blocks */
.langOnly {
  display: none;
}

html[lang="ar"] .langOnly[data-lang="ar"],
html[lang="en"] .langOnly[data-lang="en"] {
  display: block;
}

.footerLangGrid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.footerCard {
  padding: 14px 16px;
  border: 1px solid var(--stroke);
  border-radius: 18px;
  background: var(--card);
}



/* ltr tweaks */
body.isEN .brandText {
  text-align: left;
  direction: ltr;
}

body.isEN .sectionTitle {
  align-items: flex-start;
}

body.isEN .stepCard .num {
  left: auto;
  right: 18px;
}

body.isEN .stepCard {
  text-align: left;
}

body.isEN .contactTitle {
  text-align: left;
}

/* reveal (progressive enhancement) */
.reveal {
  opacity: 1;
  transform: none;
}

html.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}

html.js .reveal.show {
  opacity: 1;
  transform: translateY(0);
}

/* responsive */
@media (max-width: 1100px) {
  .roadmap {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing {
    grid-template-columns: 1fr;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .contactGrid {
    grid-template-columns: 1fr;
  }

  .sectionTitle {
    flex-direction: column;
    align-items: flex-start;
  }

  .brandText {
    display: none;
  }
}

@media (max-width: 840px) {
  .navlinks {
    display: none;
  }

  .menuBtn {
    display: inline-flex;
  }

  .hero {
    padding-top: 52px;
  }
}

/* mobile drawer */
.drawer {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(10px);
  display: none;
  z-index: 90;
}

.drawer.show {
  display: block;
}

.drawerPanel {
  position: absolute;
  top: 12px;
  left: 12px;
  right: 12px;
  background: rgba(11, 18, 32, .92);
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 20px;
  padding: 18px;
  box-shadow: var(--shadow2);
}

.drawerPanel a {
  display: block;
  padding: 12px 10px;
  border-radius: 14px;
  color: rgba(233, 238, 248, .85);
  font-weight: 800;
}

.drawerPanel a:hover {
  background: rgba(255, 255, 255, .05);
}

.drawerTop {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.prodCard {
  cursor: pointer;
}