/* Dark-only theme. Layout: single column, logical properties so one sheet serves RTL (ar) and LTR (en). */
:root {
  --bg: #0b1220;
  --surface: #121c30;
  --surface-2: #17233b;
  --ink: #e9eef7;
  --muted: #9aa9c2;
  --line: #22304a;
  --accent: #f0b84a;
  --accent-ink: #1a1305;
  --link: #8db2ff;
  --font-display: "Readex Pro", "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-body: "IBM Plex Sans Arabic", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.85 var(--font-body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); }
a:focus-visible, button:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.4; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-block-end: 8px; }
h3 { font-size: 1.15rem; }
p { margin: 0; }
.wrap { max-width: 1060px; margin-inline: auto; padding-inline: 20px; }
section { padding-block: 64px; border-block-start: 1px solid var(--line); }
.lead { color: var(--muted); max-width: 62ch; margin-block-end: 32px; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }

.top { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(8px); border-block-end: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 12px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; color: var(--ink); text-decoration: none; }
.brand i { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-style: normal; font-size: 15px; }
nav { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
nav a { color: var(--muted); text-decoration: none; font-size: .95rem; }
nav a:hover { color: var(--ink); }
nav a.lang { border: 1px solid var(--line); border-radius: 99px; padding: 0 12px; color: var(--ink); }

.hero { border-block-start: 0; padding-block: 56px 64px; }
.hero .grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; }
.kicker { color: var(--accent); font-weight: 600; margin-block-end: 12px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-block-end: 18px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .sub { color: var(--muted); max-width: 54ch; margin-block-end: 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 2px 14px; font-size: .9rem; color: var(--muted); }
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-block; padding: 12px 22px; border-radius: 10px; font-weight: 600; text-decoration: none; border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn:hover { filter: brightness(1.1); }
.photo { position: relative; max-width: 360px; margin-inline: auto; }
.photo::before { content: ""; position: absolute; inset: 14px -14px -14px 14px; border: 2px solid var(--accent); border-radius: 18px; }
[dir="rtl"] .photo::before { inset: 14px 14px -14px -14px; }
.photo img { position: relative; border-radius: 18px; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 28%; width: 100%; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-block-start: 52px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.9rem; color: var(--accent); font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: .92rem; }
.note { color: var(--muted); font-size: .85rem; margin-block-start: 12px; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card h3 { margin-block-end: 8px; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { margin: 12px 0 0; padding-inline-start: 20px; color: var(--muted); font-size: .94rem; }

.proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.shot { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; margin: 0; }
.shot:first-child { grid-column: 1 / -1; }
.shot a { display: block; background: #fff; }
.shot img { width: 100%; }
.shot figcaption { padding: 14px 18px; display: flex; flex-wrap: wrap; gap: 6px 22px; align-items: baseline; }
.shot figcaption b { font-family: var(--font-display); color: var(--accent); margin-inline-end: auto; }
.shot figcaption span { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }
dialog { border: 0; padding: 0; background: transparent; max-width: 96vw; }
dialog::backdrop { background: rgba(3, 7, 14, .85); }
dialog img { max-height: 92vh; border-radius: 10px; background: #fff; }

ol.steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
ol.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 22px; }
ol.steps li::before { content: counter(s); display: block; font-family: var(--font-display); font-weight: 700; color: var(--accent); font-size: 1.6rem; }
ol.steps h3 { margin-block: 4px 6px; }
ol.steps p { color: var(--muted); font-size: .94rem; }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; }
.about p { color: var(--muted); }
.about p + p { margin-block-start: 14px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-block-end: 10px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin-block-start: 8px; font-size: .97rem; }

.contact { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 40px 28px; text-align: center; }
.contact h2 { margin-block-end: 10px; }
.contact > p { color: var(--muted); margin-block-end: 24px; }
.contact .btns { justify-content: center; }
.contact .info { margin-block-start: 22px; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 28px; color: var(--muted); }
footer { padding-block: 28px 56px; color: var(--muted); font-size: .88rem; text-align: center; }
.wa { position: fixed; inset-block-end: 18px; inset-inline-end: 18px; z-index: 20; background: #25d366; color: #05210f; font-weight: 700; text-decoration: none; padding: 10px 18px; border-radius: 99px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }

/* Blog */
.post { max-width: 720px; margin-inline: auto; padding: 48px 20px 24px; }
.post h1 { font-size: clamp(1.8rem, 4vw, 2.5rem); margin-block-end: 12px; }
.post h2 { font-size: 1.45rem; margin-block: 36px 8px; }
.post p, .post li { color: #cdd7e8; }
.post p + p { margin-block-start: 14px; }
.post ul, .post ol { padding-inline-start: 22px; }
.meta { color: var(--muted); font-size: .9rem; margin-block-end: 28px; }
.crumbs { color: var(--muted); font-size: .88rem; margin-block-end: 18px; }
.cta { margin-block: 40px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.cta p { margin-block-end: 14px; }
.postlist { display: grid; gap: 16px; }
.postlist a.card { display: block; text-decoration: none; color: inherit; }
.postlist a.card:hover { border-color: var(--accent); }
.postlist .meta { margin: 0 0 6px; }

@media (max-width: 820px) {
  .hero .grid, .about { grid-template-columns: 1fr; }
  .photo { max-width: 260px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .proof { grid-template-columns: 1fr; }
  section { padding-block: 48px; }
}

@media (max-width: 600px) {
  .top .wrap { gap: 8px; }
  .top nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; white-space: nowrap; padding-block-end: 4px; }
  .hero { padding-block-start: 30px; }
  .hero .grid { gap: 26px; }
  .photo { max-width: min(70vw, 280px); }
  .stats { margin-block-start: 34px; }
  .stat { padding: 14px; }
}
