/* موقع المهندس للأنظمة الرقمية — ألوان الشعار: أزرق #2563EB وأخضر ليموني #A3E635 */
@font-face { font-family: "AlmuhandisAAT"; src: url("/fonts/almuhandis-v2.woff") format("woff"); font-weight: 100 900; font-display: swap; }
:root { --blue: #2563EB; --lime: #A3E635; --ink: #0F172A; --mut: #475569; --bg: #F6F9FF; --card: rgba(255,255,255,.66); --line: rgba(255,255,255,.75); --shadow: 0 20px 60px rgba(37,99,235,.12); color-scheme: light dark; }
@media (prefers-color-scheme: dark) { :root { --ink: #E8EEFC; --mut: #A7B3CC; --bg: #070B16; --card: rgba(20,26,44,.55); --line: rgba(255,255,255,.08); --shadow: 0 20px 60px rgba(0,0,0,.45); } }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; font-family: system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.7; overflow-x: hidden; }
h1, h2, h3, .brand b { font-family: "AlmuhandisAAT", system-ui, sans-serif; line-height: 1.25; }
a { color: var(--blue); text-decoration: none; }
img { max-width: 100%; height: auto; }
.hidden { display: none !important; } .center { text-align: center; } .muted { color: var(--mut); }
/* خلفية حية: كرات ضوئية تتحرك بالتحويل فقط (خفيفة جداً على الهاتف) */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.blob { position: absolute; width: 60vmax; height: 60vmax; border-radius: 50%; filter: blur(70px); opacity: .45; animation: drift 22s ease-in-out infinite alternate; }
.b1 { background: radial-gradient(circle, var(--blue), transparent 65%); top: -25vmax; right: -15vmax; }
.b2 { background: radial-gradient(circle, var(--lime), transparent 65%); bottom: -30vmax; left: -20vmax; animation-delay: -8s; }
.b3 { background: radial-gradient(circle, #38BDF8, transparent 65%); top: 40%; left: 30%; width: 40vmax; height: 40vmax; opacity: .22; animation-delay: -14s; }
.grid-lines { position: absolute; inset: 0; background-image: linear-gradient(rgba(37,99,235,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.06) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at top, #000 20%, transparent 70%); }
@keyframes drift { to { transform: translate3d(-6vmax, 5vmax, 0) scale(1.12); } }
/* شريط التنقل الزجاجي */
.nav { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 16px; padding: calc(10px + env(safe-area-inset-top)) clamp(14px, 4vw, 48px) 10px; background: color-mix(in srgb, var(--bg) 60%, transparent); -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); margin-inline-end: auto; }
.brand img { border-radius: 10px; }
.brand span { display: flex; flex-direction: column; line-height: 1.1; } .brand b { font-size: 20px; } .brand small { font-size: 12px; color: var(--blue); font-weight: 700; }
.links { display: flex; gap: 22px; } .links a { color: var(--mut); font-weight: 600; } .links a:hover { color: var(--blue); }
@media (max-width: 760px) { .nav .links { display: none; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 20px; border-radius: 14px; border: 0; font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .2s; }
.btn:active { transform: scale(.97); }
.btn-lg { min-height: 52px; padding: 12px 26px; font-size: 17px; border-radius: 16px; }
.btn-glow { color: #fff; background: linear-gradient(135deg, var(--blue), #1D4ED8 55%, #16A34A); box-shadow: 0 10px 30px rgba(37,99,235,.35), inset 0 1px 0 rgba(255,255,255,.3); }
.btn-glow:hover { box-shadow: 0 14px 40px rgba(37,99,235,.5); }
.btn-ghost { color: var(--ink); background: var(--card); border: 1px solid var(--line); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.btn-wa { color: #fff; background: #25D366; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700; color: var(--blue); background: color-mix(in srgb, var(--blue) 10%, transparent); border: 1px solid color-mix(in srgb, var(--blue) 25%, transparent); }
.glass { background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%); padding: 24px; }
/* الواجهة */
.hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 40px; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 8vw, 90px) clamp(16px, 4vw, 48px) 40px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; text-align: center; } .cta, .trust { justify-content: center; } }
.hero h1 { font-size: clamp(38px, 6.4vw, 72px); margin: 16px 0 12px; }
.grad { background: linear-gradient(120deg, var(--blue), #0EA5E9 45%, #65A30D 80%, var(--lime)); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% auto; animation: shine 6s linear infinite; }
@keyframes shine { to { background-position: 200% center; } }
.lead { font-size: clamp(17px, 2vw, 21px); color: var(--mut); margin: 0 0 24px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.trust { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 26px 0 0; color: var(--mut); font-weight: 600; font-size: 14px; }
.hero-art { position: relative; display: grid; place-items: center; }
.logo-card { width: min(420px, 82vw); border-radius: 36px; overflow: hidden; background: #fff; box-shadow: 0 30px 80px rgba(37,99,235,.28), 0 0 0 1px rgba(255,255,255,.6); animation: float 6s ease-in-out infinite; }
.logo-card img { display: block; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1deg); } }
.orbit { position: absolute; width: 58px; height: 58px; display: grid; place-items: center; font-size: 28px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); animation: float 5s ease-in-out infinite; }
.o1 { top: 6%; right: 2%; } .o2 { bottom: 12%; right: -2%; animation-delay: -2s; } .o3 { top: 40%; left: 0; animation-delay: -3.5s; }
/* الأرقام */
.stats { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; padding: 0 clamp(16px, 4vw, 48px); }
.stats div { text-align: center; padding: 22px 10px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.stats b { display: block; font-size: clamp(30px, 4.4vw, 46px); font-family: "AlmuhandisAAT", system-ui; background: linear-gradient(135deg, var(--blue), #16A34A); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats span { color: var(--mut); font-size: 14px; font-weight: 600; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
/* الأقسام */
.section { max-width: 1180px; margin: 0 auto; padding: clamp(56px, 8vw, 100px) clamp(16px, 4vw, 48px) 0; }
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.sec-head h2 { font-size: clamp(28px, 4vw, 44px); margin: 12px 0 8px; } .sec-head p { color: var(--mut); margin: 0; font-size: 17px; }
.platform { display: grid; grid-template-columns: 320px 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .platform { grid-template-columns: 1fr; } }
.phone { position: relative; width: 300px; height: 620px; margin: 0 auto; border-radius: 46px; padding: 12px; background: linear-gradient(145deg, #1E293B, #0B1220); box-shadow: 0 40px 90px rgba(15,23,42,.35), inset 0 0 0 2px #334155; }
.notch { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; border-radius: 16px; background: #0B1220; z-index: 2; }
.slides { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; position: relative; background: #fff; }
.slides img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; opacity: 0; transition: opacity .8s; }
.slides img.on { opacity: 1; }
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 560px) { .features { grid-template-columns: 1fr; } }
.feat { padding: 20px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); transition: transform .2s; }
.feat:hover { transform: translateY(-4px); }
.feat i, .why i { font-style: normal; font-size: 30px; display: inline-grid; place-items: center; width: 54px; height: 54px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 16%, transparent), color-mix(in srgb, var(--lime) 22%, transparent)); }
.feat h3, .why h3 { margin: 12px 0 4px; font-size: 19px; } .feat p, .why p { margin: 0; color: var(--mut); font-size: 15px; }
.why { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .why { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 520px) { .why { grid-template-columns: 1fr; } }
/* الأعمال */
.works { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.work { display: flex; flex-direction: column; border-radius: 22px; overflow: hidden; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); color: var(--ink); transition: transform .2s; }
.work:hover { transform: translateY(-5px); }
.work .cover { position: relative; aspect-ratio: 16/10; background: linear-gradient(135deg, var(--blue), #16A34A); display: grid; place-items: center; color: #fff; font-size: 44px; }
.work .cover img { width: 100%; height: 100%; object-fit: cover; }
.work .w-body { padding: 16px; } .work h3 { margin: 4px 0; font-size: 18px; } .work p { margin: 0; color: var(--mut); font-size: 14px; }
.tag { display: inline-block; font-size: 12px; font-weight: 700; color: var(--blue); }
.star-badge { position: absolute; top: 10px; inset-inline-start: 10px; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.9); color: #B45309; font-size: 12px; font-weight: 800; }
/* الآراء */
.voices { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; }
.voice { flex: 0 0 min(340px, 86vw); scroll-snap-align: start; padding: 22px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.voice .st { color: #F59E0B; letter-spacing: 2px; } .voice p { margin: 8px 0 12px; } .voice b { display: block; } .voice small { color: var(--mut); }
.about { display: flex; gap: 22px; align-items: center; } .about h2 { margin: 0 0 6px; } .about p { margin: 0; color: var(--mut); font-size: 17px; white-space: pre-line; }
.about img { border-radius: 28px; flex: 0 0 auto; } @media (max-width: 600px) { .about { flex-direction: column; text-align: center; } }
/* التواصل */
.contact { display: grid; grid-template-columns: 1.3fr .7fr; gap: 16px; align-items: start; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }
form label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 12px; }
form input, form textarea, form select { display: block; width: 100%; margin-top: 6px; min-height: 48px; padding: 10px 14px; border-radius: 14px; border: 1px solid color-mix(in srgb, var(--mut) 30%, transparent); background: color-mix(in srgb, var(--bg) 70%, transparent); color: var(--ink); font: inherit; font-size: 16px; }
form input:focus, form textarea:focus, form select:focus { outline: 3px solid color-mix(in srgb, var(--blue) 35%, transparent); border-color: var(--blue); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } @media (max-width: 520px) { .two { grid-template-columns: 1fr; } }
/* فخ الروبوتات: مخفي داخل النموذج نفسه (الإزاحة لخارج الصفحة كانت توسّع الصفحة في العربية فيصغّرها الهاتف) */
#cf { position: relative; }
.hp { position: absolute !important; inset-inline-start: 0; top: 0; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); opacity: 0; pointer-events: none; }
html, body { max-width: 100%; overflow-x: clip; }
#cfMsg { margin: 10px 0 0; font-weight: 700; } #cfMsg.ok { color: #16A34A; } #cfMsg.err { color: #DC2626; }
.channels { display: grid; gap: 10px; }
.chan { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--ink); font-weight: 700; box-shadow: var(--shadow); }
.chan i { font-style: normal; font-size: 24px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--blue) 12%, transparent); }
.chan small { display: block; color: var(--mut); font-weight: 600; direction: ltr; text-align: start; }
/* التذييل */
.foot { text-align: center; padding: 70px 16px calc(40px + env(safe-area-inset-bottom)); color: var(--mut); }
.foot img { border-radius: 24px; } .foot .links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; } .credit { font-size: 13px; }
.wa-float { position: fixed; bottom: calc(18px + env(safe-area-inset-bottom)); left: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 28px; background: #25D366; box-shadow: 0 12px 30px rgba(37,211,102,.45); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 12px 40px rgba(37,211,102,.75); } }
/* الظهور عند التمرير */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .blob, .logo-card, .orbit, .grad, .wa-float { animation: none; } .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }
/* صفحة العمل وصفحة التثبيت */
.work-page article { max-width: 860px; margin: 0 auto; } .work-page .cover-lg { border-radius: 18px; overflow: hidden; margin-bottom: 16px; } .work-page .body { white-space: pre-line; font-size: 17px; }
.install { max-width: 900px; display: grid; gap: 16px; } .install h1 { margin: 10px 0 6px; font-size: clamp(28px, 5vw, 40px); }
.app-ic { border-radius: 26px; box-shadow: var(--shadow); } .steps-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; } @media (max-width: 760px) { .steps-wrap { grid-template-columns: 1fr; } }
.steps h2 { margin-top: 0; } .steps ol { padding-inline-start: 20px; margin: 0; } .steps li { margin-bottom: 10px; font-size: 16px; }
.steps.focus { outline: 3px solid var(--blue); }
.kbd { display: inline-block; padding: 0 8px; border-radius: 8px; border: 1px solid var(--mut); }
.ok { color: #16A34A; font-weight: 800; } .share .cta { justify-content: center; }

/* ===== سهم الرجوع + عناوين أقسام النماذج ===== */
.topbar-back { flex: 0 0 auto; margin-inline-end: 2px; color: var(--pri); }
.topbar-back svg { width: 24px; height: 24px; stroke-width: 2.4; }
.topbar-back.hidden { display: none !important; }
.page-back { position: fixed; top: calc(env(safe-area-inset-top, 0px) + 10px); inset-inline-start: 10px; z-index: 60; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--card, #fff); color: var(--pri, var(--blue, #0f4a38)); border: 1px solid var(--bd, var(--line, rgba(0,0,0,.14))); box-shadow: 0 2px 10px rgba(0,0,0,.14); text-decoration: none; -webkit-tap-highlight-color: transparent; }
.page-back svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.form-sec { font-weight: 800; color: var(--pri); font-size: 14px; margin: 16px 0 8px; padding-top: 12px; border-top: 1px dashed var(--bd); }
.form-sec.first { margin-top: 4px; padding-top: 0; border-top: 0; }
@media print { .page-back, .topbar-back { display: none !important; } }
