:root {
    --navy: #081b3a;
    --midnight: #0f254b;
    --paper: #f7fafc;
    --pure: #ffffff;
    --electric: #256dff;
    --aqua: #39d5e8;
    --bright: #52e3e8;
    --silver: #d7dce4;
    --soft: #e9edf2;
    --slate: #64748b;
    --ink: #10233f;
    --line: rgba(8, 27, 58, 0.12);
    --shadow: 0 30px 80px rgba(8, 27, 58, 0.16);
    --serif: "Syne", "IBM Plex Sans Arabic", sans-serif;
    --sans: "Manrope", "IBM Plex Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
}
body.is-loading { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; font-weight: 700; letter-spacing: -0.03em; margin: 0 0 0.6rem; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3 { font-family: "IBM Plex Sans Arabic", sans-serif; letter-spacing: 0; }
p { margin: 0 0 1rem; }
.kicker {
    color: var(--electric);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.8rem;
}
[dir="rtl"] .kicker { letter-spacing: 0.04em; }
.lead { font-size: 1.15rem; color: var(--slate); max-width: 42rem; }
.nav {
    position: fixed; inset-inline: 0; top: 0; z-index: 40;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.85rem 4vw;
    background: linear-gradient(to bottom, rgba(8, 27, 58, 0.72), rgba(8, 27, 58, 0));
    transition: background 0.35s ease, box-shadow 0.35s ease;
}
.nav.is-solid {
    background: rgba(8, 27, 58, 0.92);
    backdrop-filter: blur(16px);
    box-shadow: 0 10px 40px rgba(0,0,0,.18);
}
.brand img, .footer-logo { height: 54px; width: auto; filter: brightness(0) invert(1); }
.nav-panel { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; gap: 1.15rem; }
.nav-links a { color: #fff; font-size: 0.92rem; font-weight: 600; opacity: 0.82; }
.nav-links a.is-active, .nav-links a:hover { opacity: 1; color: var(--aqua); }
.nav-actions { display: flex; align-items: center; gap: 0.8rem; }
.nav-panel { margin-inline-start: auto; }
.lang-switch {
    display: inline-flex; align-items: center; direction: ltr;
    padding: 0.18rem; border-radius: 999px; flex: none;
    background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.18);
}
.lang-switch a {
    color: #fff; font-weight: 700; font-size: 0.82rem; line-height: 1;
    padding: 0.42rem 0.72rem; border-radius: 999px; opacity: 0.78;
}
.lang-switch a.is-active { background: #fff; color: var(--navy); opacity: 1; }
.nav-toggle { display: none; background: none; border: 0; width: 42px; height: 42px; padding: 8px; }
.nav-toggle span { display: block; height: 2px; margin: 7px 0; background: #fff; }
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(90deg, var(--electric), var(--aqua));
    color: #fff; border: 0; border-radius: 999px;
    padding: 0.9rem 1.4rem; font-weight: 700; cursor: pointer;
    box-shadow: 0 10px 30px rgba(37, 109, 255, 0.28);
}
.btn-ghost { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.7); }
.btn-small { padding: 0.65rem 1rem; }
.hero {
    position: relative; min-height: 100vh; color: #fff;
    display: flex; align-items: flex-end; padding: 18vh 8vw 12vh;
    overflow: hidden; background: var(--navy);
}
.hero-photo, .page-hero-media {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    transform: scale(1.08);
}
.hero-shade, .page-hero::after {
    content: ""; position: absolute; inset: 0;
    background:
        linear-gradient(90deg, rgba(8,27,58,.92) 0%, rgba(8,27,58,.72) 48%, rgba(8,27,58,.35) 100%),
        radial-gradient(circle at 80% 20%, rgba(57,213,232,.25), transparent 36%);
}
[dir="rtl"] .hero-shade, [dir="rtl"] .page-hero::after {
    background:
        linear-gradient(270deg, rgba(8,27,58,.94) 0%, rgba(8,27,58,.7) 52%, rgba(8,27,58,.3) 100%),
        radial-gradient(circle at 15% 20%, rgba(57,213,232,.28), transparent 34%);
}
#spiral { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.hero-copy, .page-hero-copy { position: relative; z-index: 2; max-width: min(46rem, 100%); min-width: 0; }
.hero h1, .page-hero h1, .article h1, .contact-layout h1 { font-size: clamp(2.2rem, 4.6vw, 4.4rem); color: #fff; overflow-wrap: anywhere; }
.hero .lead, .page-hero .lead { color: var(--silver); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-top: 1.6rem; }
.hero-side {
    position: absolute; inset-inline-end: 2vw; top: 50%; z-index: 2;
    transform: translateY(-50%) rotate(180deg);
    writing-mode: vertical-rl;
    letter-spacing: 0.45em; font-weight: 700; color: rgba(255,255,255,.45); font-size: 0.78rem;
}
.scroll-hint {
    position: absolute; bottom: 1.4rem; inset-inline-start: 8vw; z-index: 2;
    font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--aqua);
}
.page-hero { position: relative; min-height: 68vh; display: flex; align-items: flex-end; padding: 22vh 8vw 8vh; color: #fff; background: var(--navy); overflow: hidden; }
.page-hero.compact { min-height: auto; padding: 18vh 8vw 4rem; background: var(--paper); }
.page-hero.compact::after { display: none; }
.page-hero.compact h1, .article h1, .contact-layout h1 { color: var(--navy); }
.contact-layout h1, .article h1 { font-size: clamp(2.4rem, 5vw, 4.5rem); }
.page-hero.compact .lead, .article .lead { color: var(--slate); }
.section { padding: 6.5rem 8vw; }
.section-alt { background: var(--soft); }
.section-head { max-width: 46rem; margin-bottom: 2.4rem; }
.split, .two, .contact-layout, .service-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 3rem; align-items: center; }
.frame { margin: 0; border-radius: 28px; overflow: hidden; box-shadow: var(--shadow); background: var(--navy); }
.frame img { width: 100%; height: 100%; object-fit: cover; min-height: 420px; }
.text-link { color: var(--electric); font-weight: 800; }
.service-grid, .brand-grid, .mini-grid, .insight-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.service-card, .brand-card, .mini-grid article, .insight-card, .panel {
    background: var(--pure); border: 1px solid var(--line); border-radius: 22px; padding: 1.4rem 1.3rem 1.2rem;
    box-shadow: 0 10px 30px rgba(8,27,58,.04); min-height: 100%;
}
.service-card { display: block; transition: transform .35s ease, border-color .35s ease; }
.service-card:hover { transform: translateY(-6px); border-color: var(--aqua); }
.num, .steps span, .insight-card span, .service-row span {
    display: block; color: var(--aqua); font-weight: 800; letter-spacing: 0.08em; margin-bottom: 0.7rem;
}
.service-card p, .brand-card p, .mini-grid p, .insight-card p { color: var(--slate); font-size: 0.98rem; }
.byline { color: var(--electric) !important; font-weight: 700; font-size: 0.92rem !important; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.steps li, .service-row { background: #fff; border-radius: 22px; padding: 1.3rem; border: 1px solid var(--line); }
.steps.tall { grid-template-columns: 1fr; }
.steps.tall li { display: grid; grid-template-columns: 4rem 1fr; gap: 1rem; align-items: start; }
.band { position: relative; min-height: 460px; display: grid; place-items: center; color: #fff; overflow: hidden; }
.band img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1.1); }
.band div { position: relative; z-index: 1; max-width: 40rem; padding: 3rem; background: rgba(8,27,58,.72); border: 1px solid rgba(57,213,232,.35); border-radius: 28px; backdrop-filter: blur(8px); }
.band h2 { font-size: clamp(2rem, 4vw, 3.4rem); }
.marquee { overflow: hidden; background: var(--navy); color: var(--aqua); border-block: 1px solid rgba(57,213,232,.25); }
.marquee-track { display: flex; gap: 2.5rem; white-space: nowrap; padding: 0.85rem 0; animation: drift 28s linear infinite; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.marquee-track span { padding-inline: 0.4rem; }
@keyframes drift { from { transform: translateX(0); } to { transform: translateX(-50%); } }
[dir="rtl"] .marquee-track { animation-direction: reverse; }
.facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.facts article { background: var(--navy); color: #fff; border-radius: 22px; padding: 1.5rem; }
.facts h3 { color: var(--aqua); font-size: 0.95rem; }
.prose { display: grid; grid-template-columns: 1.2fr .8fr; gap: 2rem; align-items: center; }
.prose .slim img { min-height: 320px; border-radius: 28px; object-fit: cover; width: 100%; }
.prose-stack { display: grid; gap: 1rem; }
.service-list { display: grid; gap: 0.8rem; }
.service-row { display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; gap: 1rem; align-items: center; color: inherit; min-width: 0; }
.service-row h2, .service-row p { overflow-wrap: anywhere; }
.service-row em { color: var(--electric); font-style: normal; font-weight: 700; }
.service-row:hover { border-color: var(--electric); }
.service-detail { align-items: start; }
.clean { margin: 0 0 1.5rem; padding: 0; list-style: none; }
.clean li { padding: 0.85rem 0; border-bottom: 1px solid var(--line); }
.note { background: #eef8ff; border-inline-start: 3px solid var(--electric); padding: 1rem 1.1rem; border-radius: 12px; margin: 1.2rem 0; }
.faq { display: grid; gap: 0.8rem; margin-bottom: 1.2rem; }
.faq article { background: #fff; border-radius: 18px; padding: 1.1rem 1.2rem; border: 1px solid var(--line); }
.mini-grid article h2 { font-size: 1.45rem; }
.service-detail aside a { display: block; padding: 0.45rem 0; color: var(--midnight); border-bottom: 1px solid var(--line); }
.article { padding: 18vh 18vw 5rem; max-width: none; }
.article-body { font-size: 1.08rem; }
.contact-layout { align-items: start; padding-top: 16vh; }
.form { display: grid; gap: 0.85rem; margin-top: 1.4rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.85rem; }
label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.92rem; }
input, select, textarea {
    width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 14px; padding: 0.85rem 0.9rem;
}
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(37,109,255,.35); border-color: var(--electric); }
.hp { position: absolute; left: -9999px; }
.form-note { padding: 0.8rem 1rem; border-radius: 12px; }
.form-note.ok { background: #e7fbf4; color: #0d6b45; }
.form-note.err { background: #ffecec; color: #9d1c1c; }
.contact-card { background: var(--navy); color: #fff; border-radius: 28px; overflow: hidden; }
.contact-card img { height: 180px; width: 100%; object-fit: cover; }
.contact-card h2, .contact-card p { margin-inline: 1.4rem; }
.contact-card h2 { margin-top: 1.2rem; }
.contact-card a { color: var(--aqua); }
.fine { color: var(--silver) !important; font-size: 0.88rem; padding-bottom: 1.3rem; }
.footer { background: var(--navy); color: var(--silver); padding: 4rem 8vw 1.4rem; }
.footer-top { display: grid; grid-template-columns: 1.4fr .8fr .8fr; gap: 2rem; }
.footer h3 { color: #fff; font-size: 1rem; }
.footer a:hover { color: var(--aqua); }
.socials { display: flex; flex-wrap: wrap; gap: 0.7rem 1rem; }
.footer-bottom { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.1); font-size: 0.85rem; }
.missing { min-height: 70vh; padding-top: 30vh; }
.loader {
    position: fixed; inset: 0; z-index: 80; background: var(--navy);
    display: grid; place-items: center; pointer-events: none;
    transition: opacity .6s ease, visibility .6s ease;
    animation: dismiss 0.45s ease 1.5s forwards;
}
@keyframes dismiss { to { opacity: 0; visibility: hidden; } }
.loader img { width: 92px; height: auto; filter: brightness(0) invert(1); animation: pulse 1.2s ease-in-out infinite; }
.loader.is-done { opacity: 0; visibility: hidden; }
@keyframes pulse { 50% { transform: scale(1.06); opacity: .75; } }
.cursor {
    position: fixed; top: 0; left: 0; width: 18px; height: 18px; margin: -9px 0 0 -9px;
    border: 1.5px solid var(--aqua); border-radius: 50%; pointer-events: none; z-index: 70;
    mix-blend-mode: difference; opacity: 0; transition: width .25s, height .25s, margin .25s;
}
body.has-cursor .cursor { opacity: 1; }
body.has-cursor, body.has-cursor a, body.has-cursor button { cursor: none; }
.cursor.is-hot { width: 46px; height: 46px; margin: -23px 0 0 -23px; background: rgba(57,213,232,.16); }
.progress { position: fixed; inset-inline-start: 0; top: 0; height: 3px; width: 0; z-index: 60; background: linear-gradient(90deg, var(--electric), var(--bright)); }
.line { display: inline-block; overflow: hidden; vertical-align: bottom; }
.word { display: inline-block; }
.admin-body { background: var(--paper); min-height: 100vh; padding: 8vh 8vw; }
.admin-table { width: 100%; border-collapse: collapse; background: #fff; }
.admin-table th, .admin-table td { border-bottom: 1px solid var(--line); text-align: start; padding: 0.8rem; vertical-align: top; }
.admin-login { max-width: 420px; display: grid; gap: 0.8rem; }

@media (max-width: 980px) {
    .nav-toggle { display: block; }
    .lang-switch { margin-inline-start: auto; }
    .nav-panel { margin-inline-start: 0; }
    .nav-panel {
        display: none; position: absolute; inset-inline: 0; top: 100%;
        background: rgba(8,27,58,.97); padding: 1rem 6vw 1.4rem; flex-direction: column; align-items: flex-start;
    }
    .nav-panel.is-open { display: flex; }
    .nav-links { flex-direction: column; }
    .service-grid, .brand-grid, .mini-grid, .insight-grid, .steps, .facts, .footer-top { grid-template-columns: 1fr 1fr; }
    .split, .two, .prose, .contact-layout, .service-detail, .service-row { grid-template-columns: 1fr; }
    .hero-side { display: none; }
    .article { padding-inline: 8vw; }
}
@media (max-width: 680px) {
    .service-grid, .brand-grid, .mini-grid, .insight-grid, .steps, .facts, .footer-top, .form-row { grid-template-columns: 1fr; }
    .section { padding: 4.2rem 6vw; }
    .hero, .page-hero { padding-inline: 6vw; }
    .hero h1 { font-size: 2.7rem; }
}
.systems-grid { grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) {
    .systems-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .marquee-track, .loader img { animation: none; }
    .cursor { display: none; }
}
