:root {
  --bg: #050816;
  --bg-alt: #0b1020;
  --card-bg: #0f172a;
  --accent: #3b82f6;
  --accent-soft: rgba(59, 130, 246, 0.15);
  --text: #e5e7eb;
  --muted: #9ca3af;
  --border: rgba(148, 163, 184, 0.3);
  --radius-lg: 18px;
  --radius-xl: 26px;
  --shadow-soft: 0 18px 50px rgba(15, 23, 42, 0.7);
  --max-width: 1120px;
}

/* Light theme overrides */
html[data-theme="light"] {
  --bg: #f3f4f6;
  --bg-alt: #ffffff;
  --card-bg: #ffffff;
  --accent: #2563eb;
  --accent-soft: rgba(37, 99, 235, 0.12);
  --text: #111827;
  --muted: #6b7280;
  --border: rgba(209, 213, 219, 1);
  --shadow-soft: 0 16px 35px rgba(148, 163, 184, 0.3);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1d2450 0, var(--bg) 45%, #020617 100%);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

html[data-theme="light"] body {
  background: radial-gradient(circle at top left, #e5efff 0, #eef2ff 35%, #e5e7eb 100%);
}
.brand-name-ar {
  font-size: 13px;
  font-weight: 500;
  margin-inline-start: 6px;
  color: var(--muted);
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 20px 16px 56px;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  margin-bottom: 26px;
  border-radius: 999px;
  background: radial-gradient(circle at top left, var(--bg-alt), #020617);
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.75);
  position: sticky;
  top: 12px;
  z-index: 10;
  backdrop-filter: blur(18px);
}

html[data-theme="light"] header {
  background: linear-gradient(135deg, #ffffff, #e5e7eb);
  box-shadow: 0 14px 35px rgba(148, 163, 184, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: radial-gradient(circle at 30% 0, #60a5fa, #1d4ed8);
  box-shadow:
    0 0 0 1px rgba(96, 165, 250, 0.35),
    0 12px 30px rgba(15, 23, 42, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 18px;
  color: white;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 16px;
}

.brand-tagline {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

nav {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
}

nav a {
  color: var(--muted);
  text-decoration: none;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid transparent;
}

nav a:hover {
  color: var(--text);
  border-color: rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.85);
}

html[data-theme="light"] nav a:hover {
  background: rgba(243, 244, 246, 0.9);
}

.theme-toggle {
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.9);
  color: var(--text);
  padding: 7px 12px;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

html[data-theme="light"] .theme-toggle {
  background: #f3f4f6;
}

.theme-toggle span {
  font-size: 14px;
}

.chip {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
}

html[data-theme="light"] .chip {
  background: rgba(255, 255, 255, 0.9);
}

.chip-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.15);
}

main {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2.5fr);
  gap: 30px;
  align-items: center;
  margin-top: 24px;
}

.hero-title {
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.05;
  margin: 14px 0 10px;
}

.hero-title span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 17px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.btn {
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 13px;
  border: 1px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  transition:
    transform 120ms ease,
    box-shadow 120ms ease,
    background 120ms ease,
    border-color 120ms ease,
    color 120ms ease;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: white;
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.6);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 45px rgba(37, 99, 235, 0.75);
}

html[data-theme="light"] .btn-primary {
  box-shadow: 0 16px 35px rgba(37, 99, 235, 0.45);
}

.btn-ghost {
  background: rgba(15, 23, 42, 0.9);
  border-color: rgba(148, 163, 184, 0.7);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(15, 23, 42, 1);
  border-color: var(--accent);
  box-shadow: 0 18px 35px rgba(15, 23, 42, 0.8);
}

html[data-theme="light"] .btn-ghost {
  background: #f3f4f6;
}

.hero-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}

.hero-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, var(--card-bg), var(--bg-alt));
  border: 1px solid rgba(148, 163, 184, 0.5);
  box-shadow: var(--shadow-soft);
  padding: 18px 18px 16px;
  position: relative;
  overflow: hidden;
  min-height: 230px;
}

.hero-card::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.16), transparent 55%),
    radial-gradient(circle at 100% 0, rgba(56, 189, 248, 0.25), transparent 55%);
  opacity: 0.8;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero-card-inner {
  position: relative;
  z-index: 1;
}

.hero-card-title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--muted);
  margin-bottom: 10px;
}

.hero-card-main {
  font-size: 18px;
  margin-bottom: 10px;
}

.hero-card-main span {
  color: var(--accent);
}

.hero-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.hero-card-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.pill {
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: var(--muted);
}

html[data-theme="light"] .pill {
  background: #f9fafb;
}

section {
  margin-top: 34px;
}

.section-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
  margin-bottom: 18px;
}

.section-label {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 11px;
  color: var(--muted);
}

.section-title {
  font-size: 20px;
  margin: 4px 0;
}

.section-sub {
  font-size: 13px;
  color: var(--muted);
  max-width: 520px;
  line-height: 1.5;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.card {
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), #020617);
  border: 1px solid var(--border);
  padding: 14px 14px 16px;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.85);
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .card {
  background: #ffffff;
  box-shadow: 0 16px 35px rgba(148, 163, 184, 0.35);
}

.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, var(--accent-soft), transparent 60%);
  opacity: 0.9;
  pointer-events: none;
}

.card-inner {
  position: relative;
  z-index: 1;
}

.card-kicker {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  margin-bottom: 6px;
}

.card-title {
  font-size: 15px;
  margin: 0 0 6px;
}

.card-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.mission {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, var(--bg-alt), #020617);
  padding: 18px 18px 20px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  margin-top: 26px;
  position: relative;
  overflow: hidden;
}

html[data-theme="light"] .mission {
  background: linear-gradient(145deg, #ffffff, #f3f4f6);
}

.mission::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    radial-gradient(circle at 0 0, rgba(59, 130, 246, 0.2), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(56, 189, 248, 0.2), transparent 55%);
  opacity: 0.7;
  pointer-events: none;
}

.mission-inner {
  position: relative;
  z-index: 1;
}

.mission-title {
  font-size: 18px;
  margin-bottom: 8px;
}

.mission-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 800px;
}

.mission-foot {
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted);
}

.lang-section {
  margin-top: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.96), #020617);
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .lang-section {
  background: #ffffff;
}

.lang-section-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.lang-title {
  font-size: 17px;
}

.lang-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

.lang-body {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
}

.lang-body p {
  margin: 0 0 10px;
}

.arabic {
  direction: rtl;
  text-align: right;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Noto Naskh Arabic", "Amiri", sans-serif;
}

footer {
  margin-top: 36px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid rgba(30, 64, 175, 0.6);
  padding-top: 14px;
}

html[data-theme="light"] footer {
  border-top-color: rgba(209, 213, 219, 1);
}

footer a {
  color: var(--muted);
  text-decoration: none;
}

footer a:hover {
  color: var(--accent);
}

/* Simple landing layout */
.landing-main {
  margin-top: 40px;
}

.landing-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.landing-card {
  border-radius: var(--radius-xl);
  background: radial-gradient(circle at top left, var(--card-bg), var(--bg-alt));
  border: 1px solid var(--border);
  padding: 18px 18px 20px;
  box-shadow: var(--shadow-soft);
}

html[data-theme="light"] .landing-card {
  background: #ffffff;
}

.landing-card h3 {
  margin: 0 0 6px;
  font-size: 17px;
}

.landing-card p {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--muted);
}

@media (max-width: 800px) {
  header {
    border-radius: 20px;
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .grid-3 {
    grid-template-columns: minmax(0, 1fr);
  }

  .landing-cards {
    grid-template-columns: minmax(0, 1fr);
  }

  .page {
    padding-inline: 14px;
  }
}
