@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700;800;900&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root{
  --bg:#0a0a0c;
  --bg-2:#0d0e11;
  --surface:#131418;
  --surface-2:#191a1f;
  --border:rgba(255,255,255,.09);
  --border-strong:rgba(255,255,255,.18);
  --text:#f2f3f5;
  --muted:#9aa1ac;
  --muted-2:#6d7480;
  --accent:#5b6cff;
  --accent-2:#00d9c0;
  --accent-3:#8b5cf6;
  --on-accent:#0a0a0c;
  --r-sm:10px;
  --r-md:16px;
  --r-lg:22px;
  --maxw:1180px;
  --font:'Tajawal',system-ui,sans-serif;
  --mono:'IBM Plex Mono',ui-monospace,monospace;
  --ease:cubic-bezier(.22,1,.36,1);
}
*{margin:0;padding:0;box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  font-family:var(--font);
  background:var(--bg);
  color:var(--text);
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
  font-size:16px;
}
body::before{
  content:"";position:fixed;inset:0;z-index:-1;
  background:
    radial-gradient(760px 420px at 82% -6%,rgba(91,108,255,.14),transparent 62%),
    radial-gradient(620px 480px at 6% 12%,rgba(0,217,192,.09),transparent 60%),
    var(--bg);
}
img{max-width:100%;display:block}
a{color:inherit;text-decoration:none}
ul{list-style:none}
button{font-family:inherit;cursor:pointer;border:none;background:none;color:inherit}
input,textarea{font-family:inherit}
::selection{background:var(--accent);color:#fff}
:focus-visible{outline:2px solid var(--accent-2);outline-offset:3px;border-radius:6px}

.wrap{width:100%;max-width:var(--maxw);margin-inline:auto;padding-inline:clamp(20px,4.5vw,40px)}
.pad{padding-block:clamp(72px,10vw,120px)}
.pad-sm{padding-block:clamp(48px,6vw,72px)}

h1,h2,h3,h4{font-weight:800;letter-spacing:-.01em;line-height:1.22}
h1{font-size:clamp(2.4rem,5.6vw,4.1rem);line-height:1.14}
h2{font-size:clamp(1.9rem,3.6vw,2.7rem)}
h3{font-size:1.28rem}
p{color:var(--muted)}
.lede{font-size:clamp(1.03rem,1.6vw,1.2rem);color:var(--muted);max-width:62ch}
.mono{font-family:var(--mono)}

.kicker{display:inline-flex;align-items:center;gap:.55em;font-size:.9rem;color:var(--muted);margin-bottom:1rem}
.kicker::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--accent-2);box-shadow:0 0 10px var(--accent-2)}

.section-head{max-width:680px;margin-bottom:2.6rem}
.section-head.center{margin-inline:auto;text-align:center}

/* ---------- buttons ---------- */
.btn{display:inline-flex;align-items:center;gap:.55em;font-size:.96rem;font-weight:700;padding:.85em 1.5em;border-radius:999px;transition:transform .18s var(--ease),box-shadow .25s,background .25s,border-color .25s,opacity .2s}
.btn-primary{background:var(--text);color:#0a0a0c}
.btn-primary:hover{transform:translateY(-2px);box-shadow:0 10px 30px rgba(255,255,255,.12)}
.btn-outline{border:1px solid var(--border-strong);color:var(--text)}
.btn-outline:hover{border-color:var(--accent-2);background:rgba(0,217,192,.06)}
.btn-sm{padding:.6em 1.1em;font-size:.86rem}
.btn-block{width:100%;justify-content:center}

/* ---------- header ---------- */
.site-header{position:sticky;top:0;z-index:900;border-bottom:1px solid transparent;transition:background .3s,border-color .3s,backdrop-filter .3s}
.site-header.scrolled{background:rgba(10,10,12,.78);backdrop-filter:blur(14px);border-bottom-color:var(--border)}
.nav-wrap{display:flex;align-items:center;justify-content:space-between;height:72px;gap:1.2rem}
.brand{display:flex;align-items:center;gap:.65em;font-weight:800;font-size:1.02rem;flex:none}
.brand-mark{width:32px;height:32px;border-radius:9px;display:grid;place-items:center;background:linear-gradient(135deg,var(--accent),var(--accent-3) 60%,var(--accent-2));color:#fff;font-weight:900;font-size:1.02rem}
.brand-word b{font-weight:800}
.nav-links{display:flex;align-items:center;gap:1.9rem}
.nav-links > a{font-size:.94rem;color:var(--muted);transition:color .2s}
.nav-links > a:hover{color:var(--text)}
.nav-cta{margin-inline-start:.4rem}
.lang-btn{font-size:.86rem;color:var(--muted);border:1px solid var(--border);border-radius:999px;padding:.5em 1.1em;transition:.2s;white-space:nowrap}
.lang-btn:hover{color:var(--text);border-color:var(--border-strong)}
@media (max-width:900px){.lang-btn{width:100%;text-align:center;margin-top:.6rem}}
.has-dropdown{position:relative}
.dropdown-toggle{display:flex;align-items:center;gap:.4em;font-size:.94rem;color:var(--muted);transition:color .2s}
.dropdown-toggle svg{width:14px;height:14px;transition:transform .25s var(--ease)}
.has-dropdown:hover .dropdown-toggle,.has-dropdown.open .dropdown-toggle{color:var(--text)}
.has-dropdown:hover .dropdown-toggle svg{transform:rotate(180deg)}
.dropdown-panel{position:absolute;top:calc(100% + 14px);inset-inline-start:-14px;width:250px;background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:.5rem;opacity:0;visibility:hidden;transform:translateY(6px);transition:.25s var(--ease);box-shadow:0 20px 50px rgba(0,0,0,.45)}
.has-dropdown:hover .dropdown-panel,.has-dropdown.open .dropdown-panel{opacity:1;visibility:visible;transform:none}
.dropdown-panel a{display:flex;align-items:center;gap:.7em;padding:.7em .8em;border-radius:10px;font-size:.92rem;color:var(--text);transition:background .2s}
.dropdown-panel a:hover{background:var(--surface-2)}
.dropdown-panel a svg{width:18px;height:18px;color:var(--accent-2);flex:none}
.dropdown-panel .all-link{border-top:1px solid var(--border);margin-top:.35rem;padding-top:.75em;color:var(--muted);font-size:.86rem}
.burger{display:none;flex-direction:column;gap:5px;padding:8px}
.burger span{width:22px;height:2px;background:var(--text);transition:.3s}
@media (max-width:900px){
  .nav-links{position:fixed;inset:72px 0 0 0;flex-direction:column;align-items:stretch;gap:0;background:var(--bg);border-top:1px solid var(--border);padding:1.2rem;transform:translateY(-8px);opacity:0;visibility:hidden;transition:.3s var(--ease)}
  body.menu-open .nav-links{transform:none;opacity:1;visibility:visible}
  .nav-links > a,.dropdown-toggle{padding:1em .3em;border-bottom:1px solid var(--border);width:100%;justify-content:space-between}
  .dropdown-panel{position:static;opacity:1;visibility:visible;transform:none;display:none;width:100%;box-shadow:none;margin-top:.3rem}
  .has-dropdown.open .dropdown-panel{display:block}
  .nav-cta{margin-top:1rem;justify-content:center}
  .burger{display:flex}
  body.menu-open .burger span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  body.menu-open .burger span:nth-child(2){opacity:0}
  body.menu-open .burger span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
}

/* ---------- breadcrumb ---------- */
.crumb{display:flex;align-items:center;gap:.5em;font-size:.86rem;color:var(--muted-2);padding-top:1.6rem}
.crumb a{color:var(--muted);transition:color .2s}
.crumb a:hover{color:var(--text)}

/* ---------- reveal ---------- */
[data-reveal]{opacity:0;transform:translateY(22px);transition:opacity .7s var(--ease),transform .7s var(--ease)}
[data-reveal].in{opacity:1;transform:none}
@media (prefers-reduced-motion:reduce){[data-reveal]{opacity:1;transform:none;transition:none}}

/* ---------- hero ---------- */
.hero{padding-block:clamp(90px,11vw,140px) clamp(60px,8vw,90px)}
.hero-badge{display:inline-flex;align-items:center;gap:.6em;font-size:.84rem;color:var(--muted);border:1px solid var(--border);border-radius:999px;padding:.5em 1em;margin-bottom:1.6rem}
.hero h1{max-width:16ch}
.hero .lede{margin-top:1.4rem}
.hero-cta{display:flex;gap:1rem;margin-top:2.2rem;flex-wrap:wrap}
.hero-stats{display:flex;gap:clamp(1.6rem,4vw,3rem);margin-top:3.2rem;flex-wrap:wrap}
.hero-stats .n{font-size:1.7rem;font-weight:800}
.hero-stats .l{font-size:.84rem;color:var(--muted-2);margin-top:.2rem}

/* ---------- feature grid ---------- */
.grid{display:grid;gap:1rem}
.grid-3{grid-template-columns:repeat(3,1fr)}
.grid-4{grid-template-columns:repeat(4,1fr)}
.grid-2{grid-template-columns:repeat(2,1fr)}
@media (max-width:960px){.grid-4{grid-template-columns:repeat(2,1fr)}.grid-3{grid-template-columns:repeat(2,1fr)}}
@media (max-width:600px){.grid-4,.grid-3,.grid-2{grid-template-columns:1fr}}

.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-md);padding:1.7rem;transition:border-color .25s,transform .25s var(--ease)}
.card:hover{border-color:var(--border-strong)}
.card .ic{width:42px;height:42px;border-radius:11px;display:grid;place-items:center;background:var(--surface-2);border:1px solid var(--border);color:var(--accent-2);margin-bottom:1.1rem}
.card .ic svg{width:21px;height:21px}
.card h3{font-size:1.06rem;margin-bottom:.45rem}
.card p{font-size:.92rem}

/* ---------- sector cards (home) ---------- */
.sector-card{position:relative;border-radius:var(--r-lg);border:1px solid var(--border);padding:2rem;background:var(--surface);overflow:hidden;display:flex;flex-direction:column;min-height:280px}
.sector-card::before{content:"";position:absolute;inset-inline-start:0;top:0;height:3px;width:100%;background:var(--sector-color,var(--accent))}
.sector-card .ic{width:48px;height:48px;border-radius:13px;display:grid;place-items:center;background:var(--surface-2);color:var(--sector-color,var(--accent));margin-bottom:1.3rem}
.sector-card .ic svg{width:24px;height:24px}
.sector-card h3{font-size:1.3rem;margin-bottom:.6rem}
.sector-card p{font-size:.94rem;flex:1}
.sector-card .go{display:inline-flex;align-items:center;gap:.5em;margin-top:1.4rem;font-size:.9rem;font-weight:700;color:var(--text)}
.sector-card .go svg{width:16px;height:16px;transition:transform .25s var(--ease)}
.sector-card:hover .go svg{transform:translateX(-4px)}
[dir="rtl"] .sector-card:hover .go svg{transform:translateX(4px)}
.sector-card:hover{transform:translateY(-4px);border-color:var(--border-strong)}

/* ---------- stat band ---------- */
.stats-band{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--border);border:1px solid var(--border);border-radius:var(--r-md);overflow:hidden}
@media (max-width:700px){.stats-band{grid-template-columns:repeat(2,1fr)}}
.stats-band .cell{background:var(--surface);padding:2rem 1.4rem;text-align:center}
.stats-band .cell .n{font-size:clamp(1.9rem,3.4vw,2.6rem);font-weight:800}
.stats-band .cell .l{font-size:.85rem;color:var(--muted-2);margin-top:.4rem}

/* ---------- browser / app mockups (live preview) ---------- */
.preview-shell{border:1px solid var(--border);border-radius:var(--r-lg);background:var(--surface);overflow:hidden;box-shadow:0 30px 70px rgba(0,0,0,.4)}
.preview-topbar{display:flex;align-items:center;gap:.9rem;padding:.85rem 1.1rem;border-bottom:1px solid var(--border);background:var(--surface-2)}
.preview-dots{display:flex;gap:6px}
.preview-dots span{width:9px;height:9px;border-radius:50%;background:var(--border-strong)}
.preview-url{flex:1;font-family:var(--mono);font-size:.78rem;color:var(--muted-2);background:var(--surface);border:1px solid var(--border);border-radius:8px;padding:.4em .8em;text-align:center;direction:ltr}
.preview-body{display:flex;min-height:420px}
.preview-side{width:210px;flex:none;border-inline-end:1px solid var(--border);padding:1.2rem .9rem;display:flex;flex-direction:column;gap:.2rem}
.preview-side .stab{display:flex;align-items:center;gap:.7em;padding:.7em .8em;border-radius:9px;font-size:.86rem;color:var(--muted);transition:.2s}
.preview-side .stab svg{width:16px;height:16px;flex:none}
.preview-side .stab.active{background:var(--surface-2);color:var(--text)}
.preview-main{flex:1;padding:1.4rem;overflow:auto}
@media (max-width:760px){.preview-side{display:none}.preview-body{min-height:auto}}

.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:.8rem;margin-bottom:1.2rem}
@media (max-width:760px){.kpis{grid-template-columns:repeat(2,1fr)}}
.kpi{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:1rem}
.kpi .n{font-size:1.35rem;font-weight:800}
.kpi .l{font-size:.78rem;color:var(--muted-2);margin-top:.25rem}
.kpi .d{font-size:.74rem;margin-top:.4rem;display:inline-flex;align-items:center;gap:.3em}
.kpi .d.up{color:var(--accent-2)}
.kpi .d.down{color:#f97066}

.panel-block{background:var(--surface-2);border:1px solid var(--border);border-radius:12px;padding:1.1rem;margin-bottom:1rem}
.panel-block h4{font-size:.9rem;margin-bottom:.9rem;color:var(--text)}

.bars{display:flex;flex-direction:column;gap:.7rem}
.bar-row{display:flex;align-items:center;gap:.8rem}
.bar-row .lab{width:88px;flex:none;font-size:.78rem;color:var(--muted)}
.bar{flex:1;height:9px;border-radius:99px;background:var(--surface);overflow:hidden}
.bar>i{display:block;height:100%;width:0;border-radius:99px;background:linear-gradient(90deg,var(--accent),var(--accent-2));transition:width 1s var(--ease)}
.bar-row .val{width:38px;flex:none;text-align:end;font-size:.78rem;color:var(--muted-2);font-family:var(--mono)}

table.mini{width:100%;border-collapse:collapse;font-size:.84rem}
table.mini th{text-align:start;color:var(--muted-2);font-weight:600;font-size:.76rem;padding:.5em .6em;border-bottom:1px solid var(--border)}
table.mini td{padding:.7em .6em;border-bottom:1px solid var(--border);color:var(--text)}
table.mini tr:last-child td{border-bottom:none}
.tag-pill{display:inline-block;font-size:.72rem;padding:.28em .7em;border-radius:99px;background:var(--surface);border:1px solid var(--border)}
.tag-pill.ok{color:var(--accent-2);border-color:rgba(0,217,192,.35)}
.tag-pill.warn{color:#fbbf24;border-color:rgba(251,191,36,.35)}
.tag-pill.bad{color:#f97066;border-color:rgba(249,112,102,.35)}

/* ---------- tabs (generic) ---------- */
.tab-bar{display:inline-flex;gap:.35rem;padding:.3rem;background:var(--surface);border:1px solid var(--border);border-radius:999px;margin-bottom:1.6rem;flex-wrap:wrap}
.tab-bar button{padding:.55em 1.1em;font-size:.86rem;border-radius:999px;color:var(--muted);transition:.2s}
.tab-bar button.active{background:var(--text);color:#0a0a0c;font-weight:700}
[data-panel]{display:none}
[data-panel].active{display:block}

/* ---------- phone mockup ---------- */
.phone{width:270px;flex:none;border:1px solid var(--border-strong);border-radius:34px;padding:12px;background:var(--surface);box-shadow:0 30px 70px rgba(0,0,0,.4)}
.phone-screen{border-radius:24px;background:var(--surface-2);overflow:hidden;min-height:520px;display:flex;flex-direction:column}
.phone-notch{height:22px;display:flex;justify-content:center;align-items:flex-start;padding-top:6px}
.phone-notch i{width:60px;height:6px;border-radius:99px;background:var(--border-strong)}
.phone-body{padding:1rem;flex:1}
.phone-app-bar{display:flex;justify-content:space-between;align-items:center;margin-bottom:1rem}
.phone-app-bar h5{font-size:.95rem;font-weight:800}
.phone-nav{display:flex;justify-content:space-around;padding:.8rem 0;border-top:1px solid var(--border)}
.phone-nav .dot-ic{width:20px;height:20px;border-radius:6px;background:var(--surface)}
.phone-nav .dot-ic.active{background:var(--accent)}

/* ---------- feature list rows (alt to cards) ---------- */
.feature-row{display:grid;grid-template-columns:1.1fr 1fr;gap:clamp(2rem,5vw,4rem);align-items:center;padding-block:clamp(2.4rem,5vw,3.6rem);border-top:1px solid var(--border)}
.feature-row:first-of-type{border-top:none}
.feature-row.rev .frow-visual{order:2}
@media (max-width:880px){.feature-row,.feature-row.rev{grid-template-columns:1fr}.feature-row.rev .frow-visual{order:0}}
.frow-num{font-family:var(--mono);font-size:.8rem;color:var(--muted-2);margin-bottom:.8rem}
.frow-copy ul{margin-top:1.1rem;display:flex;flex-direction:column;gap:.6rem}
.frow-copy ul li{display:flex;gap:.6em;font-size:.92rem;color:var(--text)}
.frow-copy ul li svg{width:17px;height:17px;flex:none;margin-top:.15em;color:var(--accent-2)}
.frow-visual{background:var(--surface);border:1px solid var(--border);border-radius:var(--r-lg);padding:1.4rem;min-height:260px}

/* ---------- CTA band ---------- */
.cta-band{border:1px solid var(--border);border-radius:var(--r-lg);padding:clamp(2.4rem,6vw,4rem);text-align:center;background:linear-gradient(160deg,var(--surface),var(--bg-2));position:relative;overflow:hidden}
.cta-band::before{content:"";position:absolute;inset:0;background:radial-gradient(500px 260px at 50% 0%,rgba(91,108,255,.16),transparent 70%)}
.cta-band>*{position:relative;z-index:1}
.cta-band h2{max-width:22ch;margin-inline:auto}
.cta-band .hero-cta{justify-content:center}

/* ---------- footer ---------- */
footer{border-top:1px solid var(--border);margin-top:clamp(60px,8vw,100px)}
.foot-grid{display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:2.4rem;padding-block:clamp(48px,7vw,72px)}
@media (max-width:820px){.foot-grid{grid-template-columns:1fr 1fr}}
@media (max-width:520px){.foot-grid{grid-template-columns:1fr}}
.foot-grid h5{font-size:.86rem;color:var(--muted-2);margin-bottom:1.1rem;font-weight:600}
.foot-grid ul{display:flex;flex-direction:column;gap:.65rem}
.foot-grid a{font-size:.9rem;color:var(--muted);transition:color .2s}
.foot-grid a:hover{color:var(--text)}
.foot-grid p{font-size:.9rem;max-width:32ch;margin-top:.8rem}
.foot-bottom{border-top:1px solid var(--border);padding-block:1.4rem;display:flex;justify-content:space-between;align-items:center;flex-wrap:wrap;gap:1rem;font-size:.82rem;color:var(--muted-2)}
.foot-bottom .socials{display:flex;gap:1.2rem}
.foot-bottom a:hover{color:var(--text)}

/* ---------- AI assistant chat ---------- */
.chat-log{display:flex;flex-direction:column;gap:.6rem;margin-bottom:.8rem}
.chat-msg{max-width:82%;font-size:.82rem;line-height:1.5;padding:.6em .85em;border-radius:14px}
.chat-msg.bot{background:var(--surface-2);border:1px solid var(--border);align-self:flex-start;border-start-start-radius:4px}
.chat-msg.user{background:var(--accent);color:#fff;align-self:flex-end;border-start-end-radius:4px}
.chat-suggest{display:flex;flex-wrap:wrap;gap:.4rem;margin-top:.6rem}
.chat-suggest button{font-size:.72rem;padding:.4em .8em;border-radius:99px;border:1px solid var(--border);color:var(--muted);background:var(--surface)}
.chat-input{display:flex;gap:.5rem;margin-top:.8rem;border:1px solid var(--border);border-radius:12px;padding:.5em .6em;align-items:center;background:var(--surface-2)}
.chat-input span{flex:1;font-size:.78rem;color:var(--muted-2)}
.chat-input .send{width:26px;height:26px;border-radius:50%;background:var(--accent);color:#fff;display:grid;place-items:center;flex:none}
.chat-input .send svg{width:13px;height:13px}
.soon-card{opacity:.55;position:relative}
.soon-card .badge-soon{position:absolute;top:1.2rem;left:1.2rem;font-size:.72rem;padding:.3em .7em;border-radius:99px;background:var(--surface-2);border:1px solid var(--border);color:var(--muted)}
[dir="rtl"] .soon-card .badge-soon{left:auto;right:1.2rem}
