:root {
  --salt: #F2F4F3;
  --paper: #FBFCFB;
  --ink: #1E2226;
  --ink-soft: #4C545B;
  --shadow: #36597A;
  --shadow-wash: #E3EAF0;
  --sun: #E2A12C;
  --line: #D9DFE2;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--salt);
  color: var(--ink);
  font-family: "IBM Plex Sans Arabic", "IBM Plex Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.75;
}
html[lang="en"] body { font-family: "IBM Plex Sans", system-ui, sans-serif; line-height: 1.6; }
a { color: inherit; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid var(--shadow); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }

/* header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 26px 0; }
.top img { height: 30px; width: auto; }
.lang { font-size: 14px; text-decoration: none; color: var(--ink-soft); padding: 6px 10px; border-radius: 8px; }
.lang:hover { color: var(--ink); background: var(--shadow-wash); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 40px; padding: 48px 0 88px; }
.hero h1 {
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600; font-size: clamp(40px, 6.2vw, 76px); line-height: 1.2; margin: 0 0 22px; letter-spacing: 0;
}
html[lang="en"] .hero h1 { font-family: "IBM Plex Sans", sans-serif; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; }
.hero p { font-size: 19px; color: var(--ink-soft); max-width: 34em; margin: 0 0 34px; }
.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.btn {
  display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; font-size: 16px;
  padding: 14px 22px; border-radius: 12px; background: var(--ink); color: #fff; transition: background .15s;
}
.btn:hover { background: var(--shadow); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.quiet { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn.quiet:hover { background: var(--paper); box-shadow: inset 0 0 0 1.5px var(--ink-soft); }

.sun { width: 100%; max-width: 460px; justify-self: center; aspect-ratio: 1; }
.sun circle { fill: var(--sun); }
.sun circle.cool { fill: var(--shadow); }
@media (prefers-reduced-motion: no-preference) {
  .sun.animate circle { opacity: 0; animation: rise .5s ease-out forwards; animation-delay: var(--d); }
  @keyframes rise { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
  .sun.animate circle { transform-box: fill-box; transform-origin: center; }
}

/* sections */
section { padding: 84px 0; border-top: 1px solid var(--line); }
section h2 {
  font-family: "Reem Kufi", "IBM Plex Sans Arabic", sans-serif;
  font-weight: 600; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.3; margin: 0 0 40px; max-width: 18em;
}
html[lang="en"] section h2 { font-family: "IBM Plex Sans", sans-serif; letter-spacing: -0.01em; }

.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 56px; margin: 0; padding: 0; list-style: none; }
.services li { padding: 26px 0; border-bottom: 1px solid var(--line); }
.services h3 { font-size: 20px; font-weight: 600; margin: 0 0 6px; }
.services p { margin: 0; color: var(--ink-soft); max-width: 32em; }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin: 0; padding: 0; list-style: none; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before {
  content: counter(step); position: absolute; top: 0; inset-inline-start: 0;
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: var(--shadow-wash); color: var(--shadow); font-weight: 600; font-size: 17px;
}
.steps h3 { font-size: 18px; font-weight: 600; margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); font-size: 16px; }

.contact { background: var(--ink); color: #fff; border-top: 0; }
.contact h2 { color: #fff; margin-bottom: 14px; }
.contact p { color: #C4CBD1; margin: 0 0 30px; max-width: 34em; }
.contact .btn { background: var(--sun); color: var(--ink); }
.contact .btn:hover { background: #F0B54A; }
.contact .btn.quiet { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px #4A535B; }
.contact .btn.quiet:hover { box-shadow: inset 0 0 0 1.5px #C4CBD1; background: transparent; }
.contact dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 22px; margin: 34px 0 0; font-size: 15px; color: #C4CBD1; }
.contact dt { color: #8C969E; }
.contact dd { margin: 0; }
.ltr { direction: ltr; unicode-bidi: isolate; }

footer { background: var(--ink); color: #8C969E; font-size: 14px; padding: 0 0 36px; }
footer .wrap { border-top: 1px solid #333A40; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding: 16px 0 64px; gap: 8px; }
  .sun { order: -1; max-width: 240px; justify-self: start; }
  .services { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  section { padding: 64px 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .steps { grid-template-columns: 1fr; }
  .btn { width: 100%; justify-content: center; }
}
