/* الصفحة الرئيسية لـ Octobot — مطابقة لتصميم Landing (عربي / إنكليزي) */
body.lp { margin: 0; background: #FFFFFF; color-scheme: light; }
.lp * { box-sizing: border-box; }
.lp a { color: #5548B8; }
.lp a:hover { color: #3F348F; }
.lp-page { font-family: 'Alexandria', system-ui, sans-serif; color: #14141F; background: #FFFFFF; width: 100%; overflow-x: clip; line-height: 1.5; }
.lp-in { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.dots { background-image: radial-gradient(#D9D5F3 1.2px, transparent 1.2px); background-size: 22px 22px; }
.dots-dark { background-image: radial-gradient(rgba(255,255,255,.12) 1.2px, transparent 1.2px); background-size: 22px 22px; }
.lp svg.ic { flex: none; }

/* شريط التنقل */
.lp-head { position: relative; z-index: 2; background: rgba(255,255,255,.92); border-bottom: 1px solid #EEEDF6; }
.lp-head .lp-in { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.lp-brand { direction: ltr; display: flex; align-items: center; gap: 10px; text-decoration: none; color: #14141F !important; }
.lp-brand img { width: 38px; height: 38px; display: block; }
.lp-brand .names { display: flex; flex-direction: column; line-height: 1.1; }
.lp-brand .n1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; line-height: 1; }
.lp-brand .n2 { font-size: 12px; color: #6B6B80; }
.lp-nav { display: flex; flex-wrap: wrap; gap: 28px; font-size: 15px; }
.lp-nav a { color: #34344A; text-decoration: none; }
.lp-actions { display: flex; gap: 10px; align-items: center; }
.lang-sw { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #DCD8F2; border-radius: 11px; background: #FFFFFF; }
.lang-sw button { min-height: 36px; min-width: 44px; padding: 0 12px; border: 0; border-radius: 8px; font-family: inherit; font-size: 14px; font-weight: 600; cursor: pointer; background: transparent; color: #34344A; }
.lang-sw button[aria-pressed="true"] { background: #6457C8; color: #FFFFFF; }
.btn-login { padding: 11px 18px; border-radius: 12px; color: #14141F !important; text-decoration: none; font-size: 15px; font-weight: 500; min-height: 44px; display: inline-flex; align-items: center; }
.btn-start { padding: 11px 20px; border-radius: 12px; background: #6457C8; color: #FFFFFF !important; text-decoration: none; font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

/* البطل */
.lp-hero { background-color: #F7F6FD; position: relative; }
.lp-hero .lp-in { padding-top: 88px; padding-bottom: 104px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.hero-text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E0F6; font-size: 14px; color: #34344A; }
.pill .tag { background: #16A34A; color: #FFFFFF; font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: 13px; }
.lp h1 { margin: 0; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.2; font-weight: 700; letter-spacing: -.5px; }
.lp h1 .hl { color: #6457C8; }
.hero-lead { margin: 0; font-size: 19px; line-height: 1.8; color: #4A4A5E; max-width: 560px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.cta-main { display: inline-flex; align-items: center; gap: 10px; padding: 16px 28px; border-radius: 14px; background: #6457C8; color: #FFFFFF !important; text-decoration: none; font-size: 17px; font-weight: 600; box-shadow: 0 10px 24px rgba(100,87,200,.28); }
.cta-sec { display: inline-flex; align-items: center; padding: 16px 26px; border-radius: 14px; background: #FFFFFF; border: 1px solid #DCD8F2; color: #14141F !important; text-decoration: none; font-size: 17px; font-weight: 500; }
.checks { display: flex; flex-wrap: wrap; gap: 22px; font-size: 14px; color: #4A4A5E; }
.checks span { display: inline-flex; align-items: center; gap: 6px; }

.hero-visual { flex: 1 1 420px; min-width: 0; display: flex; justify-content: center; position: relative; padding: 20px 0; }
.blob1 { position: absolute; width: 420px; height: 420px; max-width: 100%; border-radius: 50%; background: #E7E3FA; top: 50%; left: 50%; transform: translate(-50%,-50%); }
.blob2 { position: absolute; width: 120px; height: 120px; border-radius: 50%; background: #F6D3C8; top: 24px; left: 6%; }
.phone { position: relative; width: 320px; max-width: 100%; border-radius: 40px; background: #1B1838; padding: 12px; box-shadow: 0 30px 60px rgba(27,24,56,.25); }
.phone-scr { border-radius: 30px; overflow: hidden; background: #F3F1EC; }
.phone-top { background: #6457C8; color: #FFFFFF; padding: 18px 16px 14px; display: flex; align-items: center; gap: 10px; }
.phone-top .av { width: 38px; height: 38px; border-radius: 50%; background: #FFFFFF; display: flex; align-items: center; justify-content: center; }
.phone-top .av img { width: 28px; height: 28px; }
.phone-top .nm { display: flex; flex-direction: column; }
.phone-top .nm b { font-weight: 600; font-size: 15px; }
.phone-top .nm small { font-size: 12px; opacity: .85; }
.chat { padding: 16px 12px 18px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; line-height: 1.6; min-height: 420px; }
.b-in { align-self: flex-start; background: #FFFFFF; padding: 9px 13px; border-radius: 14px 14px 14px 4px; box-shadow: 0 1px 1px rgba(0,0,0,.06); }
.b-out { align-self: flex-end; background: #E6E2FB; padding: 9px 13px; border-radius: 14px 14px 4px 14px; max-width: 82%; }
.b-menu { display: flex; flex-direction: column; gap: 6px; padding: 10px 13px; }
.b-menu .opts { display: flex; flex-direction: column; gap: 5px; }
.b-menu .opts span { background: #FFFFFF; border-radius: 8px; padding: 6px 10px; color: #4B3FB0; font-weight: 500; }
.typing { align-self: flex-end; display: inline-flex; gap: 4px; padding: 10px 14px; background: #E6E2FB; border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #8A80D8; }
.float { position: absolute; background: #FFFFFF; border-radius: 16px; box-shadow: 0 16px 36px rgba(27,24,56,.14); }
.float-otp { top: 64px; right: -6px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; width: 220px; }
.float-otp .ib { width: 40px; height: 40px; border-radius: 12px; background: #EDEAFB; display: flex; align-items: center; justify-content: center; flex: none; }
.float-otp .t { display: flex; flex-direction: column; gap: 2px; }
.float-otp small { font-size: 12px; color: #6B6B80; }
.float-otp b { font-size: 20px; font-weight: 700; letter-spacing: 3px; }
.float-camp { bottom: 40px; left: -10px; padding: 16px; width: 240px; display: flex; flex-direction: column; gap: 10px; }
.float-camp .r { display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.float-camp .r b { font-weight: 600; }
.float-camp .st { color: #15803D; background: #E7F5EC; padding: 3px 8px; border-radius: 999px; font-size: 12px; }
.float-camp .bar { height: 8px; border-radius: 999px; background: #EEEDF6; overflow: hidden; display: block; }
.float-camp .bar span { display: block; height: 8px; width: 64%; background: #6457C8; border-radius: 999px; }
.float-camp small { font-size: 12px; color: #6B6B80; }

/* الأقسام العامة */
.sec { padding: 112px 0; }
.sec .lp-in { display: flex; flex-direction: column; gap: 56px; }
.sec-head { display: flex; flex-direction: column; gap: 14px; align-items: center; text-align: center; }
.eyebrow { font-size: 14px; font-weight: 600; color: #5548B8; letter-spacing: .5px; }
.lp h2 { margin: 0; font-size: clamp(30px, 3.6vw, 42px); line-height: 1.3; font-weight: 700; }
.sec-sub { margin: 0; font-size: 18px; line-height: 1.8; color: #4A4A5E; max-width: 620px; }
.bg-soft { background: #F7F6FD; }

.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.feat { border: 1px solid #ECEAF5; border-radius: 20px; padding: 32px; display: flex; flex-direction: column; gap: 16px; background: #FFFFFF; }
.feat .ib { width: 56px; height: 56px; border-radius: 16px; display: flex; align-items: center; justify-content: center; }
.feat h3 { margin: 0; font-size: 22px; font-weight: 600; }
.feat p { margin: 0; font-size: 16px; line-height: 1.8; color: #4A4A5E; }
.feat a { margin-top: auto; font-weight: 600; font-size: 15px; text-decoration: none; }

/* عرض المحرر */
.bld-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 32px; }
.bld-head .txt { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chips span { padding: 10px 16px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E3E0F6; font-size: 14px; color: #34344A; }
.ed-frame { border-radius: 20px; padding: 10px; background: #2A2550; box-shadow: 0 40px 80px rgba(27,24,56,.28); }
.ed-win { border-radius: 14px; overflow-x: auto; background: #121218; color: #E8E7F0; }
.ed-inner { min-width: 1100px; }
.ed-bar { display: flex; align-items: center; justify-content: space-between; padding: 12px 18px; background: #1A1A22; border-bottom: 1px solid #2C2C38; }
.ed-bar .l { display: flex; align-items: center; gap: 16px; }
.ed-bar .back { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.ed-bar .ttl { display: flex; flex-direction: column; gap: 3px; }
.ed-bar .ttl b { font-size: 15px; font-weight: 600; }
.ed-bar .meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #8A899C; }
.online { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 99px; background: #10291B; border: 1px solid #1C4D30; color: #4ADE80; }
.online i { width: 6px; height: 6px; border-radius: 50%; background: #4ADE80; }
.ed-bar .r { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.ed-bar .ico { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; }
.ed-bar .tpl { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; }
.ed-bar .sep { width: 1px; height: 22px; background: #2C2C38; }
.ed-bar .test { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 8px; border: 1px solid #3A3A49; background: #1A1A22; }
.ed-bar .save { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; background: #7266D6; color: #FFFFFF; font-weight: 600; }
.ed-body { display: flex; height: 600px; }
.ed-side { width: 260px; flex: none; background: #1A1A22; padding: 16px 14px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; }
[dir="rtl"] .ed-side { border-left: 1px solid #2C2C38; }
[dir="ltr"] .ed-side { border-right: 1px solid #2C2C38; }
.ed-side > b { font-size: 15px; font-weight: 600; }
.ed-side > small { font-size: 12px; color: #8A899C; margin-bottom: 4px; }
.blk { display: flex; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 1px solid #2C2C38; background: #1A1A22; }
.blk .ib { width: 30px; height: 30px; border-radius: 8px; display: flex; align-items: center; justify-content: center; flex: none; }
.blk .t { display: flex; flex-direction: column; gap: 1px; }
.blk .t b { font-size: 13px; font-weight: 600; }
.blk .t small { font-size: 11px; color: #8A899C; }
.ed-canvas { flex: 1; position: relative; overflow: hidden; background-color: #121218; background-image: radial-gradient(#2A2A36 1.2px, transparent 1.2px); background-size: 20px 20px; }
.ed-canvas > svg { position: absolute; left: 0; top: 0; }
.nd { position: absolute; width: 240px; border-radius: 10px; border: 1px solid #2C2C38; background: #1A1A22; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.35); }
.nd.sel { width: 270px; border-color: #4B48A8; box-shadow: 0 0 0 3px rgba(99,102,241,.18), 0 8px 24px rgba(0,0,0,.35); }
.nd-h { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; border-bottom: 1px solid #2C2C38; }
.nd-h .t { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; }
.nd-h .ib { width: 26px; height: 26px; border-radius: 7px; display: flex; align-items: center; justify-content: center; }
.nd-b { padding: 12px; }
.nd-l { height: 18px; font-size: 12px; color: #8A899C; line-height: 18px; }
.nd-f { margin-top: 6px; border-radius: 8px; border: 1px solid #2C2C38; background: #121218; display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 13px; }
.nd-f.area { display: block; padding: 7px 10px; font-size: 12px; line-height: 1.6; }
.nd-f.opt { height: 34px; justify-content: flex-start; gap: 8px; font-size: 12px; }
.nd-f.opt b { color: #A5A7F5; font-weight: 600; }
.nd-file { padding: 12px; display: flex; gap: 10px; align-items: center; }
.nd-file .th { width: 52px; height: 52px; border-radius: 8px; background: #1E3A4C; display: flex; align-items: center; justify-content: center; flex: none; }
.nd-file .t { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.nd-file .t small { color: #8A899C; font-size: 12px; }
.hd { position: absolute; width: 14px; height: 14px; border-radius: 50%; border: 2px solid; background: #121218; }
.benefits { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.benefit { display: flex; gap: 14px; align-items: flex-start; }
.benefit .ib { width: 40px; height: 40px; border-radius: 12px; background: #EDEAFB; display: flex; align-items: center; justify-content: center; flex: none; }
.benefit .t { display: flex; flex-direction: column; gap: 4px; }
.benefit b { font-size: 17px; font-weight: 600; }
.benefit span { font-size: 15px; line-height: 1.7; color: #4A4A5E; }

/* المطورين */
.dev { background-color: #1B1838; color: #FFFFFF; }
.dev .lp-in { padding-top: 112px; padding-bottom: 112px; display: flex; flex-wrap: wrap; align-items: center; gap: 56px; }
.dev .txt { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.dev .eyebrow { color: #F2B7A6; letter-spacing: 0; }
.dev h2 { font-size: clamp(30px, 3.4vw, 40px); }
.dev p { margin: 0; font-size: 18px; line-height: 1.8; color: #C9C6DE; }
.dev .btns { display: flex; flex-wrap: wrap; gap: 12px; }
.dev .b1 { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 14px; background: #FFFFFF; color: #1B1838 !important; text-decoration: none; font-size: 16px; font-weight: 600; }
.dev .b2 { display: inline-flex; align-items: center; padding: 14px 24px; border-radius: 14px; border: 1px solid rgba(255,255,255,.3); color: #FFFFFF !important; text-decoration: none; font-size: 16px; font-weight: 500; }
.code { flex: 1.2 1 480px; min-width: 0; background: #0F0D24; border: 1px solid rgba(255,255,255,.1); border-radius: 20px; overflow: hidden; font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 14px; line-height: 1.9; }
.code .top { display: flex; gap: 6px; padding: 14px 16px; border-bottom: 1px solid rgba(255,255,255,.08); align-items: center; }
.code .top i { width: 10px; height: 10px; border-radius: 50%; }
.code .top span { margin-left: 12px; color: #8E8AAE; font-size: 13px; }
.code pre { margin: 0; padding: 20px 22px; overflow-x: auto; white-space: pre; color: #E6E4F5; font: inherit; }
.c-cmd { color: #F2B7A6; } .c-str { color: #A9F0C2; } .c-cm { color: #8E8AAE; } .c-key { color: #B9B1FF; }

/* الخطوات */
.steps3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.step { display: flex; flex-direction: column; gap: 14px; padding: 28px; border-radius: 20px; background: #F7F6FD; }
.step .n { font-size: 44px; font-weight: 700; color: #6457C8; line-height: 1; }
.step h3 { margin: 0; font-size: 21px; font-weight: 600; }
.step p { margin: 0; font-size: 16px; line-height: 1.8; color: #4A4A5E; }

/* الأسعار */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 20px; align-items: stretch; }
.plan { background: #FFFFFF; border: 1px solid #E3E0F6; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; gap: 22px; position: relative; }
.plan .hd2 { display: flex; flex-direction: column; gap: 6px; }
.plan .nm { font-size: 20px; font-weight: 600; }
.plan .ds { font-size: 15px; color: #6B6B80; }
.plan .pr { display: flex; align-items: baseline; gap: 8px; }
.plan .pr b { font-size: 52px; font-weight: 700; line-height: 1; }
.plan .pr span { font-size: 15px; color: #6B6B80; }
.plan ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 15px; color: #34344A; }
.plan li { display: flex; gap: 10px; align-items: center; }
.plan .go { margin-top: auto; text-align: center; padding: 14px; border-radius: 12px; border: 1px solid #CFC9F0; color: #14141F !important; text-decoration: none; font-weight: 600; font-size: 16px; }
.plan .badge2 { position: absolute; top: -14px; background: #E98A6F; color: #14141F; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; }
[dir="rtl"] .plan .badge2 { left: 32px; } [dir="ltr"] .plan .badge2 { right: 32px; }
.plan.free { background: #FDF1ED; border: 2px solid #E98A6F; padding: 32px 28px; }
.plan.free .ds, .plan.free .pr span { color: #5E4A44; }
.plan.free .badge2 { font-weight: 700; }
.plan.free .go { background: #14141F; color: #FFFFFF !important; border: 0; }
.plan.pop { background: #6457C8; color: #FFFFFF; border: 0; box-shadow: 0 24px 48px rgba(100,87,200,.3); }
.plan.pop .ds, .plan.pop .pr span { color: #E3DFFA; }
.plan.pop ul { color: #FFFFFF; }
.plan.pop .go { background: #FFFFFF; color: #3F348F !important; border: 0; }

/* الأسئلة */
.faq .lp-in { max-width: 860px; gap: 40px; }
.faq h2 { text-align: center; font-size: clamp(30px, 3.4vw, 40px); }
.faq .list { display: flex; flex-direction: column; gap: 12px; }
.faq details { border: 1px solid #ECEAF5; border-radius: 16px; padding: 20px 24px; }
.faq summary { font-size: 18px; font-weight: 600; cursor: pointer; }
.faq details p { margin: 12px 0 0; font-size: 16px; line-height: 1.8; color: #4A4A5E; }

/* دعوة أخيرة */
.cta-wrap { background: #FFFFFF; padding: 0 24px 112px; }
.cta-box { max-width: 1200px; margin: 0 auto; background-color: #6457C8; border-radius: 32px; padding: 72px 48px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px; color: #FFFFFF; position: relative; overflow: hidden; }
.cta-box .txt { display: flex; flex-direction: column; gap: 14px; flex: 1 1 420px; min-width: 0; position: relative; z-index: 1; }
.cta-box h2 { font-size: clamp(28px, 3.4vw, 40px); }
.cta-box p { margin: 0; font-size: 18px; line-height: 1.8; color: #E3DFFA; }
.cta-box .go { position: relative; z-index: 1; display: inline-flex; align-items: center; padding: 18px 32px; border-radius: 14px; background: #FFFFFF; color: #3F348F !important; text-decoration: none; font-size: 18px; font-weight: 600; }
.cta-box .deco { position: absolute; width: 220px; height: auto; left: -30px; bottom: -60px; opacity: .14; }

/* التذييل */
.lp-foot { background: #1B1838; color: #C9C6DE; }
.lp-foot .lp-in { padding-top: 64px; padding-bottom: 32px; display: flex; flex-direction: column; gap: 40px; }
.lp-foot .top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.lp-foot .about { display: flex; flex-direction: column; gap: 14px; flex: 1 1 280px; max-width: 360px; }
.lp-foot .about .brand { display: flex; align-items: center; gap: 10px; color: #FFFFFF; }
.lp-foot .about .brand img { width: 44px; height: 44px; }
.lp-foot .about p { margin: 0; font-size: 15px; line-height: 1.8; }
.lp-foot small { font-size: 13px; color: #A9A5C6; }
.lp-foot .cols { display: flex; flex-wrap: wrap; gap: 64px; font-size: 15px; }
.lp-foot .col { display: flex; flex-direction: column; gap: 12px; }
.lp-foot .col b { color: #FFFFFF; font-weight: 600; }
.lp-foot .col a { color: #C9C6DE !important; text-decoration: none; }
.lp-foot .copy { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; font-size: 13px; color: #A9A5C6; }

@media (max-width: 760px) {
  .lp-nav { display: none; }
  .lp-head .lp-in { padding-top: 12px; padding-bottom: 12px; }
  .btn-login { padding: 8px 10px; min-height: 40px; font-size: 14px; }
  .btn-start { padding: 8px 14px; min-height: 40px; font-size: 14px; }
  .lp-hero .lp-in { padding-top: 48px; padding-bottom: 64px; gap: 40px; }
  .hero-lead { font-size: 17px; }
  .float-otp { right: 0; width: 180px; top: -18px; padding: 10px 12px; }
  .float-otp b { font-size: 17px; }
  .float-otp .ib { width: 34px; height: 34px; }
  .float-camp { left: 0; width: 190px; bottom: -14px; padding: 12px; }
  .phone { width: 290px; }
  .sec { padding: 72px 0; }
  .sec .lp-in { gap: 40px; }
  .dev .lp-in { padding-top: 72px; padding-bottom: 72px; }
  .cta-box { padding: 48px 24px; border-radius: 24px; }
  .cta-wrap { padding: 0 16px 72px; }
  .lp-foot .cols { gap: 36px; }
  .lp-in { padding: 0 16px; }
}
@media (max-width: 420px) {
  .lang-sw button { min-width: 38px; padding: 0 8px; }
  .btn-login { display: none; }
}

/* شعار كامل (أوكتوبوت) أعلى البطل وفي التذييل كما في التصميم */
.hero-lockup { align-self: flex-start; display: block; width: 516px; max-width: 100%; height: auto; }
.lp-foot .about .foot-lockup { align-self: flex-start; display: block; width: 282px; max-width: 100%; height: auto; }

/* ---------- زر الوضع الداكن + الشعار بنسختين ---------- */
.lp-theme { width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border-radius: 11px; border: 1px solid #DCD8F2; background: #FFFFFF; color: #34344A; cursor: pointer; transition: color .15s, border-color .15s, transform .2s; }
.lp-theme:hover { color: #6457C8; border-color: #6457C8; }
.lp-theme:active { transform: scale(.92); }
.lp-theme .ic-sun { display: none; }
[data-theme="dark"] .lp-theme .ic-sun { display: block; }
[data-theme="dark"] .lp-theme .ic-moon { display: none; }
.lp .on-dark { display: none !important; }
[data-theme="dark"] .lp .on-dark { display: block !important; }
[data-theme="dark"] .lp .on-light { display: none !important; }

/* ============================================================
   الوضع الداكن للصفحة الرئيسية — كحلي غامق بألوان الهوية
   ============================================================ */
[data-theme="dark"] body.lp { background: #100F1C; color-scheme: dark; }
[data-theme="dark"] .lp a { color: #B3ABF0; }
[data-theme="dark"] .lp a:hover { color: #FFFFFF; }
[data-theme="dark"] .lp-page { background: #100F1C; color: #ECEBF5; }
[data-theme="dark"] .dots { background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.2px); }
[data-theme="dark"] .lp-head { background: rgba(16,15,28,.97); border-bottom-color: #24213A; }
[data-theme="dark"] .lp-brand { color: #FFFFFF !important; }
[data-theme="dark"] .lp-nav a { color: #C9C6DE; }
[data-theme="dark"] .lang-sw, [data-theme="dark"] .lp-theme { background: #1B1930; border-color: #34304F; color: #C9C6DE; }
[data-theme="dark"] .lang-sw button { color: #C9C6DE; }
[data-theme="dark"] .lang-sw button[aria-pressed="true"] { background: #6457C8; color: #FFFFFF; }
[data-theme="dark"] .lp-theme:hover { color: #FFFFFF; border-color: #7266D6; }
[data-theme="dark"] .btn-login { color: #ECEBF5 !important; }

[data-theme="dark"] .lp-hero { background-color: #15132A; }
[data-theme="dark"] .pill { background: #1B1930; border-color: #34304F; color: #C9C6DE; }
[data-theme="dark"] .lp h1 .hl { color: #9C92F0; }
[data-theme="dark"] .hero-lead, [data-theme="dark"] .checks { color: #B4B1CC; }
[data-theme="dark"] .cta-main { box-shadow: 0 10px 28px rgba(100,87,200,.35); }
[data-theme="dark"] .cta-sec { background: #1B1930; border-color: #34304F; color: #ECEBF5 !important; }
[data-theme="dark"] .blob1 { background: #221F40; }
[data-theme="dark"] .blob2 { background: rgba(233,138,111,.22); }
[data-theme="dark"] .phone { background: #08070F; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
[data-theme="dark"] .phone-scr { background: #1C1A2C; }
[data-theme="dark"] .b-in { background: #2A2740; color: #ECEBF5; box-shadow: none; }
[data-theme="dark"] .b-out, [data-theme="dark"] .typing { background: #34306A; color: #ECEBF5; }
[data-theme="dark"] .b-menu .opts span { background: #1C1A2C; color: #C9C3F5; }
[data-theme="dark"] .float { background: #1F1C36; box-shadow: 0 16px 36px rgba(0,0,0,.45); color: #ECEBF5; }
[data-theme="dark"] .float-otp .ib { background: #2E2A58; }
[data-theme="dark"] .float-otp small, [data-theme="dark"] .float-camp small { color: #8E8AAE; }
[data-theme="dark"] .float-camp .st { background: #10291B; color: #4ADE80; }
[data-theme="dark"] .float-camp .bar { background: #2A2742; }

[data-theme="dark"] .eyebrow { color: #B3ABF0; }
[data-theme="dark"] .sec-sub { color: #B4B1CC; }
[data-theme="dark"] .bg-soft { background: #15132A; }
[data-theme="dark"] .feat { background: #1B1930; border-color: #2A2742; }
[data-theme="dark"] .feat .ib { box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
[data-theme="dark"] .feat p { color: #B4B1CC; }
[data-theme="dark"] .chips span { background: #1B1930; border-color: #34304F; color: #C9C6DE; }
[data-theme="dark"] .ed-frame { background: #2A2550; box-shadow: 0 40px 80px rgba(0,0,0,.5); }
[data-theme="dark"] .benefit .ib { background: #2A2650; }
[data-theme="dark"] .benefit span { color: #B4B1CC; }

[data-theme="dark"] .dev { background-color: #0A0916; }
[data-theme="dark"] .code { background: #13112A; }

[data-theme="dark"] .step { background: #1B1930; }
[data-theme="dark"] .step .n { color: #9C92F0; }
[data-theme="dark"] .step p { color: #B4B1CC; }

[data-theme="dark"] .plan { background: #1B1930; border-color: #2A2742; }
[data-theme="dark"] .plan .ds, [data-theme="dark"] .plan .pr span { color: #8E8AAE; }
[data-theme="dark"] .plan ul { color: #C9C6DE; }
[data-theme="dark"] .plan .go { border-color: #34304F; color: #ECEBF5 !important; }
[data-theme="dark"] .plan.free { background: #2A1D22; border-color: #E98A6F; }
[data-theme="dark"] .plan.free .ds, [data-theme="dark"] .plan.free .pr span { color: #D9B5A8; }
[data-theme="dark"] .plan.free .go { background: #FFFFFF; color: #14141F !important; }
[data-theme="dark"] .plan.pop { background: #6457C8; box-shadow: 0 24px 48px rgba(0,0,0,.45); }
[data-theme="dark"] .plan.pop ul { color: #FFFFFF; }
[data-theme="dark"] .plan.pop .go { color: #3F348F !important; }

[data-theme="dark"] .faq details { background: #1B1930; border-color: #2A2742; }
[data-theme="dark"] .faq details p { color: #B4B1CC; }
[data-theme="dark"] .cta-wrap { background: #100F1C; }
[data-theme="dark"] .cta-box p { color: #E3DFFA; }
[data-theme="dark"] .lp-foot { background: #0A0916; }

/* ============================================================
   الحركات في الصفحة الرئيسية
   ============================================================ */
html { scroll-behavior: smooth; }
.lp { --ease: cubic-bezier(.2, .8, .2, 1); }
.lp section[id] { scroll-margin-top: 84px; }
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: .22s cubic-bezier(.2,.8,.2,1) both lpOut; }
::view-transition-new(root) { animation: .32s cubic-bezier(.2,.8,.2,1) both lpIn; }
@keyframes lpOut { to { opacity: 0; transform: translateY(-6px); } }
@keyframes lpIn { from { opacity: 0; transform: translateY(10px); } }

/* شريط علوي ثابت يكتسب ظلاً عند التمرير */
.lp-head { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.97); transition: box-shadow .25s, background .25s; }
.lp-head.scrolled { box-shadow: 0 8px 30px rgba(27, 24, 56, .08); }
[data-theme="dark"] .lp-head.scrolled { box-shadow: 0 8px 30px rgba(0, 0, 0, .4); }

/* دخول البطل */
@keyframes lpRise { from { opacity: 0; transform: translateY(22px); } }
@keyframes lpPop { from { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes lpFloat { 50% { transform: translateY(-8px); } }
@keyframes lpBlob { 50% { transform: translate(-50%, -50%) scale(1.06); } }
.hero-text > * { animation: lpRise .7s var(--ease) both; }
.hero-text > :nth-child(2) { animation-delay: .08s; }
.hero-text > :nth-child(3) { animation-delay: .16s; }
.hero-text > :nth-child(4) { animation-delay: .24s; }
.hero-text > :nth-child(5) { animation-delay: .32s; }
.hero-text > :nth-child(n+6) { animation-delay: .4s; }
.phone { animation: lpRise .9s .2s var(--ease) both; }
.blob1 { animation: lpBlob 9s ease-in-out infinite; }
.chat > * { animation: lpPop .45s var(--ease) both; }
.chat > :nth-child(1) { animation-delay: .7s; }
.chat > :nth-child(2) { animation-delay: 1.2s; }
.chat > :nth-child(3) { animation-delay: 1.9s; }
.chat > :nth-child(4) { animation-delay: 2.4s; }
.chat > :nth-child(5) { animation-delay: 2.9s; }
.typing i { animation: lpDot 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes lpDot { 0%, 60%, 100% { opacity: .35; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
.float-otp { animation: lpPop .6s 1s var(--ease) both, lpFloat 6s 1.6s ease-in-out infinite; }
.float-camp { animation: lpPop .6s 1.3s var(--ease) both, lpFloat 7s 1.9s ease-in-out infinite; }
.float-camp .bar span { animation: lpBar 2.4s 1.6s var(--ease) both; }
@keyframes lpBar { from { width: 8%; } }

/* الظهور عند التمرير (يُضاف الصنف .rv من landing.js) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: var(--d, 0s); }
.rv.in { opacity: 1; transform: none; }

/* لمسات تفاعلية */
.feat, .plan, .step, .faq details, .chips span { transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .2s; }
.feat:hover, .step:hover { transform: translateY(-4px); box-shadow: 0 20px 44px rgba(27, 24, 56, .09); }
.plan:hover { transform: translateY(-6px); }
.plan.pop:hover { box-shadow: 0 30px 60px rgba(100, 87, 200, .38); }
[data-theme="dark"] .feat:hover, [data-theme="dark"] .step:hover { box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.feat .ib { transition: transform .35s var(--ease); }
.feat:hover .ib { transform: rotate(-6deg) scale(1.06); }
.feat a { transition: gap .2s; }
.cta-main, .btn-start, .cta-sec, .dev .b1, .dev .b2, .cta-box .go, .plan .go { transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s; }
.cta-main:hover, .btn-start:hover, .cta-box .go:hover, .dev .b1:hover { transform: translateY(-2px); }
.cta-main:hover { box-shadow: 0 16px 32px rgba(100, 87, 200, .38); }
.cta-sec:hover, .plan .go:hover { transform: translateY(-2px); }
.cta-main svg { transition: transform .2s var(--ease); }
[dir="rtl"] .cta-main:hover svg { transform: translateX(-4px); }
[dir="ltr"] .cta-main:hover svg { transform: translateX(4px); }
.faq details[open] { border-color: #CFC9F0; }
[data-theme="dark"] .faq details[open] { border-color: #4B48A8; }
.faq details p { animation: lpRise .35s var(--ease) both; }
.cta-box .deco { animation: lpSpin 40s linear infinite; }
@keyframes lpSpin { to { transform: rotate(360deg); } }
.lp-brand img { transition: transform .6s var(--ease); }
.lp-brand:hover img { transform: rotate(45deg); }

@media (prefers-reduced-motion: reduce) {
  .lp *, .lp *::before, .lp *::after { animation: none !important; transition: none !important; }
  .rv { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none !important; }
}
@media (max-width: 760px) {
  .lp-theme { width: 40px; height: 40px; }
}

/* أداء السكرول: طبقات مستقلة للعناصر المتحركة باستمرار */
.float-otp, .float-camp, .blob1, .cta-box .deco { will-change: transform; }
.rv { will-change: opacity, transform; }
.rv.in { will-change: auto; }

/* زر لوحة التحكم للمستخدم المسجّل */
.btn-dash { gap: 10px; padding-inline-start: 8px; }
.btn-dash .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .22); color: #FFFFFF; font-size: 14px; font-weight: 700; }

/* موبايل: شريط علوي بسطر واحد — زر اللغة يعرض اللغة الأخرى فقط */
@media (max-width: 520px) {
  .lp-head .lp-in { flex-wrap: nowrap; gap: 8px; }
  .lp-brand img { width: 32px; height: 32px; }
  .lp-brand .n1 { font-size: 19px; }
  .lp-actions { gap: 6px; }
  .lang-sw { padding: 2px; }
  .lang-sw button[aria-pressed="true"] { display: none; }
  .lang-sw button { min-height: 36px; min-width: 40px; padding: 0 8px; }
  .lp-theme { width: 40px; height: 40px; }
  .btn-start { padding: 8px 12px; font-size: 13.5px; white-space: nowrap; }
  .btn-dash .av { width: 24px; height: 24px; font-size: 12px; }
  .pill { font-size: 13px; }
  .float-otp { top: -28px; }
}

/* التذييل: نصوص لاتينية (اسم الشركة، رقم التواصل) تبقى بمحاذاة بداية العمود في العربي ودون انقلاب علامة + */
.lp-foot .about small { align-self: flex-start; unicode-bidi: isolate; }
.lp-foot .about .contact { direction: ltr; font-variant-numeric: tabular-nums; }

/* بعد تبديل اللغة: لا نعيد حركات الدخول (البطل والمحادثة) كي لا يتحرك المحتوى تحت القارئ */
.no-intro .hero-text > *, .no-intro .phone, .no-intro .chat > *, .no-intro .float-camp .bar span { animation: none !important; }
.no-intro .float-otp { animation: lpFloat 6s ease-in-out infinite !important; }
.no-intro .float-camp { animation: lpFloat 7s ease-in-out infinite !important; }
.lp-foot .about .mail { align-self: flex-start; font-size: 14px; color: #C9C6DE !important; text-decoration: none; unicode-bidi: isolate; }
.lp-foot .about .mail:hover { color: #FFFFFF !important; text-decoration: underline; }
