/* ===================== TOKENS ===================== */
:root {
  /* Brand */
  --dark: #0C2F32;
  --dark-2: #143C40;
  --teal: #01696F;
  --teal-hover: #045A5F;
  --gold: #D19900;
  --gold-soft: #FFD86A;
  --gold-fade: #F7E7A8;
  --cream: #F5F1E8;
  --cream-2: #EFE9DA;
  --sand: #EFEDE8;
  --line: rgba(12, 47, 50, 0.10);
  --line-dark: rgba(245, 241, 232, 0.14);

  /* Text */
  --text: #1B1D1C;
  --text-muted: #58605E;
  --text-faint: #8C918F;
  --text-invert: #F5F1E8;
  --text-invert-muted: rgba(245, 241, 232, 0.72);

  /* Surface */
  --bg: #FAF7F1;
  --bg-alt: #F5F1E8;

  /* Type */
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --font-arabic: 'Cairo', 'Amiri', 'Segoe UI Arabic', Tahoma, sans-serif;
  --font-arabic-display: 'Amiri', 'Cairo', 'Traditional Arabic', serif;

  /* Radius */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-xl: 28px;

  /* Spacing */
  --gap-xs: 8px;
  --gap-sm: 16px;
  --gap-md: 24px;
  --gap-lg: 40px;
  --gap-xl: 64px;
  --gap-2xl: 96px;

  /* Shadow */
  --shadow-sm: 0 1px 2px rgba(12, 47, 50, 0.05);
  --shadow-md: 0 8px 24px -8px rgba(12, 47, 50, 0.12);
  --shadow-lg: 0 20px 60px -20px rgba(12, 47, 50, 0.20);
}

/* ===================== RESET ===================== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'ss01', 'cv11';
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; }
input, select, textarea { font: inherit; color: inherit; }

/* Arabic body override */
html[dir="rtl"] body {
  font-family: var(--font-arabic);
  letter-spacing: 0;
}
html[dir="rtl"] h1, html[dir="rtl"] h2, html[dir="rtl"] h3, html[dir="rtl"] h4 {
  font-family: var(--font-arabic-display);
  letter-spacing: 0;
}

/* ===================== LAYOUT ===================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* ===================== HEADER ===================== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 247, 241, 0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--dark);
  flex-shrink: 0;
}
.brand-mark { width: 32px; height: 32px; color: var(--teal); }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
  letter-spacing: 0.06em;
  color: var(--dark);
}
html[dir="rtl"] .brand-name { font-family: var(--font-arabic-display); }
.brand-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  color: var(--teal);
  margin-top: 2px;
}
.nav {
  display: flex;
  gap: 28px;
  flex: 1;
  justify-content: center;
}
.nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
}
.nav a:hover { color: var(--teal); }
.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 0;
  background: var(--gold);
  transition: width 0.25s;
}
.nav a:hover::after { width: 100%; }

/* Active menu item (universal): bold + gold + gold underline */
.nav a.is-active,
.nav a[aria-current="page"],
.nav .nav-dossier.is-active .nav-dossier-toggle {
  color: var(--gold) !important;
  font-weight: 700 !important;
}
.nav a.is-active::after,
.nav a[aria-current="page"]::after {
  width: 100% !important;
  background: var(--gold) !important;
}
.nav .nav-dossier.is-active .nav-dossier-toggle::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  height: 2px;
  width: 100%;
  background: var(--gold);
}
.nav-dossier { position: relative; } /* ensure ::after positioning works */

/* ===================== DOSSIER DROPDOWN ===================== */
.nav-dossier { position: relative; }
.nav-dossier-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  background: transparent;
  border: 0;
  padding: 0;
  cursor: pointer;
  transition: color 0.2s;
  position: relative;
}
.nav-dossier-toggle:hover { color: var(--teal); }
.nav-dossier-toggle svg { transition: transform 0.2s; }
.nav-dossier-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.nav-dossier-toggle[aria-expanded="true"] { color: var(--teal); }
.nav-dossier-menu {
  position: absolute;
  top: calc(100% + 18px);
  left: 50%;
  transform: translateX(-50%) translateY(-6px);
  min-width: 220px;
  background: #FFFFFF;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(12, 47, 50, 0.10), 0 2px 6px rgba(12, 47, 50, 0.05);
  padding: 10px 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 60;
}
.nav-dossier.open .nav-dossier-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.nav-dossier-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 4px 14px 8px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.nav-dossier-menu a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--dark);
  border-radius: 8px;
  transition: background 0.15s, color 0.15s;
}
.nav-dossier-menu a:hover {
  background: rgba(1, 105, 111, 0.06);
  color: var(--teal);
}
.nav-dossier-menu a::after { display: none; }
.nav-dossier-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 22px;
  padding: 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold);
  background: rgba(209, 153, 0, 0.10);
  border-radius: 6px;
}
.nav-dossier-name {
  font-weight: 500;
}
[dir="rtl"] .nav-dossier-menu {
  left: 50%;
  right: auto;
}

/* Gallery divider inside dossier dropdown */
.nav-dossier-divider {
  display: block;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(209, 153, 0, 0.35) 50%, transparent 100%);
  margin: 6px 4px;
}
.nav-dossier-menu a.nav-dossier-gallery .nav-dossier-lang {
  background: rgba(1, 105, 111, 0.10);
  color: var(--teal);
  font-size: 13px;
}

/* Top-level Gallery nav link (gold dot removed per new active-menu design) */
.nav .nav-gallery-link {
  position: relative;
}

.header-actions { display: flex; align-items: center; gap: 12px; }

.lang-switch {
  display: flex;
  gap: 2px;
  background: rgba(1, 105, 111, 0.08);
  padding: 3px;
  border-radius: 999px;
}
.lang-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 999px;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}
.lang-btn.active {
  background: var(--dark);
  color: var(--cream);
}

/* ===================== BUTTONS ===================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  border-radius: 999px;
  transition: all 0.2s ease;
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--dark);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--teal);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.btn-ghost {
  color: var(--dark);
  border-color: var(--line);
  background: transparent;
}
.btn-ghost:hover {
  border-color: var(--dark);
  background: rgba(12, 47, 50, 0.04);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }
.btn-block { width: 100%; }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
}
.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--dark);
  transition: all 0.2s;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 12vw, 140px) 0 clamp(80px, 14vw, 140px);
  background:
    radial-gradient(ellipse at top right, rgba(209, 153, 0, 0.08), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-alt) 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}
.hero-orb-1 {
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(1, 105, 111, 0.35), transparent 70%);
  top: -100px;
  left: -100px;
}
.hero-orb-2 {
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(209, 153, 0, 0.35), transparent 70%);
  bottom: -80px;
  right: -80px;
}
.hero-inner { position: relative; z-index: 1; max-width: 900px; }

/* ============ PUBLIC DOSSIER CARD (hero top) ============ */
.dossier-card {
  position: relative;
  background: linear-gradient(135deg, #0C2F32 0%, #143C40 100%);
  color: #F5F1E8;
  border-radius: 14px;
  padding: 26px 30px;
  margin-bottom: 28px;
  max-width: 720px;
  box-shadow:
    0 1px 0 rgba(209, 153, 0, 0.35) inset,
    0 0 0 1px rgba(209, 153, 0, 0.28),
    0 20px 40px -20px rgba(12, 47, 50, 0.35);
  overflow: hidden;
  animation: dossierCardFadeIn 0.7s ease-out both;
}
.dossier-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, #D19900 20%, #FFD86A 50%, #D19900 80%, transparent 100%);
  opacity: 0.85;
}
.dossier-card::after {
  content: "";
  position: absolute;
  top: -60%; right: -20%;
  width: 55%; height: 220%;
  background: radial-gradient(ellipse at center, rgba(209, 153, 0, 0.13) 0%, transparent 65%);
  pointer-events: none;
}
@keyframes dossierCardFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.dossier-card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #D19900;
  margin-bottom: 14px;
  position: relative;
  z-index: 2;
}
.dossier-card-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #D19900;
  box-shadow: 0 0 0 3px rgba(209, 153, 0, 0.22);
  animation: dossierDotPulse 2.4s infinite ease-in-out;
}
@keyframes dossierDotPulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(209, 153, 0, 0.22); }
  50% { box-shadow: 0 0 0 6px rgba(209, 153, 0, 0.06); }
}
.dossier-card-body {
  display: flex;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}
.dossier-card-text { flex: 1 1 320px; min-width: 260px; }
.dossier-card-title {
  font-family: var(--font-display, Georgia, serif);
  font-weight: 500;
  font-size: clamp(20px, 2.2vw, 24px);
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: #F5F1E8;
  margin: 0 0 8px;
}
html[dir="rtl"] .dossier-card-title {
  font-family: var(--font-arabic-display, Georgia, serif);
  line-height: 1.5;
}
.dossier-card-lead {
  font-size: 14px;
  line-height: 1.55;
  color: rgba(245, 241, 232, 0.72);
  margin: 0;
  max-width: 460px;
}
html[dir="rtl"] .dossier-card-lead { line-height: 1.75; }
.dossier-card-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.dossier-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 8px;
  background: rgba(209, 153, 0, 0.08);
  border: 1px solid rgba(209, 153, 0, 0.35);
  color: #F5F1E8;
  text-decoration: none;
  transition: all 0.18s ease;
  min-width: 108px;
}
.dossier-card-btn:hover {
  background: #D19900;
  border-color: #D19900;
  color: #0C2F32;
  transform: translateY(-1px);
}
.dossier-card-btn-lang {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: #D19900;
  padding: 3px 7px;
  border: 1px solid rgba(209, 153, 0, 0.5);
  border-radius: 4px;
  transition: all 0.18s ease;
}
.dossier-card-btn:hover .dossier-card-btn-lang {
  color: #0C2F32;
  border-color: #0C2F32;
}
.dossier-card-btn-name {
  font-size: 13.5px;
  font-weight: 500;
}
@media (max-width: 640px) {
  .dossier-card { padding: 22px 22px; }
  .dossier-card-body { gap: 20px; }
  .dossier-card-actions { width: 100%; }
  .dossier-card-btn { flex: 1 1 auto; min-width: 0; justify-content: center; }
}

.hero-cta-note {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 14px;
  margin-bottom: 32px;
  max-width: 560px;
  font-style: normal;
  letter-spacing: 0.01em;
}
.hero-cta-note::before {
  content: "";
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold);
  vertical-align: middle;
  margin-right: 8px;
  transform: translateY(-1px);
}
html[dir="rtl"] .hero-cta-note::before { margin-right: 0; margin-left: 8px; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(1, 105, 111, 0.10);
  color: var(--teal);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 32px;
}
.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(209, 153, 0, 0.25);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(209, 153, 0, 0.25); }
  50% { box-shadow: 0 0 0 8px rgba(209, 153, 0, 0.05); }
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(38px, 6.5vw, 78px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--dark);
  margin-bottom: 32px;
}
html[dir="rtl"] .hero-title {
  font-family: var(--font-arabic-display);
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0;
}

.hero-lead {
  font-size: clamp(17px, 1.8vw, 20px);
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 720px;
  margin-bottom: 40px;
}
html[dir="rtl"] .hero-lead { line-height: 1.85; }

.hero-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 72px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
}
.hero-stat dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.hero-stat dd {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(28px, 3.5vw, 40px);
  color: var(--dark);
  line-height: 1;
  font-feature-settings: 'tnum';
}
html[dir="rtl"] .hero-stat dd { font-family: var(--font-arabic-display); font-weight: 700; }
.stat-unit {
  font-size: 0.55em;
  color: var(--gold);
  margin-left: 4px;
  font-weight: 500;
}
html[dir="rtl"] .stat-unit { margin-left: 0; margin-right: 4px; }

/* ===================== SECTIONS ===================== */
.section {
  padding: clamp(80px, 12vw, 140px) 0;
}
.section-dark {
  background: var(--dark);
  color: var(--text-invert);
}
.section-dark .section-title { color: var(--cream); }
.section-dark .section-lead { color: var(--text-invert-muted); }
.section-cream { background: var(--cream); }

.section-head {
  max-width: 780px;
  margin: 0 auto clamp(48px, 8vw, 80px);
  text-align: center;
}
.eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.eyebrow-gold { color: var(--gold-soft); }
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4.5vw, 52px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--dark);
  margin-bottom: 20px;
}
html[dir="rtl"] .section-title {
  font-family: var(--font-arabic-display);
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  line-height: 1.65;
  color: var(--text-muted);
}
html[dir="rtl"] .section-lead { line-height: 1.9; }

/* ===================== GRID ===================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.card {
  padding: 40px 32px;
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: all 0.3s ease;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--teal);
  box-shadow: var(--shadow-lg);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-md);
  background: rgba(1, 105, 111, 0.10);
  color: var(--teal);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.card-icon svg { width: 24px; height: 24px; }
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.25;
}
html[dir="rtl"] .card h3 { font-family: var(--font-arabic-display); }
.card p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}
html[dir="rtl"] .card p { line-height: 1.9; }

/* ===================== SPLIT (Why Iznik) ===================== */
.split {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: start;
}
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 32px; }
.feature-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  align-items: start;
}
.feat-num {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 500;
  color: var(--gold-soft);
  line-height: 1;
  font-feature-settings: 'tnum';
}
.feature-list h4 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  color: var(--cream);
  margin-bottom: 8px;
  line-height: 1.3;
}
html[dir="rtl"] .feature-list h4 { font-family: var(--font-arabic-display); }
.feature-list p {
  color: var(--text-invert-muted);
  font-size: 15px;
  line-height: 1.65;
}
html[dir="rtl"] .feature-list p { line-height: 1.9; }

.context-card {
  background: var(--dark-2);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  position: sticky;
  top: 100px;
}
.context-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.context-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.context-list > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px dashed var(--line-dark);
}
.context-list > div:last-of-type { border-bottom: none; padding-bottom: 0; }
.context-list dt {
  font-size: 13px;
  color: var(--text-invert-muted);
}
.context-list dd {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--cream);
  text-align: right;
  font-feature-settings: 'tnum';
}
html[dir="rtl"] .context-list dd {
  font-family: var(--font-arabic-display);
  text-align: left;
}
.context-source {
  font-size: 11px;
  color: var(--text-invert-muted);
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line-dark);
  line-height: 1.5;
}

/* ===================== MODEL DIAGRAM ===================== */
.model-diagram {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  max-width: 1000px;
  margin: 0 auto 80px;
  position: relative;
}
.model-diagram::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 1px;
  height: 40px;
  background: var(--line);
}
.model-node {
  padding: 28px 20px;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  text-align: center;
  transition: all 0.25s;
}
.model-node:hover { border-color: var(--teal); transform: translateY(-2px); }
.model-node-spv {
  background: var(--dark);
  color: var(--cream);
  border-color: var(--dark);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}
.model-node-spv:hover { border-color: var(--gold); }
.model-role {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 10px;
}
.model-node-spv .model-role { color: var(--gold-soft); }
.model-name {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 12px;
  line-height: 1.3;
}
html[dir="rtl"] .model-name { font-family: var(--font-arabic-display); font-weight: 700; }
.model-node-spv .model-name { color: var(--cream); }
.model-share {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(1, 105, 111, 0.10);
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  border-radius: 999px;
  font-feature-settings: 'tnum';
}
.model-badge {
  display: inline-block;
  padding: 5px 12px;
  background: rgba(255, 216, 106, 0.20);
  color: var(--gold-soft);
  font-size: 11px;
  font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.04em;
}
.model-connector {
  color: var(--text-faint);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 8px;
  position: relative;
}
.model-connector::before, .model-connector::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 20px;
  height: 1px;
  background: var(--line);
}
.model-connector::before { right: 100%; }
.model-connector::after { left: 100%; }
.model-connector span {
  background: var(--bg);
  padding: 4px 10px;
  position: relative;
  z-index: 1;
}
.model-side {
  grid-column: 1 / -1;
  margin-top: 24px;
  padding: 24px 32px;
  border-radius: var(--r-lg);
  background: linear-gradient(135deg, rgba(209, 153, 0, 0.10), rgba(1, 105, 111, 0.06));
  border: 1px solid rgba(209, 153, 0, 0.30);
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}
.model-side .model-role { color: var(--gold); }
.model-badge-gold {
  background: var(--gold);
  color: var(--dark);
}

.model-cards { max-width: 1000px; margin: 0 auto; }
.mini-card {
  padding: 32px 24px;
  border-radius: var(--r-lg);
  background: var(--bg-alt);
  border: 1px solid var(--line);
  position: relative;
}
.mini-num {
  position: absolute;
  top: 20px;
  right: 24px;
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 500;
  color: var(--gold);
  opacity: 0.35;
  line-height: 1;
}
html[dir="rtl"] .mini-num { right: auto; left: 24px; }
.mini-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 12px;
}
html[dir="rtl"] .mini-card h4 { font-family: var(--font-arabic-display); }
.mini-card p {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.6;
}
html[dir="rtl"] .mini-card p { line-height: 1.85; }

/* ===================== PARTNERS ===================== */
.partner-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
}
.partner-card {
  padding: 48px 40px;
  background: var(--bg);
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  transition: all 0.3s;
}
.partner-card:hover { box-shadow: var(--shadow-lg); border-color: var(--teal); }
.partner-mark {
  width: 72px;
  height: 72px;
  color: var(--teal);
  margin-bottom: 24px;
}
.partner-mark-alt { color: var(--gold); }
.partner-card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 32px;
  color: var(--dark);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}
html[dir="rtl"] .partner-card h3 { font-family: var(--font-arabic-display); }
.partner-role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 20px;
}
.partner-card > p {
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 24px;
}
.partner-list {
  list-style: none;
  margin-bottom: 24px;
}
.partner-list li {
  position: relative;
  padding-left: 24px;
  padding-top: 8px;
  padding-bottom: 8px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
  color: var(--text);
}
html[dir="rtl"] .partner-list li { padding-left: 0; padding-right: 24px; }
.partner-list li:last-child { border-bottom: 1px solid var(--line); }
.partner-list li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--gold);
}
html[dir="rtl"] .partner-list li::before { left: auto; right: 4px; }
.partner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-weight: 600;
  font-size: 14px;
  transition: gap 0.2s;
}
.partner-link:hover { gap: 12px; }
.partner-link-muted { color: var(--text-faint); }

/* ===================== RETURNS ===================== */
.returns-table-wrap {
  max-width: 1000px;
  margin: 0 auto;
  border-radius: var(--r-lg);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--bg);
}
.returns-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.returns-table th, .returns-table td {
  padding: 18px 24px;
  text-align: left;
}
html[dir="rtl"] .returns-table th, html[dir="rtl"] .returns-table td { text-align: right; }
.returns-table th {
  background: var(--dark);
  color: var(--cream);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.returns-table tbody tr {
  border-top: 1px solid var(--line);
}
.returns-table td:nth-child(2) {
  font-weight: 600;
  color: var(--dark);
  font-feature-settings: 'tnum';
}
.returns-table td:nth-child(3) {
  color: var(--text-muted);
  font-size: 13.5px;
}
.row-total {
  background: rgba(1, 105, 111, 0.05);
}
.row-highlight {
  background: linear-gradient(90deg, rgba(209, 153, 0, 0.15), rgba(209, 153, 0, 0.06));
}
.row-highlight td:nth-child(2) {
  color: var(--gold);
  font-size: 18px;
  font-family: var(--font-display);
  font-weight: 600;
}
.fineprint {
  max-width: 1000px;
  margin: 24px auto 0;
  font-size: 12.5px;
  color: var(--text-faint);
  line-height: 1.6;
  padding: 0 8px;
}

/* ===================== CONTACT ===================== */
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.contact-left .section-title { text-align: left; }
.contact-left .section-lead { text-align: left; }
html[dir="rtl"] .contact-left .section-title,
html[dir="rtl"] .contact-left .section-lead { text-align: right; }
.contact-meta {
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.contact-meta > div {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 16px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-dark);
}
.contact-meta dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.contact-meta dd, .contact-meta a {
  font-size: 15px;
  color: var(--cream);
  font-weight: 500;
}
.contact-meta a:hover { color: var(--gold-soft); }

.contact-form {
  background: var(--dark-2);
  border-radius: var(--r-lg);
  padding: 40px 32px;
  border: 1px solid var(--line-dark);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--gold-soft);
}
.field input, .field select, .field textarea {
  padding: 14px 16px;
  background: rgba(245, 241, 232, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: var(--r-md);
  color: var(--cream);
  font-size: 15px;
  transition: all 0.2s;
  font-family: inherit;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245, 241, 232, 0.10);
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold-soft) 50%), linear-gradient(135deg, var(--gold-soft) 50%, transparent 50%); background-position: calc(100% - 20px) center, calc(100% - 14px) center; background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
html[dir="rtl"] .field select { background-position: 20px center, 14px center; padding-right: 16px; padding-left: 40px; }
.form-note {
  font-size: 12px;
  color: var(--text-invert-muted);
  line-height: 1.5;
  text-align: center;
}

/* ===================== FOOTER ===================== */
.footer {
  background: #08252A;
  color: var(--text-invert);
  padding: 72px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 2fr;
  gap: 64px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line-dark);
}
.footer-brand .brand-name {
  color: var(--cream);
  font-size: 22px;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  color: var(--text-invert-muted);
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.footer-cols h5 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
  margin-bottom: 20px;
}
.footer-cols a, .footer-cols span {
  display: block;
  font-size: 14px;
  color: var(--text-invert-muted);
  margin-bottom: 12px;
  transition: color 0.2s;
}
.footer-cols a:hover { color: var(--cream); }
.footer-muted { line-height: 1.5; }
.footer-bottom {
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 12.5px;
  color: var(--text-invert-muted);
  flex-wrap: wrap;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav { display: none; }
  .menu-toggle { display: flex; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 24px; }
  .grid-3 { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .context-card { position: relative; top: 0; }
  .model-diagram { grid-template-columns: 1fr; }
  .model-diagram::before { display: none; }
  .model-connector { padding: 12px 0; }
  .model-connector::before, .model-connector::after { display: none; }
  .partner-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; gap: 48px; }
  .contact-meta > div { grid-template-columns: 1fr; gap: 4px; padding-bottom: 12px; }
  .footer-inner { grid-template-columns: 1fr; gap: 48px; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
  .header-actions .btn { display: none; }
}
@media (max-width: 480px) {
  .hero { padding: 60px 0 80px; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .hero-cta .btn { justify-content: center; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 20px; }
  .card { padding: 32px 24px; }
  .partner-card { padding: 32px 24px; }
  .returns-table th, .returns-table td { padding: 12px 14px; font-size: 13.5px; }
  .returns-table td:nth-child(3) { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
