:root {
  --ink: #1f262c;
  --ink-2: #2b3137;
  --text: #2b3137;
  --muted: #66737f;
  --line: #e6ebef;
  --bg: #f6f7f9;
  --surface: #ffffff;
  --orange: #f97316;
  --orange-deep: #e85d04;
  --orange-dark: #c2410c;
  --orange-soft: #fff1e6;
  --green: #16a34a;
  --radius: 22px;
  font-family: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--bg); line-height: 1.75; -webkit-font-smoothing: antialiased; }
a { color: var(--orange-dark); }
img { max-width: 100%; }
.wrap { width: min(1120px, 100%); margin: 0 auto; padding: 0 20px; }
:focus-visible { outline: 3px solid #fdba74; outline-offset: 2px; border-radius: 6px; }

/* ---------- top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .9); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 18px; font-weight: 700; text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 12px; object-fit: cover; }
.brand b { color: var(--orange-deep); }
.nav { display: flex; gap: 4px; margin-inline-start: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--muted); font-size: 15px; font-weight: 600; text-decoration: none; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--orange-dark); background: var(--orange-soft); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 22px; border: 0; border-radius: 14px; font: inherit; font-size: 15.5px; font-weight: 700; text-decoration: none; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { color: #fff; background: linear-gradient(120deg, var(--orange), var(--orange-deep)); box-shadow: 0 10px 24px rgba(232, 93, 4, .28); }
.btn-ghost { color: #fff; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .22); }
.btn-ghost:hover { background: rgba(255, 255, 255, .2); }
.btn-light { color: var(--orange-dark); background: var(--orange-soft); }
.topbar .btn { padding: 9px 16px; font-size: 14.5px; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; color: #fff; background: linear-gradient(118deg, #a8440c 0%, #4a2f22 46%, #1f262c 100%); }
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.hero::before { width: 520px; height: 520px; top: -220px; inset-inline-start: -160px; background: radial-gradient(rgba(249, 115, 22, .45), transparent 65%); }
.hero::after { width: 380px; height: 380px; bottom: -200px; inset-inline-end: 8%; background: radial-gradient(rgba(255, 200, 154, .18), transparent 65%); }
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 88px; }
.eyebrow { display: inline-block; padding: 6px 14px; border-radius: 99px; color: #ffc89a; background: rgba(255, 255, 255, .1); font-size: 14px; font-weight: 600; }
.hero h1 { margin: 18px 0 14px; font-size: clamp(32px, 5vw, 52px); line-height: 1.25; }
.hero h1 em { font-style: normal; color: #fdba74; }
.hero p.lead { max-width: 560px; margin: 0 0 28px; color: rgba(255, 255, 255, .8); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 26px; margin-top: 36px; }
.hero-stats div strong { display: block; font-size: 22px; }
.hero-stats div span { color: rgba(255, 255, 255, .7); font-size: 14px; }

/* phone mockup */
.mock { position: relative; justify-self: center; width: min(300px, 100%); aspect-ratio: 9 / 18.5; padding: 12px; border-radius: 42px; background: #12171b; box-shadow: 0 40px 80px rgba(0, 0, 0, .45), inset 0 0 0 2px rgba(255, 255, 255, .08); }
.mock-screen { height: 100%; overflow: hidden; border-radius: 32px; background: var(--bg); }
.mock-head { padding: 26px 16px 18px; color: #fff; background: linear-gradient(118deg, #a8440c, #2b3137); border-radius: 0 0 22px 22px; }
.mock-head small { color: rgba(255, 255, 255, .7); font-size: 11px; }
.mock-head b { display: block; font-size: 17px; }
.mock-search { margin-top: 12px; padding: 8px 12px; border-radius: 12px; background: rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .75); font-size: 11px; }
.mock-card { margin: 12px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.mock-cover { height: 62px; background: linear-gradient(120deg, #ea5a0c, #f59e0b); }
.mock-cover.alt { background: linear-gradient(120deg, #334155, #e85d04); }
.mock-body { padding: 9px 11px; }
.mock-body b { display: block; color: var(--ink); font-size: 12.5px; }
.mock-body span { color: var(--muted); font-size: 10.5px; }
.mock-pill { display: inline-block; margin-top: 6px; padding: 2px 8px; border-radius: 99px; color: var(--green); background: #e8f6ee; font-size: 9.5px; font-weight: 600; }

/* ---------- sections ---------- */
section.block { padding: 80px 0; }
.section-title { max-width: 660px; margin: 0 auto 44px; text-align: center; }
.section-title span { color: var(--orange-deep); font-size: 14px; font-weight: 700; }
.section-title h2 { margin: 8px 0 10px; color: var(--ink); font-size: clamp(26px, 3.6vw, 36px); line-height: 1.35; }
.section-title p { margin: 0; color: var(--muted); font-size: 17px; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.card { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: 0 8px 26px rgba(26, 38, 48, .05); transition: transform .18s, box-shadow .18s; }
.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(26, 38, 48, .09); }
.icon { display: grid; width: 52px; height: 52px; place-items: center; margin-bottom: 16px; border-radius: 16px; color: var(--orange-deep); background: var(--orange-soft); }
.icon svg { width: 26px; height: 26px; }
.card h3 { margin: 0 0 6px; color: var(--ink); font-size: 18.5px; }
.card p { margin: 0; color: var(--muted); font-size: 15.5px; }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.panel { padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); }
.panel.dark { color: #fff; background: linear-gradient(140deg, #2b3137, #1f262c); border: 0; }
.panel h3 { margin: 0 0 6px; font-size: 22px; }
.panel .sub { margin: 0 0 18px; color: var(--muted); }
.panel.dark .sub { color: rgba(255, 255, 255, .7); }
.checks { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.checks li { display: flex; gap: 10px; align-items: flex-start; font-size: 15.5px; }
.checks li::before { content: "✓"; display: grid; flex: 0 0 auto; width: 24px; height: 24px; place-items: center; margin-top: 3px; border-radius: 50%; color: #fff; background: var(--green); font-size: 13px; font-weight: 700; }
.panel.dark .checks li::before { background: var(--orange); }

.steps { counter-reset: step; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { position: relative; padding: 26px 24px 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.step::before { counter-increment: step; content: counter(step); display: grid; width: 40px; height: 40px; place-items: center; margin-bottom: 14px; border-radius: 12px; color: #fff; background: var(--ink-2); font-weight: 700; }
.step h3 { margin: 0 0 4px; color: var(--ink); font-size: 17.5px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.cta { padding: 64px 0; }
.cta-box { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 40px; border-radius: 28px; color: #fff; background: linear-gradient(118deg, #e85d04, #a8440c 55%, #2b3137); box-shadow: 0 24px 50px rgba(168, 68, 12, .25); }
.cta-box h2 { margin: 0 0 6px; font-size: clamp(24px, 3vw, 30px); }
.cta-box p { margin: 0; color: rgba(255, 255, 255, .82); }

/* ---------- legal pages ---------- */
.page-hero { padding: 56px 0 40px; color: #fff; background: linear-gradient(118deg, #a8440c 0%, #4a2f22 46%, #1f262c 100%); }
.page-hero h1 { margin: 0 0 6px; font-size: clamp(28px, 4vw, 40px); }
.page-hero p { margin: 0; color: rgba(255, 255, 255, .75); }
.legal { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; align-items: start; padding: 40px 20px 72px; }
.toc { position: sticky; top: 88px; padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.toc b { display: block; margin-bottom: 8px; color: var(--ink); }
.toc ol { margin: 0; padding-inline-start: 18px; color: var(--muted); font-size: 14.5px; }
.toc a { color: var(--muted); text-decoration: none; }
.toc a:hover { color: var(--orange-dark); }
.doc { padding: 34px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); }
.doc h2 { margin: 30px 0 8px; padding-top: 6px; color: var(--ink); font-size: 21px; scroll-margin-top: 90px; }
.doc h2:first-of-type { margin-top: 0; }
.doc p, .doc li { color: #3d4852; font-size: 16px; }
.doc ul { padding-inline-start: 22px; }
.doc li { margin: 4px 0; }
.note { margin: 16px 0; padding: 14px 18px; border-radius: 14px; color: #7c2d12; background: var(--orange-soft); font-size: 15px; }

/* ---------- footer ---------- */
footer { color: rgba(255, 255, 255, .72); background: var(--ink); }
footer .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 30px; padding-top: 48px; padding-bottom: 28px; }
footer .brand { color: #fff; }
footer h4 { margin: 0 0 10px; color: #fff; font-size: 15px; }
footer ul { margin: 0; padding: 0; list-style: none; }
footer li { margin: 6px 0; }
footer a { color: rgba(255, 255, 255, .72); text-decoration: none; }
footer a:hover { color: #fdba74; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; padding: 18px 20px 26px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: 13.5px; }
.foot-bottom a { color: #fdba74; font-weight: 700; }

@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: minmax(0, 1fr); padding-top: 48px; padding-bottom: 64px; }
  .mock { display: none; }
  .split { grid-template-columns: minmax(0, 1fr); }
  .legal { grid-template-columns: minmax(0, 1fr); }
  .toc { position: static; }
  footer .wrap { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .nav { display: none; }
  .topbar .wrap { gap: 10px; }
  .topbar .btn { margin-inline-start: auto; }
  section.block { padding: 56px 0; }
  .doc { padding: 22px 18px; }
  .cta-box { padding: 28px 22px; }
  .hero-actions .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .card { transition: none; }
}
