/* ===== RESET & ROOT ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Emerald */
  --em-900: #064e3b;
  --em-800: #065f46;
  --em-700: #047857;
  --em-600: #059669;
  --em-500: #10b981;
  --em-400: #34d399;
  --em-300: #6ee7b7;

  /* Navy */
  --nv-950: #070d1a;
  --nv-900: #0d1525;
  --nv-800: #111e33;
  --nv-700: #1a2a42;
  --nv-600: #243553;
  --nv-500: #334155;
  --nv-400: #475569;

  /* Gold */
  --gd-800: #78350f;
  --gd-700: #92400e;
  --gd-600: #b45309;
  --gd-500: #d97706;
  --gd-400: #f59e0b;
  --gd-300: #fbbf24;

  /* Warm Gray */
  --wg-900: #1c1917;
  --wg-700: #44403c;
  --wg-500: #78716c;
  --wg-400: #a8a29e;
  --wg-300: #d6d3d1;
  --wg-100: #f5f5f4;

  /* Semantic */
  --bg:         var(--nv-950);
  --bg-2:       var(--nv-900);
  --bg-3:       var(--nv-800);
  --bg-card:    var(--nv-800);
  --border:     rgba(255,255,255,0.07);
  --border-md:  rgba(255,255,255,0.11);
  --text-1:     #f1f5f9;
  --text-2:     #94a3b8;
  --text-3:     #64748b;

  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --radius-xl: 24px;

  --font: 'Vazirmatn', 'IBM Plex Sans Arabic', sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --transition: 0.28s var(--ease);
}

/* ===== LIGHT MODE ===== */
html.light {
  --bg:        #f8fafc;
  --bg-2:      #f1f5f9;
  --bg-3:      #e8eef5;
  --bg-card:   #ffffff;
  --border:    rgba(15,23,42,0.08);
  --border-md: rgba(15,23,42,0.13);
  --text-1:    #0f172a;
  --text-2:    #334155;
  --text-3:    #64748b;
}
html.light .hero-grid-overlay {
  background-image:
    linear-gradient(rgba(15,23,42,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,23,42,0.04) 1px, transparent 1px);
}
html.light .hero-gradient-radial {
  background: radial-gradient(ellipse, rgba(4,120,87,0.07) 0%, rgba(5,150,105,0.02) 40%, transparent 70%);
}
html.light .risk-panel {
  background: #ffffff;
  border-color: rgba(15,23,42,0.1);
  box-shadow: 0 8px 40px rgba(15,23,42,0.1), 0 0 0 1px rgba(15,23,42,0.05);
}
html.light .rp-header { border-color: rgba(15,23,42,0.08); background: #f8fafc; }
html.light .rp-kpis { background: #f1f5f9; border-color: rgba(15,23,42,0.08); }
html.light .rp-dist { background: #f8fafc; border-color: rgba(15,23,42,0.08); }
html.light .rp-compliance { background: rgba(5,150,105,0.04); border-color: rgba(5,150,105,0.15); }
html.light .rp-gauge-track { background: rgba(15,23,42,0.08); }
html.light .icon-dark { display: none; }
html.light .icon-light { display: block; }
html:not(.light) .icon-dark { display: block; }
html:not(.light) .icon-light { display: none; }
html.light .header.scrolled { background: rgba(248,250,252,0.94); border-color: rgba(15,23,42,0.1); }
html.light .lang-switcher { background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.1); }
html.light .theme-toggle { background: rgba(15,23,42,0.05); border-color: rgba(15,23,42,0.1); color: var(--text-2); }
html.light .logo-text { color: var(--text-1); }
html.light .nav-link { color: var(--text-2); }
html.light .nav-link:hover { background: rgba(15,23,42,0.05); color: var(--text-1); }
html.light .hero-badge { background: rgba(5,150,105,0.07); border-color: rgba(5,150,105,0.2); }
html.light .hero-trust { background: rgba(15,23,42,0.03); border-color: rgba(15,23,42,0.08); }
html.light .btn-outline { border-color: rgba(15,23,42,0.2); color: var(--text-1); }
html.light .btn-outline:hover { background: rgba(15,23,42,0.05); }

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  line-height: 1.7;
  overflow-x: hidden;
  direction: rtl;
  transition: background 0.3s ease, color 0.3s ease;
}
body[lang="en"] { direction: ltr; font-family: 'IBM Plex Sans', 'Segoe UI', sans-serif; }
body[lang="ar"] { direction: rtl; font-family: 'IBM Plex Sans Arabic', 'Vazirmatn', sans-serif; }
body[lang="fa"] { direction: rtl; font-family: 'vazir', sans-serif; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
a { text-decoration: none; color: inherit; transition: color var(--transition); }
img { max-width: 100%; display: block; }

/* ===== ANIMATIONS ===== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes orbPulse {
  0%, 100% { transform: scale(1); opacity: 0.6; }
  50%       { transform: scale(1.15); opacity: 1; }
}
@keyframes lineDown {
  from { transform: scaleY(0); }
  to   { transform: scaleY(1); }
}
@keyframes ringPulse {
  0%   { transform: scale(1); opacity: 1; }
  100% { transform: scale(2.5); opacity: 0; }
}
@keyframes barFill {
  from { width: 0; }
  to   { width: var(--w); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}
@keyframes shimmerGold {
  0%   { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.animate-fade-up { animation: fadeUp 0.7s var(--ease) both; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.22s; }
.delay-3 { animation-delay: 0.38s; }
.delay-4 { animation-delay: 0.54s; }

.animate-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.animate-on-scroll.visible { opacity: 1; transform: none; }

/* ===== TYPOGRAPHY ===== */
.section-title {
  font-size: clamp(26px, 3.5vw, 38px);
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}
.section-desc {
  font-size: 15.5px;
  color: var(--text-2);
  line-height: 1.85;
  max-width: 600px;
}
.section-header {
  text-align: center;
  margin-bottom: 64px;
}
.section-header .section-desc { margin: 0 auto; }

.label-tag {
  display: inline-block;
  padding: 5px 16px;
  border-radius: 100px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 14px;
  background: rgba(5,150,105,0.1);
  color: var(--em-400);
  border: 1px solid rgba(5,150,105,0.2);
}
.label-tag-gold {
  background: rgba(217,119,6,0.1);
  color: var(--gd-300);
  border-color: rgba(217,119,6,0.2);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-emerald {
  background: linear-gradient(135deg, var(--em-600), var(--em-800));
  color: #fff;
  box-shadow: 0 4px 20px rgba(5,150,105,0.3);
}
.btn-emerald:hover {
  background: linear-gradient(135deg, var(--em-500), var(--em-700));
  box-shadow: 0 6px 28px rgba(5,150,105,0.45);
  transform: translateY(-2px);
}
.btn-outline {
  background: transparent;
  color: var(--text-1);
  border: 1.5px solid rgba(255,255,255,0.16);
}
.btn-outline:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.04);
  transform: translateY(-2px);
}
.btn-full { width: 100%; justify-content: center; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--em-400);
  font-size: 14px;
  font-weight: 600;
  transition: gap var(--transition);
}
.link-arrow:hover { gap: 10px; }
[dir="rtl"] .link-arrow span { display: inline-block; transform: scaleX(-1); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  padding: 18px 0;
  transition: all var(--transition);
}
.header.scrolled {
  background: rgba(7,13,26,0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.logo { display: flex; align-items: center; gap: 10px; }
.logo-mark { flex-shrink: 0; }
.logo-mark svg { display: block; width: 36px; height: 36px; }
.logo-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--text-1);
  letter-spacing: -0.02em;
}
.nav { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-2);
  transition: all var(--transition);
}
.nav-link:hover { color: var(--text-1); background: rgba(255,255,255,0.05); }
.btn-nav {
  margin-right: 8px;
  padding: 9px 20px;
  background: linear-gradient(135deg, var(--em-600), var(--em-800));
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(5,150,105,0.25);
  transition: all var(--transition);
}
.btn-nav:hover {
  background: linear-gradient(135deg, var(--em-500), var(--em-700));
  box-shadow: 0 4px 18px rgba(5,150,105,0.4);
  transform: translateY(-1px);
}
[dir="ltr"] .btn-nav { margin-right: 0; margin-left: 8px; }

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

/* Language Switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 3px;
}
.lang-btn {
  padding: 5px 11px;
  border-radius: 100px;
  border: none;
  background: transparent;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition);
}
.lang-btn.active, .lang-btn:hover {
  background: var(--em-700);
  color: #fff;
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 100px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all var(--transition);
  flex-shrink: 0;
}
.theme-toggle:hover {
  background: rgba(255,255,255,0.09);
  color: var(--text-1);
  border-color: var(--border-md);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-1);
  border-radius: 2px;
  transition: all var(--transition);
}

/* ===== HERO ===== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 148px 0 100px;
}

/* 2-column hero layout */
.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  width: 100%;
}
[dir="rtl"] .hero-inner { }
[dir="ltr"] .hero-inner { }

.hero-text {
  text-align: start;
}
[dir="rtl"] .hero-text .hero-ctas { justify-content: flex-start; }
[dir="ltr"] .hero-text .hero-ctas { justify-content: flex-start; }
.hero-text .hero-subtitle { margin-left: 0; margin-right: 0; max-width: 100%; }
.hero-text .hero-trust { justify-content: flex-start; }

.hero-visual {
  display: flex;
  justify-content: center;
}

/* ===== RISK INTELLIGENCE PANEL ===== */
.risk-panel {
  background: var(--bg-card);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  overflow: hidden;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.35), 0 0 0 1px rgba(5,150,105,0.06);
  font-size: 13px;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.rp-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.02);
}
.rp-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--em-500);
  flex-shrink: 0;
  box-shadow: 0 0 6px rgba(5,150,105,0.7);
  animation: orbPulse 2s ease-in-out infinite;
}
.rp-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text-1);
  flex: 1;
}
.rp-period {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.rp-score-row {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--border);
}
.rp-score-label {
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.rp-score-value {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 10px;
}
.rp-score-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--em-400);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rp-score-max {
  font-size: 14px;
  color: var(--text-3);
  font-weight: 600;
}
.rp-score-grade {
  margin-right: auto;
  margin-left: 8px;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 100px;
  background: rgba(5,150,105,0.12);
  color: var(--em-400);
  border: 1px solid rgba(5,150,105,0.2);
}
[dir="ltr"] .rp-score-grade { margin-right: 8px; margin-left: auto; }
.rp-gauge { }
.rp-gauge-track {
  height: 6px;
  background: rgba(255,255,255,0.07);
  border-radius: 100px;
  overflow: hidden;
  margin-bottom: 4px;
}
.rp-gauge-fill {
  height: 100%;
  width: var(--gw);
  background: linear-gradient(90deg, var(--em-700), var(--em-400));
  border-radius: 100px;
  transition: width 1.2s cubic-bezier(0.4,0,0.2,1);
}
.rp-gauge-marks {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.rp-kpis {
  display: flex;
  align-items: center;
  padding: 12px 18px;
  background: rgba(255,255,255,0.02);
  border-bottom: 1px solid var(--border);
  gap: 0;
}
.rp-kpi { flex: 1; text-align: center; padding: 0 4px; }
.rp-kpi-div {
  width: 1px;
  height: 36px;
  background: var(--border);
  flex-shrink: 0;
}
.rp-kpi-label {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.rp-kpi-value {
  font-size: 17px;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.rp-kpi-unit {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-3);
  margin-right: 2px;
}
[dir="ltr"] .rp-kpi-unit { margin-right: 0; margin-left: 2px; }
.rp-kpi-trend {
  font-size: 10px;
  font-weight: 700;
  margin-top: 3px;
}
.rp-up { color: var(--em-400); }
.rp-down { color: var(--gd-300); }

.rp-dist {
  padding: 12px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(255,255,255,0.01);
}
.rp-dist-title {
  font-size: 10px;
  color: var(--text-3);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.rp-dist-bars { display: flex; flex-direction: column; gap: 7px; }
.rp-dist-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.rp-dist-label {
  width: 68px;
  font-size: 11px;
  color: var(--text-2);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rp-dist-bar {
  flex: 1;
  height: 5px;
  background: rgba(255,255,255,0.06);
  border-radius: 100px;
  overflow: hidden;
}
.rp-dist-fill {
  height: 100%;
  width: var(--dw);
  border-radius: 100px;
  transition: width 1.4s cubic-bezier(0.4,0,0.2,1);
}
.rp-fill-em { background: linear-gradient(90deg, var(--em-700), var(--em-400)); }
.rp-fill-gold { background: linear-gradient(90deg, var(--gd-600), var(--gd-300)); }
.rp-fill-muted { background: var(--nv-600); }
.rp-dist-pct {
  width: 26px;
  text-align: end;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  flex-shrink: 0;
}

.rp-compliance {
  padding: 10px 18px;
  background: rgba(5,150,105,0.03);
  border-top: 1px solid rgba(5,150,105,0.1);
}
.rp-comp-title {
  font-size: 10px;
  color: var(--em-400);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.rp-comp-items {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.rp-comp-item {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 100px;
  background: rgba(5,150,105,0.08);
  color: var(--em-300);
  border: 1px solid rgba(5,150,105,0.15);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black 20%, transparent 80%);
}
.hero-gradient-radial {
  position: absolute;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 700px;
  background: radial-gradient(ellipse, rgba(4,120,87,0.12) 0%, rgba(5,150,105,0.04) 40%, transparent 70%);
}
.hero-lines { position: absolute; inset: 0; }
.hero-svg-lines { width: 100%; height: 100%; }

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 20px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.18);
  border-radius: 100px;
  font-size: 12.5px;
  color: var(--em-300);
  margin-bottom: 28px;
  letter-spacing: 0.02em;
  font-weight: 600;
}
.badge-ring {
  width: 8px; height: 8px;
  background: var(--em-500);
  border-radius: 50%;
  flex-shrink: 0;
  position: relative;
}
.badge-ring::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: var(--em-500);
  opacity: 0.3;
  animation: ringPulse 2.5s ease-out infinite;
}
.hero-title {
  font-size: clamp(38px, 6vw, 66px);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: 24px;
  letter-spacing: -0.025em;
  color: var(--text-1);
}
.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--em-400) 0%, var(--gd-300) 50%, var(--em-300) 100%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmerGold 5s linear infinite;
}
.hero-subtitle {
  font-size: clamp(14px, 1.8vw, 17px);
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto 40px;
  line-height: 1.9;
}
.hero-ctas {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 56px;
}
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  padding: 16px 28px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--text-3);
}
.trust-item { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.trust-icon { width: 14px; height: 14px; color: var(--em-400); flex-shrink: 0; }
.trust-sep { color: var(--nv-600); font-size: 16px; }

.hero-scroll-cue {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--em-500), transparent);
  transform-origin: top;
  animation: lineDown 1.8s ease-in-out infinite;
}

/* ===== CHALLENGE ===== */
.challenge {
  padding: 112px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.challenge-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}
.challenge-content .label-tag { display: block; width: fit-content; }
.challenge-content .section-title { margin-top: 0; }
.challenge-content .section-desc { margin-bottom: 36px; }

.challenge-items { display: flex; flex-direction: column; gap: 20px; }
.challenge-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.challenge-item:hover {
  background: rgba(5,150,105,0.04);
  border-color: rgba(5,150,105,0.15);
}
.ci-icon {
  width: 36px; height: 36px;
  background: rgba(5,150,105,0.08);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--em-400);
  flex-shrink: 0;
}
.ci-icon svg { width: 17px; height: 17px; }
.challenge-item strong {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
}
.challenge-item p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

.stat-cards { display: flex; flex-direction: column; gap: 16px; }
.stat-card {
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.stat-card-primary {
  background: linear-gradient(135deg, rgba(5,150,105,0.1), rgba(4,120,87,0.06));
  border-color: rgba(5,150,105,0.2);
}
.stat-card-secondary {
  background: rgba(255,255,255,0.02);
}
.stat-card-accent {
  background: linear-gradient(135deg, rgba(217,119,6,0.08), rgba(180,83,9,0.04));
  border-color: rgba(217,119,6,0.18);
}
.sc-number {
  font-size: 36px;
  font-weight: 900;
  color: var(--text-1);
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}
.stat-card-primary .sc-number { color: var(--em-400); }
.stat-card-accent .sc-number { color: var(--gd-300); }
.sc-label { font-size: 13px; color: var(--text-2); margin-bottom: 12px; }
.sc-bar {
  height: 4px;
  background: rgba(255,255,255,0.06);
  border-radius: 4px;
  overflow: hidden;
}
.sc-bar-fill {
  height: 100%;
  width: var(--w);
  background: linear-gradient(90deg, var(--em-700), var(--em-500));
  border-radius: 4px;
  transition: width 1.2s ease;
}
.challenge-cta-box {
  padding: 20px 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.challenge-cta-box p {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.6;
  margin-bottom: 12px;
}

/* ===== CAPABILITIES ===== */
.capabilities {
  padding: 112px 0;
  background: var(--bg);
}
.caps-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.cap-card {
  padding: 40px;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.cap-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.cap-card-takaful {
  background: linear-gradient(160deg, rgba(4,120,87,0.07) 0%, var(--bg-3) 60%);
}
.cap-card-takaful::before { background: linear-gradient(90deg, var(--em-700), var(--em-500)); }
.cap-card-takaful:hover { border-color: rgba(5,150,105,0.25); box-shadow: 0 0 60px rgba(5,150,105,0.1); transform: translateY(-4px); }
.cap-card-micro {
  background: linear-gradient(160deg, rgba(180,83,9,0.07) 0%, var(--bg-3) 60%);
}
.cap-card-micro::before { background: linear-gradient(90deg, var(--gd-700), var(--gd-400)); }
.cap-card-micro:hover { border-color: rgba(217,119,6,0.25); box-shadow: 0 0 60px rgba(217,119,6,0.08); transform: translateY(-4px); }

.cap-header { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.cap-icon {
  width: 56px; height: 56px;
  border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cap-icon svg { width: 26px; height: 26px; }
.cap-icon-emerald { background: rgba(5,150,105,0.12); color: var(--em-400); border: 1px solid rgba(5,150,105,0.18); }
.cap-icon-gold { background: rgba(217,119,6,0.12); color: var(--gd-300); border: 1px solid rgba(217,119,6,0.18); }
.cap-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-3); margin-bottom: 2px; }
.cap-title { font-size: 22px; font-weight: 800; color: var(--text-1); }
.cap-desc { font-size: 14px; color: var(--text-2); line-height: 1.8; margin-bottom: 24px; }
.cap-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}
.cap-features li {
  font-size: 13.5px;
  color: var(--text-2);
  padding-right: 20px;
  position: relative;
}
[dir="ltr"] .cap-features li { padding-right: 0; padding-left: 20px; }
.cap-features li::before {
  content: '';
  position: absolute;
  right: 0;
  top: 8px;
  width: 6px; height: 6px;
  background: var(--em-500);
  border-radius: 50%;
}
[dir="ltr"] .cap-features li::before { right: auto; left: 0; }
.cap-card-micro .cap-features li::before { background: var(--gd-400); }

.cap-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge-chip {
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  background: rgba(5,150,105,0.1);
  color: var(--em-400);
  border: 1px solid rgba(5,150,105,0.18);
}
.badge-chip-gold {
  background: rgba(217,119,6,0.1);
  color: var(--gd-300);
  border-color: rgba(217,119,6,0.18);
}

/* ===== ARCHITECTURE ===== */
.architecture {
  padding: 112px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.arch-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.arch-content .label-tag { display: block; width: fit-content; }
.arch-content .section-desc { margin-bottom: 36px; }
.arch-modules { display: flex; flex-direction: column; gap: 20px; }
.arch-module {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.am-icon {
  width: 40px; height: 40px;
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--em-400);
  flex-shrink: 0;
}
.am-icon svg { width: 18px; height: 18px; }
.arch-module h4 { font-size: 14.5px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.arch-module p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* Risk Diagram */
.risk-diagram {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto 28px;
}
.rd-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.rd-core {
  width: 88px; height: 88px;
  background: var(--bg-3);
  border: 1.5px solid rgba(5,150,105,0.3);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: 0 0 40px rgba(5,150,105,0.15);
  font-size: 10px;
  font-weight: 700;
  color: var(--em-400);
  text-align: center;
}
/* Ring */
.rd-center::after {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 180px; height: 180px;
  border-radius: 50%;
  border: 1px dashed rgba(5,150,105,0.18);
  pointer-events: none;
}
.risk-diagram::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 280px; height: 280px;
  border-radius: 50%;
  border: 1px dashed rgba(5,150,105,0.08);
  pointer-events: none;
}
.rd-nodes { position: absolute; inset: 0; }
.rd-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  transition: all var(--transition);
  width: 72px;
  text-align: center;
}
.rd-node:hover { border-color: rgba(5,150,105,0.3); color: var(--em-400); }
.rd-node svg { color: var(--em-500); }
.rd-node-1 { top:  2%; left: 50%; transform: translateX(-50%); }
.rd-node-2 { top: 18%; right: 2%; }
.rd-node-3 { bottom: 18%; right: 2%; }
.rd-node-4 { bottom: 2%; left: 50%; transform: translateX(-50%); }
.rd-node-5 { bottom: 18%; left: 2%; }
.rd-node-6 { top: 18%; left: 2%; }

.arch-labels {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
}
.al-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.al-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.al-dot-green { background: var(--em-500); box-shadow: 0 0 8px var(--em-500); }
.al-dot-gold  { background: var(--gd-400); box-shadow: 0 0 8px var(--gd-400); }
.al-dot-navy  { background: #60a5fa; box-shadow: 0 0 8px #60a5fa; }

/* ===== USE CASES ===== */
.usecases { padding: 112px 0; background: var(--bg); }
.uc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.uc-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
}
.uc-card:hover {
  border-color: var(--border-md);
  transform: translateY(-3px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}
.uc-icon {
  width: 48px; height: 48px;
  background: rgba(5,150,105,0.08);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--em-400);
  margin-bottom: 16px;
}
.uc-icon svg { width: 22px; height: 22px; }
.uc-card h4 { font-size: 15px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.uc-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; margin-bottom: 16px; }
.uc-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  background: rgba(255,255,255,0.04);
  color: var(--text-3);
  border: 1px solid var(--border);
  letter-spacing: 0.05em;
}

/* ===== MODULES ===== */
.modules {
  padding: 112px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.modules-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}
.mod-card {
  padding: 24px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.mod-card:hover {
  border-color: rgba(5,150,105,0.2);
  background: rgba(5,150,105,0.03);
  transform: translateY(-3px);
}
.mod-num {
  font-size: 11px;
  font-weight: 800;
  color: var(--em-700);
  letter-spacing: 0.06em;
  margin-bottom: 12px;
  font-variant-numeric: tabular-nums;
}
.mod-icon {
  width: 40px; height: 40px;
  background: rgba(5,150,105,0.07);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--em-500);
  margin-bottom: 12px;
}
.mod-icon svg { width: 18px; height: 18px; }
.mod-card h4 { font-size: 13px; font-weight: 700; color: var(--text-1); margin-bottom: 6px; line-height: 1.4; }
.mod-card p { font-size: 11.5px; color: var(--text-3); line-height: 1.5; }

/* ===== API SECTION ===== */
.api-section {
  padding: 112px 0;
  background: var(--bg);
}
.api-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 72px;
  align-items: center;
}
.api-content .label-tag { display: block; width: fit-content; }
.api-content .section-desc { margin-bottom: 36px; }
.api-steps { display: flex; flex-direction: column; gap: 0; margin-bottom: 32px; }
.api-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.api-step:last-child { border-bottom: none; }
.as-num {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--em-700), var(--em-800));
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.api-step strong { display: block; font-size: 14px; font-weight: 700; color: var(--text-1); margin-bottom: 3px; }
.api-step p { font-size: 13px; color: var(--text-2); line-height: 1.5; }

/* API Gate Card */
.api-gate-card {
  background: var(--bg-3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  padding: 32px;
  box-shadow: 0 0 60px rgba(5,150,105,0.06);
  animation: float 5s ease-in-out infinite;
}
.agc-header { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.agc-title { font-size: 14px; font-weight: 700; color: var(--text-1); }
.agc-sub { font-size: 12px; color: var(--em-400); font-weight: 600; margin-top: 2px; }
.agc-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 22px; }
.agc-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-2); }
.agc-item-red { color: var(--text-3); text-decoration: line-through; opacity: 0.7; }
.agc-dot { width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0; }
.agc-dot-green { background: var(--em-500); box-shadow: 0 0 6px var(--em-500); }
.agc-dot-red { background: #ef4444; }
.agc-badge {
  background: rgba(5,150,105,0.08);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: var(--radius-sm);
  padding: 8px 14px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--em-400);
  text-align: center;
  letter-spacing: 0.03em;
}

/* ===== SECURITY ===== */
.security {
  padding: 112px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.sec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}
.sec-card {
  padding: 28px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}
.sec-card:hover { border-color: var(--border-md); transform: translateY(-3px); }
.sec-icon {
  width: 52px; height: 52px;
  background: rgba(5,150,105,0.07);
  border: 1px solid rgba(5,150,105,0.12);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--em-400);
  margin-bottom: 18px;
}
.sec-icon svg { width: 22px; height: 22px; }
.sec-card h4 { font-size: 14.5px; font-weight: 700; color: var(--text-1); margin-bottom: 8px; }
.sec-card p { font-size: 13px; color: var(--text-2); line-height: 1.6; }

.compliance-bar {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px 28px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  flex-wrap: wrap;
}
.cb-label { font-size: 12.5px; font-weight: 700; color: var(--text-3); white-space: nowrap; }
.cb-items { display: flex; gap: 12px; flex-wrap: wrap; }
.cb-item {
  padding: 5px 14px;
  background: rgba(5,150,105,0.07);
  border: 1px solid rgba(5,150,105,0.15);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 700;
  color: var(--em-400);
}

/* ===== PARTNERSHIP / CONTACT ===== */
.partnership {
  padding: 112px 0;
  background: var(--bg);
  border-top: 1px solid var(--border);
}
.partnership-inner {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 72px;
  align-items: start;
}
.part-content .label-tag { display: block; width: fit-content; }
.part-content .section-desc { margin-bottom: 32px; }
.part-contacts { display: flex; flex-direction: column; gap: 14px; margin-bottom: 24px; }
.part-contact {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.part-contact:hover {
  border-color: rgba(5,150,105,0.2);
  background: rgba(5,150,105,0.04);
}
.pc-icon {
  width: 44px; height: 44px;
  background: rgba(5,150,105,0.09);
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--em-400);
  flex-shrink: 0;
}
.pc-icon svg { width: 18px; height: 18px; }
.pc-label { display: block; font-size: 11.5px; color: var(--text-3); margin-bottom: 2px; }
.pc-value { font-size: 14px; font-weight: 700; color: var(--text-1); }
.part-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-3);
  line-height: 1.6;
}
.part-note svg { color: var(--gd-400); flex-shrink: 0; margin-top: 2px; }

/* FORM */
.part-form-wrap {
  background: var(--bg-3);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.part-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg { display: flex; flex-direction: column; gap: 7px; }
.fg label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.fg input, .fg select, .fg textarea {
  background: var(--bg-2);
  border: 1px solid var(--border-md);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-family: var(--font);
  font-size: 13.5px;
  color: var(--text-1);
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition);
  resize: none;
  width: 100%;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  border-color: var(--em-600);
  box-shadow: 0 0 0 3px rgba(5,150,105,0.12);
}
.fg input::placeholder, .fg textarea::placeholder { color: var(--text-3); }
.fg select option { background: var(--bg-3); }

.form-success {
  display: none;
  text-align: center;
  padding: 48px 20px;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}
.form-success.show { display: flex; }
.fs-icon { margin-bottom: 8px; }
.form-success h3 { font-size: 20px; font-weight: 800; color: var(--text-1); }
.form-success p { font-size: 14px; color: var(--text-2); }

/* ===== FOOTER ===== */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 48px;
  margin-bottom: 52px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 220px; }
.footer-tag { font-size: 13px; color: var(--text-2); margin-top: 14px; margin-bottom: 6px; line-height: 1.5; }
.footer-reg { font-size: 12px; color: var(--text-3); line-height: 1.5; }
.footer-nav { display: flex; gap: 60px; flex-wrap: wrap; }
.fn-col { display: flex; flex-direction: column; gap: 12px; }
.fn-col-contact { flex: 0 1 340px; max-width: 100%; }
.fn-col h5 { font-size: 12.5px; font-weight: 800; color: var(--text-1); letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 4px; }
.fn-col a { font-size: 13px; color: var(--text-3); transition: color var(--transition); }
.fn-col a:hover { color: var(--em-400); }
.fn-col-contact p { font-size: 13px; color: var(--text-3); line-height: 1.8; margin: 0; }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: 12px; color: var(--text-3); }
.footer-lang { display: flex; gap: 4px; }
.fl-btn {
  padding: 5px 12px;
  border-radius: 100px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-3);
  font-family: var(--font);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.fl-btn.active, .fl-btn:hover {
  background: rgba(5,150,105,0.1);
  color: var(--em-400);
  border-color: rgba(5,150,105,0.2);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
  .modules-grid { grid-template-columns: repeat(4, 1fr); }
  .sec-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-inner { gap: 40px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; gap: 48px; }
  .hero-visual { display: none; }
  .hero-text { text-align: center; }
  .hero-text .hero-ctas { justify-content: center; }
  .hero-text .hero-trust { justify-content: center; }
  .challenge-grid { grid-template-columns: 1fr; gap: 48px; }
  .caps-grid { grid-template-columns: 1fr; }
  .arch-inner { grid-template-columns: 1fr; gap: 48px; }
  .api-inner { grid-template-columns: 1fr; gap: 48px; }
  .partnership-inner { grid-template-columns: 1fr; gap: 48px; }
  .uc-grid { grid-template-columns: repeat(2, 1fr); }
  .modules-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .nav { display: none; }
  .nav.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 68px; left: 0; right: 0;
    background: rgba(7,13,26,0.97);
    backdrop-filter: blur(24px);
    padding: 20px;
    border-bottom: 1px solid var(--border);
    z-index: 998;
    gap: 4px;
  }
  html.light .nav.open { background: rgba(248,250,252,0.97); }
  .nav-link { padding: 12px 14px; font-size: 15px; }
  .btn-nav { margin-right: 0; margin-top: 8px; }
  .menu-toggle { display: flex; }
  .uc-grid { grid-template-columns: 1fr; }
  .modules-grid { grid-template-columns: repeat(2, 1fr); }
  .sec-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-nav { gap: 32px; }
  .hero-trust { gap: 12px; }
  .trust-sep { display: none; }
}
@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .hero-ctas { flex-direction: column; align-items: center; }
  .modules-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
}

@font-face {
  font-family: vazir;
  src: url('./fonts/Vazir.ttf');
  
}
