:root {
  --night: #1b1730;
  --night-2: #262043;
  --sand: #f6eedf;
  --sand-2: #ede1ca;
  --dune: #d9bf93;
  --gold: #c99a3e;
  --gold-2: #e2b85c;
  --ink: #241a12;
  --muted: #6b5d4f;
  --leather: #7b4325;
  --line: rgba(36, 26, 18, .12);
  --radius: 18px;
  --shadow: 0 18px 40px -22px rgba(27, 23, 48, .45);
  --font-display: 'El Messiri', 'IBM Plex Sans Arabic', serif;
  --font-body: 'IBM Plex Sans Arabic', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--sand); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.75; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.25; margin: 0; }
.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 32px); }
.skip { position: absolute; inset-inline-start: 12px; top: -60px; background: var(--gold); color: var(--night); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; font: 600 16px/1.2 var(--font-body); text-decoration: none; border: 2px solid transparent; cursor: pointer; transition: transform .15s, background .2s, box-shadow .2s; }
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 9px 18px; font-size: 15px; }
.btn-block { width: 100%; }
.btn-gold { background: linear-gradient(135deg, var(--gold-2), var(--gold)); color: var(--night); box-shadow: 0 10px 24px -12px rgba(201, 154, 62, .9); }
.btn-ghost { border-color: rgba(246, 238, 223, .45); color: var(--sand); }
.btn-ghost:hover { background: rgba(246, 238, 223, .08); }
.btn-dark { background: var(--night); color: var(--sand); }
.btn-ghost-dark { border-color: var(--line); color: var(--ink); }
.btn-ghost-dark:hover { border-color: var(--ink); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(27, 23, 48, .92); backdrop-filter: blur(10px); color: var(--sand); border-bottom: 1px solid rgba(226, 184, 92, .18); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 34px; height: 34px; fill: var(--gold-2); }
.brand-ar { font: 700 26px/1 var(--font-display); }
.brand-en { font: 500 13px/1 var(--font-body); letter-spacing: .14em; text-transform: uppercase; opacity: .65; padding-top: 4px; }
.links { display: flex; gap: 22px; margin-inline-start: auto; }
.links a { text-decoration: none; font-size: 15px; opacity: .82; }
.links a:hover { opacity: 1; color: var(--gold-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang { background: transparent; border: 1px solid rgba(246, 238, 223, .35); color: var(--sand); border-radius: 999px; min-width: 42px; height: 38px; font: 600 14px var(--font-body); cursor: pointer; }
.lang:hover { border-color: var(--gold-2); color: var(--gold-2); }

/* Hero */
.hero { position: relative; background: radial-gradient(1200px 600px at 70% 10%, #3a2f63 0%, var(--night) 55%, #120f22 100%); color: var(--sand); padding: 72px 0 150px; overflow: hidden; }
.sky { position: absolute; inset: 0; pointer-events: none; }
.moon { position: absolute; top: 34px; inset-inline-end: 6%; width: 70px; height: 70px; border-radius: 50%; box-shadow: -14px 10px 0 0 var(--gold-2); transform: rotate(-20deg); opacity: .9; }
[dir="ltr"] .moon { box-shadow: 14px 10px 0 0 var(--gold-2); transform: rotate(20deg); }
.star { position: absolute; left: var(--x); top: var(--y); width: 3px; height: 3px; border-radius: 50%; background: #fff6dc; box-shadow: 0 0 8px #fff6dc; animation: twinkle 3.5s ease-in-out infinite; }
.star:nth-child(odd) { animation-delay: 1.4s; }
@keyframes twinkle { 50% { opacity: .25; } }
.dunes { position: absolute; bottom: 0; left: 0; width: 100%; height: 170px; }
.dunes .d1 { fill: #3b2c3c; }
.dunes .d2 { fill: var(--sand); }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.eyebrow { color: var(--gold); font: 600 14px/1.4 var(--font-body); letter-spacing: .06em; margin: 0 0 12px; }
.hero .eyebrow { color: var(--gold-2); }
.hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; }
.hl { color: var(--gold-2); }
.lead { font-size: 19px; color: rgba(246, 238, 223, .82); max-width: 580px; margin: 20px 0 30px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-facts { list-style: none; padding: 0; margin: 40px 0 0; display: flex; flex-wrap: wrap; gap: 28px; }
.hero-facts li { display: flex; flex-direction: column; border-inline-start: 2px solid rgba(226, 184, 92, .5); padding-inline-start: 12px; }
.hero-facts b { font: 700 22px/1.3 var(--font-display); color: var(--gold-2); }
.hero-facts span { font-size: 14px; opacity: .72; }
.hero-art { position: relative; display: grid; place-items: center; }
.arch { position: relative; width: min(380px, 80vw); aspect-ratio: 3 / 4; border-radius: 200px 200px 22px 22px; background: linear-gradient(180deg, rgba(226, 184, 92, .16), rgba(226, 184, 92, .02)); border: 2px solid rgba(226, 184, 92, .55); box-shadow: inset 0 0 0 10px rgba(27, 23, 48, .6), inset 0 0 0 11px rgba(226, 184, 92, .25); overflow: hidden; }
.arch-horse { position: absolute; inset-inline-start: 12%; bottom: 0; width: 88%; height: 88%; }
.arch-horse { fill: var(--gold-2); opacity: .95; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .35)); }
[dir="ltr"] .arch-horse { transform: scaleX(-1); }
.seal { position: absolute; bottom: -18px; inset-inline-end: 4%; display: flex; flex-direction: column; gap: 4px; background: var(--sand); color: var(--night); padding: 14px 18px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; font-weight: 600; }
.seal span::before { content: '✓'; color: #2f7a4b; margin-inline-end: 8px; font-weight: 700; }

/* Sections */
.section { padding: 96px 0; }
.band { background: var(--sand-2); }
.head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.head h2 { font-size: clamp(30px, 4vw, 44px); }
.sub { color: var(--muted); margin: 12px 0 0; }
.center { text-align: center; margin-top: 36px; }

/* Listings */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 18px; }
.chip { border: 1px solid var(--line); background: #fff; color: var(--ink); padding: 8px 16px; border-radius: 999px; font: 500 15px var(--font-body); cursor: pointer; }
.chip[aria-selected="true"] { background: var(--night); color: var(--sand); border-color: var(--night); }
.demo-note { text-align: center; color: var(--muted); font-size: 14px; background: rgba(201, 154, 62, .12); border: 1px dashed rgba(201, 154, 62, .6); border-radius: 12px; padding: 10px 16px; max-width: 760px; margin: 0 auto 32px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; transition: transform .2s; }
.card:hover { transform: translateY(-4px); }
.card-art { position: relative; height: 190px; display: grid; place-items: end center; overflow: hidden; }
.card-art svg { width: 78%; height: 92%; fill: rgba(255, 255, 255, .22); }
[dir="ltr"] .card-art svg { transform: scaleX(-1); }
.ribbon { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 12px; padding: 3px 10px; border-radius: 999px; }
.type { position: absolute; top: 12px; inset-inline-end: 12px; background: var(--sand); color: var(--night); font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 23px; }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badge { font-size: 12px; font-weight: 600; color: #2f6b45; background: #e5f2e8; padding: 2px 10px; border-radius: 999px; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.price-tag { font: 700 19px var(--font-display); color: var(--leather); }
.link-btn { background: none; border: 0; color: var(--night); font: 600 15px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.coat-grey { background: linear-gradient(160deg, #c9c6cf, #8d8a99); }
.coat-bay { background: linear-gradient(160deg, #a1623a, #5a2e17); }
.coat-chestnut { background: linear-gradient(160deg, #cf8a4e, #8a4a22); }
.coat-black { background: linear-gradient(160deg, #4a4458, #17141f); }
.coat-gold { background: linear-gradient(160deg, #e2b85c, #9a6f22); }

/* Trust */
.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.trust-card { background: var(--sand); border-radius: var(--radius); padding: 30px 26px; border: 1px solid var(--line); }
.num { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--night); color: var(--gold-2); font: 700 22px var(--font-display); margin-bottom: 14px; }
.trust-card h3 { font-size: 24px; margin-bottom: 8px; }
.trust-card p { margin: 0; color: var(--muted); }

/* How */
.tabs { display: flex; justify-content: center; gap: 6px; background: #fff; border-radius: 999px; padding: 6px; width: fit-content; margin: 0 auto 36px; box-shadow: var(--shadow); }
.tab { border: 0; background: transparent; padding: 10px 22px; border-radius: 999px; font: 600 15px var(--font-body); color: var(--muted); cursor: pointer; }
.tab.active { background: var(--night); color: var(--sand); }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: 26px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(s, arabic-indic); font: 700 40px/1 var(--font-display); color: var(--gold); display: block; margin-bottom: 10px; }
[dir="ltr"] .steps li::before { content: counter(s); }
.steps h3 { font-size: 21px; margin-bottom: 6px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }

/* Services */
.svc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.svc { display: flex; align-items: center; gap: 12px; background: var(--sand); border: 1px solid var(--line); padding: 18px 20px; border-radius: 14px; }
.ico { font-size: 26px; }

/* Plans */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; border: 1px solid var(--line); }
.plan h3 { font-size: 24px; }
.price { font: 700 28px/1.3 var(--font-display); color: var(--leather); margin: 10px 0 0; }
.plan-note { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 8px; }
.plan li::before { content: '◆'; color: var(--gold); font-size: 11px; margin-inline-end: 10px; }
.plan .btn { margin-top: auto; }
.plan.featured { background: var(--night); color: var(--sand); border-color: var(--night); transform: translateY(-8px); box-shadow: var(--shadow); }
.plan.featured .price { color: var(--gold-2); }
.plan.featured .plan-note { color: rgba(246, 238, 223, .7); }
.tag { position: absolute; top: -13px; inset-inline-start: 24px; background: var(--gold-2); color: var(--night); font-size: 13px; font-weight: 700; padding: 3px 14px; border-radius: 999px; }

/* FAQ */
details { background: var(--sand); border: 1px solid var(--line); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; }
summary { cursor: pointer; font: 600 18px/1.5 var(--font-display); padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--gold); font-size: 24px; line-height: 1; }
details[open] summary::after { content: '−'; }
details p { margin: 0 0 16px; color: var(--muted); }

/* Join */
.join { background: linear-gradient(180deg, var(--night), #120f22); color: var(--sand); }
.join-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: start; }
.join-copy h2 { font-size: clamp(30px, 4vw, 44px); margin-bottom: 14px; }
.join-copy .eyebrow { color: var(--gold-2); }
.join-copy p { color: rgba(246, 238, 223, .78); }
.join-horse { width: 220px; height: 220px; fill: rgba(226, 184, 92, .16); margin-top: 30px; }
[dir="ltr"] .join-horse { transform: scaleX(-1); }
.form { background: var(--sand); color: var(--ink); border-radius: 22px; padding: 30px; display: grid; gap: 16px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6); }
.roles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.roles label { position: relative; }
.roles input { position: absolute; opacity: 0; }
.roles span { display: block; text-align: center; padding: 11px 8px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; font-weight: 600; font-size: 15px; cursor: pointer; }
.roles input:checked + span { background: var(--night); color: var(--sand); border-color: var(--night); }
.roles input:focus-visible + span { outline: 3px solid var(--gold-2); outline-offset: 2px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: grid; gap: 6px; font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea { font: 400 16px var(--font-body); padding: 11px 14px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); width: 100%; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px rgba(201, 154, 62, .25); }
.field.invalid input, .field.invalid select { border-color: #b3412e; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin: 0; min-height: 1.5em; font-size: 15px; text-align: center; }
.form-status.ok { color: #2f6b45; font-weight: 600; }
.form-status.err { color: #b3412e; }

/* Footer */
.footer { background: #120f22; color: rgba(246, 238, 223, .75); padding: 36px 0; }
.foot-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer .brand { color: var(--sand); }
.footer p { margin: 0; }
.small { font-size: 14px; }

/* Dialog */
.sheet { border: 0; border-radius: 22px; padding: 0; width: min(560px, 100% - 32px); max-height: 90vh; background: var(--sand); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6); }
.sheet::backdrop { background: rgba(18, 15, 34, .65); backdrop-filter: blur(3px); }
.sheet .card-art { height: 160px; }
.sheet .type { top: 58px; }
.sheet-inner .card-body { padding: 22px 26px 26px; }
.spec { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 6px 0 10px; font-size: 15px; }
.spec dt { color: var(--muted); }
.spec dd { margin: 0; font-weight: 600; }
.close { position: absolute; top: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--sand); font-size: 20px; cursor: pointer; z-index: 2; }

/* Responsive */
@media (max-width: 1000px) {
  .links { display: none; }
  .nav-actions { margin-inline-start: auto; }
  .hero-grid, .join-grid { grid-template-columns: 1fr; }
  .hero-art { order: -1; }
  .arch { width: min(260px, 70vw); }
  .trust-grid, .plans { grid-template-columns: 1fr; }
  .steps, .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .plan.featured { transform: none; }
  .join-horse { display: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .section { padding: 68px 0; }
  .hero { padding: 40px 0 120px; }
  .brand-en { display: none; }
  .steps, .svc-grid, .row2 { grid-template-columns: 1fr; }
  .roles span { font-size: 14px; padding: 10px 4px; }
  .form { padding: 22px 18px; }
  .hero-facts { gap: 18px; }
  .seal { inset-inline-end: 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
