:root {
  /* sampled from the logo */
  --bg: #252525;
  --bg-2: #2d2d2d;
  --ink: #f4f1ea;
  --muted: #a8a49b;
  --rule: rgba(255, 255, 255, .08);
  --gold: #ffc60a;
  --gold-deep: #c97e02;
  --gold-grad: linear-gradient(100deg, var(--gold-deep), var(--gold) 50%, var(--gold-deep));
  --ice: #8fd8ff;
  /* Poppins has no Arabic glyphs, so Arabic letters fall through to Kufi and Latin letters stay in Poppins */
  --font: "Poppins", "Noto Kufi Arabic", system-ui, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
.latin { font-family: var(--font); direction: ltr; unicode-bidi: isolate; }
.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ambient light */
.glow {
  position: fixed; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(90px); opacity: .5;
}
.glow-a {
  width: 520px; height: 520px; top: -160px; left: 50%; translate: -50% 0;
  background: radial-gradient(circle, rgba(255,198,10,.28), transparent 65%);
  animation: breathe 7s ease-in-out infinite;
}
.glow-b {
  width: 420px; height: 420px; bottom: -200px; inset-inline-start: -120px;
  background: radial-gradient(circle, rgba(143,216,255,.14), transparent 65%);
}
@keyframes breathe { 50% { opacity: .3; } }

.wrap {
  position: relative; z-index: 1;
  min-height: 100vh;
  max-width: 1080px;
  margin: 0 auto;
  padding: 24px 24px 20px;
  display: flex; flex-direction: column;
}

/* header */
.top { display: flex; justify-content: flex-end; }
.lang {
  font: 500 13px var(--font);
  min-width: 44px; height: 40px; padding: 0 14px;
  background: transparent; color: var(--ink);
  border: 1px solid var(--rule); border-radius: 999px; cursor: pointer;
  transition: border-color .2s, color .2s;
}
.lang:hover, .lang:focus-visible { border-color: var(--gold); color: var(--gold); outline: none; }

/* hero */
.hero {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: 32px 0 40px;
}
.logo {
  width: min(220px, 50vw); height: auto;
  margin-bottom: 18px;
  filter: drop-shadow(0 10px 40px rgba(255,198,10,.18));
}
.status {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 500; color: var(--muted);
  border: 1px solid var(--rule); border-radius: 999px;
  padding: 6px 16px;
  margin-bottom: 18px;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 0 rgba(255,198,10,.6);
  animation: ping 2s ease-out infinite;
}
@keyframes ping { to { box-shadow: 0 0 0 10px rgba(255,198,10,0); } }

h1 {
  font-size: clamp(64px, 14vw, 150px);
  font-weight: 800;
  line-height: 1.1;
  background: var(--gold-grad);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  animation: shimmer 6s ease-in-out infinite;
  padding: 0 .1em;
}
@keyframes shimmer { 50% { background-position: 100% 0; } }

/* electric current line, echoing the zigzag in the logo */
.pulse {
  width: min(720px, 100%); height: 56px;
  margin: 6px 0 22px;
  overflow: visible;
}
.pulse path { fill: none; stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.pulse-base { stroke: rgba(255,255,255,.12); }
.pulse-run {
  stroke-width: 3;
  stroke-dasharray: 260 1400;
  stroke-dashoffset: 1660;
  animation: current 3.2s linear infinite;
  filter: drop-shadow(0 0 6px rgba(255,198,10,.7));
}
@keyframes current { to { stroke-dashoffset: 0; } }
[dir="rtl"] .pulse-run { animation-direction: reverse; }

.lead {
  color: var(--muted); font-size: 17px;
  max-width: 36em; margin-bottom: 30px;
}

.cta {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--gold-grad); background-size: 200% 100%;
  color: #1c1400; font-weight: 700; font-size: 15px;
  padding: 14px 30px; border-radius: 999px;
  text-decoration: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-position .4s;
}
.cta svg { width: 18px; height: 18px; }
.cta:hover, .cta:focus-visible {
  transform: translateY(-2px);
  background-position: 100% 0;
  box-shadow: 0 12px 32px rgba(255,198,10,.25);
  outline: none;
}

/* services */
.services {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
  margin-bottom: 28px;
}
.card {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  border: 1px solid var(--rule);
  border-radius: 18px;
  padding: 26px 26px 24px;
  transition: border-color .3s, transform .3s;
  --accent: var(--gold);
}
.card-cool { --accent: var(--ice); }
.card::after {
  content: ""; position: absolute; inset-inline-end: -60px; top: -60px;
  width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%);
  transition: opacity .3s; opacity: .6;
}
.card:hover { border-color: color-mix(in srgb, var(--accent) 45%, transparent); transform: translateY(-3px); }
.card:hover::after { opacity: 1; }
.card .icon {
  width: 30px; height: 30px; color: var(--accent);
  margin-bottom: 14px;
}
.card h3 { font-size: 19px; font-weight: 700; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14px; }
.num {
  position: absolute; top: 22px; inset-inline-end: 24px;
  font-size: 12px; font-weight: 500; color: var(--muted); letter-spacing: .1em;
}

/* footer */
.foot {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px;
  padding-top: 18px; border-top: 1px solid var(--rule);
  color: var(--muted); font-size: 12.5px;
}

/* entrance */
.rise { opacity: 0; transform: translateY(16px); animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards; }
h1.rise { animation: rise .9s cubic-bezier(.2,.7,.2,1) forwards, shimmer 6s ease-in-out 1s infinite; }
.r1 { animation-delay: .05s } .r2 { animation-delay: .2s } .r3 { animation-delay: .32s }
.r4 { animation-delay: .45s } .r5 { animation-delay: .6s }
h1.r3 { animation-delay: .32s, 1.2s; }
@keyframes rise { to { opacity: 1; transform: none; } }

/* Latin-only typography: never letter-space Arabic */
html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1 { letter-spacing: -.03em; font-weight: 700; font-size: clamp(56px, 12vw, 128px); }
html[lang="en"] .status { letter-spacing: .08em; text-transform: uppercase; font-size: 12px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rise { opacity: 1; transform: none; }
  .pulse-run { stroke-dasharray: none; }
}
@media (max-width: 720px) {
  .services { grid-template-columns: 1fr; }
  .lead { font-size: 15.5px; }
  .hero { padding: 20px 0 32px; }
}
@media (max-width: 480px) {
  .wrap { padding: 18px 16px 16px; }
  .card { padding: 22px 20px 20px; }
  .foot { justify-content: center; text-align: center; }
}
