/* NajizGo HRMS — الموقع التعريفي. هوية NajizGo: أخضر #1F6B33 / #155429 وبرتقالي #FEAD00 */
:root {
  --green: #1f6b33;
  --green-dark: #155429;
  --green-deep: #0e3b1d;
  --green-soft: #e8f3eb;
  --orange: #fead00;
  --orange-soft: #fff4d6;
  --ink: #14211a;
  --muted: #5b6b61;
  --line: #e3e9e5;
  --bg: #ffffff;
  --bg-alt: #f6f8f6;
  --radius: 18px;
  --shadow: 0 18px 50px -24px rgba(14, 59, 29, .35);
  --shadow-sm: 0 6px 20px -12px rgba(14, 59, 29, .3);
  --max: 1180px;
  --font: 'Cairo', 'Segoe UI', Tahoma, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.85; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- الشريط العلوي ---------- */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.nav .container { display: flex; align-items: center; gap: 18px; height: 70px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; line-height: 1.2; }
.nav-links { display: flex; gap: 4px; margin-inline-start: auto; }
.nav-links a { color: var(--ink); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; }
.nav-links a:hover { background: var(--green-soft); text-decoration: none; }
.nav-actions { display: flex; gap: 8px; align-items: center; }
.lang { font-weight: 700; font-size: 13px; color: var(--muted); border: 1px solid var(--line); padding: 6px 10px; border-radius: 10px; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); border-radius: 10px; width: 42px; height: 42px; cursor: pointer; }
.menu-btn span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 4px auto; border-radius: 2px; }

/* ---------- الأزرار ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border-radius: 14px; font-weight: 700; font-size: 15.5px; border: 2px solid transparent; transition: transform .15s ease, box-shadow .15s ease, background .15s; cursor: pointer; font-family: inherit; line-height: 1.4; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-primary { background: var(--green); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--green-dark); }
.btn-accent { background: var(--orange); color: var(--green-deep); box-shadow: 0 10px 24px -14px rgba(254, 173, 0, .9); }
.btn-accent:hover { background: #f0a200; }
.btn-ghost { background: transparent; color: var(--green); border-color: rgba(31, 107, 51, .25); }
.btn-ghost:hover { background: var(--green-soft); }
.btn-light { background: #fff; color: var(--green-deep); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 11px; }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: radial-gradient(1100px 500px at 85% -10%, rgba(254, 173, 0, .16), transparent 60%), radial-gradient(900px 600px at 0% 0%, rgba(31, 107, 51, .12), transparent 60%), linear-gradient(180deg, #fbfdfb, #f2f7f3); padding: 64px 0 72px; }
.hero .container { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line); color: var(--green); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; box-shadow: var(--shadow-sm); }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.2; margin: 18px 0 10px; letter-spacing: -.5px; }
.hero h1 .accent { color: var(--green); }
.hero .lead { font-size: clamp(18px, 2.1vw, 22px); font-weight: 700; color: var(--green-deep); margin: 0 0 14px; line-height: 1.6; }
.hero p.desc { color: var(--muted); font-size: 16.5px; margin: 0 0 26px; max-width: 58ch; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero .meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero .meta span { display: inline-flex; align-items: center; gap: 6px; }
.hero .meta svg { width: 18px; height: 18px; color: var(--green); }

/* لوحة توضيحية */
.mock { position: relative; }
.mock-window { background: #fff; border-radius: 22px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; transform: perspective(1400px) rotateY(-6deg) rotateX(3deg); animation: float 7s ease-in-out infinite; }
[dir="ltr"] .mock-window { transform: perspective(1400px) rotateY(6deg) rotateX(3deg); }
.mock-bar { display: flex; gap: 6px; padding: 12px 14px; background: var(--bg-alt); border-bottom: 1px solid var(--line); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9e1dc; }
.mock-body { display: grid; grid-template-columns: 120px 1fr; min-height: 320px; }
.mock-side { background: var(--green-dark); padding: 16px 10px; display: flex; flex-direction: column; gap: 8px; }
.mock-side b { height: 9px; border-radius: 6px; background: rgba(255, 255, 255, .22); }
.mock-side b.on { background: var(--orange); }
.mock-main { padding: 16px; display: grid; gap: 12px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.kpi small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; }
.kpi strong { font-size: 20px; color: var(--green-deep); }
.kpi.warn strong { color: #b7791f; }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 92px; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.bars i { flex: 1; border-radius: 6px 6px 2px 2px; background: linear-gradient(180deg, #4c9a63, var(--green)); }
.bars i:nth-child(3n) { background: linear-gradient(180deg, #ffd166, var(--orange)); }
.rows { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.rows div { display: grid; grid-template-columns: 1.4fr 1fr .8fr; gap: 8px; padding: 8px 10px; font-size: 11.5px; border-top: 1px solid var(--line); align-items: center; }
.rows div:first-child { border-top: 0; background: var(--bg-alt); font-weight: 800; color: var(--muted); }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; background: var(--green-soft); color: var(--green); width: max-content; }
.pill.o { background: var(--orange-soft); color: #9a6400; }
.pill.r { background: #fde8e8; color: #b42318; }
.mock-phone { position: absolute; inset-inline-start: -18px; bottom: -34px; width: 150px; border-radius: 26px; background: var(--green-deep); padding: 8px; box-shadow: var(--shadow); }
.mock-phone .screen { background: #fff; border-radius: 20px; padding: 12px 10px; display: grid; gap: 8px; }
.mock-phone .screen b { height: 8px; border-radius: 5px; background: var(--line); }
.mock-phone .screen .card { border-radius: 12px; background: linear-gradient(135deg, var(--green), #2f8a4a); height: 58px; }
.mock-phone .screen .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mock-phone .screen .row i { height: 34px; border-radius: 10px; background: var(--orange-soft); }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -8px; } }
@media (prefers-reduced-motion: reduce) { .mock-window { animation: none; } html { scroll-behavior: auto; } }

/* ---------- الأقسام ---------- */
section { padding: 84px 0; }
section.alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.eyebrow { color: var(--green); font-weight: 800; font-size: 14px; letter-spacing: .3px; text-transform: uppercase; }
.section-head h2 { font-size: clamp(26px, 3.4vw, 38px); margin: 6px 0 12px; line-height: 1.35; }
.section-head p { color: var(--muted); margin: 0; font-size: 17px; }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.about-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.about-card .num { width: 36px; height: 36px; border-radius: 11px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.about-card p { margin: 0; color: #2b3a31; }

.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(31, 107, 51, .25); }
.feature .ico { width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(135deg, var(--green-soft), #fff); border: 1px solid rgba(31, 107, 51, .15); display: grid; place-items: center; color: var(--green); margin-bottom: 12px; }
.feature .ico svg { width: 24px; height: 24px; }
.feature h3 { margin: 0 0 4px; font-size: 17.5px; }
.feature p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.75; }

.split { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: center; }
.split.reverse > :first-child { order: 2; }
.split h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 6px 0 12px; line-height: 1.35; }
.split .text > p { color: var(--muted); font-size: 17px; margin: 0 0 18px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; }
.checks li::before { content: ""; flex: none; width: 22px; height: 22px; margin-top: 4px; border-radius: 7px; background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center/14px no-repeat; }
.shot { border-radius: 20px; border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; overflow: hidden; }
.shot img { width: 100%; height: auto; }
.shot figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 14px; border-top: 1px solid var(--line); background: var(--bg-alt); }

.bio { background: linear-gradient(135deg, var(--green-deep), var(--green)); color: #eaf5ec; border-radius: 28px; padding: 46px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: center; position: relative; overflow: hidden; }
.bio::after { content: ""; position: absolute; width: 420px; height: 420px; border-radius: 50%; background: rgba(254, 173, 0, .14); inset-inline-end: -140px; top: -160px; }
.bio h2 { color: #fff; margin: 6px 0 10px; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; }
.bio .eyebrow { color: var(--orange); }
.bio p { color: #cfe3d4; margin: 0; }
.bio .checks li::before { background-color: var(--orange); }
.flow { position: relative; z-index: 1; display: grid; gap: 10px; }
.flow-step { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: 14px; padding: 12px 14px; color: #fff; font-weight: 700; }
.flow-step svg { width: 22px; height: 22px; color: var(--orange); flex: none; }
.flow-step small { display: block; font-weight: 500; color: #cfe3d4; font-size: 12.5px; }

.phone-demo { width: 270px; margin: 0 auto; border-radius: 40px; background: var(--green-deep); padding: 12px; box-shadow: var(--shadow); }
.phone-demo .screen { background: #f7f7f8; border-radius: 30px; overflow: hidden; min-height: 470px; }
.phone-demo .top { background: var(--green-dark); color: #fff; padding: 22px 16px 16px; }
.phone-demo .top small { color: #cfe3d4; display: block; font-size: 11px; }
.phone-demo .today { margin: -10px 12px 10px; background: #fff; border-radius: 16px; padding: 12px; box-shadow: var(--shadow-sm); display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; font-size: 11px; color: var(--muted); }
.phone-demo .today b { display: block; color: var(--ink); font-size: 15px; }
.phone-demo .tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0 12px; }
.phone-demo .tile { background: #fff; border-radius: 14px; padding: 10px; font-size: 11.5px; font-weight: 700; border: 1px solid var(--line); }
.phone-demo .tile i { display: block; width: 26px; height: 26px; border-radius: 9px; background: var(--orange-soft); margin-bottom: 6px; }
.phone-demo .tabbar { margin-top: 14px; background: var(--green-dark); display: grid; grid-template-columns: repeat(4, 1fr); padding: 10px 6px; text-align: center; color: #dae8dc; font-size: 10px; }
.phone-demo .tabbar span.on { color: var(--orange); font-weight: 800; }
.illustrative { text-align: center; color: var(--muted); font-size: 12.5px; margin-top: 10px; }

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 4px 20px; }
.faq details[open] { box-shadow: var(--shadow-sm); border-color: rgba(31, 107, 51, .25); }
.faq summary { cursor: pointer; list-style: none; font-weight: 700; padding: 14px 0; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--green); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 16px; color: var(--muted); }

.download-band { background: linear-gradient(120deg, var(--orange-soft), #fff 55%, var(--green-soft)); border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; }
.download-band img.logo { width: 92px; height: 92px; border-radius: 22px; box-shadow: var(--shadow-sm); background: #fff; }
.download-band h2 { margin: 0 0 4px; font-size: 28px; }
.download-band p { margin: 0; color: var(--muted); }
.qr { background: #fff; border-radius: 18px; padding: 12px; border: 1px solid var(--line); text-align: center; font-size: 12px; color: var(--muted); }
.qr canvas, .qr img, .qr svg { width: 132px; height: 132px; margin: 0 auto 4px; }

.contact { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.contact .item { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; gap: 12px; align-items: flex-start; }
.contact .item svg { width: 24px; height: 24px; color: var(--green); flex: none; margin-top: 3px; }
.contact .item small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.contact .item a, .contact .item span { font-weight: 700; color: var(--ink); word-break: break-word; }
.muted-note { color: var(--muted); font-size: 14px; text-align: center; margin-top: 14px; }

/* ---------- صفحة التحميل ---------- */
.dl-hero { padding: 56px 0 30px; background: linear-gradient(180deg, #f2f7f3, #fff); }
.dl-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 36px; align-items: start; }
.dl-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.dl-title { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.dl-title img { width: 76px; height: 76px; border-radius: 18px; border: 1px solid var(--line); }
.dl-title h1 { margin: 0; font-size: 28px; line-height: 1.3; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 22px; }
.fact { background: var(--bg-alt); border-radius: 14px; padding: 12px 14px; }
.fact small { display: block; color: var(--muted); font-weight: 700; font-size: 12.5px; }
.fact b { font-size: 16px; }
.fact code { font-size: 11px; word-break: break-all; direction: ltr; display: block; color: var(--muted); }
.notice { background: var(--orange-soft); border: 1px solid #f6d58a; color: #6b4a00; border-radius: 14px; padding: 14px 16px; font-size: 14.5px; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: s; display: flex; gap: 12px; }
.steps li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 9px; background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; font-size: 14px; margin-top: 2px; }
table.history { width: 100%; border-collapse: collapse; font-size: 14.5px; }
table.history th, table.history td { text-align: start; padding: 10px 8px; border-bottom: 1px solid var(--line); }
table.history th { color: var(--muted); font-size: 13px; }

/* ---------- الصفحات القانونية ---------- */
.legal { max-width: 820px; margin: 0 auto; padding: 56px 20px 80px; }
.legal h1 { font-size: 34px; margin: 0 0 8px; }
.legal p { color: #2b3a31; font-size: 17px; }

/* ---------- التذييل ---------- */
footer { background: var(--green-deep); color: #cfe3d4; padding: 56px 0 26px; }
footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
footer h4 { color: #fff; margin: 0 0 12px; font-size: 15px; }
footer a { color: #cfe3d4; display: block; padding: 3px 0; font-size: 14.5px; }
footer a:hover { color: #fff; }
footer .brand { color: #fff; margin-bottom: 10px; }
footer .brand small { color: #9fc2a9; }
footer p { margin: 0; font-size: 14.5px; }
footer .bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 34px; padding-top: 18px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13.5px; }

/* ---------- ظهور تدريجي ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- الشاشات الصغيرة ---------- */
@media (max-width: 980px) {
  .hero .container, .split, .bio, .dl-grid { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .mock { max-width: 560px; margin: 10px auto 30px; }
  .mock-phone { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
  .download-band { grid-template-columns: 1fr; text-align: center; }
  .download-band img.logo { margin: 0 auto; }
}
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav-links, .nav-actions .btn-ghost { display: none; }
  .nav.open .nav-links { display: flex; position: absolute; top: 70px; inset-inline: 0; flex-direction: column; background: #fff; padding: 10px 20px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-sm); }
  .nav-actions { margin-inline-start: 0; }
}
@media (max-width: 640px) {
  section { padding: 60px 0; }
  .about-grid, .facts { grid-template-columns: 1fr; }
  .mock-body { grid-template-columns: 70px 1fr; }
  .kpis { grid-template-columns: repeat(3, 1fr); }
  .bio { padding: 28px 20px; }
  .download-band { padding: 28px 20px; }
  footer .cols { grid-template-columns: 1fr; }
  .hero .actions .btn { width: 100%; }
  .nav-actions .btn-primary { display: none; }
}
