/* ============ AI-BUILD | هوية كحلي وذهبي بروح المخطط الهندسي ============ */
:root {
  --navy: #14213d;
  --navy-2: #1b2a4a;
  --navy-3: #223561;
  --gold: #c9a227;
  --gold-light: #e8c766;
  --paper: #f6f4ee;
  --ink: #1c2233;
  --muted: #5b6478;
  --muted-light: #9aa6c0;
  --line: rgba(201, 162, 39, 0.35);
  --radius: 14px;
  --shadow: 0 18px 50px rgba(10, 18, 40, 0.35);
  --sans: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --mono: "IBM Plex Mono", monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.75;
}
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.container { max-width: 1160px; margin-inline: auto; padding-inline: 24px; }
.center { text-align: center; }
img { max-width: 100%; }
a { color: inherit; }

h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 700; }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 600; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 12px;
}
.gold { color: var(--gold); }
.section-lede { color: var(--muted); max-width: 640px; }
.center.section-lede { margin-inline: auto; }

/* ============ الأزرار ============ */
.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 10px;
  border: 1px solid transparent;
  font: 600 0.95rem var(--sans);
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.btn-gold {
  background: linear-gradient(135deg, var(--gold), #b08d1d);
  color: #0f1830;
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201, 162, 39, 0.35); }
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.08); }
.btn-block { width: 100%; }

/* ============ شريط التنقل ============ */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 33, 61, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 28px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; font-weight: 700; font-size: 1.1rem; }
.brand img { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; }
.brand b { color: var(--gold); }
.nav-links { display: flex; gap: 22px; margin-inline-start: auto; }
.nav-links a { color: var(--muted-light); text-decoration: none; font-size: 0.92rem; transition: color 0.15s; }
.nav-links a:hover { color: var(--gold-light); }

/* ============ البطل: خلفية شبكة مخطط هندسي ============ */
.hero {
  background:
    linear-gradient(rgba(20, 33, 61, 0.96), rgba(27, 42, 74, 0.98)),
    repeating-linear-gradient(0deg, transparent 0 39px, rgba(201, 162, 39, 0.10) 39px 40px),
    repeating-linear-gradient(90deg, transparent 0 39px, rgba(201, 162, 39, 0.10) 39px 40px),
    var(--navy);
  color: #fff;
  padding: 90px 0 100px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.lede { color: var(--muted-light); margin: 18px 0 28px; font-size: 1.05rem; max-width: 540px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  display: flex; gap: 36px; margin-top: 44px;
  padding-top: 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}
.hero-stats strong { display: block; font-size: 1.6rem; color: var(--gold-light); }
.hero-stats span { font-size: 0.82rem; color: var(--muted-light); }

/* ============ لوحة ROI الحية (العنصر المميز) ============ */
.roi-panel {
  background: var(--navy-2);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.roi-head {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 18px;
  background: rgba(0, 0, 0, 0.25);
  border-bottom: 1px solid var(--line);
}
.roi-head .dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.18); }
.roi-title { margin-inline-start: auto; font-size: 0.68rem; letter-spacing: 0.12em; color: var(--gold); }
.roi-body { padding: 22px; }
.roi-body label { display: block; font-size: 0.9rem; color: var(--muted-light); margin-bottom: 10px; }
.roi-controls { display: flex; gap: 10px; }
.roi-controls select {
  flex: 1;
  background: var(--navy-3);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 11px 14px;
  font: 500 0.95rem var(--sans);
}
.roi-result { margin-top: 20px; animation: rise 0.4s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
.roi-main { display: flex; align-items: baseline; gap: 12px; }
.roi-value { font-size: 2.6rem; font-weight: 600; color: var(--gold-light); }
.roi-label { font-size: 0.85rem; color: var(--muted-light); }
.roi-bars { margin: 16px 0 10px; display: grid; gap: 10px; }
.bar-row { display: grid; grid-template-columns: 92px 1fr 44px; align-items: center; gap: 10px; font-size: 0.82rem; color: var(--muted-light); }
.bar { height: 8px; background: rgba(255,255,255,0.10); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 99px; transition: width 0.6s ease; }
.bar-row b { color: #fff; font-weight: 500; }
.roi-verdict { color: #fff; font-weight: 600; font-size: 0.95rem; }
.roi-risk { color: var(--muted-light); font-size: 0.83rem; margin-top: 4px; }
.roi-note { margin-top: 18px; padding-top: 14px; border-top: 1px dashed rgba(255,255,255,0.15); font-size: 0.76rem; color: var(--muted-light); }

/* ============ المشكلة ============ */
.problem { padding: 80px 0; }
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 40px; }
.p-card {
  background: #fff;
  border: 1px solid #e6e1d3;
  border-radius: var(--radius);
  padding: 28px 24px;
}
.p-card strong { display: block; font-size: 1.8rem; color: var(--navy-2); margin-bottom: 8px; }
.p-card p { color: var(--muted); font-size: 0.92rem; }

/* ============ الوحدات الخمس: خط الأنابيب ============ */
.modules { background: var(--navy); color: #fff; padding: 90px 0; }
.modules .section-lede { color: var(--muted-light); margin-top: 12px; }
.pipeline {
  margin-top: 52px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  position: relative;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 34px; right: 4%; left: 4%;
  border-top: 1px dashed var(--line);
}
.module-card {
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: var(--radius);
  padding: 22px 18px;
  position: relative;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.module-card:hover { transform: translateY(-6px); border-color: var(--gold); }
.m-num {
  width: 46px; height: 46px;
  display: grid; place-items: center;
  background: var(--navy-3);
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold-light);
  font-weight: 600;
  margin-bottom: 16px;
  position: relative; z-index: 1;
}
.module-card h3 { margin-bottom: 10px; }
.module-card p { font-size: 0.85rem; color: var(--muted-light); }
.m-metric {
  margin-top: 14px;
  font-size: 0.72rem;
  color: var(--gold);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-top: 10px;
  letter-spacing: 0.04em;
}

/* ============ نموذج العمل ============ */
.model { padding: 90px 0; }
.model-grid { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 56px; align-items: center; }
.model-list { list-style: none; margin-top: 22px; display: grid; gap: 12px; }
.model-list li {
  background: #fff;
  border: 1px solid #e6e1d3;
  border-right: 3px solid var(--gold);
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.93rem;
  color: var(--muted);
}
.model-list b { color: var(--ink); }
.model-target {
  background: var(--navy-2);
  color: var(--muted-light);
  border-radius: var(--radius);
  padding: 40px 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.target-num { font-size: 3.4rem; font-weight: 600; color: var(--gold-light); }

/* ============ طلب العرض ============ */
.demo { background: #fff; border-top: 1px solid #eee7d5; padding: 90px 0; }
.demo-grid { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
.demo-points { margin-top: 22px; display: grid; gap: 10px; }
.demo-points p {
  padding-inline-start: 18px;
  position: relative;
  color: var(--muted);
  font-size: 0.93rem;
}
.demo-points p::before {
  content: "";
  position: absolute; right: 0; top: 0.65em;
  width: 8px; height: 8px;
  background: var(--gold);
  border-radius: 2px;
  transform: rotate(45deg);
}
.demo-form {
  background: var(--paper);
  border: 1px solid #e6e1d3;
  border-radius: var(--radius);
  padding: 30px;
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.84rem; font-weight: 600; margin-bottom: 6px; color: var(--navy-2); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid #d8d2c2;
  border-radius: 10px;
  padding: 11px 14px;
  font: 400 0.95rem var(--sans);
  background: #fff;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.18);
}
.form-status { margin-top: 12px; font-size: 0.88rem; min-height: 1.4em; }
.form-status.ok { color: #1d7a3e; }
.form-status.err { color: #b3261e; }

/* ============ التذييل ============ */
.footer { background: var(--navy); color: var(--muted-light); padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1fr 1.2fr 0.6fr; gap: 44px; padding-bottom: 44px; }
.f-brand p { margin-top: 14px; font-size: 0.88rem; }
.f-news h4 { color: #fff; margin-bottom: 8px; }
.f-news p { font-size: 0.85rem; margin-bottom: 14px; }
.news-form { display: flex; gap: 10px; }
.news-form input {
  flex: 1;
  background: var(--navy-2);
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 10px;
  padding: 11px 14px;
  color: #fff;
  font: 400 0.92rem var(--sans);
}
.news-form input:focus { outline: none; border-color: var(--gold); }
.f-links { display: grid; gap: 10px; align-content: start; }
.f-links a { text-decoration: none; font-size: 0.9rem; transition: color 0.15s; }
.f-links a:hover { color: var(--gold-light); }
.f-bottom {
  display: flex; justify-content: space-between; gap: 12px;
  border-top: 1px solid rgba(255,255,255,0.10);
  padding-block: 20px;
  font-size: 0.8rem;
}

/* ============ لوحة الإدارة ============ */
.admin-body { background: var(--paper); min-height: 100vh; }
.admin-login {
  max-width: 420px;
  margin: 12vh auto;
  background: #fff;
  border: 1px solid #e6e1d3;
  border-radius: var(--radius);
  padding: 36px;
  box-shadow: 0 12px 40px rgba(20, 33, 61, 0.10);
}
.admin-login .brand { color: var(--navy-2); justify-content: center; margin-bottom: 22px; }
.admin-wrap { padding: 30px 0 60px; }
.admin-top { display: flex; align-items: center; gap: 16px; margin-bottom: 26px; }
.admin-top h1 { font-size: 1.4rem; color: var(--navy-2); }
.admin-top .btn { margin-inline-start: auto; }
.stat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; margin-bottom: 30px; }
.stat-card {
  background: var(--navy-2); color: var(--muted-light);
  border-radius: 12px; padding: 18px; text-align: center;
}
.stat-card strong { display: block; font-size: 1.7rem; color: var(--gold-light); }
.stat-card span { font-size: 0.78rem; }
.tabs { display: flex; gap: 8px; margin-bottom: 18px; }
.tab-btn {
  border: 1px solid #d8d2c2; background: #fff; color: var(--muted);
  border-radius: 99px; padding: 8px 20px; font: 600 0.88rem var(--sans); cursor: pointer;
}
.tab-btn.active { background: var(--navy-2); color: var(--gold-light); border-color: var(--navy-2); }
.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
.data-table th, .data-table td { padding: 12px 14px; text-align: right; font-size: 0.86rem; border-bottom: 1px solid #efeadb; }
.data-table th { background: var(--navy-2); color: var(--gold-light); font-weight: 600; }
.data-table tr:hover td { background: #faf8f2; }
.status-pill {
  border: none; border-radius: 99px; padding: 5px 12px;
  font: 600 0.78rem var(--sans); cursor: pointer;
}
.st-new { background: #fdecec; color: #b3261e; }
.st-contacted { background: #fff6dd; color: #8a6d00; }
.st-scheduled { background: #e8f0fe; color: #1a4fa0; }
.st-closed { background: #e6f4ea; color: #1d7a3e; }
.empty-note { padding: 30px; text-align: center; color: var(--muted); background: #fff; border-radius: 12px; }

/* ============ استجابة ============ */
@media (max-width: 960px) {
  .hero-grid, .model-grid, .demo-grid { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .pipeline::before { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .pipeline, .problem-grid, .form-row { grid-template-columns: 1fr; }
  .hero { padding: 60px 0 70px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
