:root {
  --bg: #090a17; --bg-2: #0f1124; --card: #14172e; --card-2: #1a1e3a; --line: #262b4d;
  --ink: #f4f5ff; --ink-2: #c6c9e6; --muted: #8d92b8;
  --blue: #4f7cff; --violet: #a855f7; --pink: #ec4899; --ok: #34d399; --soon: #fbbf24;
  --grad: linear-gradient(110deg, var(--blue), var(--violet) 55%, var(--pink));
  --radius: 18px; --max: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.75 "IBM Plex Sans Arabic", Inter, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
[lang="en"] body { font-family: Inter, "IBM Plex Sans Arabic", "Segoe UI", system-ui, sans-serif; line-height: 1.65; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgb(9 10 23 / 78%); backdrop-filter: blur(14px); border-bottom: 1px solid rgb(255 255 255 / 6%); }
.top .wrap { display: flex; align-items: center; gap: 22px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 20px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav { display: flex; gap: 22px; margin-inline-start: auto; font-size: 15px; }
.nav a { text-decoration: none; color: var(--ink-2); }
.nav a:hover { color: var(--ink); }
.lang { font-size: 14px; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px; }
.lang:hover { color: var(--ink); border-color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; font-weight: 600; font-size: 15.5px; padding: 11px 22px; border-radius: 12px; border: 1px solid transparent; transition: transform .15s, box-shadow .15s, background .15s; white-space: nowrap; }
.btn.primary { background: var(--grad); color: #fff; box-shadow: 0 8px 30px rgb(168 85 247 / 35%); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: 0 10px 36px rgb(168 85 247 / 50%); }
.btn.ghost { border-color: var(--line); color: var(--ink); background: rgb(255 255 255 / 3%); }
.btn.ghost:hover { border-color: var(--muted); }
.btn.sm { padding: 8px 16px; font-size: 14.5px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 96px 0 84px; text-align: center; }
.hero::before { content: ""; position: absolute; inset: -40% -20% auto; height: 120%; background:
  radial-gradient(40% 50% at 30% 40%, rgb(79 124 255 / 28%), transparent 70%),
  radial-gradient(35% 45% at 70% 35%, rgb(236 72 153 / 22%), transparent 70%),
  radial-gradient(30% 40% at 50% 60%, rgb(168 85 247 / 22%), transparent 70%); pointer-events: none; }
.hero .wrap { position: relative; }
.hero .logo { width: 92px; height: 92px; border-radius: 22px; box-shadow: 0 0 60px rgb(168 85 247 / 45%); margin-bottom: 26px; }
.hero h1 { font-size: clamp(34px, 5.6vw, 60px); line-height: 1.2; margin: 0 auto 18px; max-width: 900px; letter-spacing: -.01em; }
.hero .sub { font-size: clamp(17px, 2vw, 20px); color: var(--ink-2); max-width: 760px; margin: 0 auto 34px; }
.hero .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .note { margin-top: 18px; font-size: 14px; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 46px; }
.chip { font-size: 14px; color: var(--ink-2); border: 1px solid var(--line); background: rgb(255 255 255 / 3%); border-radius: 999px; padding: 6px 14px; }

/* Sections */
section { padding: 84px 0; }
section.alt { background: var(--bg-2); border-block: 1px solid rgb(255 255 255 / 4%); }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 10px; }
h2 { font-size: clamp(28px, 3.6vw, 40px); line-height: 1.25; margin: 0 0 14px; }
.lead { color: var(--ink-2); max-width: 760px; margin: 0 0 40px; font-size: 18px; }
.center { text-align: center; }
.center .lead { margin-inline: auto; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 19px; }
.card p { margin: 0; color: var(--ink-2); font-size: 15.5px; }
.card .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, rgb(79 124 255 / 22%), rgb(236 72 153 / 22%)); border: 1px solid rgb(168 85 247 / 35%); margin-bottom: 16px; font-size: 20px; }

/* Pipeline */
.flow { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.flow li { counter-increment: s; background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px 20px 18px; position: relative; }
.flow li::before { content: counter(s, decimal-leading-zero); display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.flow b { display: block; font-size: 17px; margin-bottom: 4px; }
.flow span { color: var(--ink-2); font-size: 15px; }

/* Safeguards */
.split { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.list li { position: relative; padding-inline-start: 26px; color: var(--ink-2); font-size: 15.5px; }
.list li::before { content: ""; position: absolute; inset-inline-start: 0; top: .62em; width: 10px; height: 10px; border-radius: 3px; background: var(--grad); }

/* Control table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: 15.5px; min-width: 620px; }
th, td { padding: 14px 18px; text-align: start; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 14px; background: var(--card-2); }
tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.tag { display: inline-block; font-size: 13px; border-radius: 999px; padding: 2px 10px; font-weight: 500; white-space: nowrap; }
.tag.h { background: rgb(79 124 255 / 16%); color: #a9bcff; }
.tag.a { background: rgb(168 85 247 / 16%); color: #d6b4ff; }
.tag.ok { background: rgb(52 211 153 / 14%); color: var(--ok); }
.tag.soon { background: rgb(251 191 36 / 14%); color: var(--soon); }
.safety { margin-top: 18px; padding: 16px 20px; border-radius: 14px; border: 1px solid rgb(168 85 247 / 35%); background: rgb(168 85 247 / 8%); color: var(--ink-2); font-size: 15.5px; }

/* Formats */
.fmt { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.fmt div { display: flex; gap: 14px; align-items: flex-start; justify-content: space-between; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.fmt b { display: block; }
.fmt span { color: var(--ink-2); font-size: 14.5px; }

/* Pricing */
.plans { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; }
.plan.trial { border-color: rgb(168 85 247 / 45%); background: linear-gradient(180deg, rgb(168 85 247 / 10%), var(--card) 60%); }
.plan h3 { margin: 0 0 4px; font-size: 20px; }
.plan .price { font-size: 42px; font-weight: 700; margin: 10px 0 2px; direction: ltr; text-align: start; }
.plan .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan .per { color: var(--muted); font-size: 14px; margin-bottom: 18px; }
.plan .list { margin: 0 0 24px; flex: 1; }
.plan .btn { width: 100%; }
.extras { margin-top: 22px; display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.extras .card p + p { margin-top: 6px; }
.packs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.pack { border: 1px solid var(--line); background: var(--card-2); border-radius: 10px; padding: 6px 12px; font-size: 14.5px; }
.pack b { direction: ltr; unicode-bidi: isolate; }
.loading { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; margin-top: 18px; }

/* FAQ */
details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--violet); font-size: 22px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin: 0 0 16px; color: var(--ink-2); font-size: 15.5px; }

/* CTA + footer */
.final { text-align: center; padding: 72px 24px; border-radius: 28px; background:
  radial-gradient(60% 80% at 20% 0%, rgb(79 124 255 / 30%), transparent 70%),
  radial-gradient(60% 80% at 80% 100%, rgb(236 72 153 / 25%), transparent 70%), var(--card); border: 1px solid var(--line); }
.final h2 { margin-bottom: 10px; }
.final p { color: var(--ink-2); margin: 0 auto 28px; max-width: 620px; }
.final .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
footer { padding: 46px 0 56px; color: var(--muted); font-size: 14.5px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
footer a { color: var(--ink-2); text-decoration: none; }
footer a:hover { color: var(--ink); }

:focus-visible { outline: 2px solid var(--violet); outline-offset: 3px; border-radius: 6px; }
@media (max-width: 860px) { .nav { display: none; } .top .wrap { gap: 12px; } .top .lang { margin-inline-start: auto; } }
@media (max-width: 560px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .hero { padding: 64px 0 60px; }
  section { padding: 60px 0; }
  .top .btn.sm { display: none; }
  .card, .plan { padding: 20px; }
  .final { padding: 48px 18px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }
