/* ── سولفر — صفحة الهبوط ───────────────────────────────────────────────
   نفس هوية التطبيق: ليل #121212، سطح #1E1E1E، بورجيندي فعل فقط،
   دهبي = الشعار والأرقام الحقيقية فقط، خطوط رفيعة، بدون تدرجات. */

@font-face {
  font-family: 'Tajawal';
  src: url('fonts/Tajawal-Regular.woff2') format('woff2'), url('fonts/Tajawal-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/Tajawal-Medium.woff2') format('woff2'), url('fonts/Tajawal-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/Tajawal-Bold.woff2') format('woff2'), url('fonts/Tajawal-Bold.ttf') format('truetype');
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: 'Tajawal';
  src: url('fonts/Tajawal-ExtraBold.woff2') format('woff2'), url('fonts/Tajawal-ExtraBold.ttf') format('truetype');
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #121212;
  --surface: #1E1E1E;
  --raised: #2A2A2A;
  --line: #2E2E2E;
  --burgundy: #800020;
  --burgundy-2: #A0334A;
  --gold: #D4AF37;
  --gold-2: #E8CC6E;
  --ink: #E0E0E0;
  --ink-2: #9E9E9E;
  --ok: #4CAF50;
  --warn: #FFA726;
  --bad: #CF6679;
  --log: #1B1917;
  --radius: 14px;
  --radius-2: 12px;
  --sect: clamp(72px, 10vw, 120px);
}

.geo-answer {
  margin-top: 14px;
  padding: 12px 16px;
  border-inline-start: 3px solid var(--gold);
  background: var(--surface);
  border-radius: 0 var(--radius-2) var(--radius-2) 0;
  color: var(--ink-2);
  max-width: 620px;
}

.glossary {
  margin-top: 10px;
  color: var(--ink-2);
  font-size: 13px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Tajawal', system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  font-size: 1.04rem;
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--burgundy); color: #fff; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 3px;
}

.wrap {
  max-width: 1120px;
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.lat { font-weight: 800; }

/* ── الأزرار ── */
.btn {
  display: inline-block;
  border-radius: var(--radius-2);
  padding: 10px 20px;
  font-family: 'Tajawal';
  font-size: .95rem;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.6;
}
.btn-primary {
  background: var(--burgundy);
  color: #fff;
}
.btn-primary:hover { background: var(--burgundy-2); }
.btn-big {
  font-size: 1.1rem;
  padding: 14px 34px;
}

/* ── الهيدر ── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.head-in {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-2);
  border: 1px solid var(--line);
  display: block;
}
.brand-mark.small {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}
.brand-name {
  color: var(--ink);
  font-weight: 800;
  font-size: 1.1rem;
}
.site-head nav { display: flex; gap: 4px; }
.head-link {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
  padding: 6px 12px;
  border-radius: 8px;
}
.head-link:hover { color: var(--ink); }
.head-cta { margin-inline-start: auto; }

/* ── البطل ── */
.hero {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  padding-block: clamp(56px, 9vw, 104px);
}
.hero h1 {
  font-size: clamp(2.2rem, 5.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.22;
  max-width: 20ch;
}
.js .hero h1[data-type] { visibility: hidden; }
.js .hero h1.type-live,
.js .hero h1.type-done { visibility: visible; }
.type-caret {
  display: inline-block;
  width: 2px;
  height: .92em;
  margin-inline-start: 3px;
  vertical-align: -.1em;
  background: var(--gold);
  animation: caretBlink .9s steps(1) infinite;
}
@keyframes caretBlink {
  0%, 50% { opacity: 1; }
  50.01%, 100% { opacity: 0; }
}
.hero-copy > p:not(.hero-sub):not(.hero-foot) { color: var(--ink-2); }
.hero-sub {
  margin-top: 24px;
  max-width: 52ch;
  color: var(--ink-2);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note {
  color: var(--ink-2);
  font-size: .9rem;
}
.hero-foot {
  margin-top: 20px;
  font-size: .92rem;
  color: var(--ink-2);
}

/* ── معاينة داخل التطبيق (فريم تليفون) ── */
.hero-device {
  display: flex;
  justify-content: center;
}
.device {
  width: min(300px, 84vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 9px;
}
.device-screen {
  display: flex;
  flex-direction: column;
  min-height: 572px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 29px;
  overflow: hidden;
}
.dev-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 18px 0;
  color: var(--ink-2);
  font-size: 10px;
}
.dev-time {
  direction: ltr;
  font-variant-numeric: tabular-nums;
  letter-spacing: .5px;
}
.dev-sig { display: flex; align-items: flex-end; gap: 3px; }
.dev-sig i {
  display: block;
  width: 3px;
  background: var(--ink-2);
  border-radius: 1px;
}
.dev-sig i:nth-child(1) { height: 5px; }
.dev-sig i:nth-child(2) { height: 8px; }
.dev-sig i:nth-child(3) { height: 11px; }
.dev-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 18px;
  border-bottom: 1px solid var(--line);
}
.dev-brand { display: flex; align-items: center; gap: 8px; }
.dev-logo {
  display: block;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid var(--line);
}
.dev-name { font-weight: 800; font-size: .84rem; }
.dev-bell {
  position: relative;
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 50%;
}
.dev-bell::after {
  content: "";
  position: absolute;
  top: -2px;
  inset-inline-end: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.dev-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px 18px 6px;
}
.dev-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
}
.dev-card-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}
.dev-plat { font-weight: 700; font-size: .82rem; }
.dev-pct {
  direction: ltr;
  color: var(--gold);
  font-weight: 800;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.dev-progress {
  margin-top: 10px;
  height: 6px;
  border-radius: 999px;
  background: var(--raised);
  overflow: hidden;
}
.dev-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--gold);
}
.dev-wallet {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 5px 12px;
}
.dev-coin {
  width: 13px;
  height: 13px;
  border: 2px solid var(--gold);
  border-radius: 50%;
  box-sizing: border-box;
}
.dev-wallet-num {
  direction: ltr;
  color: var(--gold);
  font-weight: 800;
  font-size: .82rem;
  font-variant-numeric: tabular-nums;
}
.dev-wallet-lbl { color: var(--ink-2); font-size: .72rem; }
.dev-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px 16px;
  border-top: 1px solid var(--line);
}
.dev-nav i {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
  border: 1px solid var(--line);
  border-radius: 7px;
}
.dev-nav i.on { border-color: var(--gold); }
.dev-nav i.on::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
}
.log-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.log-title { font-weight: 700; font-size: .95rem; }
.log-chip {
  color: var(--ok);
  border: 1px solid rgba(76, 175, 80, .35);
  font-size: .78rem;
  font-weight: 700;
  padding: 1px 12px;
  border-radius: 999px;
}
.log-lines {
  list-style: none;
  padding-top: 8px;
}
.log-lines li {
  display: flex;
  gap: 14px;
  align-items: baseline;
  padding: 7px 0;
  opacity: 0;
  animation: logIn .45s ease forwards;
  animation-delay: var(--d, 0s);
}
@keyframes logIn {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: none; }
}
.log-t {
  direction: ltr;
  font-size: .78rem;
  color: var(--ink-2);
  font-variant-numeric: tabular-nums;
  flex: none;
  padding-top: 2px;
}
.log-lines p { font-size: .92rem; color: var(--ink); }
.log-lines li:last-child p { color: var(--ok); font-weight: 700; }
.log-lines li:nth-last-child(2) p { color: var(--warn); }
.device-screen .log-head { padding-bottom: 9px; }
.device-screen .log-title { font-size: .8rem; }
.device-screen .log-chip { font-size: .66rem; padding: 0 10px; }
.device-screen .log-lines li { gap: 10px; padding: 5px 0; }
.device-screen .log-t { font-size: .66rem; }
.device-screen .log-lines p { font-size: .76rem; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .log-lines li { opacity: 1; animation: none; }
  .js .hero h1[data-type] { visibility: visible; }
  .type-caret { animation: none; }
}

/* ── الأقسام ── */
section { padding-top: var(--sect); }
section h2 {
  font-size: clamp(1.5rem, 3.2vw, 2.05rem);
  font-weight: 800;
  line-height: 1.3;
}
.section-sub {
  color: var(--ink-2);
  margin-top: 10px;
  max-width: 56ch;
}

/* المنصات: صفوف مش كروت */
.mokus-list {
  list-style: none;
  margin-top: 40px;
}
.mokus-list li {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 8px clamp(16px, 3vw, 40px);
  align-items: baseline;
  padding: 20px 0;
  border-top: 1px solid var(--line);
}
.mokus-name {
  font-weight: 700;
  font-size: 1.25rem;
}
.mokus-plat {
  color: var(--ink-2);
  font-weight: 700;
  font-size: .85rem;
}
.mokus-chap {
  color: var(--gold);
  font-weight: 700;
  font-size: .95rem;
  white-space: nowrap;
}
.ela-note {
  margin-top: 24px;
  color: var(--ink-2);
  font-size: .95rem;
  max-width: 64ch;
}

/* الخطوات: تسلسل حقيقي */
.kez {
  list-style: none;
  margin-top: 40px;
}
.kez li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px 20px;
  align-items: baseline;
  padding: 26px 0;
  border-top: 1px solid var(--line);
}
.kez li::before {
  counter-increment:seq;
  content: counter(seq, decimal);
  color: var(--gold);
  font-weight: 800;
  font-size: 1.5rem;
  line-height: 1.2;
  min-width: 2ch;
}
.kez { counter-reset: seq; }
.kez strong { font-size: 1.15rem; font-weight: 700; }
.kez p {
  grid-column: 2;
  color: var(--ink-2);
  max-width: 56ch;
}

/* جوه التطبيق */
.jwa-list {
  list-style: none;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  column-gap: clamp(32px, 5vw, 64px);
}
.jwa-list li {
  border-top: 1px solid var(--line);
  padding: 20px 0;
}
.jwa-list strong { font-size: 1.08rem; font-weight: 700; }
.jwa-list p {
  margin-top: 6px;
  color: var(--ink-2);
  max-width: 44ch;
}

/* الأسئلة */
.asaelah details {
  border-top: 1px solid var(--line);
}
.asaelah details:last-of-type { border-bottom: 1px solid var(--line); }
.asaelah summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  cursor: pointer;
  list-style: none;
  font-weight: 700;
  font-size: 1.05rem;
}
.asaelah summary::-webkit-details-marker { display: none; }
.asaelah summary::after {
  content: '+';
  color: var(--ink-2);
  font-weight: 400;
  font-size: 1.4rem;
  line-height: 1;
  flex: none;
}
.asaelah details[open] summary::after { content: '−'; }
.asaelah summary:hover { color: #fff; }
.asaelah details p {
  color: var(--ink-2);
  padding-bottom: 22px;
  max-width: 62ch;
}
.asaelah { padding-bottom: var(--sect); }

/* الفوتر */
.site-foot {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 36px 0;
}
.foot-in {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 32px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
}
.site-foot nav {
  display: flex;
  gap: 24px;
  margin-inline-start: auto;
}
.site-foot a {
  color: var(--ink-2);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.site-foot a:hover { color: var(--ink); }

/* ── استجابة ── */
@media (max-width: 940px) {
  .hero { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .site-head nav { display: none; }
  .geo-answer { display: none; }
  .jwa-list { grid-template-columns: 1fr; }
  .mokus-list li { grid-template-columns: 1fr auto; }
  .mokus-plat { display: none; }
  .kez li { gap: 8px 18px; }
}
