/* Homepage (Arabic + English). Standalone on purpose: the inner pages still use
   Bootstrap + site.css, and the homepage no longer pays for either.
   Logical properties only (inline-start/end), so one stylesheet serves RTL and LTR. */

:root {
  --h-bg: #ffffff;
  --h-soft: #f5f7fb;
  --h-ink: #0f172a;
  --h-ink-2: #475569;
  --h-line: #e2e8f0;
  --h-brand: #4f46e5;
  --h-brand-2: #0ea5e9;
  --h-brand-dark: #4338ca;
  --h-brand-soft: #eef2ff;
  --h-space: #090a1f;
  --h-ok: #16a34a;
  --h-radius: 18px;
  --h-shadow: 0 10px 30px -12px rgba(15, 23, 42, .25);
  --h-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}
html[lang="ar"] { --h-font: 'Tajawal', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; }

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--h-bg); color: var(--h-ink);
  font-family: var(--h-font); line-height: 1.65; font-size: 1rem;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul { margin: 0; }
ul { padding: 0; list-style: none; }
.wrap { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.skip { position: absolute; inset-inline-start: -999px; }
.skip:focus { inset-inline-start: 1rem; top: 1rem; z-index: 99; background: #fff; padding: .5rem 1rem; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--h-brand-2); outline-offset: 2px; border-radius: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 48px; padding: .7rem 1.5rem; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; cursor: pointer; transition: transform .15s, box-shadow .15s, background .15s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--h-brand), var(--h-brand-2)); color: #fff; box-shadow: 0 8px 22px -8px rgba(79, 70, 229, .7); }
.btn-ghost { border-color: rgba(255, 255, 255, .35); color: #fff; background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); }
.btn-outline { border-color: var(--h-line); color: var(--h-ink); background: #fff; }
.btn-sm { min-height: 40px; padding: .4rem 1.1rem; font-size: .95rem; }
.btn-lg { min-height: 56px; padding: .8rem 2rem; font-size: 1.1rem; }

/* Announcement + header */
.promo { background: var(--h-space); color: #c7d2fe; font-size: .9rem; text-align: center; padding: .55rem 1rem; }
.promo b { color: #fff; }
.header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--h-line); }
.header .wrap { display: flex; align-items: center; gap: 1.5rem; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.35rem; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 1.6rem; margin-inline-start: 1rem; font-weight: 500; color: var(--h-ink-2); }
.nav a:hover { color: var(--h-brand); }
.header-actions { display: flex; align-items: center; gap: .6rem; margin-inline-start: auto; }
.lang { font-weight: 600; color: var(--h-ink-2); padding: .4rem .7rem; border-radius: 999px; }
.lang:hover { background: var(--h-soft); }
.burger { display: none; width: 44px; height: 44px; border: 1px solid var(--h-line); background: #fff; border-radius: 12px; font-size: 1.15rem; cursor: pointer; margin-inline-start: auto; }
.drawer { display: none; }

/* Hero */
.hero { position: relative; background: var(--h-space) url('/assets/images/demo/hero.jpg') center/cover no-repeat; color: #fff; overflow: hidden; isolation: isolate; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(9, 10, 31, .55), rgba(9, 10, 31, .88)); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 3rem; align-items: center; padding-block: 5rem 5.5rem; }
.pill { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); padding: .35rem .9rem; border-radius: 999px; font-size: .9rem; color: #e0e7ff; }
.pill i { color: #38bdf8; }
.hero h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); line-height: 1.2; font-weight: 800; margin-block: 1.1rem; letter-spacing: -.02em; }
.hero h1 em { font-style: normal; background: linear-gradient(90deg, #a5b4fc, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.lead { font-size: 1.15rem; color: #cbd5e1; max-width: 34rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-block: 1.8rem 1.4rem; }
.checks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; color: #cbd5e1; font-size: .95rem; }
.checks i { color: #4ade80; margin-inline-end: .35rem; }

/* Store mockup */
.mock { position: relative; }
.browser { background: #fff; border-radius: 16px; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .65); overflow: hidden; color: var(--h-ink); direction: ltr; }
html[lang="ar"] .browser { direction: rtl; }
.browser-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem .9rem; background: #f1f5f9; border-bottom: 1px solid var(--h-line); }
.browser-bar span { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.browser-bar .url { margin-inline-start: .6rem; flex: 1; background: #fff; border-radius: 999px; font-size: .78rem; color: var(--h-ink-2); padding: .15rem .8rem; direction: ltr; text-align: start; }
.mock-body { padding: 1rem; }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .8rem; font-weight: 800; }
.mock-head small { font-weight: 500; color: var(--h-ink-2); }
.mock-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .7rem; }
.p-card { border: 1px solid var(--h-line); border-radius: 12px; overflow: hidden; background: #fff; }
.p-card img { aspect-ratio: 16/11; height: auto; object-fit: cover; width: 100%; background: #f1f5f9; }
.p-card div { padding: .5rem .6rem .65rem; font-size: .82rem; }
.p-card strong { display: block; font-weight: 700; }
.p-card span { color: var(--h-brand); font-weight: 700; }
.toast { position: absolute; inset-inline-start: -1.2rem; bottom: -1.4rem; background: #fff; color: var(--h-ink); border-radius: 14px; padding: .7rem 1rem; display: flex; gap: .7rem; align-items: center; box-shadow: var(--h-shadow); font-size: .9rem; animation: float 4s ease-in-out infinite; }
.toast i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #dcfce7; color: var(--h-ok); }
.toast small { display: block; color: var(--h-ink-2); }
@keyframes float { 50% { transform: translateY(-6px); } }

/* Stats */
.stats { margin-top: -2.6rem; position: relative; z-index: 2; }
.stats ul { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border-radius: var(--h-radius); box-shadow: var(--h-shadow); border: 1px solid var(--h-line); }
.stats li { padding: 1.4rem 1rem; text-align: center; }
.stats li + li { border-inline-start: 1px solid var(--h-line); }
.stats b { display: block; font-size: 2rem; line-height: 1.2; font-weight: 800; color: var(--h-brand); }
.stats span { color: var(--h-ink-2); font-size: .95rem; }

/* Sections */
section { padding-block: 5rem; }
.head { text-align: center; max-width: 40rem; margin: 0 auto 3rem; }
.kicker { color: var(--h-brand); font-weight: 700; font-size: .95rem; }
.head h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.3; font-weight: 800; margin-block: .4rem .8rem; letter-spacing: -.01em; }
.head p { color: var(--h-ink-2); font-size: 1.08rem; }
.alt { background: var(--h-soft); }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.feature { background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius); padding: 1.7rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature:hover { transform: translateY(-4px); box-shadow: var(--h-shadow); border-color: #c7d2fe; }
.ico { width: 52px; height: 52px; display: grid; place-items: center; border-radius: 14px; background: var(--h-brand-soft); color: var(--h-brand); font-size: 1.3rem; margin-bottom: 1rem; }
.feature h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .4rem; }
.feature p { color: var(--h-ink-2); }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: s; }
.step { position: relative; padding: 1.8rem; border-radius: var(--h-radius); background: #fff; border: 1px solid var(--h-line); counter-increment: s; }
.step::before { content: counter(s); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--h-brand), var(--h-brand-2)); color: #fff; font-weight: 800; margin-bottom: 1rem; }
.step h3 { font-size: 1.2rem; margin-bottom: .35rem; }
.step p { color: var(--h-ink-2); }

.showcase { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.shop { background: #fff; border: 1px solid var(--h-line); border-radius: var(--h-radius); overflow: hidden; }
.shop img { aspect-ratio: 16/10; height: auto; width: 100%; object-fit: cover; background: #f1f5f9; }
.shop div { padding: 1.1rem 1.3rem 1.3rem; }
.shop h3 { font-size: 1.1rem; }
.shop p { color: var(--h-ink-2); font-size: .95rem; }

.compare { max-width: 52rem; margin-inline: auto; border: 1px solid var(--h-line); border-radius: var(--h-radius); overflow: hidden; background: #fff; }
.row { display: grid; grid-template-columns: 1.3fr 1fr 1fr; align-items: center; }
.row > * { padding: 1rem 1.2rem; }
.row + .row { border-top: 1px solid var(--h-line); }
.row.th { background: var(--h-soft); font-weight: 800; }
.row .us { background: var(--h-brand-soft); font-weight: 700; color: var(--h-brand-dark); text-align: center; }
.row .them { text-align: center; color: var(--h-ink-2); }
.row.th .us { background: var(--h-brand); color: #fff; }
.compare .yes { color: var(--h-ok); }

.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: .8rem; }
details { background: #fff; border: 1px solid var(--h-line); border-radius: 14px; padding: 0 1.3rem; }
summary { cursor: pointer; font-weight: 700; padding: 1.1rem 0; list-style: none; display: flex; justify-content: space-between; gap: 1rem; align-items: center; min-height: 48px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; font-size: 1.5rem; color: var(--h-brand); line-height: 1; }
details[open] summary::after { content: '–'; }
details p { color: var(--h-ink-2); padding-bottom: 1.1rem; }

.cta { background: var(--h-space) url('/assets/images/demo/hero.jpg') center/cover; color: #fff; text-align: center; position: relative; isolation: isolate; }
.cta::before { content: ''; position: absolute; inset: 0; background: rgba(9, 10, 31, .8); z-index: -1; }
.cta h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.3; }
.cta p { color: #cbd5e1; margin-block: .8rem 1.8rem; font-size: 1.1rem; }

/* Footer */
.footer { background: #0b1020; color: #cbd5e1; padding-block: 3.5rem 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.footer h2 { color: #fff; font-size: 1rem; margin-bottom: .9rem; }
.footer li { margin-bottom: .55rem; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: .8rem; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 2.5rem; padding-top: 1.4rem; text-align: center; font-size: .9rem; color: #94a3b8; }

/* Mobile sticky CTA */
.sticky-cta { display: none; }

/* Tablet */
@media (max-width: 991px) {
  .nav, .header-actions .btn-outline { display: none; }
  .burger { display: grid; place-items: center; }
  .header-actions { margin-inline-start: 0; }
  .header .wrap { justify-content: space-between; }
  .drawer { background: #fff; border-bottom: 1px solid var(--h-line); padding: .5rem 1rem 1.2rem; }
  .drawer.open { display: block; }
  .drawer a:not(.btn) { display: block; padding: .85rem .2rem; font-weight: 600; border-bottom: 1px solid var(--h-line); }
  .drawer .btn { width: 100%; margin-top: .8rem; }
  .hero .wrap { grid-template-columns: 1fr; padding-block: 3.5rem 4.5rem; gap: 3rem; }
  .features, .showcase { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* Phone */
@media (max-width: 640px) {
  section { padding-block: 3.5rem; }
  .promo { font-size: .8rem; }
  .header-actions .btn-primary { display: none; }
  .hero { text-align: center; }
  .hero p.lead { margin-inline: auto; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
  .checks { justify-content: center; }
  .mock-grid { grid-template-columns: repeat(2, 1fr); }
  .mock-grid .p-card:nth-child(3) { display: none; }
  .toast { inset-inline-start: .5rem; bottom: -1.6rem; }
  .stats { margin-top: -1.6rem; }
  .stats ul { grid-template-columns: repeat(2, 1fr); }
  .stats li:nth-child(3) { border-inline-start: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--h-line); }
  .stats b { font-size: 1.6rem; }
  .features, .steps, .showcase { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1.2fr 1fr 1fr; font-size: .88rem; }
  .row > * { padding: .8rem .6rem; }
  .footer-grid { grid-template-columns: 1fr; }
  body { padding-bottom: 76px; }
  .sticky-cta { display: block; position: fixed; inset-inline: 0; bottom: 0; z-index: 60; padding: .7rem 1rem calc(.7rem + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--h-line); }
  .sticky-cta .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
