:root {
  --bg: #06090b;
  --bg-2: #0b1114;
  --card: #0e1518;
  --line: rgba(255, 255, 255, 0.09);
  --text: #eef5f3;
  --muted: rgba(238, 245, 243, 0.64);
  --mint: #74f2c8;
  --mint-dim: rgba(116, 242, 200, 0.14);
  --gold: #ffc85c;
  --font: 'IBM Plex Sans Arabic', 'Inter Tight', system-ui, sans-serif;
  --num: 'Inter Tight', 'IBM Plex Sans Arabic', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.75 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--mint); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.3; margin: 0; }
p { margin: 0; }
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
:focus-visible { outline: 2px solid var(--mint); outline-offset: 3px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 24px;
  background: var(--mint); color: #03120c; border-radius: 12px; font-weight: 700; white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 8px 30px rgba(116, 242, 200, 0.25); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-ghost:hover { box-shadow: none; border-color: rgba(255, 255, 255, 0.25); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 15px; border-radius: 10px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.center .cta-row, .hero .cta-row { justify-content: center; }

/* ---------- nav ---------- */
.site-nav { position: sticky; top: 0; z-index: 10; background: rgba(6, 9, 11, 0.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; font-size: 20px; }
.brand:hover { text-decoration: none; }
.brand i { width: 10px; height: 10px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(116, 242, 200, 0.6); animation: beat 1.8s infinite; }
@keyframes beat { 0% { box-shadow: 0 0 0 0 rgba(116,242,200,.55); } 70% { box-shadow: 0 0 0 10px rgba(116,242,200,0); } 100% { box-shadow: 0 0 0 0 rgba(116,242,200,0); } }
.nav-links { display: flex; gap: 22px; margin-inline-start: 12px; }
.nav-links a, .link-quiet, .lang { color: var(--muted); font-size: 15px; }
.nav-links a:hover, .link-quiet:hover, .lang:hover { color: var(--text); text-decoration: none; }
.nav-actions { display: flex; align-items: center; gap: 18px; margin-inline-start: auto; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 40px; background: radial-gradient(60% 50% at 50% 0%, rgba(116, 242, 200, 0.1), transparent 70%); }
.hero-inner { text-align: center; max-width: 880px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; background: var(--mint-dim); color: var(--mint); font-size: 14px; font-weight: 600; margin-bottom: 22px; }
.eyebrow s { opacity: 0.65; font-weight: 500; }
.eyebrow i { width: 7px; height: 7px; border-radius: 50%; background: var(--mint); }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); letter-spacing: -0.01em; }
.hero h1 span, .page-head h1 span { color: var(--mint); }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 20px); margin-top: 18px; }
.hero .lead { max-width: 680px; margin-inline: auto; }
.chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 20px; color: var(--muted); font-size: 15px; }
.chips li::before { content: '✓'; color: var(--mint); margin-inline-end: 6px; }

.shot { margin: 48px 0 0; }
.shot-frame {
  border-radius: 18px; padding: 10px; background: linear-gradient(180deg, #1a2226, #0b1013);
  border: 1px solid var(--line); box-shadow: 0 40px 120px -30px rgba(116, 242, 200, 0.22), 0 20px 60px rgba(0, 0, 0, 0.6);
}
.shot-frame img { border-radius: 10px; width: 100%; aspect-ratio: 16 / 9; background: #06090b; }
.shot figcaption { text-align: center; color: var(--muted); font-size: 13px; margin-top: 10px; }
.live-screen { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 10px; background: #06090b; }
.live-screen img { display: block; height: 100%; }
.live-screen iframe {
  position: absolute; top: 0; left: 0; width: 1600px; height: 900px; border: 0;
  transform: scale(var(--s, 1)); transform-origin: 0 0; opacity: 0; transition: opacity 0.5s ease; pointer-events: none;
}
.live-screen.ready iframe { opacity: 1; }
.live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--mint); margin-inline-end: 7px; vertical-align: 1px; animation: beat 1.8s infinite; }

/* ---------- sections ---------- */
.section { padding: 64px 0; }
.section.tight { padding-top: 0; }
.section-title { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 28px; }
.section-title.spaced { margin-top: 56px; }
.prose { color: var(--muted); font-size: 19px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.card h3, .card .h3 { font-size: 19px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 16px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; }
.step-num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--mint-dim); color: var(--mint); font-family: var(--num); font-weight: 700; margin-bottom: 14px; }
.steps h3 { font-size: 19px; margin-bottom: 8px; }
.steps p { color: var(--muted); font-size: 16px; }

.link-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.link-cards + .link-cards { margin-top: 12px; }
.link-cards a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 18px 20px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); color: var(--text); transition: border-color 0.2s; }
.link-cards a:hover { text-decoration: none; border-color: rgba(116, 242, 200, 0.45); }
.link-cards strong { font-size: 17px; }
.link-cards span { color: var(--muted); font-size: 14px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.faq { display: flex; flex-direction: column; gap: 10px; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 0 20px; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font-size: 17px; font-weight: 600; }
.faq summary::after { content: '+'; color: var(--mint); font-size: 22px; line-height: 1; transition: transform 0.2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 18px; }

.final { background: radial-gradient(50% 80% at 50% 100%, rgba(116, 242, 200, 0.1), transparent 70%); }
.final h2 { font-size: clamp(28px, 4vw, 42px); }

/* ---------- detail pages ---------- */
.page-head { padding: 48px 0 40px; background: radial-gradient(60% 60% at 50% 0%, rgba(116, 242, 200, 0.08), transparent 70%); }
.page-head h1 { font-size: clamp(30px, 4.6vw, 50px); margin-top: 18px; }
.crumbs ol { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--muted); }
.crumbs li:not(:last-child)::after { content: '›'; margin-inline-start: 6px; color: var(--muted); }
[dir='rtl'] .crumbs li:not(:last-child)::after { content: '‹'; }
.crumbs a { color: var(--muted); }
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.levels h2 { font-size: 20px; margin-bottom: 18px; }
.levels ol { list-style: none; padding: 0; margin: 0 0 14px; display: flex; flex-direction: column; gap: 16px; }
.lv-top { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.lv-top strong { font-family: var(--num); color: var(--gold); white-space: nowrap; }
.lv-bar { height: 10px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); overflow: hidden; }
.lv-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--mint), var(--gold)); }
[dir='rtl'] .lv-bar i { background: linear-gradient(270deg, var(--mint), var(--gold)); margin-inline-start: 0; }
.tip { border-color: rgba(255, 200, 92, 0.35); }
.tip .h3 { color: var(--gold); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 48px 0 28px; margin-top: 24px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer h2 { font-size: 15px; margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.site-footer ul a, .site-footer p a { color: var(--muted); font-size: 15px; }
.site-footer p { color: var(--muted); margin-top: 10px; }
.copyright { margin-top: 32px; }
.legal-links { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.legal-links a { color: var(--muted); }
.legal-links + .copyright { margin-top: 12px; }

/* ---------- legal pages ---------- */
.legal-date { margin: 12px 0 18px; }
.legal section + section { margin-top: 36px; }
.legal h2 { font-size: 21px; margin-bottom: 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p, .legal ul + p, .legal .table-wrap + p { margin-top: 12px; }
.legal ul { margin: 12px 0 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; }
.legal a { overflow-wrap: anywhere; }
.table-wrap { overflow-x: auto; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 12px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 520px; }
.legal th, .legal td { padding: 12px 14px; text-align: start; vertical-align: top; border-bottom: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--card); font-weight: 600; }
.legal td { color: var(--muted); }
.legal code { color: var(--mint); font-size: 14px; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .nav-links { display: none; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .footer-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .nav-actions { gap: 12px; }
  .link-quiet { display: none; }
  .grid4 { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; }
  .section { padding: 48px 0; }
  .cta-row .btn { width: 100%; }
  .shot-frame { padding: 5px; border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
