/* ---------- reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: #e7eaf0;
  background: #0b0d12;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
html[dir='rtl'] body { font-family: 'Tajawal', 'Inter', system-ui, sans-serif; }

img, svg { display: block; max-width: 100%; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
a { color: inherit; text-decoration: none; }
ul, ol { padding: 0; list-style: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------- layout ---------- */
.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

/* ---------- background aura ---------- */
.bg-aura {
  position: fixed; inset: -20% -10% auto -10%; height: 90vh; z-index: -1; pointer-events: none;
  background:
    radial-gradient(40% 50% at 20% 20%, rgba(124,92,255,.35), transparent 60%),
    radial-gradient(35% 50% at 80% 10%, rgba(0,212,255,.25), transparent 60%),
    radial-gradient(50% 60% at 60% 80%, rgba(255,93,170,.18), transparent 60%);
  filter: blur(40px);
}

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 18px 24px;
  max-width: 1180px; margin-inline: auto;
  backdrop-filter: blur(10px);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -.01em; font-size: 18px; }
.brand-mark { display: inline-flex; }
.nav-links { display: none; gap: 28px; margin-inline-start: 16px; }
.nav-links a { color: #b9bec9; font-weight: 500; font-size: 14.5px; transition: color .15s; }
.nav-links a:hover { color: white; }
.nav-cta { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 10px; }
.lang-toggle {
  padding: 8px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08); color: #d6dae3;
  transition: background .15s, border-color .15s;
}
.lang-toggle:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); }
@media (min-width: 860px) {
  .nav-links { display: inline-flex; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14.5px;
  transition: transform .12s ease, box-shadow .2s ease, background .2s, border-color .2s, color .2s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn-lg { padding: 14px 22px; font-size: 15.5px; border-radius: 14px; }
.btn-block { width: 100%; }
.btn-primary {
  color: white; background: linear-gradient(135deg, #7c5cff 0%, #00d4ff 100%);
  box-shadow: 0 10px 30px -10px rgba(124,92,255,.6), inset 0 0 0 1px rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 40px -10px rgba(124,92,255,.7); }
.btn-ghost { color: #e7eaf0; background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.1); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); }

/* ---------- hero ---------- */
.hero { padding: 56px 0 96px; }
.hero-inner { text-align: center; max-width: 880px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600;
  color: #c9cfdb; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1);
  margin-bottom: 24px;
}
h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 800; letter-spacing: -.025em; line-height: 1.05;
  margin-bottom: 22px;
}
.gradient-text {
  background: linear-gradient(135deg, #b39bff 0%, #00d4ff 60%, #7c5cff 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lede {
  font-size: clamp(16px, 1.6vw, 19px);
  color: #b9bec9; max-width: 680px; margin: 0 auto 32px;
}
.hero-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 32px; }
.hero-trust {
  display: inline-flex; flex-wrap: wrap; gap: 8px 24px; justify-content: center;
  color: #8a91a0; font-size: 13.5px;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before { content: '✓'; color: #7c5cff; font-weight: 700; }

.hero-visual {
  margin-top: 64px; display: grid; gap: 18px;
  grid-template-columns: 1fr;
}
@media (min-width: 760px) {
  .hero-visual { grid-template-columns: 1.2fr 1fr; align-items: end; }
}

/* ---------- cards ---------- */
.card {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 20px;
  padding: 24px;
}
.glass {
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  backdrop-filter: blur(14px);
  box-shadow: 0 30px 60px -30px rgba(0,0,0,.6);
}

.card-stack { display: grid; gap: 12px; }
.card-row {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center;
  padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06); font-size: 14px;
}
.dot { width: 10px; height: 10px; border-radius: 999px; }
.dot-purple { background: #7c5cff; box-shadow: 0 0 12px #7c5cff; }
.dot-cyan { background: #00d4ff; box-shadow: 0 0 12px #00d4ff; }
.dot-green { background: #34d399; box-shadow: 0 0 12px #34d399; }
.tag {
  font-size: 12px; padding: 4px 10px; border-radius: 999px;
  background: rgba(124,92,255,.2); color: #c8b9ff; border: 1px solid rgba(124,92,255,.4);
}
.tag-green { background: rgba(52,211,153,.18); color: #86efac; border-color: rgba(52,211,153,.4); }
.muted { color: #8a91a0; font-size: 13px; }

.card-chat { display: grid; gap: 10px; padding: 22px; }
.bubble {
  max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14px; line-height: 1.45;
}
.bubble-them { background: rgba(255,255,255,.07); border-top-left-radius: 4px; align-self: flex-start; justify-self: start; }
.bubble-me {
  background: linear-gradient(135deg, #7c5cff, #00d4ff); color: white;
  border-top-right-radius: 4px; align-self: flex-end; justify-self: end;
}
html[dir='rtl'] .bubble-them { border-top-left-radius: 14px; border-top-right-radius: 4px; }
html[dir='rtl'] .bubble-me { border-top-right-radius: 14px; border-top-left-radius: 4px; }
.typing { display: inline-flex; gap: 4px; padding: 8px 12px; background: rgba(255,255,255,.06); border-radius: 999px; width: max-content; }
.typing span { width: 6px; height: 6px; border-radius: 999px; background: #b9bec9; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- logos ---------- */
.logos { padding: 24px 0 48px; }
.logos-title { text-align: center; color: #6e7484; font-size: 13.5px; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 18px; }
.logos-row {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 28px 44px;
  font-family: 'Inter', sans-serif; font-weight: 700; letter-spacing: -.01em;
  color: #4f5566; font-size: 22px; opacity: .9;
}

/* ---------- sections ---------- */
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.eyebrow {
  display: inline-block; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: rgba(124,92,255,.12); color: #b39bff; border: 1px solid rgba(124,92,255,.25);
  margin-bottom: 18px; text-transform: uppercase; letter-spacing: .08em;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 44px); font-weight: 800; letter-spacing: -.02em;
  line-height: 1.1; margin-bottom: 14px;
}
.section-head p { color: #b9bec9; font-size: 17px; }

.grid { display: grid; gap: 20px; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 720px) { .grid-3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* features */
.features { padding: 64px 0; }
.feature { transition: transform .2s, border-color .2s, background .2s; }
.feature:hover { transform: translateY(-3px); border-color: rgba(124,92,255,.4); background: rgba(124,92,255,.04); }
.feature-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: linear-gradient(135deg, rgba(124,92,255,.25), rgba(0,212,255,.2));
  border: 1px solid rgba(255,255,255,.08);
  display: inline-flex; align-items: center; justify-content: center; font-size: 22px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature p { color: #a8aebb; font-size: 14.5px; }

/* how */
.how { padding: 64px 0; }
.steps { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; }
.step-num {
  position: absolute; top: 18px; inset-inline-end: 22px;
  font-size: 36px; font-weight: 800; letter-spacing: -.02em;
  background: linear-gradient(135deg, rgba(124,92,255,.5), rgba(0,212,255,.5));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  opacity: .8;
}
.step h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.step p { color: #a8aebb; font-size: 14.5px; max-width: 28ch; }

/* pricing */
.pricing { padding: 64px 0; }
.plan { display: grid; gap: 14px; position: relative; }
.plan h3 { font-size: 16px; font-weight: 700; color: #b9bec9; }
.price { display: flex; align-items: baseline; gap: 6px; }
.price-amount { font-size: 38px; font-weight: 800; letter-spacing: -.02em; }
.price-suffix { color: #8a91a0; font-size: 14px; }
.plan ul { display: grid; gap: 8px; margin: 10px 0; }
.plan ul li { font-size: 14.5px; color: #c9cfdb; display: flex; gap: 10px; }
.plan ul li::before { content: '✓'; color: #34d399; font-weight: 700; }
.plan-featured {
  background: linear-gradient(180deg, rgba(124,92,255,.12), rgba(0,212,255,.06));
  border-color: rgba(124,92,255,.4);
  box-shadow: 0 30px 60px -30px rgba(124,92,255,.6);
}
.plan-badge {
  position: absolute; top: -10px; inset-inline-start: 24px;
  background: linear-gradient(135deg, #7c5cff, #00d4ff);
  color: white; font-size: 11.5px; font-weight: 700;
  padding: 4px 10px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em;
}

/* CTA */
.cta { padding: 64px 0; }
.cta-inner {
  display: grid; gap: 20px; align-items: center;
  padding: 36px;
  background: linear-gradient(135deg, rgba(124,92,255,.16), rgba(0,212,255,.1));
  border: 1px solid rgba(124,92,255,.3);
}
.cta-inner h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 6px; }
.cta-inner p { color: #c9cfdb; }
.cta-form { display: grid; gap: 10px; grid-template-columns: 1fr auto; align-items: center; }
.cta-form input {
  padding: 14px 16px; border-radius: 12px;
  background: rgba(0,0,0,.3); border: 1px solid rgba(255,255,255,.12);
  color: white; font-size: 15px; font-family: inherit;
  outline: none; transition: border-color .15s, box-shadow .15s;
  min-width: 0;
}
.cta-form input::placeholder { color: #6e7484; }
.cta-form input:focus { border-color: rgba(124,92,255,.6); box-shadow: 0 0 0 4px rgba(124,92,255,.15); }
.form-msg { grid-column: 1 / -1; font-size: 13.5px; color: #86efac; min-height: 18px; }
@media (min-width: 760px) {
  .cta-inner { grid-template-columns: 1.1fr 1fr; padding: 44px; }
}

/* footer */
.footer { padding: 32px 0 56px; border-top: 1px solid rgba(255,255,255,.06); margin-top: 32px; }
.footer-inner {
  display: grid; gap: 14px; align-items: center;
  grid-template-columns: 1fr;
}
.footer-brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-links { display: inline-flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { color: #8a91a0; font-size: 14px; transition: color .15s; }
.footer-links a:hover { color: white; }
@media (min-width: 760px) {
  .footer-inner { grid-template-columns: auto 1fr auto; }
}

/* RTL specifics */
html[dir='rtl'] .step-num { left: 22px; right: auto; }
html[dir='rtl'] .plan-badge { right: 24px; left: auto; }

/* motion-reduce */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
