:root {
  --bg: #05070c;
  --panel: #0c111d;
  --line: #1a2438;
  --cyan: #38f0ff;
  --red: #ff3a4f;
  --gold: #ffd166;
  --text: #eef6ff;
  --dim: #9aacc6;
  --radius: 18px;
  --font: 'Cairo', system-ui, 'Segoe UI', Tahoma, sans-serif;
  --display: 'Orbitron', 'Cairo', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--cyan); }
img { max-width: 100%; display: block; }
.wrap { width: min(1240px, calc(100% - 32px)); margin-inline: auto; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }

/* ── الشريط العلوي ── */
.top { position: fixed; inset: 0 0 auto 0; z-index: 20; transition: background .3s ease, border-color .3s ease; border-bottom: 1px solid transparent; }
.top .row { min-height: 66px; }
.top.solid { background: rgba(5, 7, 12, .86); backdrop-filter: blur(12px); border-color: var(--line); }
.logo { font-family: var(--display); font-weight: 900; font-size: 22px; letter-spacing: 3px; color: var(--text); text-decoration: none; text-shadow: 0 0 22px rgba(56, 240, 255, .6); }
.logo.sm { font-size: 16px; }
nav { display: flex; align-items: center; gap: 22px; }
nav a { color: var(--text); opacity: .8; text-decoration: none; font-weight: 700; }
nav a:hover { opacity: 1; }

/* ── الأزرار ── */
.btn { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 0; padding: 12px 22px; border-radius: 14px; background: var(--cyan); color: #03131c; font-weight: 900; text-decoration: none; border: 1px solid var(--cyan); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(56, 240, 255, .35); }
.btn small { font-weight: 600; font-size: 12px; opacity: .7; }
.btn.sm { padding: 7px 16px; opacity: 1; color: #03131c; }
.btn.big { font-size: 17px; min-width: 220px; padding: 14px 24px; }
.btn.ghost { background: rgba(5, 7, 12, .45); color: var(--text); border-color: rgba(255, 255, 255, .22); backdrop-filter: blur(6px); }
.btn.ghost:hover { border-color: var(--cyan); }
.btn.primary-pick { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--gold); }

/* ── البطل ── */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); animation: drift 24s ease-in-out infinite alternate; }
@keyframes drift { to { transform: scale(1.12) translateY(-1.5%); } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 4%, rgba(5, 7, 12, .78) 34%, rgba(5, 7, 12, .15) 70%, rgba(5, 7, 12, .55)), linear-gradient(to left, rgba(5, 7, 12, .7), transparent 60%); }
.hero-in { position: relative; padding: 140px 0 90px; }
.tag { display: inline-block; padding: 5px 14px; border-radius: 999px; background: rgba(56, 240, 255, .1); border: 1px solid rgba(56, 240, 255, .35); color: var(--cyan); font-size: 13.5px; font-weight: 700; }
h1 { margin: 18px 0 10px; font-size: clamp(38px, 6.4vw, 82px); line-height: 1.12; font-weight: 900; text-shadow: 0 6px 40px rgba(0, 0, 0, .6); }
h1 .brand { display: block; font-family: var(--display); font-size: .42em; letter-spacing: .3em; color: var(--cyan); margin-bottom: 12px; text-shadow: 0 0 30px rgba(56, 240, 255, .7); }
h1 em { font-style: normal; color: var(--red); text-shadow: 0 0 40px rgba(255, 58, 79, .55); }
.lead { font-size: clamp(16px, 1.6vw, 20px); color: #d6e2f2; max-width: 640px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.ver { color: var(--dim); font-size: 13px; margin-top: 16px; max-width: 700px; }
.scroll { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); color: var(--text); opacity: .6; font-size: 34px; text-decoration: none; animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translate(-50%, 8px); } }

/* ── الأرقام ── */
.stats { border-block: 1px solid var(--line); background: linear-gradient(90deg, rgba(56, 240, 255, .05), rgba(255, 58, 79, .05)); }
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; padding: 26px 0; }
.stats b { display: block; font-family: var(--display); font-size: clamp(28px, 4vw, 44px); color: var(--cyan); line-height: 1.1; }
.stats span { color: var(--dim); font-weight: 700; }

/* ── القصة ── */
.story { display: grid; grid-template-columns: 1.1fr 1fr; align-items: stretch; margin: 90px 0; }
.story-media { position: relative; min-height: 520px; }
.story-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; mask-image: linear-gradient(to left, #000 60%, transparent); -webkit-mask-image: linear-gradient(to left, #000 60%, transparent); }
.story-text { padding: 20px max(16px, calc((100vw - 1240px) / 2)) 20px 40px; align-self: center; }
.kicker { display: inline-block; color: var(--red); font-weight: 900; letter-spacing: .5px; margin-bottom: 6px; }
.story h2, .sec-title { font-size: clamp(30px, 4vw, 48px); line-height: 1.2; margin: 0 0 18px; font-weight: 900; }
.mono { font-family: var(--display); color: var(--cyan); letter-spacing: 2px; }
.story p { color: #cbd8ea; font-size: 17px; }
.story b { color: var(--text); }
blockquote { margin: 22px 0; padding: 14px 20px; border-inline-start: 4px solid var(--red); background: rgba(255, 58, 79, .07); font-size: 21px; font-weight: 800; color: var(--text); border-radius: 0 12px 12px 0; }

/* ── العالم ── */
.world { padding: 20px 0 40px; }
.sec-title { text-align: center; margin-bottom: 40px; }
.show { display: grid; grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; width: min(1240px, calc(100% - 32px)); margin: 0 auto 70px; }
.show.rev { grid-template-columns: 1fr 1.55fr; }
.show.rev .shot { order: 2; }
.shot { all: unset; cursor: zoom-in; display: block; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: 0 30px 80px rgba(0, 0, 0, .55); position: relative; }
.shot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform .6s ease; }
.shot:hover img { transform: scale(1.04); }
.shot::after { content: '⤢'; position: absolute; top: 12px; left: 12px; background: rgba(5, 7, 12, .6); color: var(--text); border-radius: 10px; padding: 2px 10px; font-size: 18px; opacity: 0; transition: opacity .2s ease; }
.shot:hover::after { opacity: 1; }
.show-text h3 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.35; margin: 0 0 12px; font-weight: 900; }
.show-text p { color: var(--dim); font-size: 16.5px; margin: 0; }

/* ── التحميل ── */
.download { padding: 60px 0 80px; background: radial-gradient(900px 400px at 50% 0%, rgba(56, 240, 255, .09), transparent 70%); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.card.mine { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 20px 60px rgba(255, 209, 102, .08); }
.card-ico { font-size: 34px; }
.card h3 { margin: 0; font-size: 22px; }
.card ol { margin: 4px 0 0; padding-inline-start: 20px; color: var(--dim); font-size: 14.5px; }
.card .link { font-size: 13.5px; }
.safety { margin-top: 30px; padding: 22px 26px; border-radius: var(--radius); border: 1px solid var(--line); background: rgba(12, 17, 29, .6); }
.safety h3 { margin: 0 0 6px; }
.safety ul { color: var(--dim); padding-inline-start: 20px; margin: 0 0 8px; }
.safety summary { cursor: pointer; color: var(--cyan); font-weight: 700; }
.sums { margin-top: 10px; font-size: 12px; color: var(--dim); display: grid; gap: 6px; }
.sums code { direction: ltr; unicode-bidi: embed; word-break: break-all; font-family: Consolas, monospace; }

.foot { border-top: 1px solid var(--line); padding: 26px 0 40px; color: var(--dim); font-size: 13px; }

/* ── عارض الصور ── */
.lightbox { position: fixed; inset: 0; z-index: 50; background: rgba(0, 0, 0, .92); display: flex; align-items: center; justify-content: center; padding: 20px; }
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 100px rgba(0, 0, 0, .8); }
.lb-close { position: absolute; top: 16px; left: 16px; background: rgba(255, 255, 255, .1); color: #fff; border: 0; width: 44px; height: 44px; border-radius: 50%; font-size: 20px; cursor: pointer; }

/* ── الظهور عند التمرير ── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hero-bg, .scroll { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } }

/* ── التلفون ── */
@media (max-width: 900px) {
  nav a:not(.btn) { display: none; }
  .hero-in { padding: 110px 0 70px; }
  .hero-shade { background: linear-gradient(to top, var(--bg) 6%, rgba(5, 7, 12, .82) 45%, rgba(5, 7, 12, .25) 80%, rgba(5, 7, 12, .6)); }
  .cta .btn.big { flex: 1 1 100%; }
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .story { grid-template-columns: 1fr; margin: 50px 0; }
  .story-media { min-height: 260px; }
  .story-media img { mask-image: linear-gradient(to top, transparent, #000 35%); -webkit-mask-image: linear-gradient(to top, transparent, #000 35%); }
  .story-text { padding: 10px 16px; }
  .show, .show.rev { grid-template-columns: 1fr; gap: 18px; margin-bottom: 50px; }
  .show.rev .shot { order: 0; }
  .cards { grid-template-columns: 1fr; }
}
