:root {
  --bg: #050b10;
  --bg-soft: #0b171c;
  --ink: #f6fbfa;
  --muted: #b7c6c8;
  --line: rgba(255, 255, 255, 0.12);
  --brand: #0e6f68;
  --brand-2: #145a72;
  --brand-3: #1f8f84;
  --accent: #d3a24f;
  --accent-bright: #f2c76d;
  --accent-soft: rgba(211, 162, 79, 0.14);
  --card: rgba(255, 255, 255, 0.075);
  --radius: 18px;
  --container: 1180px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.26);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  position: relative;
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Inter", sans-serif;
  background:
    radial-gradient(circle at top right, rgba(13, 111, 104, 0.2), transparent 28%),
    radial-gradient(circle at bottom left, rgba(211, 162, 79, 0.16), transparent 30%),
    linear-gradient(135deg, #0c1b21 0%, #091219 52%, var(--bg) 100%);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: clip;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

::selection { background: rgba(124, 229, 217, 0.28); color: #fff; }

[dir="rtl"] body { font-family: "IBM Plex Sans Arabic", "Inter", sans-serif; }
[dir="ltr"] body { font-family: "Inter", "IBM Plex Sans Arabic", sans-serif; }

a { color: inherit; text-decoration: none; }
p { line-height: 1.85; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(18px);
  background: rgba(7, 14, 18, 0.84);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.16);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d6f68, #1d8d84);
  box-shadow: 0 14px 28px rgba(13, 111, 104, 0.32);
}

.brand-text span { color: #7ce5d9; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #edf5f4;
  font-weight: 800;
  font-size: 0.94rem;
  flex-wrap: wrap;
}

.nav-links a {
  position: relative;
  padding: 8px 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand-3), var(--accent-bright));
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover { color: #9fe7df; }
.nav-links a:hover::after { transform: scaleX(1); }

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

.lang-btn {
  min-width: 42px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: #edf5f4;
  font-weight: 900;
  cursor: pointer;
}

.lang-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, #0d6f68, #1d8d84);
}

.btn,
.btn-outline,
.btn-soft,
.btn-accent {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 900;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn {
  color: #fff;
  border: 1px solid transparent;
  background: linear-gradient(135deg, #0d6f68, #1d8d84);
  box-shadow: 0 14px 30px rgba(13, 111, 104, 0.3);
}

.btn-outline {
  color: #f7fbfa;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
}

.btn-soft {
  color: #9fe7df;
  border: 1px solid rgba(124, 229, 217, 0.24);
  background: rgba(13, 111, 104, 0.16);
}

.btn-accent {
  color: #171006;
  border: 1px solid rgba(255, 242, 204, 0.5);
  background: linear-gradient(135deg, #f1d394, var(--accent));
  box-shadow: 0 14px 30px rgba(211, 162, 79, 0.2);
}

.btn:hover,
.btn-outline:hover,
.btn-soft:hover,
.btn-accent:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(13, 111, 104, 0.24);
}

main { padding: 34px 0 54px; }

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 58px);
  background:
    linear-gradient(130deg, rgba(8, 21, 24, 0.9), rgba(8, 17, 26, 0.94)),
    radial-gradient(circle at top right, rgba(13, 111, 104, 0.22), transparent 30%),
    radial-gradient(circle at bottom left, rgba(211, 162, 79, 0.16), transparent 32%);
  color: #f7fbfa;
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.28);
}

.hero::before {
  content: "";
  position: absolute;
  inset-inline-end: -100px;
  top: -140px;
  width: 420px;
  height: 420px;
  border: 1px solid rgba(124, 229, 217, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 48px rgba(124, 229, 217, 0.025),
    0 0 0 96px rgba(211, 162, 79, 0.018);
  pointer-events: none;
}

.hero::after {
  content: "";
  position: absolute;
  inset-inline-start: 5%;
  bottom: -80px;
  width: 340px;
  height: 180px;
  background: radial-gradient(circle, rgba(211, 162, 79, 0.26), transparent 70%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 28px;
  align-items: center;
  z-index: 1;
}

.hero-grid > *,
.hero-copy,
.hero-panel,
.ecosystem-map,
.map-item { min-width: 0; }

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

.hero-panel {
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 22px;
  padding: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.045));
  backdrop-filter: blur(16px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.2);
  transform: perspective(1000px) rotateY(-1.5deg);
  transition: transform 0.35s ease, border-color 0.35s ease;
}

[dir="rtl"] .hero-panel { transform: perspective(1000px) rotateY(1.5deg); }
.hero:hover .hero-panel { transform: perspective(1000px) rotateY(0); border-color: rgba(124, 229, 217, 0.28); }

.hero-visual {
  position: relative;
  overflow: hidden;
  margin: 0 0 16px;
  border-radius: 18px;
  border: 1px solid rgba(124, 229, 217, 0.22);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.24);
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 54%, rgba(5, 11, 16, 0.28)),
    radial-gradient(circle at top right, rgba(124, 229, 217, 0.16), transparent 34%);
  pointer-events: none;
}

.hero-visual img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.map-item {
  position: relative;
  min-height: 118px;
  border-radius: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.075);
  border: 1px solid rgba(255, 255, 255, 0.14);
  overflow: hidden;
  transition: transform 0.22s ease, border-color 0.22s ease, background 0.22s ease;
}

.map-item::after {
  content: "\f061";
  position: absolute;
  inset-inline-end: 14px;
  top: 14px;
  color: rgba(255, 255, 255, 0.36);
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  transition: transform 0.22s ease, color 0.22s ease;
}

[dir="rtl"] .map-item::after { content: "\f060"; }

.map-item:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 229, 217, 0.34);
  background: rgba(13, 111, 104, 0.2);
}

.map-item:hover::after { transform: translateX(3px); color: var(--accent-bright); }
[dir="rtl"] .map-item:hover::after { transform: translateX(-3px); }

.map-item i {
  color: #d8b26b;
  margin-bottom: 10px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 900;
  color: #fff8ea;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2.1rem, 5vw, 4.2rem);
  line-height: 1.18;
  margin: 18px 0 12px;
}

.hero h1 {
  max-width: 760px;
  color: transparent;
  background: linear-gradient(105deg, #fff 20%, #b8fff6 62%, #f2ce82 100%);
  background-clip: text;
  -webkit-background-clip: text;
  overflow-wrap: anywhere;
}

.hero .subtitle {
  color: #d8b26b;
  font-size: clamp(1.1rem, 2vw, 1.45rem);
  font-weight: 900;
  margin: 0 0 10px;
}

.hero p,
.page-hero p {
  color: rgba(255, 250, 242, 0.86);
  max-width: 860px;
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof i { color: #7ce5d9; }

.section {
  padding: 56px 0 0;
  scroll-margin-top: 100px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #7ce5d9;
  font-weight: 900;
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2.35rem);
}

.section-lead {
  margin: 0 0 20px;
  color: var(--muted);
  max-width: 820px;
}

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

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

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-4px);
  border-color: rgba(124, 229, 217, 0.34);
  box-shadow: 0 28px 58px rgba(0, 0, 0, 0.3);
}

.service-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 330px;
}

.service-card::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand-3), transparent);
  opacity: 0.82;
}

.service-card:nth-child(3)::before,
.service-card:nth-child(4)::before {
  background: linear-gradient(90deg, var(--accent-bright), transparent);
}

.service-card .hero-actions { margin-top: auto; }

.icon {
  width: 48px;
  height: 48px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #0d6f68, #1d8d84);
  box-shadow: 0 14px 28px rgba(13, 111, 104, 0.28);
}

.icon.gold {
  color: #21160a;
  background: linear-gradient(135deg, #e4c27b, var(--accent));
}

.card h3 {
  margin: 14px 0 10px;
  font-size: 1.2rem;
}

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

.badge {
  display: inline-block;
  margin-bottom: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  color: #9fe7df;
  background: rgba(13, 111, 104, 0.18);
  border: 1px solid rgba(124, 229, 217, 0.2);
}

.list {
  margin: 0;
  padding-inline-start: 20px;
  color: var(--muted);
  line-height: 1.9;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.check-item,
.audience-item,
.step {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(12px);
}

.check-item i,
.audience-item i {
  color: #7ce5d9;
  margin-top: 4px;
}

.steps {
  counter-reset: steps;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.step {
  position: relative;
  align-items: center;
  font-weight: 800;
  min-height: 112px;
  flex-direction: column;
}

.step::before {
  counter-increment: steps;
  content: counter(steps);
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.cta-band,
.page-hero {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: clamp(24px, 4vw, 42px);
  color: #fffaf2;
  background:
    radial-gradient(circle at top left, rgba(211, 162, 79, 0.2), transparent 32%),
    radial-gradient(circle at bottom right, rgba(13, 111, 104, 0.22), transparent 32%),
    linear-gradient(135deg, #10212b, #0b151c);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 26px 62px rgba(0, 0, 0, 0.28);
}

.cta-band::after {
  content: "";
  position: absolute;
  inset-inline-end: -70px;
  bottom: -110px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(124, 229, 217, 0.18), transparent 68%);
  pointer-events: none;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: rgba(3, 5, 20, 0.78);
  padding: 34px 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 18px;
}

.footer-col h4 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.footer-col a,
.footer-col p {
  display: block;
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-col a:hover { color: var(--brand); }

.social-links {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.social-links a {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
}

.footer-bottom {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
}

.notice {
  border: 1px solid rgba(211, 162, 79, 0.35);
  background: var(--accent-soft);
  border-radius: 16px;
  padding: 12px 14px;
  color: #ead2a2;
  font-size: 0.92rem;
}

@media (max-width: 1020px) {
  .nav {
    flex-wrap: wrap;
    padding: 12px 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }

  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { flex: 0 0 auto; }

  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-panel,
  [dir="rtl"] .hero-panel { transform: none; }

  .grid-4,
  .grid-3,
  .grid-2,
  .check-grid,
  .footer-grid,
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .grid-4,
  .grid-3,
  .grid-2,
  .check-grid,
  .footer-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .step { min-height: 0; flex-direction: row; }
}

@media (max-width: 640px) {
  .container { width: min(calc(100% - 24px), var(--container)); }
  .brand-text { display: none; }
  .nav-links { gap: 10px; font-size: 0.88rem; }
  .nav-actions { flex-wrap: wrap; }
  main { padding-top: 18px; }
  .hero,
  .page-hero,
  .cta-band,
  .card { border-radius: 16px; }
  .hero { padding: 22px; }
  .hero h1 { font-size: clamp(1.9rem, 10vw, 2.55rem); }
  .hero-panel { padding: 14px; }
  .hero-visual { margin-bottom: 12px; }
  .ecosystem-map { grid-template-columns: 1fr; }
  .map-item { min-height: 104px; }
  .btn,
  .btn-outline,
  .btn-soft,
  .btn-accent { width: 100%; }
  .hero-proof { gap: 10px; }
  .hero-proof > span { width: 100%; }
}
