﻿:root {
  --ink: #23364b;
  --muted: #64778d;
  --line: #dde5f1;
  --brand: #4864f3;
  --hero-bg: #eceff5;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Manrope', sans-serif;
  color: var(--ink);
  background: #fff;
}

html[lang='ar'] body { font-family: 'Tajawal', sans-serif; }
a { color: inherit; text-decoration: none; }
.container { max-width: 1230px; margin: 0 auto; padding: 0 20px; }

.topbar { background: #0f1015; color: #e7edf7; }
.topbar-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  direction: ltr;
}

.socials { display: flex; align-items: center; gap: 14px; }
.socials a {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #2e3441;
}

.contact-line { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.divider { width: 1px; height: 22px; background: #3b4453; }
.ltr-number {
  direction: ltr;
  unicode-bidi: bidi-override;
  display: inline-block;
  white-space: nowrap;
}

.main-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 96px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 16px;
  direction: ltr;
}

.logo img { width: min(190px, 34vw); display: block; }

.main-nav { display: flex; justify-content: center; gap: 8px; }
.main-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
  color: #2f4056;
}
.main-nav a:hover { background: #edf2ff; color: var(--brand); }

.header-cta { display: flex; align-items: center; gap: 10px; }
.lang-btn {
  border: 1px solid #cad7ea;
  background: #f8fbff;
  color: #2f4666;
  border-radius: 9px;
  min-width: 54px;
  padding: 8px 10px;
  font-weight: 800;
  cursor: pointer;
}

.talk-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 10px 14px;
  font-weight: 800;
  background: #fff;
}

.wa-btn {
  width: 46px;
  height: 46px;
  border-radius: 999px;
  border: 2px solid #ff4d80;
  background: #43d764;
  color: #fff;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero {
  background: var(--hero-bg);
  overflow: hidden;
}

.hero-grid {
  min-height: 640px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.hero-copy { position: relative; z-index: 2; }

.kicker {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.hero-copy h1 {
  margin: 0;
  font-size: clamp(2.15rem, 5.1vw, 4.55rem);
  line-height: 1.08;
  max-width: 10.8ch;
}

.hero-copy p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 56ch;
}

.hero-points {
  margin-top: 15px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-points span {
  border: 1px solid #c8d7ea;
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  color: #31455f;
  background: #f8fbff;
}

.hero-actions { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.btn { border-radius: 999px; padding: 13px 26px; font-weight: 800; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-outline { border: 2px solid #ff5b86; color: #ff5b86; background: #fff; }

.hero-art {
  min-height: 500px;
  position: relative;
  display: grid;
  place-items: center;
  z-index: 1;
}

.blob {
  position: absolute;
  width: 820px;
  height: 760px;
  right: -230px;
  top: -250px;
  border-radius: 47% 53% 44% 56%;
  background: #a9b5f2;
  opacity: .68;
}

.scene {
  position: relative;
  width: min(640px, 95%);
  height: 380px;
}

.screen {
  position: absolute;
  border-radius: 14px;
  border: 1px solid #d7e2f1;
  background: #fff;
  box-shadow: 0 16px 30px rgba(16, 32, 60, .13);
  padding: 14px;
}

.code-screen {
  width: 54%;
  height: 56%;
  left: 14%;
  top: 20%;
  background: #121a28;
  border-color: #2a3548;
}

.ui-screen {
  width: 46%;
  height: 48%;
  right: 8%;
  top: 28%;
}

.line {
  height: 8px;
  border-radius: 999px;
  margin-bottom: 10px;
  background: #dde6f3;
}

.code-screen .line { background: #4f6fff; opacity: .9; }
.code-screen .line:nth-child(2n) { background: #f36d6d; }

.w40 { width: 40%; }
.w50 { width: 50%; }
.w55 { width: 55%; }
.w60 { width: 60%; }
.w70 { width: 70%; }
.w72 { width: 72%; }
.w80 { width: 80%; }
.w85 { width: 85%; }

.section { padding: 64px 0; }
.alt { background: #f8fbff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.5rem); margin: 0 0 18px; }
.cards { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.cards.two { grid-template-columns: repeat(2, minmax(0,1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 26px rgba(24, 46, 77, .12); }
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--muted); line-height: 1.65; }
.card-link {
  display: inline-flex;
  margin-top: 12px;
  color: var(--brand);
  font-weight: 800;
  border: 1px solid #c7d5ea;
  border-radius: 999px;
  padding: 8px 12px;
  background: #f6f9ff;
}

.demo-card {
  display: flex;
  flex-direction: column;
}

.demo-points {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #435972;
}

.demo-points li {
  margin-bottom: 7px;
}

.contact { background: #0f1c2f; color: #eaf1fb; }
.contact-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; }
.contact p { color: #c8d5e8; }

footer { background: #081121; color: #97aac3; }
footer .container { min-height: 62px; display: flex; align-items: center; justify-content: center; text-align: center; }

html[dir='rtl'] .hero-copy,
html[dir='rtl'] .card,
html[dir='rtl'] h2,
html[dir='rtl'] .contact article { text-align: right; }
html[dir='rtl'] .demo-points { padding-right: 20px; padding-left: 0; }

html[dir='rtl'] .kicker { text-transform: none; letter-spacing: 0; }
html[dir='rtl'] .hero-grid { min-height: 600px; }
html[dir='rtl'] .blob {
  right: auto;
  left: -260px;
}
html[dir='rtl'] .hero-copy h1 {
  font-size: clamp(1.9rem, 4.2vw, 3.65rem);
  line-height: 1.18;
  max-width: 11.8ch;
}
html[dir='rtl'] .hero-copy p {
  font-size: 1.02rem;
  line-height: 1.75;
  max-width: 44ch;
}
html[dir='rtl'] .hero-points {
  justify-content: flex-start;
  gap: 7px;
}
html[dir='rtl'] .hero-points span {
  font-size: 12px;
  padding: 6px 11px;
}
html[dir='rtl'] .hero-copy h1 { font-size: clamp(2.05rem, 4.7vw, 4.1rem); line-height: 1.14; max-width: 8.6ch; }
html[dir='rtl'] .hero-copy p { font-size: 1.04rem; max-width: 40ch; }
html[dir='rtl'] .hero-points { justify-content: flex-end; }

@media (max-width: 980px) {
  .main-nav, .talk-btn { display: none; }
  .header-inner { grid-template-columns: auto 1fr; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; padding: 48px 0; }
  .hero-art { min-height: 360px; }
  .blob { width: 540px; height: 520px; right: -150px; top: -160px; }
  html[dir='rtl'] .blob { right: auto; left: -120px; }
  .scene { width: 100%; height: 280px; }
  .cards, .cards.two, .contact-grid { grid-template-columns: 1fr; }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
