:root {
  --bg: #f8fafc;
  --white: #ffffff;
  --dark: #071225;
  --dark-2: #0c1830;
  --navy: #0f2347;
  --blue: #1d4ed8;
  --blue-2: #2563eb;
  --gold: #c8a96b;
  --gold-light: #e7d3a3;
  --text: #0f172a;
  --muted: #64748b;
  --border: rgba(15, 23, 42, 0.08);
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.10);
  --shadow-soft: 0 10px 30px rgba(15, 23, 42, 0.08);
  --radius: 22px;
  --container: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Tajawal', 'Inter', sans-serif;
  line-height: 1.75;
}

body.en {
  font-family: 'Inter', 'Tajawal', sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(7, 18, 37, 0.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.navbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
}

.brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  color: var(--dark);
  font-weight: 800;
  font-size: 1.15rem;
  box-shadow: 0 10px 24px rgba(200, 169, 107, 0.28);
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-text strong {
  font-size: 1.1rem;
}

.brand-text span {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.72);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-links a {
  color: rgba(255,255,255,0.84);
  font-weight: 600;
  transition: 0.2s ease;
}

.nav-links a:hover {
  color: #fff;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lang-btn,
.menu-btn,
.header-cta {
  border-radius: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
}

.lang-btn,
.menu-btn {
  border: 1px solid rgba(255,255,255,0.14);
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.header-cta {
  background: #fff;
  color: var(--dark);
  font-weight: 800;
}

.menu-btn {
  display: none;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.16), transparent 22%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.30), transparent 22%),
    linear-gradient(135deg, #071225 0%, #0d1b36 40%, #17346e 75%, #1d4ed8 100%);
  color: #fff;
  padding: 88px 0 96px;
}

.hero-bg-shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(60px);
  opacity: 0.35;
  pointer-events: none;
}

.hero-bg-shape-1 {
  width: 240px;
  height: 240px;
  top: -60px;
  inset-inline-start: -40px;
  background: rgba(200, 169, 107, 0.35);
}

.hero-bg-shape-2 {
  width: 280px;
  height: 280px;
  bottom: -80px;
  inset-inline-end: -60px;
  background: rgba(59, 130, 246, 0.32);
}

.hero-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 34px;
  align-items: center;
}

.hero-copy {
  max-width: 690px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(2.3rem, 4vw, 4.35rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
}

.hero-copy p {
  margin: 0 0 28px;
  color: rgba(255,255,255,0.84);
  font-size: 1.08rem;
  max-width: 640px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

.btn {
  min-height: 52px;
  border-radius: 16px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: linear-gradient(135deg, #ffffff, #eef2ff);
  color: var(--dark);
  box-shadow: 0 10px 24px rgba(255,255,255,0.18);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.22);
}

.btn-dark-text {
  color: var(--dark);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.metric-card {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
  border-radius: 18px;
  padding: 18px;
}

.metric-card strong {
  display: block;
  font-size: 1.4rem;
  margin-bottom: 3px;
}

.metric-card span {
  color: rgba(255,255,255,0.74);
  font-size: 0.95rem;
}

.hero-visual {
  position: relative;
  min-height: 480px;
}

.glass-card {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.16);
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 60px rgba(0,0,0,0.18);
  border-radius: 28px;
}

.main-glass {
  position: absolute;
  inset: 30px 0 40px 40px;
  padding: 28px;
}

.glass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.mini-badge {
  background: rgba(255,255,255,0.16);
  color: #fff;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  font-weight: 700;
}

.mini-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #fff0c9);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.08);
}

.main-glass h3 {
  margin: 0 0 16px;
  font-size: 1.5rem;
}

.steps-list {
  margin: 0;
  padding-inline-start: 22px;
  color: rgba(255,255,255,0.9);
}

.steps-list li {
  margin-bottom: 10px;
}

.floating-card {
  position: absolute;
  background: #fff;
  color: var(--dark);
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
  min-width: 180px;
}

.floating-card strong {
  display: block;
  margin-bottom: 4px;
}

.floating-card span {
  color: var(--muted);
  font-size: 0.92rem;
}

.floating-card-a {
  top: 0;
  inset-inline-end: 12px;
}

.floating-card-b {
  bottom: 0;
  inset-inline-start: 0;
}

/* Trust strip */
.trust-strip {
  background: #fff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.trust-items {
  min-height: 74px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: center;
  text-align: center;
}

.trust-items span {
  color: #475569;
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.9;
}

/* Sections */
.section {
  padding: 88px 0;
}

.section-soft {
  background:
    linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 34px;
}

.section-kicker {
  display: inline-block;
  color: var(--gold);
  font-weight: 800;
  margin-bottom: 8px;
}

.section-head h2 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: clamp(1.8rem, 3vw, 2.9rem);
  line-height: 1.2;
}

.section-desc {
  margin: 0;
  color: var(--muted);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

.premium-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.premium-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}

.service-card,
.feature-card,
.category-card {
  padding: 24px;
}

.icon-wrap,
.feature-number {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29,78,216,0.12), rgba(200,169,107,0.16));
  color: var(--dark);
  font-weight: 800;
  margin-bottom: 16px;
}

.service-card h3,
.feature-card h3,
.category-card h3 {
  margin: 0 0 10px;
  color: var(--dark);
  font-size: 1.16rem;
}

.service-card p,
.feature-card p {
  margin: 0;
  color: var(--muted);
}

.category-card {
  min-height: 150px;
  display: flex;
  align-items: center;
}

/* Rich cards additions */
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.card-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 0.82rem;
  font-weight: 700;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.icon-blue {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.16), rgba(96, 165, 250, 0.16));
}

.icon-gold {
  background: linear-gradient(135deg, rgba(200, 169, 107, 0.22), rgba(231, 211, 163, 0.26));
}

.icon-dark {
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.12), rgba(51, 65, 85, 0.12));
}

.service-card-rich {
  position: relative;
  overflow: hidden;
}

.service-card-rich::after {
  content: "";
  position: absolute;
  inset-inline: 24px;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), var(--blue-2));
  opacity: 0.9;
}

.card-link {
  display: inline-flex;
  margin-top: 16px;
  font-weight: 800;
  color: var(--blue-2);
}

.category-card-rich {
  position: relative;
  min-height: 170px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-icon {
  width: 52px;
  height: 52px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(29, 78, 216, 0.10), rgba(200, 169, 107, 0.16));
  color: var(--dark);
  font-size: 1.2rem;
  font-weight: 800;
  margin-bottom: 18px;
}

.category-card-rich h3 {
  margin: 0;
  line-height: 1.5;
}

.feature-card-rich {
  border-top: 4px solid rgba(29, 78, 216, 0.10);
}

.feature-card-rich:nth-child(2) {
  border-top-color: rgba(200, 169, 107, 0.35);
}

.feature-card-rich:nth-child(3) {
  border-top-color: rgba(15, 23, 42, 0.18);
}

.feature-card-rich p {
  margin-top: 10px;
}

/* CTA */
.cta-banner {
  background:
    radial-gradient(circle at top left, rgba(200, 169, 107, 0.18), transparent 28%),
    linear-gradient(135deg, #071225 0%, #0f2347 60%, #17346e 100%);
  color: #fff;
  border-radius: 30px;
  padding: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow);
}

.cta-copy h2 {
  margin: 0 0 8px;
}

.cta-copy p {
  margin: 0;
  color: rgba(255,255,255,0.8);
}

/* Footer */
.site-footer {
  background: #fff;
  border-top: 1px solid rgba(15,23,42,0.06);
  padding: 28px 0;
}

.footer-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-content strong {
  display: block;
  margin-bottom: 4px;
}

.footer-content p,
.footer-note {
  margin: 0;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 1150px) {
  .hero-layout,
  .grid-3,
  .grid-4,
  .trust-items {
    grid-template-columns: 1fr 1fr;
  }

  .hero-visual {
    min-height: 420px;
  }

  .trust-items span:last-child {
    display: none;
  }
}

@media (max-width: 860px) {
  .nav-links {
    position: absolute;
    top: 82px;
    inset-inline: 16px;
    background: #0f1d3a;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px;
    padding: 16px;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .header-cta {
    display: none;
  }

  .hero-layout,
  .grid-3,
  .grid-4,
  .hero-metrics,
  .trust-items,
  .cta-banner {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 56px 0 70px;
  }

  .hero-visual {
    min-height: auto;
  }

  .main-glass {
    position: relative;
    inset: auto;
  }

  .floating-card {
    position: relative;
    inset: auto;
    margin-top: 14px;
  }

  .section {
    padding: 64px 0;
  }

  .cta-banner {
    display: grid;
  }

  .category-card-rich {
    min-height: 150px;
  }
}

html[dir="ltr"] .steps-list {
  padding-left: 22px;
  padding-right: 0;
}