/* =========================================================
   Quran Base — Enhanced Divine Islamic Stylesheet
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Manrope:wght@300;400;500;600;700;800&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

:root {
  --white: #ffffff;
  --off-white: #faf8f3;
  --cream: #f7f2e8;
  --parchment: #f0e6d0;
  --parchment-dk: #e2d0b0;
  --navy: #0d2847;
  --navy-deep: #060f1e;
  --navy-mid: #0f3060;
  --navy-light: #1a4d8f;
  --teal: #0e5a6a;
  --gold: #c8973e;
  --gold-bright: #e0aa45;
  --gold-deep: #9a6e0a;
  --gold-light: #f0d080;
  --gold-pale: #faf0d0;
  --gold-sheen: #d4a843;
  --emerald: #1a5c3a;
  --text: #0c1e33;
  --text-mid: #254060;
  --text-soft: #4a6880;
  --text-muted: #7a98b0;
  --line: rgba(13, 40, 71, 0.08);
  --line-gold: rgba(200, 151, 62, 0.25);
  --line-strong: rgba(13, 40, 71, 0.15);
  --shadow-sm: 0 2px 16px rgba(6, 15, 30, 0.06);
  --shadow-md: 0 8px 40px rgba(6, 15, 30, 0.1);
  --shadow-lg: 0 20px 60px rgba(6, 15, 30, 0.15);
  --shadow-gold: 0 8px 32px rgba(200, 151, 62, 0.2);
  --r-xs: 4px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 36px;
  --r-2xl: 52px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: "Cormorant Garamond", serif;
  font-weight: 700;
  line-height: 1.04;
}

p { margin: 0; line-height: 1.6; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 52px;
}

/* ── Reveal Animations ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 800ms cubic-bezier(0.16, 1, 0.3, 1),
              transform 800ms cubic-bezier(0.16, 1, 0.3, 1);
}
.reveal.revealed { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 200ms; }
.reveal-delay-3 { transition-delay: 300ms; }

/* ── Typography Utilities ── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: 16px;
}
.section-eyebrow::before {
  content: "";
  display: inline-block;
  width: 22px;
  height: 1px;
  background: var(--gold);
}
.section-eyebrow.light {
  color: var(--gold-light);
}
.section-eyebrow.light::before {
  background: var(--gold-light);
}

.section-head { margin-bottom: 56px; }
.section-head h2 {
  font-size: clamp(2.4rem, 4.2vw, 3.6rem);
  color: var(--navy-deep);
  line-height: 1.05;
}
.section-sub {
  max-width: 52ch;
  margin-top: 16px;
  font-size: 1rem;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 54px;
  padding: 0 32px;
  border: 0;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 220ms ease, box-shadow 220ms ease, background 220ms ease;
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0);
  transition: background 220ms ease;
}
.btn:hover::after { background: rgba(255,255,255,0.08); }
.btn:hover { transform: translateY(-2px); }

.btn-gold {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 40%, var(--gold-deep) 100%);
  color: #fff8e8;
  box-shadow: 0 6px 28px rgba(200, 151, 62, 0.35), inset 0 1px 0 rgba(255,255,255,0.15);
}
.btn-gold:hover {
  box-shadow: 0 12px 40px rgba(200, 151, 62, 0.5), inset 0 1px 0 rgba(255,255,255,0.15);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid rgba(13, 40, 71, 0.2);
}
.btn-outline:hover {
  background: rgba(13, 40, 71, 0.04);
  border-color: rgba(13, 40, 71, 0.35);
}

.btn-outline-light {
  background: rgba(255,255,255,0.08);
  color: rgba(255,245,220,0.9);
  border: 1px solid rgba(255,255,255,0.2);
}
.btn-outline-light:hover {
  background: rgba(255,255,255,0.14);
  border-color: rgba(255,255,255,0.3);
}

.btn-full { width: 100%; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--gold-deep);
  transition: gap 200ms ease, color 200ms ease;
}
.link-arrow::after { content: "→"; }
.link-arrow:hover { gap: 14px; color: var(--navy-mid); }

/* ── Badges & Tags ── */
.tag {
  display: inline-flex;
  padding: 4px 13px;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  color: var(--text-mid);
  background: rgba(13, 40, 71, 0.04);
}
.tag-gold {
  color: var(--gold-deep);
  background: rgba(200, 151, 62, 0.1);
  border-color: var(--line-gold);
}

.badge {
  display: inline-flex;
  padding: 3px 11px;
  border-radius: 999px;
  font-size: 0.57rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}
.badge-research { color: #0e4a84; background: rgba(24, 88, 161, 0.1); border: 1px solid rgba(24,88,161,0.15); }
.badge-planned { color: #8a5e10; background: rgba(200, 151, 62, 0.12); border: 1px solid rgba(200,151,62,0.2); }
.badge-scoped { color: #1d5668; background: rgba(34, 113, 140, 0.1); border: 1px solid rgba(34,113,140,0.18); }
.badge-explore { color: #574c3a; background: rgba(87, 76, 58, 0.09); border: 1px solid rgba(87,76,58,0.15); }

/* ── Islamic Geometric Background Pattern ── */
.geo-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 0.03;
}

/* ── Invocation Bar ── */
.invocation-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 13px 24px;
  background: var(--navy-deep);
  position: relative;
  overflow: hidden;
}
.invocation-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(200,151,62,0.06), transparent);
}
.invocation-bar::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,151,62,0.4), transparent);
}
.invocation-bar p {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2.5vw, 1.55rem);
  letter-spacing: 0.05em;
  color: var(--gold-light);
  line-height: 1;
  position: relative;
  z-index: 1;
}

/* ── Site Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.93);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 300ms ease;
}
.site-header.scrolled { box-shadow: 0 4px 30px rgba(6,15,30,0.08); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 52px;
  height: 148px;
  gap: 32px;
  transition: height 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled .header-inner { height: 70px; }

.brand img {
  height: 128px;
  width: auto;
  display: block;
  transition: height 360ms cubic-bezier(0.4, 0, 0.2, 1);
}
.site-header.scrolled .brand img { height: 50px; }

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.lang-switcher {
  position: relative;
  flex-shrink: 0;
}

.lang-switcher select {
  height: 42px;
  min-width: 124px;
  padding: 0 34px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255,255,255,0.9);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  appearance: none;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}

.lang-switcher::after {
  content: "▾";
  position: absolute;
  top: 50%;
  right: 14px;
  transform: translateY(-50%);
  color: var(--navy);
  font-size: 0.75rem;
  pointer-events: none;
}

.lang-switcher select:focus {
  outline: none;
  border-color: rgba(200, 151, 62, 0.55);
  box-shadow: 0 0 0 3px rgba(200, 151, 62, 0.12);
}

.site-nav a {
  position: relative;
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-soft);
  transition: color 200ms ease;
  padding-bottom: 2px;
}
.site-nav a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -4px;
  width: 100%; height: 1.5px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 240ms ease;
}
.site-nav a:hover, .site-nav a.active { color: var(--navy); }
.site-nav a:hover::after, .site-nav a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--navy);
  color: var(--gold-light) !important;
  font-size: 0.68rem !important;
  letter-spacing: 0.1em;
  transition: background 200ms ease !important;
  box-shadow: 0 4px 16px rgba(6,15,30,0.18);
}
.nav-pill::after { display: none !important; }
.nav-pill:hover { background: var(--navy-mid) !important; }

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--navy);
  cursor: pointer;
  transition: background 180ms ease;
}
.menu-btn:hover { background: var(--off-white); }
.icon-menu, .icon-close { width: 16px; height: 16px; flex-shrink: 0; }
.icon-close { display: none; }
.menu-btn[aria-expanded="true"] .icon-menu { display: none; }
.menu-btn[aria-expanded="true"] .icon-close { display: block; }
.menu-label { font-size: 0.64rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }

/* ── Galaxy keyframes ── */
@keyframes nebula-breathe {
  0%, 100% { opacity: 0.88; }
  50%       { opacity: 1; }
}
@keyframes star-drift {
  0%   { opacity: 0.38; transform: translate(0, 0); }
  50%  { opacity: 0.62; transform: translate(-8px, -5px); }
  100% { opacity: 0.38; transform: translate(0, 0); }
}
@keyframes orb-glow-pulse {
  0%, 100% {
    box-shadow:
      0 0 0 8px  rgba(200,151,62,0.06),
      0 0 0 20px rgba(200,151,62,0.03),
      0 24px 60px rgba(6,15,30,0.4);
  }
  50% {
    box-shadow:
      0 0 0 14px rgba(200,151,62,0.11),
      0 0 0 34px rgba(200,151,62,0.05),
      0 28px 80px rgba(6,15,30,0.52),
      0 0 48px rgba(200,151,62,0.1);
  }
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 0 0;
  background: var(--navy-deep);
}

/* Nebula — animated breathe */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 70% at 60% 40%, rgba(15, 48, 96, 0.9), transparent),
    radial-gradient(ellipse 50% 60% at 0% 100%, rgba(14, 90, 106, 0.3), transparent),
    radial-gradient(ellipse 40% 40% at 100% 0%, rgba(26, 77, 143, 0.25), transparent);
  pointer-events: none;
  animation: nebula-breathe 9s ease-in-out infinite;
}

/* CSS star layer — slow drift */
.hero::after {
  content: "";
  position: absolute;
  inset: -20px;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.65) 1px, transparent 1px),
    radial-gradient(circle, rgba(200,151,62,0.45) 1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.4)  1px, transparent 1px),
    radial-gradient(circle, rgba(255,255,255,0.28) 1px, transparent 1px),
    radial-gradient(circle, rgba(200,151,62,0.3)   1px, transparent 1px);
  background-size: 73px 73px, 117px 117px, 181px 181px, 240px 240px, 310px 310px;
  background-position: 10px 10px, 50px 60px, 80px 30px, 20px 80px, 140px 40px;
  pointer-events: none;
  animation: star-drift 28s ease-in-out infinite;
}

/* Geometric Islamic pattern overlay */
.hero-geo {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 52px 80px;
}

.hero-text { max-width: 600px; }

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.hero-kicker::before {
  content: "";
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
}

.hero-arabic-eyebrow {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  color: rgba(240, 208, 128, 0.75);
  letter-spacing: 0.03em;
  margin-bottom: 26px;
  padding-bottom: 22px;
  border-bottom: 1px solid rgba(200, 151, 62, 0.2);
  display: inline-block;
  line-height: 1.6;
}

.hero-text h1 {
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  color: rgba(255,252,245,0.96);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}
.hero-text h1 em {
  font-style: italic;
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-deep));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
}

.hero-lead {
  font-size: 1.04rem;
  line-height: 1.88;
  color: rgba(200,220,245,0.65);
  max-width: 50ch;
  margin-bottom: 40px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ── Hero Visual (orbs) ── */
.hero-visual {
  position: relative;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-visual::before,
.hero-visual::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.hero-visual::before {
  width: 480px;
  height: 480px;
  background:
    radial-gradient(circle at 50% 50%, rgba(57, 110, 179, 0.12), transparent 56%),
    radial-gradient(circle at 30% 35%, rgba(233, 202, 120, 0.12), transparent 22%),
    radial-gradient(circle at 70% 68%, rgba(255, 255, 255, 0.06), transparent 18%);
  filter: blur(6px);
}

.hero-visual::after {
  width: 560px;
  height: 560px;
  background:
    radial-gradient(circle at 50% 50%, rgba(7, 25, 46, 0.22), transparent 58%),
    radial-gradient(circle at 42% 48%, rgba(255, 255, 255, 0.04) 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 26%, rgba(255, 255, 255, 0.035) 0 1px, transparent 1.5px),
    radial-gradient(circle at 24% 62%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1.5px),
    radial-gradient(circle at 76% 74%, rgba(255, 255, 255, 0.03) 0 1px, transparent 1.5px);
  opacity: 0.9;
}

@keyframes orbit-marker-cw {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.orb {
  position: absolute;
  top: 50%; left: 50%;
  border-radius: 50%;
  border: 1px solid;
  transform: translate(-50%, -50%);
}
.orb-1 {
  width: 420px; height: 420px;
  border-color: rgba(200,151,62,0.14);
  background:
    radial-gradient(circle at 50% 50%, rgba(16, 46, 86, 0.08), transparent 66%),
    radial-gradient(circle at 30% 30%, rgba(200,151,62,0.03), transparent 60%);
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.02),
    0 0 80px rgba(15, 39, 73, 0.18);
}
.orb-2 {
  width: 310px; height: 310px;
  border-color: rgba(200,151,62,0.24);
  box-shadow:
    inset 0 0 40px rgba(200,151,62,0.04),
    0 0 36px rgba(200,151,62,0.08);
}
.orb-3 {
  width: 204px; height: 204px;
  border-color: rgba(255,255,255,0.12);
  box-shadow: 0 0 26px rgba(255,255,255,0.04);
}

/* Decorative planets on orb-1 */
.orb-1::before, .orb-1::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.orb-1::before {
  inset: -11px;
  background:
    radial-gradient(circle at 11px 50%, rgba(255,245,220,0.95) 0 2px, rgba(255,245,220,0.25) 3px, transparent 4px),
    radial-gradient(circle at 11px 50%, var(--gold-light) 0 7px, rgba(233,202,120,0.72) 8px, transparent 11px);
  animation: orbit-marker-cw 18s linear infinite;
  filter: drop-shadow(0 0 8px rgba(233,202,120,0.38));
  opacity: 0.95;
}

.orb-1::after {
  inset: -9px;
  background:
    radial-gradient(circle at calc(100% - 9px) 50%, rgba(255,248,230,0.92) 0 2px, rgba(255,248,230,0.24) 3px, transparent 4px),
    radial-gradient(circle at calc(100% - 9px) 50%, var(--gold) 0 5px, rgba(200,151,62,0.78) 6px, transparent 9px);
  animation: orbit-marker-cw 24s linear infinite;
  filter: drop-shadow(0 0 7px rgba(200,151,62,0.35));
  opacity: 0.95;
}

.orb-center {
  position: relative;
  z-index: 2;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle at 38% 35%, rgba(255,255,255,0.98), rgba(245,237,224,0.92));
  border: 1px solid rgba(200,151,62,0.3);
  box-shadow:
    0 0 0 8px rgba(200,151,62,0.06),
    0 0 0 20px rgba(200,151,62,0.03),
    0 24px 60px rgba(6,15,30,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  animation: orb-glow-pulse 5s ease-in-out infinite;
}
.orb-center img {
  width: 100%; height: auto;
  object-fit: contain;
}

/* ── Hero Stats ── */
.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: rgba(255,255,255,0.04);
  border-top: 1px solid rgba(200,151,62,0.15);
  backdrop-filter: blur(10px);
}
.hstat {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 30px 44px;
  text-align: center;
  flex: 1;
  transition: background 200ms ease;
  position: relative;
}
.hstat:hover { background: rgba(200,151,62,0.05); }
.hstat strong {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.9rem, 3.2vw, 2.8rem);
  font-weight: 700;
  color: var(--gold-light);
  line-height: 1;
}
.hstat span {
  margin-top: 7px;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(200,220,245,0.5);
}
.hstat-div {
  width: 1px;
  background: rgba(200,151,62,0.12);
  flex-shrink: 0;
  align-self: stretch;
}

/* ── Mission Section ── */
.section-mission {
  padding: 110px 0;
  background: var(--white);
  position: relative;
}
.section-mission::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--parchment-dk) 30%, var(--parchment-dk) 70%, transparent 95%);
}

.mission-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: stretch;
}

.mission-quote {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--navy-deep);
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 24px;
  min-height: 400px;
}
.mission-quote::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 90% 60% at 20% 90%, rgba(200,151,62,0.18), transparent),
    radial-gradient(ellipse 60% 50% at 80% 10%, rgba(15,48,96,0.8), transparent);
  pointer-events: none;
}
.mission-quote::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), var(--gold), transparent);
}

/* Islamic star decoration in quote card */
.mission-quote-star {
  position: absolute;
  top: 28px; right: 28px;
  width: 60px; height: 60px;
  opacity: 0.08;
}

.mq-arabic {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: clamp(1.25rem, 2vw, 1.75rem);
  color: var(--gold-light);
  direction: rtl;
  line-height: 1.75;
  position: relative;
}
.mission-quote blockquote { margin: 0; padding: 0; position: relative; }
.mission-quote blockquote p {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.2rem, 2vw, 1.65rem);
  font-style: italic;
  color: rgba(255,248,230,0.88);
  line-height: 1.4;
  margin-bottom: 14px;
}
.mission-quote blockquote footer {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.mission-body {
  padding: 6px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.mission-body h2 {
  font-size: clamp(2.1rem, 3.4vw, 2.9rem);
  color: var(--navy-deep);
  margin-bottom: 26px;
}
.mission-body > p {
  font-size: 0.98rem;
  line-height: 1.92;
  color: var(--text-soft);
  margin-bottom: 16px;
}

.mission-values {
  display: grid;
  gap: 18px;
  margin-top: 38px;
  padding-top: 38px;
  border-top: 1px solid var(--line);
}
.mval { display: flex; gap: 18px; align-items: flex-start; }
.mval-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  flex-shrink: 0;
  margin-top: 7px;
  box-shadow: 0 0 8px rgba(200,151,62,0.4);
}
.mval strong {
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 4px;
}
.mval span {
  font-size: 0.9rem;
  color: var(--text-soft);
  line-height: 1.7;
}

/* ════════════════════════════════════════
   GENERATIONS
════════════════════════════════════════ */
.section-generations {
  background:
    linear-gradient(180deg, #040b16 0%, #07192e 42%, #0a2140 100%);
  position: relative;
  overflow: hidden;
  padding: 110px 0;
  isolation: isolate;
}
.section-generations::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% 112%, rgba(200,151,62,0.12), transparent 62%),
    radial-gradient(ellipse 48% 42% at 14% 2%, rgba(28,82,158,0.42), transparent 68%),
    radial-gradient(ellipse 42% 34% at 86% 8%, rgba(20,65,124,0.36), transparent 72%),
    radial-gradient(circle at 52% 46%, rgba(255,255,255,0.035), transparent 24%),
    radial-gradient(circle at 34% 64%, rgba(233,202,120,0.08), transparent 18%);
  filter: blur(2px);
  pointer-events: none;
}

.section-generations::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 9% 16%, rgba(255,255,255,0.9) 0 1px, transparent 1.8px),
    radial-gradient(circle at 18% 42%, rgba(233,202,120,0.72) 0 1.2px, transparent 2px),
    radial-gradient(circle at 27% 22%, rgba(255,255,255,0.78) 0 1px, transparent 1.7px),
    radial-gradient(circle at 36% 68%, rgba(255,255,255,0.5) 0 1px, transparent 1.8px),
    radial-gradient(circle at 46% 28%, rgba(233,202,120,0.7) 0 1.3px, transparent 2px),
    radial-gradient(circle at 58% 14%, rgba(255,255,255,0.82) 0 1px, transparent 1.8px),
    radial-gradient(circle at 67% 56%, rgba(255,255,255,0.6) 0 1px, transparent 1.8px),
    radial-gradient(circle at 74% 24%, rgba(233,202,120,0.66) 0 1.2px, transparent 2px),
    radial-gradient(circle at 82% 44%, rgba(255,255,255,0.72) 0 1px, transparent 1.8px),
    radial-gradient(circle at 91% 18%, rgba(255,255,255,0.8) 0 1px, transparent 1.7px),
    radial-gradient(circle at 12% 78%, rgba(255,255,255,0.55) 0 1px, transparent 1.8px),
    radial-gradient(circle at 24% 86%, rgba(233,202,120,0.62) 0 1.2px, transparent 2px),
    radial-gradient(circle at 42% 84%, rgba(255,255,255,0.7) 0 1px, transparent 1.8px),
    radial-gradient(circle at 63% 82%, rgba(233,202,120,0.58) 0 1.1px, transparent 2px),
    radial-gradient(circle at 86% 76%, rgba(255,255,255,0.7) 0 1px, transparent 1.8px),
    linear-gradient(115deg, transparent 0 46%, rgba(255,255,255,0.025) 47%, transparent 48%),
    linear-gradient(72deg, transparent 0 58%, rgba(233,202,120,0.022) 59%, transparent 60%);
  opacity: 0.75;
  pointer-events: none;
}

.gen-inner {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 34px;
}

.gen-top {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 28px;
  align-items: start;
}

.gen-headline h2 {
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: rgba(255,250,240,0.96);
  margin-bottom: 18px;
}
.gen-sub {
  font-size: 1rem;
  line-height: 1.88;
  color: rgba(200,220,245,0.56);
  max-width: 62ch;
}

/* Qur'anic quote block */
.gen-quote {
  margin: 0;
  padding: 30px 32px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--r-lg);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.gen-quote-label {
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}

.gen-quote-arabic {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: clamp(1.15rem, 2.2vw, 1.65rem);
  color: var(--gold-light);
  direction: rtl;
  line-height: 1.95;
  margin-bottom: 18px;
}

.gen-quote-translation {
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 1.9vw, 1.45rem);
  font-style: italic;
  color: rgba(255,248,230,0.82);
  line-height: 1.55;
  margin-bottom: 14px;
}

.gen-quote-ref {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
}

.gen-transmission {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid rgba(200,151,62,0.16);
}

.gen-transmission-label {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(233,202,120,0.86);
  margin-bottom: 10px;
}

.gen-transmission-text {
  font-size: 0.96rem;
  line-height: 1.82;
  color: rgba(255,248,230,0.7);
  margin-bottom: 10px;
}

.gen-transmission-ref {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(233,202,120,0.92);
}

/* Principles */
.gen-principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: start;
}

.gen-card {
  padding: 34px 30px 36px;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: var(--r-lg);
  background: rgba(255,255,255,0.03);
  transition: border-color 280ms ease, background 280ms ease, transform 280ms ease;
}

.gen-card:hover {
  border-color: rgba(200,151,62,0.18);
  background: rgba(200,151,62,0.05);
  transform: translateY(-4px);
}

.gen-card--featured {
  border-color: rgba(200,151,62,0.22);
  background: rgba(200,151,62,0.07);
}

.gen-card-kicker {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
}

.gen-era-icon {
  width: 52px; height: 52px;
  margin-bottom: 20px;
  border-radius: var(--r-sm);
  background: rgba(200,151,62,0.1);
  border: 1px solid rgba(200,151,62,0.16);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}
.gen-era-icon svg { width: 24px; height: 24px; }

.gen-card h3 {
  font-size: 1.7rem;
  color: rgba(255,250,240,0.92);
  margin-bottom: 14px;
}

.gen-card p {
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(200,220,245,0.52);
}

.gen-note {
  padding: 20px 24px;
  border-top: 1px solid rgba(200,151,62,0.18);
}

.gen-note p {
  max-width: 72ch;
  font-size: 0.92rem;
  line-height: 1.85;
  color: rgba(255,248,230,0.62);
}

/* ── Pillars ── */
.section-pillars {
  padding: 110px 0;
  background: var(--off-white);
  position: relative;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

/* Geometric tiling bg */
.section-pillars::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%230d2847' stroke-width='0.5' opacity='0.04'%3E%3Cpolygon points='30,5 55,20 55,40 30,55 5,40 5,20'/%3E%3Cline x1='30' y1='5' x2='30' y2='55'/%3E%3Cline x1='5' y1='20' x2='55' y2='40'/%3E%3Cline x1='55' y1='20' x2='5' y2='40'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.pillars-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  position: relative;
  z-index: 1;
}

.pillar {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(13,40,71,0.07);
  padding: 40px 34px 44px;
  transition: box-shadow 280ms ease, transform 280ms ease, border-color 280ms ease;
  position: relative;
  overflow: hidden;
}
.pillar::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 280ms ease;
}
.pillar:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-6px);
  border-color: rgba(200,151,62,0.15);
}
.pillar:hover::before { opacity: 1; }

.pillar-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}
.pillar-num {
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.pillar-icon {
  width: 48px; height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, rgba(13,40,71,0.06), rgba(13,40,71,0.03));
  color: var(--navy-mid);
  border: 1px solid rgba(13,40,71,0.08);
}
.pillar-icon svg { width: 22px; height: 22px; }
.pillar h3 {
  font-size: 1.8rem;
  color: var(--navy-deep);
  margin-bottom: 14px;
}
.pillar p {
  font-size: 0.93rem;
  line-height: 1.85;
  color: var(--text-soft);
}

/* ── Verse Banner ── */
.verse-banner {
  position: relative;
  overflow: hidden;
  padding: 96px 0 88px;
  background: var(--navy-deep);
  text-align: center;
}
.verse-banner::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 50% 110%, rgba(200,151,62,0.18), transparent),
    radial-gradient(ellipse 50% 50% at 15% 20%, rgba(15,48,96,0.7), transparent),
    radial-gradient(ellipse 50% 50% at 85% 20%, rgba(15,48,96,0.7), transparent);
  pointer-events: none;
}
.verse-banner::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
  opacity: 0.3;
}

/* Geometric bands */
.verse-banner-line {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
  opacity: 0.18;
}

.verse-banner .container { position: relative; z-index: 1; }

.vb-arabic {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: clamp(1.3rem, 3vw, 2.2rem);
  color: var(--gold-light);
  direction: rtl;
  line-height: 1.9;
  margin-bottom: 28px;
}
.vb-translation {
  max-width: 60ch;
  margin: 0 auto 18px;
  font-size: 1.02rem;
  font-style: italic;
  color: rgba(255,245,220,0.6);
  line-height: 1.9;
  font-family: "Cormorant Garamond", serif;
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.vb-ref {
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

/* ── Offerings ── */
.section-offerings {
  padding: 110px 0;
  background: var(--white);
}

.offerings-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  align-items: start;
}

.offering-main {
  background: linear-gradient(160deg, var(--navy-deep) 0%, var(--navy) 60%, var(--navy-mid) 100%);
  border-radius: var(--r-xl);
  padding: 56px 52px;
  color: rgba(255,248,230,0.88);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  overflow: hidden;
  min-height: 480px;
}
.offering-main::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 100% 100%, rgba(200,151,62,0.12), transparent),
    radial-gradient(ellipse 50% 40% at 0% 0%, rgba(26,77,143,0.5), transparent);
  pointer-events: none;
}
.offering-main::after {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-bright), transparent);
}

.offering-main .tag-gold {
  background: rgba(200,151,62,0.18);
  color: var(--gold-light);
  border-color: rgba(200,151,62,0.3);
  align-self: flex-start;
}

.offering-main h3 {
  font-size: clamp(2rem, 3.2vw, 2.6rem);
  color: rgba(255,250,240,0.96);
  position: relative;
}
.offering-main > p {
  font-size: 0.96rem;
  line-height: 1.88;
  color: rgba(200,220,245,0.6);
  position: relative;
}

.feature-list {
  display: grid;
  gap: 10px;
  position: relative;
  margin-top: 4px;
}
.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.88rem;
  color: rgba(255,248,230,0.72);
}
.feature-list li::before {
  content: "";
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(200,151,62,0.5);
}

.offering-main .link-arrow {
  color: var(--gold);
  margin-top: auto;
  position: relative;
}
.offering-main .link-arrow:hover { color: var(--gold-light); }

.offerings-secondary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.offering-sm {
  background: var(--off-white);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  padding: 32px 28px 36px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 260ms ease, transform 260ms ease, border-color 260ms ease;
}
.offering-sm:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  border-color: rgba(200,151,62,0.18);
}
.offering-sm h3 {
  font-size: 1.55rem;
  color: var(--navy-deep);
}
.offering-sm > p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-soft);
  flex: 1;
}

/* ── Technology ── */
.section-tech {
  padding: 110px 0;
  background: var(--cream);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
.section-tech::before {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c8973e' stroke-width='0.4' opacity='0.06'%3E%3Crect x='10' y='10' width='60' height='60' rx='4'/%3E%3Cline x1='10' y1='40' x2='70' y2='40'/%3E%3Cline x1='40' y1='10' x2='40' y2='70'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  position: relative;
  z-index: 1;
}

.tech-card {
  background: var(--white);
  border-radius: var(--r-lg);
  border: 1px solid rgba(13,40,71,0.07);
  padding: 32px 30px;
  transition: box-shadow 260ms ease, transform 260ms ease;
  position: relative;
  overflow: hidden;
}
.tech-card::after {
  content: "";
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}
.tech-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}
.tech-card:hover::after { opacity: 0.6; }

.tc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.tech-card h4 {
  font-size: 1.3rem;
  color: var(--navy-deep);
}
.tech-card > p {
  font-size: 0.9rem;
  line-height: 1.8;
  color: var(--text-soft);
}

/* ── Datasets ── */
.section-datasets {
  padding: 110px 0;
  background: var(--white);
  border-top: 1px solid var(--line);
}

.datasets-list {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.dataset-row {
  display: grid;
  grid-template-columns: 68px 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 28px 36px;
  border-bottom: 1px solid var(--line);
  background: var(--white);
  transition: background 200ms ease;
}
.dataset-row:last-child { border-bottom: none; }
.dataset-row:hover { background: var(--off-white); }

.dr-icon {
  font-size: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  background: var(--off-white);
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
}
.dr-body h3 {
  font-size: 1.5rem;
  color: var(--navy-deep);
  margin-bottom: 5px;
}
.dr-body p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--text-soft);
}
.dr-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

/* ── Join Section ── */
.section-join {
  position: relative;
  overflow: hidden;
}
.join-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.join-pitch {
  background: var(--navy-deep);
  padding: 96px 72px 96px 52px;
  position: relative;
  overflow: hidden;
  max-width: 660px;
  margin-left: auto;
}
.join-pitch::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 0% 100%, rgba(200,151,62,0.15), transparent),
    radial-gradient(ellipse 50% 40% at 100% 0%, rgba(15,48,96,0.6), transparent);
  pointer-events: none;
}
.join-pitch::after {
  content: "";
  position: absolute; top: 0; bottom: 0; right: 0;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(200,151,62,0.2), transparent);
}

.join-pitch h2 {
  font-size: clamp(2.1rem, 3.5vw, 3rem);
  color: rgba(255,250,240,0.95);
  margin-bottom: 22px;
  position: relative;
}
.join-pitch > p {
  font-size: 0.96rem;
  line-height: 1.88;
  color: rgba(200,220,245,0.58);
  margin-bottom: 30px;
  max-width: 44ch;
  position: relative;
}

.join-list {
  display: grid;
  gap: 12px;
  margin-bottom: 40px;
  position: relative;
}
.join-list li {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.9rem;
  color: rgba(255,248,230,0.7);
}
.join-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
  box-shadow: 0 0 8px rgba(200,151,62,0.5);
}

.pitch-hadith {
  margin: 0;
  padding: 28px 28px 28px 32px;
  border-left: 2px solid var(--gold);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  position: relative;
}
.pitch-hadith p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  font-style: italic;
  color: rgba(255,248,230,0.8);
  line-height: 1.55;
  margin-bottom: 10px;
}
.pitch-hadith footer {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
}

.join-form-wrap {
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 80px 64px;
}

.join-form {
  width: 100%;
  max-width: 460px;
  display: grid;
  gap: 20px;
}
.join-form h3 {
  font-size: 2rem;
  color: var(--navy-deep);
  margin-bottom: 4px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.join-form label { display: grid; gap: 8px; }
.join-form label > span {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-mid);
  letter-spacing: 0.05em;
}
.join-form em { font-weight: 400; color: var(--text-muted); }

.join-form input, .join-form select, .join-form textarea {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid rgba(13,40,71,0.13);
  border-radius: var(--r-sm);
  background: var(--off-white);
  color: var(--text);
  transition: border-color 200ms ease, background 200ms ease, box-shadow 200ms ease;
}
.join-form input:focus, .join-form select:focus, .join-form textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(200,151,62,0.1);
}

.form-note { font-size: 0.7rem; color: var(--text-muted); text-align: center; }
.form-success {
  padding: 18px;
  border-radius: var(--r-sm);
  background: rgba(13,40,71,0.04);
  border: 1px solid rgba(200,151,62,0.18);
  text-align: center;
}
.form-success p {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.15rem;
  color: var(--navy-mid);
  line-height: 1.6;
}
.form-error {
  padding: 14px 18px;
  border-radius: var(--r-sm);
  background: rgba(180,40,40,0.05);
  border: 1px solid rgba(180,40,40,0.18);
  text-align: center;
}
.form-error p {
  font-size: 0.86rem;
  color: #8b2020;
  line-height: 1.6;
}

/* ── Footer ── */
.site-footer {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
  color: rgba(255,245,220,0.55);
}
.site-footer::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, var(--gold) 50%, transparent 95%);
  opacity: 0.28;
}

/* Subtle footer geometric pattern */
.site-footer::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='100' height='100' viewBox='0 0 100 100' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23c8973e' stroke-width='0.3' opacity='0.04'%3E%3Ccircle cx='50' cy='50' r='35'/%3E%3Ccircle cx='50' cy='50' r='20'/%3E%3Cline x1='15' y1='50' x2='85' y2='50'/%3E%3Cline x1='50' y1='15' x2='50' y2='85'/%3E%3Cline x1='25' y1='25' x2='75' y2='75'/%3E%3Cline x1='75' y1='25' x2='25' y2='75'/%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

.footer-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(280px, 1.05fr) minmax(0, 1.45fr);
  gap: 56px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 80px 52px 60px;
  align-items: start;
}

.footer-logo {
  height: 96px;
  width: auto;
  margin-bottom: 24px;
  filter: brightness(0) invert(1) opacity(0.85);
}
.footer-brand p {
  font-size: 0.87rem;
  line-height: 1.84;
  max-width: 34ch;
  margin-bottom: 10px;
}
.footer-arabic {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: 1.25rem;
  color: var(--gold-light);
  direction: rtl;
  margin-top: 20px !important;
  line-height: 1.8;
}
.footer-arabic-ref {
  font-size: 0.6rem !important;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold) !important;
  margin-top: 6px !important;
}

.footer-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: 28px 30px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(255,255,255,0.08);
  background: linear-gradient(180deg, rgba(255,255,255,0.045), rgba(255,255,255,0.02));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.footer-nav div {
  display: grid;
  gap: 14px;
  align-content: start;
}

.footer-nav h4 {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.2rem;
  color: rgba(255,248,230,0.9);
  margin-bottom: 4px;
}
.footer-nav a {
  font-size: 0.84rem;
  color: rgba(255,245,220,0.44);
  transition: color 180ms ease;
}
.footer-nav a:hover { color: var(--gold-light); }

.footer-bottom {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  max-width: 1220px;
  margin: 0 auto;
  padding: 20px 52px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.footer-bottom p { font-size: 0.74rem; color: rgba(255,245,220,0.28); margin: 0; }
.footer-bismillah {
  font-family: "Noto Naskh Arabic", "Cormorant Garamond", serif;
  font-size: 1.15rem !important;
  color: var(--gold) !important;
  letter-spacing: 0.06em;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .container, .header-inner { padding: 0 36px; }
  .gen-top { grid-template-columns: 1fr; }
  .gen-quote { padding: 28px 32px; }
  .gen-principles { grid-template-columns: 1fr; }

  .hero-inner { grid-template-columns: 1fr; padding: 0 36px 64px; gap: 48px; }
  .hero-text { max-width: none; }
  .hero-visual { height: 380px; }

  .hero-stats { flex-wrap: wrap; }
  .hstat { flex: 1 1 30%; min-width: 140px; }

  .mission-grid { grid-template-columns: 1fr; gap: 40px; }
  .mission-quote { min-height: 300px; }

  .pillars-grid { grid-template-columns: repeat(3, 1fr); }

  .offerings-grid { grid-template-columns: 1fr; }
  .offerings-secondary { grid-template-columns: repeat(2, 1fr); }

  .tech-grid { grid-template-columns: repeat(2, 1fr); }

  .dataset-row { grid-template-columns: 56px 1fr; gap: 20px; }
  .dr-meta { grid-column: 1 / -1; padding-left: 76px; justify-content: flex-start; }

  .join-grid { grid-template-columns: 1fr; }
  .join-pitch { padding: 80px 48px 60px; max-width: none; margin: 0; }
  .join-form-wrap { padding: 60px 48px 80px; }

  .footer-inner { grid-template-columns: 1fr; gap: 36px; padding: 64px 36px 48px; }
  .footer-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-bottom { padding: 20px 36px; }
}

@media (max-width: 720px) {
  .container, .header-inner { padding: 0 20px; }

  .header-inner { height: 100px; }
  .site-header.scrolled .header-inner { height: 64px; }
  .brand img { height: 82px; }
  .site-header.scrolled .brand img { height: 44px; }

  .menu-btn { display: flex; }

  .lang-switcher {
    margin-left: auto;
  }

  .lang-switcher select {
    min-width: 106px;
    padding-inline: 12px 28px;
    font-size: 0.72rem;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 14px 20px 20px;
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
  }
  .site-nav.open { display: flex; }
  .site-nav a { font-size: 0.84rem; padding: 10px 0; width: 100%; }
  .nav-pill { height: 44px; width: 100%; justify-content: center; margin-top: 6px; }

  .hero { padding: 40px 0 0; }
  .hero-inner { padding: 0 20px 48px; gap: 36px; }
  .hero-visual { height: 300px; }
  .orb-1 { width: 260px; height: 260px; }
  .orb-2 { width: 194px; height: 194px; }
  .orb-3 { width: 130px; height: 130px; }
  .orb-center { width: 148px; height: 148px; padding: 20px; }

  .hero-stats { flex-direction: column; }
  .hstat { padding: 16px 20px; flex: none; width: 100%; flex-direction: row; justify-content: space-between; align-items: center; }
  .hstat-div { width: 100%; height: 1px; flex: none; }

  .section-mission, .section-generations, .section-pillars, .section-offerings, .section-tech, .section-datasets { padding: 68px 0; }
  .gen-quote { padding: 24px 20px; }
  .gen-quote-arabic { font-size: 1.1rem; }
  .gen-card { padding: 28px 22px; }
  .gen-note { padding: 18px 0 0; }
  .verse-banner { padding: 56px 0; }

  .pillars-grid, .tech-grid, .offerings-secondary { grid-template-columns: 1fr; gap: 16px; }

  .offering-main { padding: 40px 32px; min-height: auto; }

  .dataset-row { grid-template-columns: 44px 1fr; padding: 22px 20px; }
  .dr-meta { padding-left: 0; }
  .dr-icon { font-size: 1.4rem; width: 44px; height: 44px; }

  .join-pitch { padding: 60px 20px 48px; }
  .join-form-wrap { padding: 48px 20px 60px; }
  .form-row { grid-template-columns: 1fr; }

  .footer-inner { grid-template-columns: 1fr; padding: 56px 20px 40px; gap: 32px; }
  .footer-brand p { max-width: none; }
  .footer-nav { grid-template-columns: 1fr; gap: 26px; padding: 24px 20px; }
  .footer-bottom { padding: 16px 20px; }

  .invocation-bar { padding: 11px 16px; }
  .invocation-bar p { font-size: 1rem; }
}

html[dir="rtl"] body {
  font-family: "Noto Naskh Arabic", serif;
}

html[dir="rtl"] h1,
html[dir="rtl"] h2,
html[dir="rtl"] h3,
html[dir="rtl"] h4,
html[dir="rtl"] .btn,
html[dir="rtl"] .site-nav a,
html[dir="rtl"] .menu-label {
  font-family: "Noto Naskh Arabic", serif;
}

html[dir="rtl"] .header-inner,
html[dir="rtl"] .site-nav,
html[dir="rtl"] .hero-actions,
html[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

html[dir="rtl"] .hero-text,
html[dir="rtl"] .mission-body,
html[dir="rtl"] .section-head,
html[dir="rtl"] .gen-headline,
html[dir="rtl"] .gen-note,
html[dir="rtl"] .offering-main,
html[dir="rtl"] .offering-sm,
html[dir="rtl"] .tech-card,
html[dir="rtl"] .dr-body,
html[dir="rtl"] .join-pitch,
html[dir="rtl"] .join-form,
html[dir="rtl"] .footer-brand,
html[dir="rtl"] .footer-nav {
  text-align: right;
}

html[dir="rtl"] .section-eyebrow,
html[dir="rtl"] .hero-kicker,
html[dir="rtl"] .site-nav a,
html[dir="rtl"] .nav-pill,
html[dir="rtl"] .btn,
html[dir="rtl"] .tag,
html[dir="rtl"] .badge,
html[dir="rtl"] .pillar-num,
html[dir="rtl"] .hstat span,
html[dir="rtl"] .gen-card-kicker,
html[dir="rtl"] .gen-quote-label,
html[dir="rtl"] .gen-transmission-label,
html[dir="rtl"] .gen-quote-ref,
html[dir="rtl"] .gen-transmission-ref,
html[dir="rtl"] .footer-arabic-ref,
html[dir="rtl"] .join-form label > span,
html[dir="rtl"] .menu-label {
  letter-spacing: 0;
  text-transform: none;
}

html[dir="rtl"] .section-eyebrow::before,
html[dir="rtl"] .hero-kicker::before {
  order: 2;
}

html[dir="rtl"] .lang-switcher::after {
  right: auto;
  left: 14px;
}

html[dir="rtl"] .lang-switcher select {
  padding: 0 14px 0 34px;
}

html[lang="zh"] body,
html[lang="zh"] .btn,
html[lang="zh"] .site-nav a,
html[lang="zh"] .menu-label,
html[lang="zh"] .lang-switcher select {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

html[lang="zh"] h1,
html[lang="zh"] h2,
html[lang="zh"] h3,
html[lang="zh"] h4 {
  font-family: "PingFang SC", "Hiragino Serif GB", "Songti SC", "Noto Serif SC", serif;
}

html[lang="zh"] .section-eyebrow,
html[lang="zh"] .hero-kicker,
html[lang="zh"] .site-nav a,
html[lang="zh"] .nav-pill,
html[lang="zh"] .btn,
html[lang="zh"] .tag,
html[lang="zh"] .badge,
html[lang="zh"] .pillar-num,
html[lang="zh"] .hstat span,
html[lang="zh"] .gen-card-kicker,
html[lang="zh"] .gen-quote-label,
html[lang="zh"] .gen-transmission-label,
html[lang="zh"] .gen-quote-ref,
html[lang="zh"] .gen-transmission-ref,
html[lang="zh"] .footer-arabic-ref,
html[lang="zh"] .join-form label > span,
html[lang="zh"] .menu-label {
  letter-spacing: 0.02em;
  text-transform: none;
}
