@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/fonts/noto-kufi-arabic-arabic-500-normal.woff2") format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "Noto Kufi Arabic";
  src: url("/fonts/noto-kufi-arabic-arabic-700-normal.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
}

:root {
  --deep: #072519;
  --green: #0b7a52;
  --cream: #f4faf6;
  --saffron: #f4b223;
  --tint: #cdebdb;
  --muted: rgba(244, 250, 246, 0.66);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}
[dir="rtl"] {
  --sans: "Noto Kufi Arabic", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--deep);
  color: var(--cream);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  overflow-x: hidden;
}

#orb {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
}

.top, .hero, .foot { position: relative; z-index: 1; }

.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px clamp(16px, 5vw, 56px);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand img { border-radius: 11px; }

.langs { display: flex; gap: 6px; }
.langs button {
  font: 600 14px var(--sans);
  color: var(--cream);
  background: transparent;
  border: 1px solid rgba(244, 250, 246, 0.24);
  border-radius: 999px;
  padding: 8px 14px;
  cursor: pointer;
}
.langs button[aria-pressed="true"] { background: var(--cream); color: var(--deep); border-color: var(--cream); }
.langs button:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; }
.langs button[data-lang="ar"] { font-family: "Noto Kufi Arabic", system-ui, sans-serif; }

.hero {
  align-self: center;
  padding: 0 clamp(16px, 7vw, 96px) 6vh;
  max-width: 980px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--saffron);
  margin: 0 0 18px;
}
[dir="rtl"] .eyebrow { letter-spacing: 0; font-family: var(--sans); font-size: 15px; }
h1 {
  font-size: clamp(64px, 15vw, 188px);
  line-height: 0.92;
  letter-spacing: -0.055em;
  margin: 0;
  font-weight: 800;
}
[dir="rtl"] h1 { letter-spacing: 0; line-height: 1.25; font-weight: 700; }
.tagline {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 18px 0 0;
  color: var(--saffron);
}
[dir="rtl"] .tagline { letter-spacing: 0; line-height: 1.6; }
.lead {
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
  margin: 22px 0 0;
}
[dir="rtl"] .lead { line-height: 1.9; }
.for {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.for li {
  font-size: 15px;
  font-weight: 600;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(244, 250, 246, 0.08);
  border: 1px solid rgba(244, 250, 246, 0.16);
}

.foot {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px clamp(16px, 5vw, 56px) calc(20px + env(safe-area-inset-bottom));
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .hero { padding-bottom: 4vh; }
  .brand span { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
