:root {
  color-scheme: dark;
  --bg: #020817;
  --surface: rgba(12, 24, 47, 0.82);
  --surface-strong: #0f1c35;
  --line: rgba(139, 164, 205, 0.22);
  --text: #f7f9ff;
  --muted: #a7b3ca;
  --blue: #2c7cff;
  --cyan: #20d5e9;
  --green: #24d58a;
  --shadow: 0 24px 70px rgba(0, 15, 45, 0.46);
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 10% -10%, rgba(44, 124, 255, 0.24), transparent 34rem),
    radial-gradient(circle at 96% 8%, rgba(32, 213, 233, 0.13), transparent 30rem),
    var(--bg);
  font-family: Inter, "Segoe UI", Tahoma, Arial, sans-serif;
  line-height: 1.65;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
}

a { color: #7fdff1; }
a:hover { color: #fff; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  color: #001125;
  background: #fff;
  border-radius: 10px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(2, 8, 23, 0.82);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(1120px, calc(100% - 32px));
  min-height: 76px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-size: 1.35rem;
  font-weight: 850;
  letter-spacing: -0.04em;
}
.brand span {
  color: transparent;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  background-clip: text;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-links a,
.language-toggle {
  padding: 9px 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  text-decoration: none;
  font: inherit;
  cursor: pointer;
}
.nav-links a:hover,
.nav-links a[aria-current="page"],
.language-toggle:hover {
  color: var(--text);
  border-color: var(--line);
  background: rgba(255,255,255,0.045);
}
.language-toggle { border-color: var(--line); }

.page-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 72px 0 96px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 6vw, 64px);
  border: 1px solid var(--line);
  border-radius: 32px;
  background: linear-gradient(135deg, rgba(15, 31, 62, .92), rgba(5, 15, 34, .88));
  box-shadow: var(--shadow);
}
.hero::after {
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(32, 213, 233, .24), transparent 68%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--cyan);
  font-size: .8rem;
  font-weight: 800;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.2; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.25rem, 6vw, 4.5rem); }
h2 { margin: 0 0 14px; font-size: clamp(1.35rem, 3vw, 2rem); }
h3 { margin: 0 0 8px; font-size: 1.08rem; }

.lede {
  max-width: 760px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.pill {
  padding: 7px 11px;
  color: #c9d4e9;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  font-size: .86rem;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.card,
.content-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 12px 38px rgba(0, 10, 30, .25);
}
.card {
  min-height: 210px;
  padding: 28px;
  color: inherit;
  text-decoration: none;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}
.card:hover {
  color: inherit;
  border-color: rgba(32,213,233,.6);
  background: rgba(16, 35, 68, .94);
  transform: translateY(-4px);
}
.card-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 24px;
  display: grid;
  place-items: center;
  color: var(--cyan);
  border: 1px solid rgba(32,213,233,.32);
  border-radius: 15px;
  background: rgba(32,213,233,.08);
  font-size: 1.35rem;
  font-weight: 850;
}
.card p { margin: 10px 0 0; color: var(--muted); }

.content {
  display: grid;
  gap: 18px;
  margin-top: 28px;
}
.content-section { padding: clamp(24px, 4vw, 38px); }
.content-section p:last-child,
.content-section ul:last-child { margin-bottom: 0; }
.content-section p,
.content-section li { color: #c0cade; }
.content-section strong { color: var(--text); }
.content-section ul,
.content-section ol { padding-inline-start: 22px; }
.content-section li + li { margin-top: 8px; }

.notice {
  padding: 18px 20px;
  border-inline-start: 4px solid var(--cyan);
  border-radius: 14px;
  background: rgba(32,213,233,.075);
  color: #cceef3;
}
.notice.warning {
  border-inline-start-color: #ffb84a;
  background: rgba(255,184,74,.075);
  color: #ffe0ae;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}
.button {
  min-height: 48px;
  padding: 12px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: linear-gradient(110deg, var(--blue), #0ebee2);
  box-shadow: 0 12px 28px rgba(24, 111, 255, .24);
  font-weight: 800;
  text-decoration: none;
}
.button:hover { color: #fff; filter: brightness(1.1); }
.button.secondary { background: rgba(255,255,255,.05); box-shadow: none; }

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
}
.data-table th,
.data-table td {
  padding: 14px;
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.data-table th { color: var(--text); }
.data-table td { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  background: rgba(1, 6, 17, .6);
}
.footer-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }

[data-lang="ar"] { display: none; }
html[lang="ar"] { direction: rtl; }
html[lang="ar"] [data-lang="en"] { display: none; }
html[lang="ar"] [data-lang="ar"] { display: revert; }
html[lang="ar"] .eyebrow { letter-spacing: 0; }

@media (max-width: 780px) {
  .nav-shell { min-height: 68px; }
  .nav-links a { display: none; }
  .page-shell { padding-top: 38px; }
  .grid { grid-template-columns: 1fr; }
  .data-table { display: block; overflow-x: auto; }
}

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

.brand { display: inline-flex; align-items: center; gap: 9px; direction: ltr; }
.brand img { border-radius: 8px; }
