:root {
  --bg: #fbfbfd; --band: #f2f3f8; --panel: #ffffff; --text: #14151a; --muted: #5b5e6b; --border: #e2e4ea;
  --accent: #4f46e5; --accent-2: #7c3aed; --accent-text: #ffffff; --ok: #16794c; --ok-bg: #e7f6ee; --bad: #b42318; --bad-bg: #fdecea;
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d0e12; --band: #14151b; --panel: #191a21; --text: #ececf2; --muted: #a2a5b4; --border: #2a2c36;
    --accent: #8b85ff; --accent-2: #b38bff; --accent-text: #0d0e12; --ok: #63d69f; --ok-bg: #11291d; --bad: #ff8e85; --bad-bg: #2e1715;
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Inter, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.center { text-align: center; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.nav { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.02em; }
.logo span { color: var(--accent); }
.nav nav { display: flex; gap: 22px; margin-inline-start: auto; }
.nav nav a { color: var(--muted); font-size: 15px; }
.nav nav a:hover { color: var(--text); }

.btn { display: inline-block; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-text); padding: 12px 22px; border-radius: 10px; font-weight: 600; border: 0; cursor: pointer; font-size: 16px; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn.small { padding: 8px 14px; font-size: 14px; }

.hero { padding: 80px 0 72px; }
.eyebrow { color: var(--accent); font-weight: 600; font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; margin: 0 0 14px; }
h1 { font-size: clamp(34px, 5.5vw, 58px); line-height: 1.08; letter-spacing: -0.03em; margin: 0 0 20px; max-width: 840px; }
h1 em { font-style: normal; background: linear-gradient(135deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0 0 28px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.fine { color: var(--muted); font-size: 14px; margin-top: 14px; }

.preview { margin-top: 48px; background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: 0 20px 60px -30px rgba(40, 30, 120, 0.35); overflow: hidden; }
.preview-head { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.preview-title { margin-inline-start: 10px; font-size: 13px; color: var(--muted); }
.preview table { width: 100%; border-collapse: collapse; font-size: 15px; }
.preview th, .preview td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.preview th { font-size: 12px; color: var(--muted); font-weight: 600; }
.preview-foot { margin: 0; padding: 12px 16px; font-size: 14px; color: var(--accent); font-weight: 600; }
.tag { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; white-space: nowrap; }
.tag.ok { background: var(--ok-bg); color: var(--ok); } .tag.bad { background: var(--bad-bg); color: var(--bad); }

section h2 { font-size: clamp(26px, 3.6vw, 38px); letter-spacing: -0.02em; line-height: 1.15; margin: 0 0 12px; }
.section-lede { color: var(--muted); font-size: 18px; max-width: 680px; margin: 0 0 36px; }
.center .section-lede { margin-left: auto; margin-right: auto; }
.band { background: var(--band); padding: 80px 0; }
.section { padding: 80px 20px; }
.faq details, .faq h2 { max-width: 820px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.steps li { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.steps h3 { margin: 10px 0 6px; font-size: 18px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 14px; }

.table-scroll { overflow-x: auto; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: start; border-bottom: 1px solid var(--border); }
.cmp th { font-size: 14px; color: var(--muted); }
.cmp td:first-child { color: var(--muted); font-size: 14px; }
.cmp .us { background: color-mix(in srgb, var(--accent) 9%, transparent); font-weight: 600; color: var(--text); }
.cmp th.us { color: var(--accent); }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--border); border-radius: 999px; padding: 8px 16px; background: var(--panel); font-size: 15px; }
.chips li.live { border-color: var(--ok); color: var(--ok); font-weight: 600; }
.chips li.soon { color: var(--muted); }
.chips small { color: var(--muted); font-size: 12px; margin-inline-start: 4px; }

.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
.plan { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border: 2px solid var(--accent); }
.badge { position: absolute; top: -12px; inset-inline-start: 24px; margin: 0; background: var(--accent); color: var(--accent-text); font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.plan h3 { margin: 0; font-size: 18px; }
.price { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; margin: 8px 0 16px; }
.price span { font-size: 16px; font-weight: 500; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.plan li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: 15px; }
.plan .btn { text-align: center; }

.faq details { border-bottom: 1px solid var(--border); padding: 18px 0; max-width: 820px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 17px; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.final { padding: 90px 0; }
.signup { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; max-width: 760px; margin: 0 auto; }
.signup input { flex: 1 1 220px; padding: 12px 14px; font: inherit; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); color: var(--text); }

.foot { display: flex; justify-content: space-between; padding: 28px 20px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--border); }

@media (max-width: 960px) {
  .steps { grid-template-columns: 1fr 1fr; }
  .cards, .plans, .modules { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav nav { display: none; }
  .nav-inner .lang { margin-inline-start: auto; }
  .nav-inner > .btn { display: none; }
  .hero { padding: 48px 0; }
  .steps, .cards, .plans { grid-template-columns: 1fr; }
  .preview td:nth-child(3), .preview th:nth-child(3) { display: none; }
  .band, .section { padding-top: 56px; padding-bottom: 56px; }
  .modules { grid-template-columns: 1fr; }
}

/* Modules grid */
.modules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.module { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.module h3 { margin: 10px 0 6px; font-size: 17px; }
.module p { margin: 0; color: var(--muted); font-size: 15px; }
.status { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 10px; border-radius: 999px; }
.status.live { background: var(--ok-bg); color: var(--ok); }
.status.live::before { content: "● "; }
.status.soon { background: var(--band); color: var(--muted); border: 1px solid var(--border); }

/* Language picker */
.lang select { font: inherit; font-size: 14px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel); color: var(--text); }

/* Right-to-left: keep numbers and the logo reading left-to-right */
[dir="rtl"] .logo, [dir="rtl"] .price bdi { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] body { font-family: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2 { letter-spacing: 0; }
@media (max-width: 1100px) { .steps { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 960px) { .modules { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .modules, .steps { grid-template-columns: 1fr; } }
