/* ══ FUTURE GATES — SHARED DESIGN SYSTEM ══ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700&family=IBM+Plex+Sans+Arabic:wght@300;400;500;600;700&display=swap');

:root {
  --bg:      #060c16;
  --bg2:     #0a1220;
  --bg3:     #0e1829;
  --surface: rgba(255,255,255,0.04);
  --surface2:rgba(255,255,255,0.07);
  --border:  rgba(255,255,255,0.08);
  --border2: rgba(26,127,224,0.3);
  --blue:    #1a7fe0;
  --blue2:   #3d9aff;
  --cyan:    #00c8ff;
  --green:   #00c864;
  --text:    #e8edf5;
  --text2:   #8fa3bc;
  --text3:   #4a6280;
  --r:       16px;
  --r-sm:    10px;
  --font-en: 'Space Grotesk', sans-serif;
  --font-ar: 'IBM Plex Sans Arabic', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--font-ar); line-height: 1.65; overflow-x: hidden; }
html[lang="en"] body { font-family: var(--font-en); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg2); }
::-webkit-scrollbar-thumb { background: var(--blue); border-radius: 3px; }

/* ══ NAV ══ */
nav#site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 4%;
  background: rgba(6,12,22,0.92);
  backdrop-filter: blur(24px) saturate(1.5);
  border-bottom: 1px solid var(--border);
  transition: background .3s;
}
nav#site-nav.scrolled { background: rgba(6,12,22,0.98); }
.nav-logo { display: flex; align-items: center; gap: 11px; text-decoration: none; flex-shrink: 0; }
.logo-mark { width: 34px; height: 34px; }
.logo-words { display: flex; flex-direction: column; line-height: 1.1; }
.logo-words .lw-en { font-family: var(--font-en); font-weight: 700; font-size: 14px; letter-spacing: .12em; color: var(--text); }
.logo-words .lw-ar { font-size: 9.5px; color: var(--text2); font-weight: 400; }

.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; }
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  display: flex; align-items: center; gap: 4px;
  padding: 6px 13px; border-radius: 8px;
  font-size: 13.5px; font-weight: 500; color: var(--text2);
  transition: all .2s; white-space: nowrap;
}
.nav-menu > li > a:hover, .nav-menu > li > a.active { color: var(--text); background: var(--surface); }
.nav-menu > li > a .caret { font-size: 10px; opacity: .6; transition: transform .2s; }
.nav-menu > li:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.nav-dropdown {
  position: absolute; top: calc(100% + 8px);
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--r-sm); min-width: 240px;
  padding: 6px; opacity: 0; pointer-events: none;
  transform: translateY(-8px); transition: all .2s;
  box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
html[dir="rtl"] .nav-dropdown { right: 0; left: auto; }
html[dir="ltr"] .nav-dropdown { left: 0; right: auto; }
.nav-menu > li:hover .nav-dropdown { opacity: 1; pointer-events: all; transform: translateY(0); }
.nav-dropdown a {
  display: block; padding: 9px 14px; border-radius: 7px;
  font-size: 13px; color: var(--text2); transition: all .15s;
}
.nav-dropdown a:hover { color: var(--text); background: var(--surface); }
.nav-dropdown a span { display: block; font-size: 11px; color: var(--text3); margin-top: 1px; }

.nav-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.btn-lang {
  background: var(--surface); border: 1px solid var(--border); color: var(--text2);
  padding: 5px 12px; border-radius: 20px; cursor: pointer; font-size: 12.5px;
  font-family: var(--font-en); font-weight: 600; transition: all .2s;
}
.btn-lang:hover { border-color: var(--blue); color: var(--blue); }
.btn-cta-nav {
  background: var(--blue); color: #fff; padding: 8px 18px; border-radius: 8px;
  font-size: 13px; font-weight: 700; transition: all .2s; white-space: nowrap;
}
.btn-cta-nav:hover { background: var(--blue2); transform: translateY(-1px); }

/* ── HAMBURGER BUTTON ── */
.nav-burger {
  display: none; width: 38px; height: 38px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 9px; cursor: pointer;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 18px; height: 2px;
  background: var(--text2); border-radius: 2px; transition: all .3s;
}
.nav-burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-burger.open span:nth-child(2) { opacity: 0; }
.nav-burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── MOBILE NAV PANEL ── */
#mobile-nav {
  display: none; position: fixed;
  top: 68px; left: 0; right: 0; z-index: 198;
  background: var(--bg2); border-bottom: 1px solid var(--border);
  padding: 8px 5% 28px; max-height: calc(100dvh - 68px); overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
}
#mobile-nav.open { display: block; }
.mob-link {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; font-size: 15px; font-weight: 600;
  color: var(--text2); border-bottom: 1px solid var(--border); text-decoration: none;
}
.mob-link:hover, .mob-link.active { color: var(--text); }
.mob-group { border-bottom: 1px solid var(--border); }
.mob-group-hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; font-size: 15px; font-weight: 600;
  color: var(--text2); cursor: pointer; user-select: none;
}
.mob-caret { font-size: 10px; transition: transform .25s; }
.mob-group-hd.exp .mob-caret { transform: rotate(180deg); }
.mob-sub { display: none; padding: 4px 0 8px; }
.mob-sub.open { display: flex; flex-direction: column; }
.mob-sub a {
  display: flex; flex-direction: column; padding: 9px 14px;
  font-size: 14px; color: var(--text2); text-decoration: none;
  border-radius: 8px; transition: background .15s;
}
.mob-sub a:hover { background: var(--surface); color: var(--text); }
.mob-sub a strong { font-size: 14px; font-weight: 600; }
.mob-sub a span { font-size: 11px; color: var(--text3); margin-top: 1px; }
.mob-bottom { display: flex; flex-direction: column; gap: 10px; padding-top: 20px; }
.mob-bottom .btn-primary, .mob-bottom .btn-ghost { justify-content: center; width: 100%; }
.mob-lang-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 14px; border-top: 1px solid var(--border); margin-top: 4px;
}
.mob-lang-row span { font-size: 13px; color: var(--text2); }

@media(max-width:900px) {
  .nav-menu { display: none; }
  .nav-burger { display: flex; }
  .nav-actions .btn-ghost, .nav-actions .btn-cta-nav { display: none; }
}

/* ══ COMMON COMPONENTS ══ */
.section-tag {
  display: inline-block; background: rgba(26,127,224,0.1); border: 1px solid rgba(26,127,224,0.22);
  color: var(--blue2); font-size: 11.5px; font-weight: 700; letter-spacing: .1em;
  padding: 4px 13px; border-radius: 20px; margin-bottom: 16px;
}
html[lang="ar"] .section-tag { letter-spacing: .02em; }
.section-title {
  font-family: var(--font-en); font-size: clamp(26px,4vw,46px);
  font-weight: 700; letter-spacing: -.02em; line-height: 1.15; margin-bottom: 14px; color: var(--text);
}
html[lang="ar"] .section-title { font-family: var(--font-ar); letter-spacing: 0; }
.section-sub { font-size: 16px; color: var(--text2); line-height: 1.75; }
.section-head { margin-bottom: 56px; }
.text-center { text-align: center; }
.text-center .section-sub { max-width: 560px; margin: 0 auto; }

.gradient-text {
  background: linear-gradient(135deg, var(--blue2), var(--cyan));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, var(--blue), #0d5bbf);
  color: #fff; padding: 13px 30px; border-radius: 10px;
  font-size: 15px; font-weight: 700; border: none; cursor: pointer; font-family: inherit;
  box-shadow: 0 4px 28px rgba(26,127,224,.35); transition: all .25s;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 40px rgba(26,127,224,.5); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; color: var(--text); padding: 13px 30px;
  border-radius: 10px; font-size: 15px; font-weight: 700;
  border: 1px solid var(--border2); transition: all .25s;
}
.btn-ghost:hover { background: var(--surface); border-color: var(--blue); color: var(--blue2); }
.btn-green {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(0,200,100,0.12); color: var(--green); padding: 13px 28px;
  border-radius: 10px; font-size: 14px; font-weight: 700;
  border: 1px solid rgba(0,200,100,.25); transition: all .25s;
}
.btn-green:hover { background: rgba(0,200,100,0.2); }

/* Cards */
.glass-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  transition: all .3s;
}
.glass-card:hover { background: var(--surface2); border-color: var(--border2); transform: translateY(-4px); }

/* Reveal animation */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.rd1 { transition-delay: .1s; } .rd2 { transition-delay: .2s; } .rd3 { transition-delay: .3s; } .rd4 { transition-delay: .4s; }

/* Grid bg */
.grid-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(26,127,224,.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(26,127,224,.04) 1px, transparent 1px);
  background-size: 56px 56px;
}

/* Glow blobs */
.glow-blob {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(26,127,224,.15) 0%, transparent 70%);
  animation: pulse-blob 5s ease-in-out infinite;
}
@keyframes pulse-blob { 0%,100%{opacity:.7;transform:scale(1)} 50%{opacity:1;transform:scale(1.08)} }

/* Badges */
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
.badge-green { background: rgba(0,200,100,.1); color: var(--green); border: 1px solid rgba(0,200,100,.2); }
.badge-blue  { background: rgba(26,127,224,.1); color: var(--blue2); border: 1px solid rgba(26,127,224,.2); }
.badge-cyan  { background: rgba(0,200,255,.1); color: var(--cyan); border: 1px solid rgba(0,200,255,.2); }
.badge-popular {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg,var(--blue),var(--cyan));
  color: #fff; font-size: 10.5px; font-weight: 700; padding: 4px 16px;
  border-radius: 0 0 10px 10px; white-space: nowrap; letter-spacing: .04em;
}

/* ══ FOOTER ══ */
footer#site-footer {
  background: var(--bg2); border-top: 1px solid var(--border);
  padding: 64px 4% 36px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 48px; }
.footer-brand p { font-size: 13px; color: var(--text2); margin: 14px 0 18px; line-height: 1.8; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.social-btn {
  width: 34px; height: 34px; border-radius: 8px; background: var(--surface);
  border: 1px solid var(--border); display: flex; align-items: center; justify-content: center;
  color: var(--text2); font-size: 15px; transition: all .2s;
}
.social-btn:hover { border-color: var(--blue); color: var(--blue2); background: var(--surface2); }
.footer-contact-list { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.fc-item { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text2); }
.fc-item svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.fc-item a { color: var(--text2); transition: color .2s; }
.fc-item a:hover { color: var(--blue2); }
footer h5 { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--text3); margin-bottom: 18px; }
html[lang="ar"] footer h5 { text-transform: none; letter-spacing: 0; font-size: 13px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.footer-links li a { font-size: 13.5px; color: var(--text2); transition: color .2s; display: flex; align-items: center; gap: 6px; }
.footer-links li a:hover { color: var(--text); }
.footer-links li a svg { width: 12px; height: 12px; opacity: .5; }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 24px;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 12.5px; color: var(--text3); }
.zatca-footer {
  display: flex; align-items: center; gap: 7px;
  background: rgba(0,200,100,.07); border: 1px solid rgba(0,200,100,.18);
  padding: 7px 14px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--green);
}
.zatca-footer svg { width: 14px; height: 14px; }

/* ── WhatsApp float ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 999;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,.4); transition: all .25s;
}
html[dir="rtl"] .wa-float { right: auto; left: 28px; }
.wa-float:hover { transform: scale(1.1); box-shadow: 0 8px 32px rgba(37,211,102,.6); }
.wa-float svg { width: 28px; height: 28px; fill: #fff; }

/* ── PAGE HERO (inner pages) ── */
.inner-hero {
  padding: 130px 4% 72px; position: relative; overflow: hidden;
  background: linear-gradient(180deg, rgba(26,127,224,.06) 0%, transparent 100%);
  border-bottom: 1px solid var(--border); text-align: center;
}
.inner-hero h1 { font-family: var(--font-en); font-size: clamp(28px,5vw,58px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; margin-bottom: 14px; }
html[lang="ar"] .inner-hero h1 { font-family: var(--font-ar); letter-spacing: 0; }
.inner-hero p { font-size: 17px; color: var(--text2); max-width: 560px; margin: 0 auto 28px; line-height: 1.75; }
.breadcrumb { display: flex; align-items: center; gap: 8px; justify-content: center; font-size: 13px; color: var(--text3); flex-wrap: wrap; }
.breadcrumb a { color: var(--text3); transition: color .2s; }
.breadcrumb a:hover { color: var(--blue2); }
.breadcrumb .sep { opacity: .4; }

/* ── FEATURE CARDS ── */
.feat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 28px; transition: all .3s; }
.feat-card:hover { border-color: var(--border2); background: var(--surface2); transform: translateY(-4px); }
.feat-icon-box { width: 48px; height: 48px; background: rgba(26,127,224,.1); border: 1px solid rgba(26,127,224,.22); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 18px; }
.feat-icon-box svg { width: 24px; height: 24px; }
.feat-card h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.feat-card p { font-size: 13.5px; color: var(--text2); line-height: 1.65; }

/* ── RESPONSIVE ── */
@media(max-width:1100px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } }
@media(max-width:760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  nav#site-nav { padding: 0 5%; }
}
@media(max-width:520px) {
  .footer-grid { grid-template-columns: 1fr; }
  .btn-primary, .btn-ghost { padding: 12px 22px; font-size: 14px; }
}
@media(max-width:480px) {
  .inner-hero { padding: 100px 5% 52px; }
  .inner-hero p { font-size: 15px; }
  .inner-hero h1 { font-size: clamp(24px, 8vw, 40px); }
  .section-sub { font-size: 14px; }
  .section-title { font-size: clamp(22px, 6vw, 36px); }
  .btn-primary, .btn-ghost { padding: 11px 18px; font-size: 13.5px; }
  footer#site-footer { padding: 48px 5% 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wa-float { width: 46px; height: 46px; bottom: 18px; right: 18px; }
  html[dir="rtl"] .wa-float { left: 18px; right: auto; }
  .wa-float svg { width: 22px; height: 22px; }
}
