:root{
  --bg:#0b1220;
  --card:#0f1a33;
  --text:#eaf0ff;
  --muted:#b9c3dd;
  --brand:#57b6ff;
  --brand2:#7cffc5;
  --line:rgba(255,255,255,.12);
  --shadow: 0 14px 40px rgba(0,0,0,.35);
  --radius: 18px;
  --max: 1100px;
}

*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family: system-ui, -apple-system, "Segoe UI", Tahoma, Arial;
  background: radial-gradient(1200px 600px at 10% 0%, rgba(87,182,255,.18), transparent 55%),
              radial-gradient(900px 600px at 90% 10%, rgba(124,255,197,.14), transparent 55%),
              var(--bg);
  color:var(--text);
  line-height:1.7;
  direction: rtl;
}

a{color:inherit; text-decoration:none}
img{max-width:100%; display:block}
.container{max-width:var(--max); margin:0 auto; padding:0 16px}

.topbar{
  position:sticky; top:0; z-index:50;
  backdrop-filter: blur(10px);
  background: rgba(11,18,32,.72);
  border-bottom:1px solid var(--line);
}

.nav{
  display:flex; align-items:center; justify-content:space-between;
  padding:12px 0;
  gap:14px;
}

.brand{
  display:flex; align-items:center; gap:10px;
  font-weight:800;
}
.brand img{
  width:40px; height:40px;
  border-radius:10px;
  object-fit: contain;
  background: white;
}
.brand small{display:block; color:var(--muted); font-weight:600; margin-top:-4px}

.links{
  display:flex; align-items:center; gap:10px;
}
.links a{
  padding:10px 12px;
  border-radius:14px;
  color:var(--muted);
  border:1px solid transparent;
}
.links a:hover{
  border-color: var(--line);
  color: var(--text);
  background: rgba(255,255,255,.04);
}
.links a.active{color:var(--text); border-color: rgba(87,182,255,.35); background: rgba(87,182,255,.08);}

.nav-actions{display:flex; gap:10px; align-items:center}
.btn{
  display:inline-flex; align-items:center; justify-content:center;
  gap:10px;
  padding:10px 14px;
  border-radius:16px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--text);
  font-weight:700;
  cursor:pointer;
  transition:.2s ease;
}
.btn:hover{transform: translateY(-1px); background: rgba(255,255,255,.07)}
.btn.primary{
  border-color: rgba(124,255,197,.35);
  background: linear-gradient(135deg, rgba(87,182,255,.25), rgba(124,255,197,.18));
}
.btn.icon{padding:10px 12px}
.menu-btn{display:none}

.hero{
  padding:44px 0 18px;
}
.hero-grid{
  display:grid;
  grid-template-columns: 1.2fr .8fr;
  gap:18px;
  align-items:stretch;
}
.hero-card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:22px;
  box-shadow: var(--shadow);
  overflow:hidden;
  position:relative;
}
.hero-card:before{
  content:"";
  position:absolute; inset:-80px -120px auto auto;
  width:260px; height:260px;
  background: radial-gradient(circle, rgba(87,182,255,.25), transparent 60%);
  transform: rotate(12deg);
}
.badges{display:flex; gap:10px; flex-wrap:wrap; margin-bottom:10px}
.badge{
  font-size:13px;
  padding:6px 10px;
  border-radius: 999px;
  border:1px solid var(--line);
  color: var(--muted);
  background: rgba(255,255,255,.03);
}
h1{
  margin:6px 0 10px;
  font-size: 34px;
  line-height:1.2;
}
.lead{color: var(--muted); font-size: 16px; margin:0 0 16px}
.hero-actions{display:flex; gap:10px; flex-wrap:wrap}
.kpis{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:12px;
  margin-top:18px;
}
.kpi{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding:12px;
}
.kpi b{font-size:18px}
.kpi span{display:block; color:var(--muted); font-size:13px}

.side-card{
  border:1px solid var(--line);
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border-radius: var(--radius);
  padding:18px;
  box-shadow: var(--shadow);
}
.side-card h3{margin:0 0 8px}
.side-card p{margin:0 0 14px; color:var(--muted)}
.list{
  display:grid; gap:10px; margin:0; padding:0; list-style:none;
}
.list li{
  border:1px solid var(--line);
  border-radius: 16px;
  padding:10px 12px;
  background: rgba(255,255,255,.03);
  color: var(--muted);
}

.section{padding:28px 0}
.section-title{
  display:flex; align-items:end; justify-content:space-between; gap:10px;
  margin-bottom:12px;
}
.section-title h2{margin:0; font-size:22px}
.section-title p{margin:0; color:var(--muted)}

.grid{
  display:grid;
  grid-template-columns: repeat(3, 1fr);
  gap:14px;
}
.card{
  border:1px solid var(--line);
  background: rgba(255,255,255,.03);
  border-radius: var(--radius);
  padding:16px;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.card h3{margin:0 0 8px}
.card p{margin:0; color:var(--muted)}
.card .meta{margin-top:12px; color:var(--muted); font-size:13px}

.gallery{
  display:grid;
  grid-template-columns: repeat(4, 1fr);
  gap:10px;
}
.ph{
  border:1px dashed rgba(255,255,255,.22);
  border-radius: 16px;
  background: rgba(255,255,255,.02);
  padding:14px;
  min-height: 120px;
  display:flex; align-items:center; justify-content:center;
  color: var(--muted);
}

.cta{
  border:1px solid rgba(124,255,197,.22);
  background: linear-gradient(135deg, rgba(87,182,255,.12), rgba(124,255,197,.10));
  border-radius: var(--radius);
  padding:18px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}
.cta p{margin:0; color:var(--muted)}
.footer{
  margin-top:22px;
  border-top:1px solid var(--line);
  padding:18px 0 80px;
  color: var(--muted);
}
.footer .cols{
  display:grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap:14px;
}
.footer a{color:var(--muted)}
.footer a:hover{color:var(--text)}

.fab{
  position:fixed;
  bottom:16px;
  left:16px; /* RTL: نخليه يسار */
  display:flex;
  flex-direction:column;
  gap:10px;
  z-index:60;
}
.fab a{
  display:flex; align-items:center; justify-content:center;
  width:52px; height:52px;
  border-radius: 18px;
  border:1px solid var(--line);
  background: rgba(255,255,255,.06);
  box-shadow: var(--shadow);
  font-weight:900;
}
.fab a:hover{transform: translateY(-1px)}
.note{font-size:12px; color:var(--muted)}

img{cursor: zoom-in}
.brand img{cursor:pointer}

.lightbox{
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(0,0,0,.75);
}
.lightbox.open{display:flex}
.lightbox-img{
  max-width: min(980px, 96vw);
  max-height: 86vh;
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: var(--shadow);
  background: rgba(255,255,255,.03);
  cursor: default;
}
.lightbox-close{
  position:absolute;
  top:16px;
  left:16px;
  width:46px;
  height:46px;
  border-radius: 16px;
  border:1px solid var(--line);
  background: rgba(11,18,32,.72);
  color: var(--text);
  font-weight:900;
  cursor:pointer;
}
.lightbox-close:hover{transform: translateY(-1px); background: rgba(255,255,255,.07)}

@media (max-width: 960px){
  .hero-grid{grid-template-columns:1fr}
  .grid{grid-template-columns:1fr 1fr}
  .gallery{grid-template-columns:1fr 1fr 1fr}
  .footer .cols{grid-template-columns:1fr}
  h1{font-size:30px}
}

@media (max-width: 640px){
  .grid{grid-template-columns:1fr}
  .gallery{grid-template-columns:1fr 1fr}
  .links{display:none}
  .menu-btn{display:inline-flex}
  .links.open{
    display:flex;
    position:absolute;
    top:64px;
    right:16px;
    left:16px;
    flex-direction:column;
    background: rgba(11,18,32,.92);
    border:1px solid var(--line);
    border-radius: 18px;
    padding:10px;
  }
}
