:root {
  --bg: #07151c;
  --bg-elevated: #0c2230;
  --bg-alt: #0a1c27;
  --card: #102a38;
  --border: rgba(148, 163, 184, 0.16);
  --text: #e8eef3;
  --muted: #9db0bf;
  --primary: #14b8a6;
  --primary-strong: #0d9488;
  --accent: #38bdf8;
  --tg: #229ED9;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1100px;
  --font: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-ar: "Noto Sans Arabic", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html[dir="rtl"] body { font-family: var(--font-ar); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% -10%, rgba(20, 184, 166, 0.18), transparent 60%),
    radial-gradient(700px 400px at 90% 0%, rgba(56, 189, 248, 0.12), transparent 55%),
    var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.narrow { max-width: 720px; }

.site-header {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: blur(14px);
  background: rgba(7, 21, 28, 0.82);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 68px; gap: 1rem;
}
.header-actions {
  display: flex; align-items: center; gap: 0.85rem;
  flex-wrap: nowrap;
}
.header-tools {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
}
.logo { display: inline-flex; align-items: center; gap: 0.65rem; color: var(--text); text-decoration: none; font-weight: 700; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), #0ea5e9);
  color: #042f2e; font-weight: 800;
}
.nav { display: flex; align-items: center; gap: 1.1rem; }
.nav a { color: var(--muted); font-size: 0.95rem; text-decoration: none; font-weight: 500; }
.nav a:hover { color: var(--text); }
.nav-toggle {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--border); background: transparent; cursor: pointer;
  padding: 10px; flex-direction: column; justify-content: space-between;
}
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

.lang-switch {
  display: inline-flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.35rem;
  background: rgba(16, 42, 56, 0.6);
  flex-shrink: 0;
  white-space: nowrap;
}
.lang-sep {
  color: var(--muted);
  opacity: 0.55;
  font-size: 0.75rem;
  line-height: 1;
  user-select: none;
  padding: 0 0.1rem;
}
.lang-btn {
  appearance: none; border: 0; background: transparent;
  color: var(--muted); font: inherit; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em; padding: 0.32rem 0.55rem; cursor: pointer;
  white-space: nowrap; flex-shrink: 0; border-radius: 999px;
  line-height: 1.2;
}
.lang-btn.is-active {
  background: rgba(20, 184, 166, 0.22); color: var(--text);
}
.lang-btn:hover { color: var(--text); }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 0.55rem; border-radius: 999px; font-weight: 600;
  border: 1px solid transparent; cursor: pointer; text-decoration: none !important;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  position: relative; z-index: 1; pointer-events: auto;
}
.btn:hover { transform: translateY(-1px); }
.btn-sm { padding: 0.45rem 0.95rem; font-size: 0.88rem; }
.btn-lg { padding: 0.9rem 1.35rem; font-size: 1rem; }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-strong)); color: #042f2e; }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: rgba(20, 184, 166, 0.5); }

.btn-tg-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tg);
  color: #fff;
  text-decoration: none !important;
  flex-shrink: 0;
  border: 0;
  box-shadow: 0 8px 20px rgba(34, 158, 217, 0.28);
  transition: transform .15s ease, filter .15s ease, box-shadow .15s ease;
  position: relative;
  z-index: 1;
  pointer-events: auto;
}
.btn-tg-icon:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 10px 24px rgba(34, 158, 217, 0.38);
  text-decoration: none !important;
}
.btn-tg-icon-lg { width: 52px; height: 52px; }
.btn-tg-icon-sm { width: 34px; height: 34px; box-shadow: none; }
.tg-plane {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  line-height: 0;
}
.tg-plane svg { display: block; width: 20px; height: 20px; }
.btn-tg-icon-lg .tg-plane svg { width: 24px; height: 24px; }
.btn-tg-icon-sm .tg-plane svg { width: 16px; height: 16px; }

.hero { padding: 4.5rem 0 3.5rem; }
.hero-grid {
  display: grid; grid-template-columns: 1.25fr 0.9fr; gap: 2.5rem; align-items: center;
}
.eyebrow {
  display: inline-block; margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem; border-radius: 999px;
  background: rgba(20, 184, 166, 0.12); color: var(--primary);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em;
}
.hero h1 {
  margin: 0 0 1rem; font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.15; letter-spacing: -0.02em;
}
.hero h1 span { color: var(--primary); }
.lead { color: var(--muted); font-size: 1.08rem; margin: 0 0 1.5rem; max-width: 36rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1rem; }
.hero-note { color: var(--muted); font-size: 0.92rem; margin: 0; }
.hero-note a { word-break: break-all; }
.hero-card {
  position: relative; border-radius: calc(var(--radius) + 4px);
  background: linear-gradient(180deg, rgba(16, 42, 56, 0.95), rgba(12, 34, 48, 0.95));
  border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden;
}
.card-glow {
  position: absolute; inset: auto -20% -40% auto; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(20,184,166,.35), transparent 70%);
  pointer-events: none;
}
.stat-stack { display: grid; gap: 0; padding: 0.4rem; }
.stat {
  padding: 1.1rem 1.25rem; border-bottom: 1px solid var(--border);
}
.stat:last-child { border-bottom: 0; }
.stat-label { display: block; color: var(--muted); font-size: 0.8rem; margin-bottom: 0.2rem; }
.stat strong { font-size: 1.15rem; }

.section { padding: 4rem 0; }
.section-alt { background: rgba(10, 28, 39, 0.65); border-block: 1px solid var(--border); }
.section h2, .section-head h2 {
  margin: 0 0 0.75rem; font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.02em;
}
.section-head { margin-bottom: 2rem; max-width: 40rem; }
.section-head p, .section p { color: var(--muted); }
.section .narrow p { font-size: 1.05rem; }

.cards { display: grid; gap: 1rem; }
.cards.three { grid-template-columns: repeat(3, 1fr); }
.cards.four { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.35rem 1.25rem;
}
.card .icon { font-size: 1.5rem; margin-bottom: 0.75rem; }
.card h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.96rem; }
.card.compact { background: rgba(16, 42, 56, 0.7); }

.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start;
  padding: 1.2rem 1.25rem; border-radius: var(--radius);
  background: rgba(16, 42, 56, 0.55); border: 1px solid var(--border);
}
.step-num {
  font-weight: 700; color: var(--primary); font-size: 1rem;
  min-width: 2.2rem;
}
.steps h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
.steps p { margin: 0; color: var(--muted); }

.cta {
  padding: 3.5rem 0;
  background:
    linear-gradient(135deg, rgba(20, 184, 166, 0.16), rgba(14, 165, 233, 0.08)),
    var(--bg-elevated);
  border-top: 1px solid var(--border);
}
.cta-inner {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem;
}
.cta h2 { margin: 0 0 0.4rem; }
.cta p { margin: 0; color: var(--muted); }

.site-footer {
  padding: 2.5rem 0 2rem; border-top: 1px solid var(--border); color: var(--muted); font-size: 0.92rem;
}
.footer-inner { display: grid; gap: 1rem; }
.footer-inner strong { color: var(--text); }
.footer-inner p { margin: 0.25rem 0 0; }
.footer-links { display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }
.footer-links a { color: var(--muted); }
.fineprint { margin-top: 0.5rem !important; font-size: 0.82rem; opacity: 0.85; }

.desktop-only { display: inline; }
@media (max-width: 720px) {
  .desktop-only { display: none; }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .cards.three, .cards.four { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav {
    position: fixed; inset: 68px 1rem auto 1rem; display: none; flex-direction: column;
    align-items: stretch; gap: 0.35rem; padding: 0.85rem;
    background: var(--bg-elevated); border: 1px solid var(--border);
    border-radius: 14px; box-shadow: var(--shadow);
    z-index: 50;
  }
  .nav.open { display: flex; }
  .nav a { padding: 0.7rem 0.75rem; border-radius: 10px; }
  .nav a:hover { background: rgba(255,255,255,0.04); }
  .nav-toggle { display: inline-flex; }
  .header-actions { gap: 0.55rem; }
  .header-tools { gap: 0.45rem; }
  .lang-switch { padding: 0.12rem 0.28rem; }
  .lang-btn { padding: 0.28rem 0.45rem; font-size: 0.74rem; }
  .cards.three, .cards.four { grid-template-columns: 1fr; }
  .hero { padding-top: 3rem; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
}

html[dir="rtl"] .steps li { grid-template-columns: auto 1fr; }
html[dir="rtl"] .tg-plane svg { transform: scaleX(-1); }
html[dir="rtl"] .header-tools, html[dir="rtl"] .lang-switch {
  flex-direction: row;
}
