:root {
  --ink: #10201e;
  --muted: #5a726e;
  --line: rgb(16 32 30 / 10%);
  --accent: #0f6e6a;
  --accent-ink: #f4fbfa;
  --paper: #f3f6f5;
  --paper-2: #e7eeec;
  --font-display: "El Messiri", "Segoe UI", Tahoma, sans-serif;
  --font-body: "Tajawal", "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100dvh;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 70% 55% at 15% 10%, rgb(15 110 106 / 14%), transparent 58%),
    radial-gradient(ellipse 55% 45% at 90% 85%, rgb(15 110 106 / 10%), transparent 52%),
    linear-gradient(160deg, var(--paper) 0%, var(--paper-2) 100%);
  line-height: 1.6;
}

a { color: inherit; }

.wrap {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.site-nav {
  position: absolute;
  z-index: 5;
  inset-inline: 0;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
}

.site-nav .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.nav-links {
  display: flex;
  gap: 0.6rem;
  align-items: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.7rem 1.35rem;
  border-radius: 4px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-primary:hover { background: #0c5a57; }

.btn-ghost {
  background: rgb(255 255 255 / 55%);
  border-color: var(--line);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

.btn-ghost:hover {
  background: #fff;
  border-color: rgb(16 32 30 / 18%);
}

.hero {
  flex: 1;
  min-height: 100dvh;
  display: grid;
  align-items: center;
  padding: clamp(5.5rem, 12vh, 7rem) clamp(1.25rem, 4vw, 3.5rem) clamp(2.5rem, 6vh, 4rem);
}

.hero-copy {
  max-width: 36rem;
}

.brand-lockup {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(3.8rem, 13vw, 7.2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 0.9;
  color: var(--ink);
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-lockup bdi {
  display: block;
  margin-top: 0.22em;
  font-family: var(--font-body);
  font-size: 0.26em;
  font-weight: 700;
  letter-spacing: 0.32em;
  color: var(--accent);
}

.hero-line {
  margin: 0 0 1.75rem;
  font-size: clamp(1.25rem, 3vw, 1.75rem);
  font-weight: 700;
  line-height: 1.35;
  color: var(--muted);
  max-width: 14ch;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  animation: rise 0.85s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.site-foot {
  padding: 1.35rem clamp(1.25rem, 4vw, 3.5rem) 1.75rem;
  color: var(--muted);
  font-size: 0.92rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 1.4rem;
  background: rgb(255 255 255 / 42%);
  border-top: 1px solid var(--line);
}

.foot-brand {
  display: flex;
  gap: 0.65rem;
  align-items: baseline;
  color: var(--ink);
}

.foot-brand strong {
  font-family: var(--font-display);
  font-size: 1.1rem;
}

.foot-mail {
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.1rem;
  margin-inline-start: auto;
}

.foot-links a {
  color: var(--muted);
  text-decoration: none;
}

.foot-links a:hover { color: var(--ink); }

.foot-copy {
  margin: 0;
  width: 100%;
  opacity: 0.75;
}

.legal-page {
  background:
    radial-gradient(ellipse 70% 50% at 20% 0%, rgb(15 110 106 / 10%), transparent 55%),
    linear-gradient(160deg, var(--paper), var(--paper-2));
  color: var(--ink);
}

.legal-wrap {
  max-width: 42rem;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 2.5rem;
}

.legal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.legal-top .mark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  text-decoration: none;
  color: var(--ink);
}

.legal-body h1 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 4vw, 2.2rem);
}

.legal-body h2 {
  margin: 1.75rem 0 0.65rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.legal-body p,
.legal-body li {
  color: #3d524e;
  font-size: 1.02rem;
}

.legal-body ul {
  padding-inline-start: 1.25rem;
}

.legal-meta {
  color: var(--muted) !important;
  font-size: 0.92rem !important;
  margin-bottom: 1.25rem !important;
}

.legal-body a {
  color: var(--accent);
  font-weight: 700;
}

.legal-page .site-foot {
  margin-top: 2.5rem;
  width: 100%;
}

@media (max-width: 640px) {
  .foot-links {
    margin-inline-start: 0;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-lockup,
  .hero-line,
  .hero-cta {
    animation: none;
  }
}
