:root {
    --bg: #070b18;
    --bg-2: #0b1122;
    --panel: #0f1730;
    --line: rgba(255, 255, 255, .09);
    --text: #e8ecf8;
    --muted: #93a0bd;
    --cyan: #22d3ee;
    --violet: #8b5cf6;
    --grad: linear-gradient(90deg, #22d3ee, #8b5cf6);
    --radius: 14px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Poppins', 'Cairo', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}
[dir=rtl] body, body[dir=rtl] { font-family: 'Cairo', 'Poppins', sans-serif; }
a { color: inherit; text-decoration: none; }
img, video { max-width: 100%; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 22px; }

/* ---------- Nav ---------- */
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 50;
    transition: background .25s, box-shadow .25s;
    padding: 14px 0;
}
.nav.solid { background: rgba(7, 11, 24, .92); backdrop-filter: blur(10px); box-shadow: 0 2px 24px rgba(0, 0, 0, .45); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { height: 40px; }
.nav-links { display: flex; align-items: center; gap: 26px; font-size: 15px; font-weight: 500; }
.nav-links a { color: var(--muted); transition: color .2s; }
.nav-links a:hover { color: #fff; }
.lang-btn {
    border: 1px solid var(--line); border-radius: 999px; padding: 5px 16px;
    color: var(--cyan) !important; font-weight: 600;
}
.lang-btn:hover { border-color: var(--cyan); }
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 26px; cursor: pointer; }

/* ---------- Hero ---------- */
.hero, .phero { position: relative; padding: 150px 0 80px; overflow: hidden; }
.hero-glow {
    position: absolute; inset: 0; pointer-events: none;
    background:
        radial-gradient(600px 400px at 18% 8%, rgba(34, 211, 238, .16), transparent 60%),
        radial-gradient(700px 480px at 85% 25%, rgba(139, 92, 246, .18), transparent 60%);
}
.hero-inner, .phero-inner {
    position: relative; display: grid; grid-template-columns: 1.05fr .95fr;
    gap: 48px; align-items: center;
}
.chip {
    display: inline-block; padding: 6px 16px; border-radius: 999px;
    border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
    color: var(--cyan); font-size: 13.5px; font-weight: 600; margin-bottom: 18px;
}
.hero h1, .phero h1 {
    font-size: clamp(30px, 4.4vw, 48px); font-weight: 800; line-height: 1.18;
    margin-bottom: 18px;
    background: linear-gradient(90deg, #fff 30%, #a5b4fc);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy > p, .phero-tag { color: var(--muted); font-size: 17px; margin-bottom: 26px; max-width: 560px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 8px; }
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
    transition: transform .15s, box-shadow .15s, border-color .15s; cursor: pointer; border: none;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad); color: #06121c; box-shadow: 0 8px 28px rgba(34, 211, 238, .28); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); background: rgba(255, 255, 255, .04); }
.btn-ghost:hover { border-color: var(--cyan); }
.hero-stats { display: flex; gap: 34px; margin-top: 30px; flex-wrap: wrap; }
.hero-stats b { display: block; font-size: 24px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-stats span { color: var(--muted); font-size: 13px; max-width: 150px; display: block; }
.hero-media video, .phero-media video, .phero-media img {
    width: 100%; border-radius: var(--radius);
    border: 1px solid var(--line); box-shadow: 0 24px 70px rgba(0, 0, 0, .55);
    background: #000;
}
.phero-media img { cursor: zoom-in; }
.yt-wrap { position: relative; padding-top: 56.25%; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.yt-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* ---------- Product hero specifics ---------- */
.phero { padding-bottom: 60px; }
.phero .chip { color: var(--accent, var(--cyan)); }
.phero-desc { color: var(--muted); font-size: 15px; margin-bottom: 24px; max-width: 580px; }
.demo-cred {
    margin-top: 18px; display: inline-block; padding: 12px 18px; border-radius: 12px;
    border: 1px dashed var(--line); background: rgba(255, 255, 255, .035); font-size: 14px;
}
.demo-cred code {
    background: rgba(34, 211, 238, .12); color: var(--cyan);
    padding: 2px 10px; border-radius: 6px; font-size: 14px; direction: ltr; display: inline-block;
}
.demo-cred small { display: block; color: var(--muted); margin-top: 4px; }
.demo-cred.soon { border-style: solid; color: #fbbf24; }

/* ---------- Sections ---------- */
.section { padding: 76px 0; }
.section-alt { background: var(--bg-2); }
.sec-head { text-align: center; margin-bottom: 44px; }
.sec-head h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 10px; }
.sec-head p { color: var(--muted); max-width: 620px; margin: 0 auto; }

/* ---------- Product grid ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 20px; }
.prod-card {
    position: relative; display: flex; flex-direction: column; gap: 8px;
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.prod-card:hover {
    transform: translateY(-5px); border-color: var(--accent, var(--cyan));
    box-shadow: 0 18px 44px rgba(0, 0, 0, .5);
}
.prod-top { display: flex; justify-content: space-between; align-items: center; }
.prod-icon { font-size: 32px; }
.badge { font-size: 11.5px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.badge-live { background: rgba(52, 211, 153, .14); color: #34d399; }
.badge-soon { background: rgba(251, 191, 36, .13); color: #fbbf24; }
.badge-svc { background: rgba(139, 92, 246, .15); color: #a78bfa; }
.prod-card h3 { font-size: 20px; font-weight: 700; }
.prod-cat { color: var(--accent, var(--cyan)); font-size: 13px; font-weight: 600; }
.prod-card p { color: var(--muted); font-size: 14px; flex: 1; }
.prod-more { color: var(--accent, var(--cyan)); font-size: 13.5px; font-weight: 600; margin-top: 6px; }

/* ---------- Why ---------- */
.why-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.why-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 26px 22px; text-align: center;
}
.why-card span { font-size: 34px; display: block; margin-bottom: 12px; }
.why-card h3 { font-size: 17px; margin-bottom: 8px; }
.why-card p { color: var(--muted); font-size: 14px; }

/* ---------- Features ---------- */
.feat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
.feat-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
    padding: 24px 22px; transition: border-color .2s;
    border-top: 3px solid var(--accent, var(--cyan));
}
.feat-icon { font-size: 28px; display: block; margin-bottom: 10px; }
.feat-card h3 { font-size: 16.5px; margin-bottom: 8px; }
.feat-card p { color: var(--muted); font-size: 14px; }

/* ---------- Screenshots ---------- */
.shot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.shot { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; aspect-ratio: 16/10; object-fit: cover; object-position: top; cursor: zoom-in; transition: transform .25s; }
.shot img:hover { transform: scale(1.03); }
.shot figcaption { padding: 10px 14px; font-size: 13.5px; color: var(--muted); }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(120deg, rgba(34, 211, 238, .1), rgba(139, 92, 246, .12)); border-block: 1px solid var(--line); }
.cta-inner { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; }
.cta-inner h2 { font-size: clamp(22px, 3vw, 30px); font-weight: 800; }
.cta-inner .hero-cta { justify-content: center; margin: 0; }

/* ---------- Mini grid (other products) ---------- */
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.mini-card {
    background: var(--panel); border: 1px solid var(--line); border-radius: 12px;
    padding: 16px; text-align: center; display: flex; flex-direction: column; gap: 4px;
    transition: transform .2s, border-color .2s;
}
.mini-card:hover { transform: translateY(-3px); border-color: var(--accent, var(--cyan)); }
.mini-card span { font-size: 26px; }
.mini-card b { font-size: 14.5px; }
.mini-card small { color: var(--muted); font-size: 12px; }

/* ---------- Contact ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
.contact-copy h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 800; margin-bottom: 12px; }
.contact-copy p { color: var(--muted); }
.alert-ok {
    margin-top: 18px; padding: 12px 18px; border-radius: 10px;
    background: rgba(52, 211, 153, .12); color: #34d399; border: 1px solid rgba(52, 211, 153, .3);
}
.contact-form { display: grid; gap: 14px; }
.contact-form input, .contact-form select, .contact-form textarea {
    background: var(--panel); border: 1px solid var(--line); border-radius: 10px;
    padding: 13px 16px; color: var(--text); font: inherit; font-size: 14.5px; width: 100%;
}
.contact-form :is(input, select, textarea):focus { outline: none; border-color: var(--cyan); }
.contact-form button { justify-content: center; }

/* ---------- Footer ---------- */
footer { background: #05080f; border-top: 1px solid var(--line); padding: 56px 0 24px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 40px; margin-bottom: 36px; }
.foot-brand img { height: 38px; margin-bottom: 14px; }
.foot-brand p { color: var(--muted); font-size: 14px; max-width: 320px; }
footer h4 { font-size: 15px; margin-bottom: 14px; }
.foot-links, .foot-contact { list-style: none; display: grid; gap: 8px; font-size: 14px; }
.foot-links a, .foot-contact a { color: var(--muted); transition: color .2s; }
.foot-links a:hover, .foot-contact a:hover { color: var(--cyan); }
.foot-contact li { color: var(--muted); }
.foot-copy { border-top: 1px solid var(--line); padding-top: 20px; text-align: center; color: var(--muted); font-size: 13px; }
.foot-copy a { color: var(--muted); }
.foot-copy a:hover { color: var(--cyan); }

/* ---------- Floating WhatsApp ---------- */
.wa-float {
    position: fixed; bottom: 26px; inset-inline-end: 26px; z-index: 60;
    width: 58px; height: 58px; border-radius: 50%;
    background: #25d366; color: #fff; display: grid; place-items: center;
    box-shadow: 0 10px 30px rgba(37, 211, 102, .4); transition: transform .15s;
}
.wa-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
    position: fixed; inset: 0; z-index: 80; background: rgba(3, 5, 10, .9);
    display: none; place-items: center; padding: 4vh 4vw; cursor: zoom-out;
}
.lightbox.open { display: grid; }
.lightbox img { max-width: 100%; max-height: 92vh; border-radius: 10px; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 940px) {
    .hero-inner, .phero-inner, .contact-wrap { grid-template-columns: 1fr; }
    .foot-grid { grid-template-columns: 1fr; gap: 28px; }
    .nav-toggle { display: block; }
    .nav-links {
        display: none; position: absolute; top: 100%; inset-inline: 0;
        flex-direction: column; background: rgba(7, 11, 24, .97); padding: 20px;
        border-bottom: 1px solid var(--line);
    }
    .nav-links.open { display: flex; }
    .nav { background: rgba(7, 11, 24, .92); }
    .hero, .phero { padding-top: 110px; }
}
