:root {
  --ink: #0a0a0c;
  --raised: #131316;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f4f2ee;
  --muted: rgba(244, 242, 238, 0.62);
  --faint: rgba(244, 242, 238, 0.4);
  --gold: #dcc7a1;
  --gold-deep: #b79d6e;
  --radius: 22px;
  --measure: 62rem;
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  background: var(--ink);
  color-scheme: dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--ink);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, system-ui, sans-serif;
  overflow-x: clip;
  overscroll-behavior: none;
  -webkit-font-smoothing: antialiased;
}

:lang(ar) body, body:lang(ar) { font-family: -apple-system, "SF Arabic", "Geeza Pro", "Segoe UI", Tahoma, system-ui, sans-serif; line-height: 1.85; }

a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: var(--measure); margin: 0 auto; padding: 0 20px; }

/* Header */
header.top {
  position: sticky; top: 0; z-index: 10;
  background: rgba(10, 10, 12, 0.72);
  backdrop-filter: saturate(160%) blur(18px);
  -webkit-backdrop-filter: saturate(160%) blur(18px);
  border-bottom: 1px solid var(--line);
}
.bar { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; letter-spacing: 0.01em; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
nav.links { display: flex; align-items: center; gap: 22px; font-size: 15px; color: var(--muted); }
nav.links a { text-decoration: none; transition: color 0.2s; }
nav.links a:hover { color: var(--text); }
.lang {
  font: inherit; font-size: 14px; color: var(--text);
  background: transparent; border: 1px solid var(--line); border-radius: 999px;
  padding: 6px 14px; cursor: pointer; transition: border-color 0.2s, background 0.2s;
}
.lang:hover { border-color: rgba(220, 199, 161, 0.5); background: rgba(220, 199, 161, 0.06); }
@media (max-width: 640px) { nav.links a.hide-sm { display: none; } nav.links { gap: 14px; } }

/* Hero */
.hero { position: relative; padding: 88px 0 72px; text-align: center; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -20% 0 auto 0; height: 80%; z-index: -1;
  background: radial-gradient(60% 60% at 50% 30%, rgba(220, 199, 161, 0.16), rgba(220, 199, 161, 0) 70%);
  pointer-events: none;
}
.hero .icon { width: 112px; height: 112px; border-radius: 26px; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55), 0 0 0 1px var(--line); }
.eyebrow { margin: 28px 0 0; font-size: 13px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold); }
:lang(ar) .eyebrow { letter-spacing: 0; text-transform: none; font-size: 15px; }
h1 {
  margin: 14px auto 0; max-width: 14ch;
  font-size: clamp(40px, 8vw, 76px); line-height: 1.04; font-weight: 600; letter-spacing: -0.025em;
}
:lang(ar) h1 { letter-spacing: 0; line-height: 1.25; max-width: 16ch; }
.lede { margin: 22px auto 0; max-width: 34rem; font-size: clamp(17px, 2.4vw, 20px); color: var(--muted); }
.cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 14px 24px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none; border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.2s, border-color 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn.primary { background: var(--gold); color: #1a1409; }
.btn.primary:hover { background: #e6d4b3; }
.btn.ghost { border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: rgba(220, 199, 161, 0.5); }
.note { margin-top: 16px; font-size: 14px; color: var(--faint); }

/* Sections */
section { padding: 72px 0; }
section + section { border-top: 1px solid var(--line); }
.kicker { font-size: 13px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); margin: 0 0 12px; }
:lang(ar) .kicker { letter-spacing: 0; text-transform: none; font-size: 15px; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 4.6vw, 42px); line-height: 1.12; font-weight: 600; letter-spacing: -0.02em; max-width: 22ch; }
:lang(ar) h2 { letter-spacing: 0; line-height: 1.35; }
.sub { margin: 0 0 40px; max-width: 40rem; color: var(--muted); }

.grid { display: grid; gap: 14px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
.card { background: var(--raised); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 10px; font-size: 18px; font-weight: 600; }
.card ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 16px; }
.card li { padding: 5px 0; }
.card li + li { border-top: 1px solid var(--line); }

.two { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
@media (max-width: 700px) { .two { grid-template-columns: 1fr; } }

.private { text-align: center; }
.private h2, .private .sub { margin-left: auto; margin-right: auto; }

/* Footer */
footer { border-top: 1px solid var(--line); padding: 36px 0 56px; color: var(--faint); font-size: 14px; }
.foot { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
.foot nav { display: flex; gap: 22px; }
.foot a { text-decoration: none; color: var(--muted); }
.foot a:hover { color: var(--text); }

/* Document pages */
.doc { padding: 64px 0 40px; max-width: 44rem; }
.doc h1 { font-size: clamp(34px, 6vw, 52px); max-width: none; margin: 0 0 8px; }
.doc .stamp { color: var(--faint); font-size: 14px; margin: 0 0 40px; }
.doc h2 { font-size: 22px; max-width: none; margin: 40px 0 10px; letter-spacing: -0.01em; }
.doc p, .doc li { color: var(--muted); }
.doc ul { padding-inline-start: 1.2em; }
.doc strong { color: var(--text); font-weight: 600; }
.doc a { color: var(--gold); text-underline-offset: 3px; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }
