:root{
  --bg0:#070b14;
  --bg1:#0b1220;
  --card:#0f1a2e;
  --card2:#111f38;
  --text:#e6edf7;
  --muted:#a9b6cf;
  --border:rgba(255,255,255,.08);
  --accent:#2f80ed;
  --accent2:#00b3ff;
}

html,body{height:100%;}
body{
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
  background: radial-gradient(1200px 600px at 15% 10%, rgba(47,128,237,.35), transparent 55%),
              radial-gradient(900px 500px at 85% 20%, rgba(0,179,255,.25), transparent 55%),
              linear-gradient(180deg, var(--bg0), var(--bg1));
  color: var(--text);
}

body.rtl{
  font-family: "Cairo", system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Helvetica Neue", sans-serif;
}

/* Links */
a{color:inherit;}
a:hover{color:#fff;}

/* Navbar */
.navbar{
  background: rgba(12,19,35,.85);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.navbar-brand{
  display:flex; align-items:center; gap:.65rem;
  font-weight:700;
  letter-spacing:.5px;
}
.navbar-brand img{width:44px;height:44px;border-radius:12px;}

/* Navbar layout (keep brand on the left, menu on the right even when page is RTL) */
.navbar .container{direction:ltr;}
.navbar .navbar-collapse{direction:ltr;}
.lang-switch{margin-left:18px;}

.navbar .nav-link{
  color: rgba(230,237,247,.85) !important;
  padding: .6rem .9rem;
  border-radius: 12px;
  display:flex;
  align-items:center;
  gap:.5rem;
}
.navbar .nav-link:hover{background: rgba(255,255,255,.06); color:#fff !important;}
.navbar .nav-link.active{background: rgba(47,128,237,.18); color:#fff !important;}
.lang-switch{
  display:flex; gap:.5rem; align-items:center;
}
.lang-btn{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: rgba(230,237,247,.9);
  padding: .35rem .6rem;
  border-radius: 12px;
  font-size:.9rem;
}
.lang-btn.active{
  border-color: rgba(47,128,237,.55);
  background: rgba(47,128,237,.22);
  color:#fff;
}
.lang-btn:focus{outline: none; box-shadow: 0 0 0 .2rem rgba(47,128,237,.25);}

.section{
  padding: 70px 0;
}
.section-sm{
  padding: 45px 0;
}
.hero{
  padding-top: 90px;
}
.kicker{
  color: rgba(230,237,247,.85);
  font-size: .95rem;
}
.hero h1{
  font-size: clamp(1.8rem, 3.2vw, 3rem);
  font-weight: 800;
  line-height: 1.15;
}
.hero p{
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 52rem;
}
.badges{
  display:flex; flex-wrap: wrap; gap:.6rem;
}
.badge-soft{
  border:1px solid var(--border);
  background: rgba(255,255,255,.04);
  color: rgba(230,237,247,.9);
  border-radius: 999px;
  padding: .45rem .8rem;
  font-size: .9rem;
}

.btn-primary{
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  border: none;
  border-radius: 14px;
  padding: .7rem 1.05rem;
  font-weight: 700;
}
.btn-outline-light{
  border-radius: 14px;
  padding: .7rem 1.05rem;
  border-color: rgba(255,255,255,.22);
}
.btn-outline-light:hover{background: rgba(255,255,255,.08);}

.card-surface{
  background: linear-gradient(180deg, rgba(255,255,255,.04), rgba(255,255,255,.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}
.card-surface .card-body{padding: 1.15rem 1.15rem;}
.card-icon{
  width: 46px; height: 46px;
  border-radius: 14px;
  display:flex; align-items:center; justify-content:center;
  background: rgba(47,128,237,.18);
  border: 1px solid rgba(47,128,237,.25);
  color: #d6ecff;
  margin-bottom: .85rem;
}
.card-title{font-weight: 800;}
.card-text{color: var(--muted);}

.grid-2{
  display:grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 992px){
  .grid-2{grid-template-columns: 1fr 1fr;}
}

.footer{
  border-top: 1px solid var(--border);
  background: rgba(12,19,35,.55);
}
.footer a{color: rgba(230,237,247,.9); text-decoration: none;}
.footer a:hover{text-decoration: underline;}
.small-muted{color: rgba(230,237,247,.65);}

.form-control, .form-select{
  background: rgba(255,255,255,.04);
  border:1px solid var(--border);
  color: var(--text);
  border-radius: 14px;
  padding: .75rem .9rem;
}
.form-control:focus, .form-select:focus{
  background: rgba(255,255,255,.06);
  border-color: rgba(47,128,237,.55);
  box-shadow: 0 0 0 .2rem rgba(47,128,237,.2);
  color: var(--text);
}
.form-label{color: rgba(230,237,247,.85); font-weight: 650;}
textarea.form-control{min-height: 140px;}

.form-control::placeholder,
textarea.form-control::placeholder{
  color: rgba(230,237,247,.55);
  opacity: 1;
}


/* RTL tweaks */
html[dir="rtl"] .navbar .navbar-nav{direction: rtl;}
html[dir="rtl"] .navbar .nav-link{flex-direction: row-reverse;}
html[dir="rtl"] .badges{justify-content:flex-start;}
html[dir="rtl"] .text-start{ text-align:right !important; }
html[dir="rtl"] .text-end{ text-align:left !important; }


/* Page illustrations */
.hero-illus{
  max-width: 420px;
  width: 100%;
  height: auto;
  opacity: .95;
  filter: drop-shadow(0 18px 38px rgba(0,0,0,.35));
}

