/* Athar: airy cream pages, one deep-navy ERP band; the logo's diamonds and arrow are the only ornament */
:root {
  --paper: #F8F6F0;
  --sand: #f3f7fc;
  --ink: #0A1628;
  --muted: #566074;
  --navy: #14284b;
  --navy-deep: #0A1628;
  --amber: #D4AF37;
  --gold: #D4AF37; --gold-deep: #9a7b12; --tert: #97B0FF;
  --line: #e4e0d3;
  --wa: #128c4a;
  --wa-deep: #0e7a3f;
  --on-dark: #F5F4EF;
  --on-dark-muted: #c3c9d8;
  --err: #b3261e;
  --card: #ffffff;
  --navy-fill: #0A1628; --head:#0A1628;
  --f-display: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --f-body: "IBM Plex Sans Arabic", "Plus Jakarta Sans", system-ui, sans-serif;
  --maxw: 1120px;
  color-scheme: light;
}
@supports (color: color-mix(in srgb, red 10%, white)) {
  :root { --sand: color-mix(in srgb, var(--navy) 4.5%, var(--paper)); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.85;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px);
  z-index: 60; background: var(--paper);
}
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2, h3 { font-family: var(--f-display); line-height: 1.25; color: var(--head); }
h4 { font-family: var(--f-body); font-weight: 600; line-height: 1.4; }
p { margin: 0; }
a { color: inherit; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
[data-email-link], [data-phone-link] { direction: ltr; unicode-bidi: isolate; }

html[lang="en"] body { line-height: 1.65; }
html[lang="en"] h1, html[lang="en"] h2 { letter-spacing: -0.01em; }

/* shared gutters + centered measure */
.site-header, .hero, .pillars, .page-hero, .section, .site-footer {
  padding-left: max(16px, env(safe-area-inset-left, 0px), calc((100% - var(--maxw)) / 2));
  padding-right: max(16px, env(safe-area-inset-right, 0px), calc((100% - var(--maxw)) / 2));
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 600; text-decoration: none; cursor: pointer;
  padding: 12px 26px; border-radius: 10px; border: 2px solid transparent;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 7px 18px; font-size: .88rem; }
.btn-primary { background: var(--navy-fill); color: #fff; }
.btn-primary:hover { background: var(--navy-deep); box-shadow: 0 8px 20px rgba(10, 22, 40, .25); }
.btn-ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-ghost:hover { background: var(--navy-fill); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; }
.btn-wa:hover { background: var(--wa-deep); box-shadow: 0 8px 20px rgba(18, 140, 74, .3); }

/* Header */
.site-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding-block: 10px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow .25s ease;
}
.site-header.scrolled { box-shadow: 0 8px 24px rgba(10, 22, 40, .08); }
.menu-btn {
  width: 46px; height: 46px; flex: none;
  display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 5px;
  padding: 0 11px; background: transparent; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer;
  transition: border-color .2s ease;
}
.menu-btn:hover { border-color: var(--navy); }
.menu-btn span { display: block; height: 2.5px; width: 22px; background: var(--navy); border-radius: 2px; transition: width .2s ease; }
.menu-btn span:last-child { width: 14px; background: var(--amber); }
.menu-btn:hover span:last-child { width: 22px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { height: 34px; width: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text b { font-family: var(--f-display); font-size: 1.2rem; color: var(--head); }
.brand-text small { font-size: .72rem; color: var(--muted); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 10px; }
.lang-toggle {
  font: inherit; font-weight: 600; font-size: .85rem;
  padding: 6px 16px; border-radius: 999px; cursor: pointer;
  color: var(--navy); background: transparent; border: 1.5px solid var(--navy);
  transition: background-color .2s ease, color .2s ease;
}
.lang-toggle:hover { background: var(--navy); color: var(--paper); }

/* Drawer (the three-bar menu) */
.scrim {
  position: fixed; inset: 0; z-index: 90; background: rgba(10, 22, 40, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; inset-inline-start: 0; z-index: 100;
  width: min(340px, 86vw); display: flex; flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 78px) 26px calc(env(safe-area-inset-bottom, 0px) + 24px);
  padding-inline-start: max(26px, env(safe-area-inset-left, 0px));
  background: var(--paper); box-shadow: 0 0 40px rgba(10, 22, 40, .25);
  transform: translateX(100%); visibility: hidden;
  transition: transform .28s ease, visibility 0s .28s;
  overflow-y: auto;
}
[dir="ltr"] .drawer { transform: translateX(-100%); }
.drawer.is-open { transform: none; visibility: visible; transition: transform .28s ease; }
.drawer-close {
  position: absolute; inset-block-start: calc(env(safe-area-inset-top, 0px) + 14px); inset-inline-end: 18px;
  width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer;
  color: var(--head); background: transparent; border: 1.5px solid var(--line); border-radius: 50%;
}
.drawer ul { list-style: none; margin: 0; padding: 0; }
.drawer li a {
  display: flex; align-items: center; gap: 12px; padding-block: 14px;
  font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; color: var(--head);
  text-decoration: none; border-bottom: 1px solid var(--line);
}
.drawer li a::before { content: ""; width: 9px; height: 9px; flex: none; background: var(--amber); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.drawer li a:hover { color: var(--navy); }
.drawer-wa { margin-top: 24px; }
.drawer-mail { margin-top: auto; padding-top: 28px; font-size: .9rem; color: var(--muted); text-decoration: none; }

/* Floating WhatsApp */
.wa-float {
  position: fixed; z-index: 80;
  inset-block-end: calc(18px + env(safe-area-inset-bottom, 0px));
  inset-inline-end: max(18px, env(safe-area-inset-right, 0px));
  width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; color: #fff; background: var(--wa);
  box-shadow: 0 10px 26px rgba(18, 140, 74, .4);
  transition: transform .2s ease, background-color .2s ease;
  animation: ring 2.4s ease-out 1.2s 3;
}
[dir="rtl"] .wa-float { inset-inline-end: auto; inset-inline-start: max(18px, env(safe-area-inset-left, 0px)); }
.wa-float:hover { transform: scale(1.08); background: var(--wa-deep); }
@keyframes ring {
  0% { box-shadow: 0 10px 26px rgba(18, 140, 74, .4), 0 0 0 0 rgba(18, 140, 74, .45); }
  70%, 100% { box-shadow: 0 10px 26px rgba(18, 140, 74, .4), 0 0 0 22px rgba(18, 140, 74, 0); }
}

/* Hero */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: clamp(24px, 5vw, 72px);
  padding-block: clamp(36px, 7vw, 88px);
  background: radial-gradient(60% 90% at 78% 45%, rgba(10, 22, 40, .06), transparent 70%);
}
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.4rem); font-weight: 700; }
.lead { margin-block: 22px 32px; font-size: 1.12rem; color: var(--muted); max-width: 36em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { min-width: 0; }
.hero-mark img { display: block; width: 100%; max-width: 500px; margin-inline: auto; animation: rise 1.2s cubic-bezier(.2, .7, .2, 1) both; }
@keyframes rise { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0); } }
.hero h1 { animation: up .7s ease .1s backwards; }
.hero .lead { animation: up .7s ease .25s backwards; }
.hero .hero-actions { animation: up .7s ease .4s backwards; }
@keyframes up { from { opacity: 0; transform: translateY(14px); } }

/* Pillars under hero */
.pillars {
  display: grid; grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line); background: var(--paper);
}
.pillar { display: flex; align-items: center; gap: 16px; padding-block: 26px; padding-inline: 0 24px; min-width: 0; color: var(--navy); }
.pillar + .pillar { border-inline-start: 1px solid var(--line); padding-inline: 28px 24px; }
.pillar svg { flex: none; }
.pillar h3 { font-size: 1.05rem; }
.pillar p { color: var(--muted); font-size: .9rem; line-height: 1.6; }

/* Sections */
.section { padding-block: clamp(56px, 8vw, 104px); }
.section-sand { background: var(--sand); }
.section h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); margin-block-end: 14px; }
.section-lead { color: var(--muted); font-size: 1.08rem; max-width: 40em; margin-block-end: 40px; }
.page-hero { padding-block: clamp(48px, 8vw, 96px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.page-hero .lead { margin-block-end: 0; }

/* About */
.about-grid { display: grid; grid-template-columns: 1.25fr .75fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.about-text h2 { margin-block-end: 22px; }
.about-text p { max-width: 38em; font-size: 1.05rem; }
.about-text p + p { margin-block-start: 16px; }
.vm { display: grid; gap: 16px; }
.vm-item { padding: 24px 26px; background: var(--sand); border-radius: 14px; }
.vm-item h3 { font-size: 1.15rem; margin-block-end: 6px; }
.vm-item p { color: var(--muted); font-size: .98rem; }
.values { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 32px; }
.values li { padding-block: 20px 0; border-top: 1px solid var(--line); }
.values h3 { font-size: 1.12rem; margin-block-end: 4px; }
.values p { color: var(--muted); font-size: .96rem; }

/* Why */
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px 40px; }
.why-item { min-width: 0; padding-block-start: 18px; border-top: 2px solid var(--navy); }
.why-item h3 { position: relative; padding-inline-start: 22px; font-size: 1.1rem; margin-block-end: 6px; }
.why-item h3::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .32em; width: 10px; height: 10px;
  background: var(--amber); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.why-item p { color: var(--muted); font-size: .97rem; }

/* Services */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.offer { min-width: 0; padding: clamp(24px, 4vw, 40px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s ease, box-shadow .25s ease; }
.offer:hover { border-color: var(--navy); box-shadow: 0 14px 34px rgba(10, 22, 40, .08); }
.offer h3 { font-size: 1.55rem; margin-block-end: 10px; }
.offer > p { color: var(--muted); margin-block-end: 22px; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; }
.ticks li { position: relative; padding-block: 10px; padding-inline-start: 26px; border-top: 1px solid var(--line); }
.ticks li::before {
  content: ""; position: absolute; inset-inline-start: 0; top: 1.05em; width: 10px; height: 10px;
  background: var(--amber); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}

/* ERP */
.erp { background: var(--navy-deep); color: var(--on-dark); overflow: hidden; }
.erp h2 { color: #fff; font-size: clamp(1.8rem, 3.8vw, 2.8rem); }
.erp-head { display: grid; grid-template-columns: 1fr 500px; gap: clamp(24px, 4vw, 56px); align-items: center; margin-block-end: 64px; }
.erp-intro { min-width: 0; }
.erp-lead { font-size: 1.1rem; color: var(--on-dark-muted); max-width: 42em; margin-block-start: 18px; }
.sub { font-size: 1.15rem; color: var(--amber); margin-block-end: 22px; }
.modules { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 28px 32px; margin-block-end: 64px; }
.module { min-width: 0; padding-block-start: 16px; border-top: 1px solid rgba(255, 255, 255, .2); transition: border-color .25s ease; }
.module:hover { border-top-color: var(--amber); }
.module h4 { color: #fff; font-size: 1.08rem; margin-block-end: 6px; }
.module p { color: var(--on-dark-muted); font-size: .94rem; line-height: 1.75; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px 40px; }
.feature { min-width: 0; position: relative; padding-inline-start: 28px; }
.feature::before {
  content: ""; position: absolute; inset-inline-start: 0; top: .5em; width: 12px; height: 12px;
  background: var(--amber); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
}
.feature h4 { color: #fff; font-size: 1.12rem; margin-block-end: 4px; }
.feature p { color: var(--on-dark-muted); font-size: .96rem; }

/* ERP hub diagram */
.hub { --R: 172px; position: relative; width: 500px; height: 440px; margin-inline: auto; }
.hub .n1 { --a: -90deg; } .hub .n2 { --a: -45deg; } .hub .n3 { --a: 0deg; } .hub .n4 { --a: 45deg; }
.hub .n5 { --a: 90deg; } .hub .n6 { --a: 135deg; } .hub .n7 { --a: 180deg; } .hub .n8 { --a: 225deg; }
.hub-core {
  position: absolute; left: 50%; top: 50%; width: 128px; height: 128px; translate: -50% -50%;
  border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 14px;
  background: var(--amber); color: var(--navy-deep); font-family: var(--f-display); font-weight: 700; font-size: .92rem; line-height: 1.3;
  box-shadow: 0 0 0 10px rgba(212, 175, 55, .18);
}
.spoke {
  position: absolute; left: 50%; top: 50%; width: var(--R); height: 1px; background: rgba(212, 175, 55, .55);
  transform-origin: 0 50%; transform: rotate(var(--a));
}
.node {
  position: absolute; left: 50%; top: 50%; width: 122px; padding: 7px 10px; text-align: center;
  transform: translate(-50%, -50%) rotate(var(--a)) translateX(var(--R)) rotate(calc(var(--a) * -1));
  background: #12356d; border: 1px solid rgba(255, 255, 255, .28); border-radius: 12px;
  color: #fff; font-size: .78rem; font-weight: 500; line-height: 1.35;
}
html.js .spoke { transform: rotate(var(--a)) scaleX(0); }
html.js .hub.in .spoke { transform: rotate(var(--a)) scaleX(1); transition: transform .8s ease .2s; }
html.js .node { opacity: 0; scale: .7; }
html.js .hub.in .node { opacity: 1; scale: 1; transition: opacity .5s ease .8s, scale .5s ease .8s; }

/* Industries */
.tier-big { display: grid; grid-template-columns: .8fr 2.2fr; gap: clamp(20px, 4vw, 48px); padding: clamp(24px, 4vw, 44px); background: var(--sand); border-radius: 16px; }
.tier-head h3 { font-size: 1.6rem; margin-block-end: 10px; }
.tier-head p { color: var(--muted); }
.tier-items { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 28px; }
.tier-items > div { min-width: 0; padding-block-start: 14px; border-top: 2px solid var(--navy); }
.tier-items h4 { color: var(--head); font-size: 1.05rem; margin-block-end: 6px; }
.tier-items p { color: var(--muted); font-size: .94rem; line-height: 1.75; }
.tier-small { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-block-start: 24px; }
.mini { min-width: 0; padding: 26px; border: 1px solid var(--line); border-radius: 14px; transition: border-color .25s ease, transform .25s ease; }
.mini:hover { border-color: var(--navy); transform: translateY(-3px); }
.mini h3 { font-size: 1.25rem; margin-block-end: 8px; }
.mini p { color: var(--muted); font-size: .96rem; }

/* Process */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); counter-reset: step; }
.steps li { counter-increment: step; position: relative; min-width: 0; padding-block-start: 46px; padding-inline-end: 22px; border-top: 2px solid var(--line); }
.steps li::before {
  content: counter(step); position: absolute; inset-block-start: -17px; inset-inline-start: 0;
  width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center;
  background: var(--navy-fill); color: #fff; font-family: var(--f-display); font-weight: 600; font-size: .95rem;
}
.steps h3 { font-size: 1.1rem; margin-block-end: 6px; }
.steps p { color: var(--muted); font-size: .93rem; line-height: 1.75; }

/* Projects */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.project {
  min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.project:hover { transform: translateY(-4px); border-color: var(--navy); box-shadow: 0 16px 36px rgba(10, 22, 40, .1); }
.tag { display: inline-block; padding: 2px 14px; border-radius: 999px; background: rgba(10, 22, 40, .09); color: var(--navy); font-size: .82rem; font-weight: 600; line-height: 1.7; }
.project h3 { font-size: 1.22rem; }
.project p { color: var(--muted); font-size: .97rem; }
.more { margin-block-start: 36px; }

/* Video */
.video-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(24px, 5vw, 64px); align-items: center; }
.video-text .section-lead { margin-block-end: 0; }
.video-frame {
  position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 16px;
  background: var(--navy-deep); color: rgba(255, 255, 255, .75);
  box-shadow: 0 20px 44px rgba(10, 22, 40, .18);
}
.video-frame iframe, .video-frame video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.vf-empty { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 20px; text-align: center; }
.vf-empty p { font-size: .98rem; max-width: 22em; }

/* Founders */
.founders { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 28px; max-width: 900px; }
.founder { margin: 0; min-width: 0; }
.photo {
  position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 16px;
  background: #dfe7f2; color: #a9bad2; display: flex; align-items: flex-end; justify-content: center;
}
.photo svg { width: 62%; height: auto; display: block; }
.photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.founder figcaption { padding-block-start: 14px; }
.founder h3 { font-size: 1.15rem; }
.founder p { color: var(--muted); font-size: .96rem; }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 6vw, 80px); align-items: start; }
.contact-text { min-width: 0; }
.contact-text .section-lead { margin-block-end: 28px; }
.wa-card { display: grid; gap: 6px; justify-items: start; padding: 24px 26px; background: var(--paper); border: 1px solid var(--line); border-radius: 16px; margin-block-end: 24px; }
.wa-card h3 { font-size: 1.2rem; }
.wa-card p { color: var(--muted); margin-block-end: 10px; }
.contact-lines { margin: 0; display: grid; gap: 14px; }
.contact-lines > div { display: grid; gap: 2px; padding-block-start: 14px; border-top: 1px solid var(--line); }
.contact-lines dt { color: var(--muted); font-size: .88rem; }
.contact-lines dd { margin: 0; font-weight: 600; color: var(--navy); }
.contact-lines a { text-decoration: none; }

.form { min-width: 0; display: grid; gap: 16px; padding: clamp(22px, 4vw, 36px); background: var(--paper); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 40px rgba(10, 22, 40, .06); }
.form h3 { font-size: 1.35rem; }
.form-top { color: var(--muted); font-size: .93rem; margin-block-start: -10px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { min-width: 0; display: grid; gap: 6px; align-content: start; }
.field label { font-size: .92rem; font-weight: 600; }
.field input, .field select, .field textarea {
  font: inherit; color: var(--ink); width: 100%; background: var(--card);
  border: 1.5px solid var(--line); border-radius: 10px; padding: 11px 14px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #c9c3ae; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px rgba(212, 175, 55, .45);
}
.field [aria-invalid="true"] { border-color: var(--err); }
.err { min-height: 1.3em; font-size: .85rem; color: var(--err); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form-note { min-height: 1.6em; font-size: .93rem; color: var(--navy); }

/* Works page */
.media-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 28px; }
.media-card { min-width: 0; }
.media-card h3 { font-size: 1.1rem; margin-block-start: 12px; }
.media-empty { padding: 34px 24px; text-align: center; color: var(--muted); border: 1.5px dashed var(--line); border-radius: 14px; background: var(--paper); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.shot { margin: 0; min-width: 0; }
.shot button { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.shot img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .4s ease; }
.shot button:hover img { transform: scale(1.05); }
.shot figcaption { padding-block-start: 8px; color: var(--muted); font-size: .9rem; }
.cta-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 40px; background: var(--navy-deep); color: var(--on-dark-muted); }
.cta-band h2 { color: #fff; margin-block-end: 8px; }
.cta-band .btn-ghost { border-color: #fff; color: #fff; }
.cta-band .btn-ghost:hover { background: #fff; color: var(--navy-deep); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.lightbox { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(5, 15, 40, .93); padding: 56px 16px 64px; }
.lightbox img { max-width: min(92vw, 1100px); max-height: 100%; object-fit: contain; border-radius: 8px; }
.lb-btn { position: absolute; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; color: #fff; background: rgba(255, 255, 255, .14); border: 0; }
.lb-btn:hover { background: rgba(255, 255, 255, .28); }
.lb-close { inset-block-start: 14px; inset-inline-end: 14px; }
.lb-prev { inset-inline-start: 14px; top: 50%; translate: 0 -50%; }
.lb-next { inset-inline-end: 14px; top: 50%; translate: 0 -50%; }
[dir="rtl"] .lb-prev svg, [dir="rtl"] .lb-next svg { transform: scaleX(-1); }
.lb-cap { position: absolute; inset-block-end: 18px; inset-inline: 16px; text-align: center; color: #fff; font-size: .95rem; }

/* Footer */
.site-footer {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 28px;
  padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px));
  background: var(--sand); border-top: 1px solid var(--line); color: var(--muted); font-size: .92rem;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-mark { height: 30px; width: auto; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.footer-links a { text-decoration: none; color: var(--navy); font-weight: 500; }
.footer-links a:hover { text-decoration: underline; }

/* Scroll reveal: shown by default, hidden only when JS has marked the page */
html.js .rv:not(.in) { opacity: 0; }
html.js .rv.in { animation: reveal .6s ease var(--d, 0ms) backwards; }
@keyframes reveal { from { opacity: 0; transform: translateY(14px); } }


/* New pages: services + systems */
.btn-amber { background: var(--amber); color: var(--navy-deep); }
.btn-amber:hover { box-shadow: 0 8px 20px rgba(212, 175, 55, .35); }
.page-hero .hero-actions { margin-block-start: 26px; }
.diff { margin-block-start: 32px; }
.diff .offer h3 { font-size: 1.3rem; }
.diff .offer > p { margin-block-end: 16px; }
.more-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; margin-block-start: 36px; padding-block-start: 24px; border-top: 1px solid var(--line); }
.more-row-dark { border-top-color: rgba(255, 255, 255, .2); justify-content: flex-start; }
.more-note { color: var(--muted); max-width: 40em; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 22px; margin-block-end: 36px; }
.cards .mini h3 { font-size: 1.15rem; }
.pkgs { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 24px; align-items: stretch; }
.pkg { display: flex; flex-direction: column; gap: 14px; min-width: 0; padding: clamp(24px, 3vw, 34px); background: var(--paper); border: 1px solid var(--line); border-radius: 16px; }
.pkg.hot { border: 2px solid var(--navy); box-shadow: 0 18px 40px rgba(10, 22, 40, .12); }
.pkg h3 { font-size: 1.45rem; }
.pkg .tag { align-self: flex-start; }
.pkg .price { font-family: var(--f-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); line-height: 1.4; }
.pkg .ticks { flex: 1; }
.pkg-meta { display: grid; gap: 4px; padding-block: 12px; border-block: 1px solid var(--line); font-size: .95rem; }
.pkg-meta b { color: var(--head); font-weight: 600; }
.price-note { margin-block-start: 28px; color: var(--muted); max-width: 46em; }
.explain { max-width: 46em; margin-block-end: 28px; color: var(--muted); font-size: 1.05rem; }
.sub-h { font-size: 1.2rem; margin-block: 34px 18px; }
.prose { display: grid; gap: 14px; max-width: 48em; margin-block-end: 44px; font-size: 1.04rem; }
.erp .prose { color: var(--on-dark-muted); }
.sub-gap { margin-block-start: 52px; }
.faq { display: grid; gap: 12px; max-width: 52em; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 20px; }
.faq summary { cursor: pointer; padding-block: 14px; font-weight: 600; color: var(--head); }
.faq details p { padding-block-end: 16px; color: var(--muted); }
.erp .media-empty { background: transparent; color: var(--on-dark-muted); border-color: rgba(255, 255, 255, .3); }
.erp .media-card h3, .erp .shot figcaption { color: var(--on-dark); }
.step-n { display: none; }
@media (max-width: 640px) { .more-row .btn { width: 100%; } }

/* Responsive */
@media (max-width: 1000px) {
  .erp-head { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 44px; }
  .why, .projects { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .hero, .about-grid, .contact, .duo, .tier-big, .video-grid { grid-template-columns: 1fr; }
  .hero-mark img { max-width: 380px; }
  .tier-items { grid-template-columns: 1fr 1fr; }
  .tier-small, .values, .pillars { grid-template-columns: 1fr; }
  .pillar + .pillar { border-inline-start: 0; border-top: 1px solid var(--line); padding-inline: 0; }
  .pillar { padding-inline: 0; }
  .header-cta { display: none; }
}
@media (max-width: 640px) {
  .site-footer { padding-block-end: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .header-actions .btn-wa { display: none; }
  .why, .projects, .steps, .row2 { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .tier-items { grid-template-columns: 1fr; }
  .brand-text small { display: none; }
  .features { grid-template-columns: 1fr; }
  .hub { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html.js .rv:not(.in) { opacity: 1; }
  html.js .spoke { transform: rotate(var(--a)) scaleX(1); }
  html.js .node { opacity: 1; scale: 1; }
}

/* ---------- Tech layer ---------- */
:root { --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace; }

/* scroll progress */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; background: linear-gradient(90deg, var(--navy), var(--amber)); transform: scaleX(var(--p, 0)); transform-origin: left; pointer-events: none; }
html[dir="rtl"] .progress { transform-origin: right; }

/* blueprint grid behind the hero */
.hero { position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(10, 22, 40, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 22, 40, .07) 1px, transparent 1px);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(70% 90% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(70% 90% at 70% 40%, #000 20%, transparent 75%);
  animation: gridmove 24s linear infinite;
}
@keyframes gridmove { to { background-position: 44px 44px; } }

/* build console */
.term { margin-block-start: 22px; border-radius: 14px; overflow: hidden; background: #0a1f44; color: #cfe0ff; box-shadow: 0 22px 50px -24px rgba(10, 22, 40, .55), 0 0 0 1px rgba(10, 22, 40, .35); font-family: var(--mono); font-size: .8rem; text-align: left; }
.term-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #06142e; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.term-bar i { width: 9px; height: 9px; border-radius: 50%; background: #3a4d73; }
.term-bar i:first-child { background: var(--amber); }
.term-bar span { margin-inline-start: 8px; font-size: .72rem; color: #8fa6d1; }
.term-body { margin: 0; padding: 14px 16px 16px; list-style: none; display: grid; gap: 5px; min-height: 9.5em; }
.term-body li { white-space: pre-wrap; overflow-wrap: anywhere; opacity: 0; animation: tline .4s ease forwards; animation-delay: calc(var(--i) * 650ms + 500ms); }
.term-body li:first-child { color: #fff; }
.term-body li:first-child::before { content: "$ "; color: var(--amber); }
.term-body li.ok::before { content: "\2713  "; color: #4cd9a0; }
.term-body li.last { color: var(--amber); font-weight: 600; }
.term-body li.last::after { content: ""; display: inline-block; width: .55em; height: 1em; margin-inline-start: 4px; vertical-align: -.15em; background: var(--amber); animation: blink 1s steps(2) infinite; }
@keyframes tline { from { opacity: 0; transform: translateX(-8px); } to { opacity: 1; transform: none; } }
@keyframes blink { 50% { opacity: 0; } }

/* technologies strip */
.stack { display: flex; align-items: center; gap: 18px; padding-block: 16px; padding-inline: max(16px, calc((100% - var(--maxw)) / 2)); background: var(--paper); border-block-end: 1px solid var(--line); overflow: hidden; }
.stack-label { flex: none; font-family: var(--mono); font-size: .78rem; color: var(--navy); font-weight: 600; letter-spacing: .02em; }
.stack-view { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.stack-track { display: flex; gap: 10px; width: max-content; animation: marquee 38s linear infinite; }
.stack-view:hover .stack-track { animation-play-state: paused; }
.stack-track span { font-family: var(--mono); font-size: .82rem; padding: 5px 13px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--head); white-space: nowrap; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* capabilities */
.eyebrow { font-family: var(--mono); font-size: .82rem; letter-spacing: .08em; color: var(--navy); margin-block-end: 10px; direction: ltr; text-align: start; }
html[dir="rtl"] .eyebrow { direction: rtl; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-block-end: 28px; }
.chip { font: inherit; font-size: .9rem; padding: 7px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--card); color: var(--head); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.chip:hover { border-color: var(--navy); }
.chip[aria-pressed="true"] { background: var(--navy-fill); border-color: var(--navy); color: #fff; }
.capgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.cap { position: relative; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 22px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.cap::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, .16), transparent 70%); }
.cap:hover { border-color: var(--navy); transform: translateY(-3px); box-shadow: 0 16px 34px -22px rgba(10, 22, 40, .5); }
.cap:hover::before { opacity: 1; }
.cap-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; direction: ltr; font-family: var(--mono); font-size: .74rem; }
.cap-code { padding: 2px 9px; border-radius: 6px; background: rgba(10, 22, 40, .08); color: var(--navy); font-weight: 600; }
.cap-n { color: #8a94a8; }
.cap h3 { font-size: 1.12rem; }
.cap p { color: var(--muted); font-size: .94rem; line-height: 1.7; flex: 1; }
.cap-link { margin-block-start: 4px; padding-block-start: 12px; border-block-start: 1px dashed var(--line); font-weight: 600; font-size: .9rem; color: var(--navy); text-decoration: none; display: flex; justify-content: space-between; }
.cap-link:hover { color: var(--head); }
.cap[hidden] { display: none; }
.mini, .pkg { position: relative; }
@media (max-width: 640px) { .stack { gap: 10px; } .term { font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) {
  .term-body li { opacity: 1 !important; }
  .stack-track { animation: none !important; flex-wrap: wrap; width: auto; }
}

/* ======================================================================
   Tech identity v5
   ====================================================================== */
main { counter-reset: sec; }
.section:not(.cta-band):not(.erp) > h2 { counter-increment: sec; }
.section:not(.cta-band):not(.erp) > h2::before {
  content: "0" counter(sec) " //"; display: block; margin-block-end: 8px;
  font: 600 .78rem/1 var(--mono); letter-spacing: .12em; color: var(--navy); direction: ltr; text-align: start; opacity: .8;
}
html[dir="rtl"] .section:not(.cta-band):not(.erp) > h2::before { direction: rtl; }
.section:not(.cta-band) > h2::after {
  content: "_"; margin-inline-start: 4px; font-family: var(--mono); color: var(--amber); font-weight: 400; animation: blink 1.1s steps(2) infinite;
}
/* the eyebrow label replaces the numbered one when present */
.section > .eyebrow + h2::before { display: none; }

/* header: single logo, desktop nav, quick search */
html[lang="ar"] .brand-text b { display: none; }
.top-nav { display: none; align-items: center; gap: 2px; margin-inline-start: 18px; }
.top-nav a { padding: 7px 12px; border-radius: 8px; text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--ink); position: relative; white-space: nowrap; }
.top-nav a:hover { background: var(--sand); color: var(--navy); }
.top-nav a[aria-current="page"] { color: var(--navy); font-weight: 600; }
.top-nav a[aria-current="page"]::after { content: ""; position: absolute; inset-inline: 12px; bottom: 2px; height: 2px; background: var(--amber); border-radius: 2px; }
@media (min-width: 1060px) { .top-nav { display: flex; } }
.pal-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; padding: 6px 12px; border-radius: 10px; cursor: pointer; border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); }
.pal-btn:hover { border-color: var(--navy); }
.pal-btn kbd { font: 600 .72rem var(--mono); padding: 1px 6px; border-radius: 5px; background: var(--sand); border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 640px) { .pal-btn kbd { display: none; } .pal-btn { padding: 8px 10px; } }

/* hero: floating code chips */
.hero-mark { position: relative; }
.fchip { position: absolute; font: 600 .76rem var(--mono); padding: 4px 11px; border-radius: 8px; background: var(--card); color: var(--navy); border: 1px solid var(--line); box-shadow: 0 8px 20px -10px rgba(10, 22, 40, .45); animation: floaty 6s ease-in-out infinite; direction: ltr; pointer-events: none; }
.fchip.c1 { top: 2%; inset-inline-start: 4%; }
.fchip.c2 { top: 18%; inset-inline-end: 0; animation-delay: -1.5s; color: #b9770e; }
.fchip.c3 { top: 46%; inset-inline-start: -2%; animation-delay: -3s; }
.fchip.c4 { top: 40%; inset-inline-end: 2%; animation-delay: -4.5s; color: #0b7a4b; }
@keyframes floaty { 50% { transform: translateY(-10px); } }
.hero .term { position: relative; z-index: 1; }

/* interactive console input */
.term-in { display: flex; align-items: center; gap: 8px; padding: 0 16px 14px; }
.term-ps { color: var(--amber); }
.term-in input { flex: 1; min-width: 0; font: inherit; color: #fff; background: transparent; border: 0; border-block-end: 1px dashed rgba(255, 255, 255, .25); padding: 4px 0; outline: none; caret-color: var(--amber); }
.term-in input::placeholder { color: #6b82ad; }
.term-in input:focus-visible { border-block-end-color: var(--amber); outline: none; }
.term-body li.out { color: #9fd3ff; animation-delay: 0s !important; opacity: 1; }
.term-body li.out::before { content: "> "; color: #6b82ad; }
.term-body { max-height: 15em; overflow-y: auto; }

/* cards: tech style */
.mini, .cap, .pkg, .offer, .project, .module, .feature, .ex, .why-item { border-radius: 12px; }
.mini::after, .cap::after, .ex::after { content: ""; position: absolute; top: 10px; inset-inline-end: 10px; width: 9px; height: 9px; border-top: 2px solid var(--amber); border-inline-end: 2px solid var(--amber); opacity: .8; border-start-end-radius: 3px; pointer-events: none; }
.cap-top { display: flex; }

/* page hero eyebrow */
.page-hero .eyebrow { margin-block-end: 12px; }

/* stats band (dark, grid, glowing numbers) */
.stats { position: relative; background: var(--navy-deep); color: var(--on-dark); overflow: hidden; isolation: isolate; }
.stats::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px); background-size: 40px 40px; -webkit-mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 80%); mask-image: radial-gradient(80% 100% at 50% 0%, #000, transparent 80%); }
.stats h2, .stats .eyebrow { color: #fff; }
.stats .section-lead { color: var(--on-dark-muted); }
.stats > h2::before { color: var(--amber); }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.stat { padding: 26px 22px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .04); }
.stat-v { display: block; font: 700 clamp(2.2rem, 5vw, 3.2rem)/1.1 var(--mono); color: #fff; text-shadow: 0 0 24px rgba(212, 175, 55, .55); direction: ltr; text-align: start; }
.stat-v i { font-style: normal; color: var(--amber); }
.stat-t { display: block; margin-block-start: 8px; color: var(--on-dark-muted); font-size: .98rem; }
.stat[hidden] { display: none; }

/* services page */
.svc-list { display: grid; gap: 18px; }
.svc { position: relative; display: grid; grid-template-columns: 220px 1fr auto; gap: 8px 28px; align-items: start; padding: 26px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); overflow: hidden; transition: border-color .25s ease, box-shadow .25s ease; scroll-margin-top: 96px; }
.svc:hover { border-color: var(--navy); box-shadow: 0 16px 34px -24px rgba(10, 22, 40, .55); }
.svc::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s ease; background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 50%), rgba(212, 175, 55, .14), transparent 70%); }
.svc:hover::before { opacity: 1; }
.svc[hidden] { display: none; }
.svc-side { display: grid; gap: 10px; align-content: start; }
.svc-side .cap-top { justify-content: flex-start; gap: 12px; }
.svc h3 { font-size: 1.3rem; }
.svc-main p { color: var(--muted); margin-block-end: 12px; }
.svc-inc { font: 600 .74rem var(--mono); letter-spacing: .08em; color: var(--navy); margin-block-end: 6px; text-transform: uppercase; }
.svc .ticks { margin: 0; }
.svc-cta { align-self: center; }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc-cta { align-self: start; } }

/* explore band */
.ex-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.ex { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); text-decoration: none; transition: border-color .2s ease, transform .2s ease; }
.ex:hover { border-color: var(--navy); transform: translateY(-3px); }
.ex[hidden] { display: none; }
.ex-n { font: 600 .74rem var(--mono); color: #8a94a8; }
.ex h3 { font-size: 1.1rem; }
.ex p { color: var(--muted); font-size: .92rem; line-height: 1.65; flex: 1; }
.ex-go { font-weight: 600; font-size: .88rem; color: var(--navy); }
.ex-go::after { content: " \2197"; }

/* estimator */
.est-box { display: grid; grid-template-columns: 1.4fr 1fr; gap: 22px; align-items: start; }
.est-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.est-form fieldset { margin: 0; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 6px; min-width: 0; }
.est-form legend { padding-inline: 8px; font-weight: 600; color: var(--head); font-size: .95rem; }
.opt { display: flex; align-items: center; gap: 9px; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .94rem; }
.opt:hover { background: var(--sand); }
.opt input { accent-color: var(--navy); width: 17px; height: 17px; flex: none; }
.est-res { position: sticky; top: 96px; padding: 24px; border-radius: 14px; background: var(--navy-deep); color: var(--on-dark); display: grid; gap: 8px; box-shadow: 0 24px 50px -28px rgba(10, 22, 40, .8); }
.est-kicker { font: 600 .74rem var(--mono); letter-spacing: .1em; color: var(--amber); }
.est-res h3 { color: #fff; font-size: 1.5rem; }
.est-price b { font: 700 1.25rem var(--mono); color: #fff; }
.est-time b { color: #fff; }
.est-note { color: var(--on-dark-muted); font-size: .86rem; line-height: 1.6; }
.est-res .btn { margin-block-start: 6px; }
@media (max-width: 900px) { .est-box { grid-template-columns: 1fr; } .est-res { position: static; } }
@media (max-width: 520px) { .est-form { grid-template-columns: 1fr; } }

/* command palette */
.pal { position: fixed; inset: 0; z-index: 120; display: grid; place-items: start center; padding: 12vh 16px 16px; background: rgba(6, 20, 46, .55); backdrop-filter: blur(3px); }
.pal[hidden] { display: none; }
.pal-box { width: min(560px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--card); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); overflow: hidden; border: 1px solid var(--line); }
.pal-input { font: inherit; font-size: 1.05rem; padding: 16px 18px; border: 0; border-block-end: 1px solid var(--line); outline: none; background: var(--card); color: var(--ink); }
.pal-list { overflow-y: auto; padding: 8px; display: grid; gap: 2px; }
.pal-grp { padding: 10px 12px 4px; font: 600 .7rem var(--mono); letter-spacing: .1em; color: #8a94a8; text-transform: uppercase; }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 9px; text-decoration: none; color: var(--ink); cursor: pointer; border: 0; background: transparent; font: inherit; text-align: start; width: 100%; }
.pal-item[aria-selected="true"], .pal-item:hover { background: var(--sand); color: var(--navy); }
.pal-item small { font: 600 .7rem var(--mono); color: #8a94a8; }
.pal-empty { padding: 22px; text-align: center; color: var(--muted); }
.pal-hint { padding: 9px 16px; border-block-start: 1px solid var(--line); font: .74rem var(--mono); color: #8a94a8; direction: ltr; text-align: center; }

@media (max-width: 640px) { .fchip.c3 { inset-inline-start: 0; } .fchip.c1 { inset-inline-start: 0; } }
@media (prefers-reduced-motion: reduce) { .fchip { animation: none !important; } .section > h2::after { animation: none !important; } }

/* v5 fixes */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.header-actions .btn { white-space: nowrap; }
@media (max-width: 1239px) { .header-cta { display: none; } }
html[lang="ar"] .eyebrow, html[lang="ar"] .est-kicker, html[lang="ar"] .pal-grp, html[lang="ar"] .svc-inc {
  letter-spacing: 0; text-transform: none; font-family: var(--f-body); font-weight: 600;
}
html[lang="ar"] .eyebrow { font-size: .9rem; }
.section > .eyebrow + h2::before { display: none !important; }
.capgrid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.opt { justify-content: flex-start; text-align: start; }
.founders { max-width: none; }

/* ======================================================================
   v6: living background, drawer, tab bar, journey, reviews, login
   ====================================================================== */
.section-sand { background: rgba(10, 22, 40, .035); }
.pillars, .stack { background: rgba(255, 255, 255, .72); }
.site-footer { background: rgba(243, 247, 252, .92); }

/* header lock + footer login */
.lock-btn { display: none; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--paper); color: var(--navy); cursor: pointer; }
.lock-btn:hover { border-color: var(--navy); }
@media (min-width: 1060px) { .lock-btn { display: grid; } }
.foot-login { font: inherit; font-weight: 500; color: var(--navy); background: none; border: 0; padding: 0; cursor: pointer; }
.foot-login:hover { text-decoration: underline; }

/* mobile tab bar */
.tabbar { position: fixed; inset: auto 0 0 0; z-index: 55; display: none; grid-template-columns: repeat(5, 1fr); padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(10, 22, 40, .35); }
.tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; border-radius: 10px; text-decoration: none; color: var(--muted); font-size: .68rem; font-weight: 600; line-height: 1.2; text-align: center; }
.tabbar a[aria-current="page"] { color: var(--navy); background: rgba(10, 22, 40, .07); }
.tabbar a[aria-current="page"] svg { color: var(--amber); }
@media (max-width: 1059px) {
  .tabbar { display: grid; }
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom, 0px)); }
  .wa-float { bottom: calc(82px + env(safe-area-inset-bottom, 0px)); }
}

/* journey (radial) */
.jr { position: relative; aspect-ratio: 1000 / 560; margin-block: 8px 12px; }
.jr-lines { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.jr-lines line { stroke: var(--navy); stroke-width: 1.6; stroke-opacity: .35; stroke-dasharray: 6 6; vector-effect: non-scaling-stroke; animation: dash 1.6s linear infinite; }
.jr-lines line.on { stroke: var(--amber); stroke-opacity: 1; stroke-width: 2.4; }
@keyframes dash { to { stroke-dashoffset: -24; } }
.jr-lines circle { fill: var(--amber); }
.jr-core { position: absolute; left: 50%; top: 50%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; display: grid; place-content: center; text-align: center; padding: 8%; background: radial-gradient(circle at 30% 25%, #0a4f93, var(--navy-deep)); color: #fff; box-shadow: 0 0 0 8px rgba(10, 22, 40, .08), 0 0 0 18px rgba(10, 22, 40, .05), 0 20px 40px -18px rgba(10, 22, 40, .7); z-index: 2; }
.jr-core::after { content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1.5px dashed rgba(212, 175, 55, .7); animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.jr-core b { font-family: var(--f-display); font-size: clamp(.85rem, 1.7vw, 1.25rem); line-height: 1.25; }
.jr-core small { margin-block-start: 6px; font-size: clamp(.62rem, 1vw, .78rem); color: var(--on-dark-muted); line-height: 1.4; }
.jr-nodes { position: absolute; inset: 0; }
.jr-node { position: absolute; left: calc(var(--x) * 0.1%); top: calc(var(--y) / 5.6 * 1%); transform: translate(-50%, -50%); z-index: 3; width: clamp(130px, 17.5%, 190px); display: grid; gap: 2px; justify-items: start; text-align: start; font: inherit; padding: 9px 13px; border-radius: 10px; border: 1.5px solid var(--navy); background: var(--card); color: var(--head); cursor: pointer; transition: background .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease; }
.jr-node:hover { transform: translate(-50%, -50%) scale(1.05); box-shadow: 0 14px 28px -16px rgba(10, 22, 40, .7); }
.jr-node .jr-code { font: 600 .72rem var(--mono); color: #b9770e; direction: ltr; letter-spacing: .04em; }
.jr-node .jr-t { font-weight: 700; font-size: .92rem; line-height: 1.3; }
.jr-node[aria-pressed="true"] { background: var(--navy-fill); color: #fff; box-shadow: 0 0 0 4px rgba(212, 175, 55, .35); }
.jr-node[aria-pressed="true"] .jr-code { color: var(--amber); }
.jr-hint { text-align: center; color: var(--muted); font-size: .92rem; margin-block-start: 4px; }
.jr-panel { position: relative; max-width: 760px; margin: 22px auto 0; padding: 26px 28px; border-radius: 14px; background: var(--card); border: 1.5px solid var(--navy); box-shadow: 0 24px 50px -30px rgba(10, 22, 40, .6); animation: panelIn .35s ease; }
.jr-panel::before { content: ""; position: absolute; inset-inline-start: 50%; top: -23px; width: 2px; height: 22px; background: var(--amber); }
.jr-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(-10px); } }
.jr-p-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-block-end: 8px; }
.jr-p-top .cap-code { font-size: .8rem; }
.jr-time { font: 600 .82rem var(--f-body); padding: 3px 12px; border-radius: 999px; background: rgba(212, 175, 55, .2); color: #7a4d00; }
.jr-panel h3 { font-size: 1.4rem; margin-block-end: 8px; }
.jr-panel > p { color: var(--muted); margin-block-end: 12px; }
.jr-panel .svc-inc { margin-block-end: 6px; }
.jr-panel .ticks { margin: 0 0 14px; }
.jr-p-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 959px) {
  .jr { aspect-ratio: auto; display: grid; gap: 0; justify-items: center; }
  .jr-lines { display: none; }
  .jr-core { position: relative; left: auto; top: auto; transform: none; width: 168px; padding: 14px; margin-block-end: 36px; }
  .jr-nodes { position: relative; width: min(420px, 100%); display: grid; gap: 14px; padding-inline-start: 0; }
  .jr-nodes::before { content: ""; position: absolute; inset-inline-start: 50%; top: -36px; bottom: 20px; width: 2px; background: repeating-linear-gradient(var(--navy) 0 6px, transparent 6px 12px); opacity: .4; }
  .jr-node { position: relative; left: auto; top: auto; transform: none; width: 100%; padding: 12px 16px; }
  .jr-node:hover { transform: none; }
  .jr-panel::before { display: none; }
}

/* reviews marquee (moves to the right) */
.reviews { margin-block-start: clamp(40px, 6vw, 72px); }
.rv-title { color: #fff; font-size: 1.5rem; margin-block-end: 6px; }
.rv-lead { color: var(--on-dark-muted); margin-block-end: 22px; }
.rv-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent); padding-block: 6px; }
.rv-track { display: flex; gap: 16px; width: max-content; animation: marqueeR 60s linear infinite; }
.rv-view:hover .rv-track, .rv-view:focus-within .rv-track { animation-play-state: paused; }
@keyframes marqueeR { from { transform: translateX(-50%); } to { transform: translateX(0); } }
.rv-card { width: 320px; flex: none; display: flex; flex-direction: column; gap: 12px; padding: 20px 22px; border-radius: 14px; background: var(--card); color: var(--ink); box-shadow: 0 18px 36px -22px rgba(0, 0, 0, .6); white-space: normal; }
.rv-stars { color: var(--amber); letter-spacing: 2px; font-size: 1rem; direction: ltr; }
.rv-text { font-size: .95rem; line-height: 1.75; color: var(--ink); flex: 1; }
.rv-who { display: flex; align-items: center; gap: 12px; padding-block-start: 12px; border-block-start: 1px dashed var(--line); }
.rv-av { width: 40px; height: 40px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--navy), #0a5ea8); overflow: hidden; }
.rv-name { display: block; font-weight: 700; font-size: .95rem; line-height: 1.3; }
.rv-role { display: block; font-size: .82rem; color: var(--muted); line-height: 1.3; }
.rv-card.ph { opacity: .85; border: 2px dashed rgba(10, 22, 40, .35); box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .rv-track { animation: none !important; flex-wrap: wrap; width: auto; } .jr-lines line, .jr-core::after { animation: none !important; } }

/* login modal */
.lg { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 16px; background: rgba(6, 20, 46, .6); backdrop-filter: blur(4px); }
.lg[hidden] { display: none; }
.lg-card { width: min(400px, 100%); display: grid; gap: 8px; padding: 28px 26px; border-radius: 16px; background: var(--card); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .6); position: relative; }
.lg-card h2 { font-size: 1.25rem; }
.lg-card h2::before, .lg-card h2::after { content: none !important; }
.lg-note { font: 600 .74rem var(--mono); letter-spacing: .1em; color: var(--navy); margin-block-end: 6px; }
html[lang="ar"] .lg-note { letter-spacing: 0; font-family: var(--f-body); }
.lg-card label { font-size: .9rem; font-weight: 500; }
.lg-card input { font: inherit; width: 100%; padding: 11px 14px; margin-block-end: 6px; border: 1.5px solid var(--line); border-radius: 9px; background: var(--card); color: var(--ink); direction: ltr; }
.lg-card input:focus-visible { border-color: var(--navy); outline-offset: 0; }
.lg-err { min-height: 1.4em; margin: 0; font-size: .88rem; color: var(--err); }
.lg-x { position: absolute; inset-block-start: 12px; inset-inline-end: 12px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--head); cursor: pointer; font-size: 1.1rem; line-height: 1; }
.jr-core { width: 21%; padding: 4%; }
.jr-core b { font-size: clamp(.8rem, 1.55vw, 1.2rem); }
.jr-core small { font-size: clamp(.58rem, .9vw, .74rem); }
@media (max-width: 959px) { .jr-core { width: 168px; padding: 14px; } .jr-core b { font-size: 1.05rem; } .jr-core small { font-size: .74rem; } }

/* v7: calmer background, kept to the page edges so reading stays clean */
.section:not(.cta-band) > h2::after { animation: none; opacity: .9; }
.fchip { animation-duration: 9s; }

/* ======================================================================
   v7: IDE-style menu, code background, motion
   ====================================================================== */

/* site-wide motion */
body { animation: pageIn .55s ease both; }
@keyframes pageIn { from { opacity: 0; } }
.hero-mark { transform: translateY(var(--py, 0px)); will-change: transform; }
.hero { position: relative; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: radial-gradient(420px circle at var(--hx, 70%) var(--hy, 40%), rgba(212, 175, 55, .10), transparent 65%); }
.btn { position: relative; overflow: hidden; }
.btn::after { content: ""; position: absolute; inset: 0; transform: translateX(-120%) skewX(-20deg); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); transition: transform .6s ease; pointer-events: none; }
.btn:hover::after { transform: translateX(120%) skewX(-20deg); }
.cap, .svc, .pkg, .ex, .mini, .stat, .module, .feature {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(var(--ty, 0px));
  transition: transform .22s ease, border-color .25s ease, box-shadow .25s ease;
}
.cap:hover, .svc:hover, .pkg:hover, .ex:hover, .mini:hover, .stat:hover, .module:hover, .feature:hover { --ty: -4px; }
html.js .rv.in:nth-child(odd) { animation-name: revealL; }
html.js .rv.in:nth-child(even) { animation-name: revealR; }
@keyframes revealL { from { opacity: 0; transform: translateX(-24px) scale(.98); } }
@keyframes revealR { from { opacity: 0; transform: translateX(24px) scale(.98); } }
.eyebrow.typing::after { content: "\2588"; margin-inline-start: 2px; color: var(--amber); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { body { animation: none; } .hero-mark { transform: none; } .btn::after { display: none; } }

/* ===== v8: full-screen command-centre menu ===== */
.drawer.mega {
  inset: 0; width: 100%; max-width: none; padding: 0; display: flex; flex-direction: column; overflow-y: auto;
  background: #04101f; color: #fff; box-shadow: none; border: 0; isolation: isolate;
  transform: none !important; visibility: hidden; clip-path: circle(0 at var(--ox, 90%) var(--oy, 36px));
  transition: clip-path .75s cubic-bezier(.7, 0, .2, 1), visibility 0s .75s;
}
.drawer.mega.is-open { visibility: visible; clip-path: circle(150% at var(--ox, 90%) var(--oy, 36px)); transition: clip-path .75s cubic-bezier(.7, 0, .2, 1); }
.mega::before { content: ""; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(700px circle at 85% 10%, rgba(212, 175, 55, .16), transparent 60%), radial-gradient(900px circle at 5% 100%, rgba(40, 110, 220, .22), transparent 60%),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px, linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 64px 64px; }
.mega::after { content: ""; position: absolute; inset-block-end: -8vmin; inset-inline-start: -6vmin; width: 62vmin; aspect-ratio: 771 / 595; z-index: -1; pointer-events: none; opacity: .07; background: url("logo-mark.png") center / contain no-repeat; filter: brightness(0) invert(1); }
.mg-top { display: flex; align-items: center; gap: 16px; padding: calc(env(safe-area-inset-top, 0px) + 16px) clamp(20px, 6vw, 90px) 8px; }
.mg-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font: 700 1.3rem var(--f-display); }
.mg-brand img { width: 38px; height: auto; filter: brightness(0) invert(1); }
.mg-live { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; font: 600 .74rem var(--mono); letter-spacing: .12em; color: #97B0FF; }
.mg-live i { width: 7px; height: 7px; border-radius: 50%; background: #3ecf8e; box-shadow: 0 0 10px #3ecf8e; animation: blink 1.6s steps(2) infinite; }
.mg-live b { color: #fff; font-weight: 600; }
.drawer.mega .drawer-close { position: static; width: 46px; height: 46px; color: #fff; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.25); transition: transform .35s ease, border-color .2s; }
.drawer.mega .drawer-close:hover { transform: rotate(90deg); border-color: var(--amber); color: var(--amber); }
.mg-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 80px); align-items: center; padding: 10px clamp(20px, 6vw, 90px) 20px; }
.mg-k { margin: 0 0 10px; font: 600 .75rem var(--mono); letter-spacing: .18em; color: var(--amber); text-transform: uppercase; }
.mega ul { list-style: none; margin: 0; padding: 0; }
.mg-list a { position: relative; display: grid; grid-template-columns: 3.2ch 1fr auto; align-items: baseline; gap: 0 clamp(10px, 2vw, 24px); padding: clamp(10px, 1.7vh, 18px) 0; border: 0; border-bottom: 1px solid rgba(255,255,255,.14); text-decoration: none; color: #fff; transition: opacity .3s ease, padding .35s ease; }
.mg-list a::before { content: none; }
.mg-list a::after { content: ""; position: absolute; inset-inline-start: 0; inset-block-end: -1px; height: 2px; width: 0; background: var(--amber); transition: width .5s cubic-bezier(.2,.8,.2,1); }
.mg-list:hover a { opacity: .38; }
.mg-list a:hover, .mg-list a:focus-visible { opacity: 1; padding-inline-start: clamp(8px, 1.6vw, 22px); }
.mg-list a:hover::after, .mg-list a[aria-current="page"]::after { width: 100%; }
.mg-n { font: 500 .85rem var(--mono); color: #6f8cc0; direction: ltr; }
.mega .dr-t { font-family: var(--f-display); font-size: clamp(1.9rem, 5.2vw, 4.2rem); line-height: 1.12; font-weight: 700; color: #fff; letter-spacing: -.01em; transition: color .25s; }
.mg-list a:hover .dr-t, .mg-list a[aria-current="page"] .dr-t { color: var(--amber); }
.mega .dr-d { grid-column: 2; font: 400 .92rem/1.5 var(--f-body); color: #97B0FF; max-height: 0; opacity: 0; overflow: hidden; transition: max-height .4s ease, opacity .3s ease; }
.mg-list a:hover .dr-d, .mg-list a:focus-visible .dr-d { max-height: 3em; opacity: 1; }
.mg-go { grid-row: 1; grid-column: 3; font-size: clamp(1.2rem, 2.4vw, 2rem); color: var(--amber); opacity: 0; transform: translate(-10px, 10px); transition: .3s ease; }
html[dir="rtl"] .mg-go { transform: translate(10px, 10px) scaleX(-1); }
.mg-list a:hover .mg-go { opacity: 1; transform: none; }
html[dir="rtl"] .mg-list a:hover .mg-go { transform: scaleX(-1); }
.mg-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.mg-chips a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #dbe7ff; text-decoration: none; font-size: .95rem; transition: .2s ease; }
.mg-chips a::before { content: none; }
.mg-chips a:hover { background: var(--amber); border-color: var(--amber); color: #0A1628; }
.mg-actions { display: grid; gap: 10px; margin-top: 26px; }
.mg-cmd { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.05); color: #c8d6f2; cursor: pointer; font: inherit; text-align: start; }
.mg-cmd span:first-child { color: var(--amber); font: 700 .9rem var(--mono); }
.mg-cmd span:nth-child(2) { flex: 1; }
.mg-cmd kbd { font: 600 .7rem var(--mono); padding: 2px 7px; border-radius: 5px; border: 1px solid rgba(255,255,255,.22); color: #97B0FF; }
.mg-cmd:hover { border-color: var(--amber); color: #fff; }
.mg-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.mg-ghost { padding: 11px 16px; border-radius: 12px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font: inherit; font-weight: 600; cursor: pointer; }
.mg-ghost:hover { background: #fff; color: #0A1628; }
.mega .drawer-mail { margin: 0; padding: 4px 0 0; color: #97B0FF; font: 500 .85rem var(--mono); direction: ltr; text-align: start; }
.mg-tick { overflow: hidden; border-top: 1px solid rgba(255,255,255,.12); padding: 12px 0; font: 600 .78rem var(--mono); letter-spacing: .16em; color: #4f6a9c; white-space: nowrap; }
.mg-tick > div { display: inline-flex; animation: mgTick 40s linear infinite; }
@keyframes mgTick { to { transform: translateX(-50%); } }
.drawer.mega.is-open .mg-list li, .drawer.mega.is-open .mg-side > * , .drawer.mega.is-open .mg-k { animation: mgUp .8s cubic-bezier(.2,.8,.2,1) backwards; }
.drawer.mega.is-open .mg-list li:nth-child(1) { animation-delay: .25s; } .drawer.mega.is-open .mg-list li:nth-child(2) { animation-delay: .31s; }
.drawer.mega.is-open .mg-list li:nth-child(3) { animation-delay: .37s; } .drawer.mega.is-open .mg-list li:nth-child(4) { animation-delay: .43s; }
.drawer.mega.is-open .mg-list li:nth-child(5) { animation-delay: .49s; }
.drawer.mega.is-open .mg-side > * { animation-delay: .5s; }
@keyframes mgUp { from { opacity: 0; transform: translateY(40px); } }
@media (max-width: 820px) {
  .mg-main { grid-template-columns: 1fr; align-items: start; gap: 18px; }
  .mega .dr-d { display: none; }
  .mg-brand span { display: none; }
  .mg-actions { margin-top: 16px; }
}
@media (prefers-reduced-motion: reduce) { .drawer.mega, .drawer.mega.is-open { transition: none; } .mg-tick > div { animation: none; } }
.pw { position: relative; }
.pw input { padding-inline-end: 46px; }
.pw-eye { position: absolute; inset-inline-end: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border: 0; background: transparent; color: #52607c; cursor: pointer; border-radius: 8px; }
.pw-eye:hover { color: var(--navy); }
.pw-eye .pw-slash { opacity: 1; } .pw-eye.on .pw-slash { opacity: 0; }
.lg-card .pw input { margin-block-end: 6px; }
.mega li a::before { content: none !important; }
.mega .mg-chips li a { display: inline-block; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22); color: #dbe7ff; }
.mega .mg-chips li a:hover { background: var(--amber); border-color: var(--amber); color: #0A1628; }
.mega .mg-list li a { color: #fff; border-bottom: 1px solid rgba(255,255,255,.14); }
.mega .dr-t { font-size: clamp(1.8rem, 3.8vw, 3rem); }

.rv-track.rv-still { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }


/* ======================================================================
   Dashboard-controlled extras (hide switch, announcement bar, social, maintenance)
   ====================================================================== */
.athar-off { display: none !important; }
.announce { position: relative; z-index: 60; background: var(--navy-deep); color: #fff; text-align: center; padding: 9px 16px; font-size: .92rem; font-weight: 500; line-height: 1.6; }
.announce a, .announce span { color: inherit; text-decoration: none; }
.announce a:hover { text-decoration: underline; }
.social { display: flex; flex-wrap: wrap; gap: 8px; flex-basis: 100%; justify-content: center; padding-block-start: 6px; }
.social a { padding: 5px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--navy); font-weight: 600; font-size: .86rem; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.social a:hover { border-color: var(--navy); background: var(--sand); }
.maint { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 24px; text-align: center; background: var(--paper); color: var(--ink); }
.maint img { display: block; margin: 0 auto 18px; height: auto; }
.maint p { margin: 0; max-width: 28em; font-size: 1.15rem; line-height: 1.9; }
html.is-maint { overflow: hidden; }
.maint-ribbon { position: relative; z-index: 61; background: #b45309; color: #fff; text-align: center; padding: 6px 14px; font-size: .84rem; font-weight: 600; }


/* ======================================================================
   Dark mode (toggle in the header; choice saved in the browser)
   ====================================================================== */
.theme-toggle {
  display: inline-grid; place-items: center; width: 38px; height: 38px; padding: 0; border-radius: 999px; cursor: pointer;
  color: var(--navy); background: transparent; border: 1.5px solid var(--navy); transition: background-color .2s ease, color .2s ease;
}
.theme-toggle:hover { background: var(--navy-fill); color: #fff; }
.theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: block; }

:root[data-theme="dark"] {
  --head: #F5F4EF;
  --paper: #0A192F; --sand: #0d213d; --card: #10264a; --ink: #F5F4EF; --muted: #aab3c5;
  --navy: #D4AF37; --navy-fill: #1c3560; --line: #23395e; --err: #ff8c82;
  --amber: #D4AF37; --gold-deep: #E5A93C; --tert: #97B0FF;
  color-scheme: dark;
}
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-ghost:hover,
:root[data-theme="dark"] .lang-toggle:hover,
:root[data-theme="dark"] .theme-toggle:hover { color: #fff; }
:root[data-theme="dark"] .lang-toggle:hover { color: #fff; }
:root[data-theme="dark"] .site-header.scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .45); }
:root[data-theme="dark"] .hero::before {
  background-image: linear-gradient(rgba(151, 176, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(151, 176, 255, .07) 1px, transparent 1px);
}
:root[data-theme="dark"] .pillars, :root[data-theme="dark"] .stack { background: rgba(13, 33, 61, .72); }
:root[data-theme="dark"] .site-footer { background: rgba(10, 25, 47, .96); }
:root[data-theme="dark"] .brand-mark,
:root[data-theme="dark"] .footer-mark,
:root[data-theme="dark"] .hero-mark > img,
:root[data-theme="dark"] .lg-card img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .tabbar { background: rgba(10, 25, 47, .94); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color: var(--ink); }
:root[data-theme="dark"] ::placeholder { color: var(--muted); opacity: .75; }
:root[data-theme="dark"] .fchip { background: var(--card); color: var(--navy); border-color: var(--line); }
:root[data-theme="dark"] .maint { background: var(--paper); }
:root[data-theme="dark"] .maint img { filter: invert(1) hue-rotate(180deg); }
:root[data-theme="dark"] .social a { background: var(--card); }
:root[data-theme="dark"] .erp, :root[data-theme="dark"] .stats, :root[data-theme="dark"] .cta-band { border-block: 1px solid var(--line); }

/* ---------- Offers / sale banners ---------- */
.sale-ticker { overflow: hidden; background: #c8102e; color: #fff; font-weight: 700; font-size: .92rem; line-height: 1; padding-block: 9px; white-space: nowrap; direction: ltr; position: relative; z-index: 40; }
.sale-track { display: inline-block; white-space: pre; padding-inline-start: 100%; animation: saleScroll 38s linear infinite; }
@keyframes saleScroll { to { transform: translateX(-100%); } }
.sales { background: linear-gradient(180deg, var(--sand), var(--paper)); }
.sales-head { margin-block-end: 28px; }
.sales-head h2 { display: flex; align-items: center; gap: 12px; }
.sales-head h2::before { content: ""; width: 12px; height: 12px; border-radius: 50%; background: var(--sale-dot, #e11d48); box-shadow: 0 0 0 0 rgba(225, 29, 72, .6); animation: salePulse 1.6s ease-out infinite; flex: none; }
@keyframes salePulse { 70% { box-shadow: 0 0 0 14px rgba(225, 29, 72, 0); } 100% { box-shadow: 0 0 0 0 rgba(225, 29, 72, 0); } }
.sales-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 22px; }
.sales-grid.single { grid-template-columns: 1fr; }
.sale { --o1: #e11d48; --o2: #7f1d1d; position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr; border-radius: 20px; color: #fff; background: linear-gradient(135deg, var(--o1), var(--o2)); box-shadow: 0 22px 46px -22px rgba(0, 0, 0, .55); isolation: isolate; }
.sale.tone-amber { --o1: #f59e0b; --o2: #b45309; }
.sale.tone-navy { --o1: #2a4a86; --o2: #0A1628; }
.sale.tone-green { --o1: #16a34a; --o2: #14532d; }
.sale::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 0%, rgba(255, 255, 255, .22), transparent 55%), repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 12px, transparent 12px 24px); }
.sales-grid.single .sale { grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); }
.sale-img { width: 100%; height: 100%; min-height: 200px; object-fit: cover; display: block; }
.sale-ribbon { position: absolute; inset-block-start: 16px; inset-inline-end: 16px; z-index: 2; width: 96px; height: 96px; border-radius: 50%; background: #fff; color: #c8102e; display: grid; place-content: center; text-align: center; transform: rotate(-8deg); box-shadow: 0 10px 24px rgba(0, 0, 0, .35); border: 3px dashed currentColor; outline: 4px solid #fff; }
.sale.tone-amber .sale-ribbon { color: #b45309; }
.sale.tone-navy .sale-ribbon { color: #0A1628; }
.sale.tone-green .sale-ribbon { color: #14532d; }
.sale-ribbon b { font-family: var(--f-display); font-size: 1.7rem; line-height: 1; direction: ltr; }
.sale-ribbon small { font-weight: 800; font-size: .8rem; letter-spacing: .05em; }
.sale-body { display: grid; gap: 14px; padding: clamp(22px, 3vw, 34px); padding-inline-end: clamp(22px, 3vw, 34px); align-content: start; min-width: 0; }
.sale-body > h3, .sale-body > .sale-badge { padding-inline-end: 112px; }
.sale-badge { justify-self: start; background: rgba(255, 255, 255, .2); border: 1px solid rgba(255, 255, 255, .45); padding: 3px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; }
.sale h3 { color: #fff; font-size: clamp(1.35rem, 2.6vw, 1.9rem); line-height: 1.3; }
.sale-x { color: rgba(255, 255, 255, .9); font-size: 1rem; line-height: 1.8; }
.sale-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.sale-price b { font-family: var(--f-display); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.1; }
.sale-price s { opacity: .75; font-size: 1.15rem; text-decoration-thickness: 2px; }
.sale-cd { display: grid; gap: 8px; }
.sale-cd-l { font-size: .85rem; font-weight: 600; opacity: .9; }
.sale-cd-row { display: flex; gap: 8px; direction: ltr; }
.cd-box { min-width: 58px; padding: 8px 6px; border-radius: 10px; background: rgba(0, 0, 0, .28); text-align: center; display: grid; gap: 2px; }
.cd-box b { font-family: var(--mono, monospace); font-size: 1.5rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.cd-box small { font-size: .68rem; opacity: .85; }
.sale-cd.urgent .cd-box b { color: #ffe08a; }
.sale-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-block-start: 4px; }
.sale-code { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 14px; border: 2px dashed rgba(255, 255, 255, .7); border-radius: 12px; background: rgba(0, 0, 0, .18); }
.sale-code small { font-size: .75rem; opacity: .9; }
.sale-code code { font-family: var(--mono, monospace); font-weight: 800; font-size: 1.05rem; letter-spacing: .08em; direction: ltr; }
.sale-copy { font: inherit; font-size: .82rem; font-weight: 700; border: 0; border-radius: 8px; padding: 6px 12px; background: #fff; color: #111; cursor: pointer; }
.sale-cta { font-weight: 800; }
.cs-grid .cs-card { display: grid; gap: 10px; align-content: start; background: var(--card); }
.cs-img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; display: block; }
.cs-card .price { font-family: var(--f-display); font-weight: 700; font-size: 1.35rem; color: var(--navy); }
.cs-card .btn { justify-self: start; }
@media (max-width: 760px) {
  .sales-grid.single .sale { grid-template-columns: 1fr; }
  .sale-ribbon { width: 80px; height: 80px; inset-block-start: 12px; inset-inline-end: 12px; }
  .sale-ribbon b { font-size: 1.35rem; }
  .sale-body > h3, .sale-body > .sale-badge { padding-inline-end: 92px; }
  .cd-box { min-width: 0; flex: 1; }
}
@media (prefers-reduced-motion: reduce) { .sale-track, .sales-head h2::before { animation: none; padding-inline-start: 0; } }
html[dir="rtl"] .sale-ticker { direction: ltr; }
:root[data-theme="dark"] .sales { background: linear-gradient(180deg, var(--sand), var(--paper)); }

html.athar-picking, html.athar-picking * { cursor: crosshair !important; }
html.athar-picking *:hover { outline: 2px solid #f5b301 !important; outline-offset: -2px; background-image: none; }
html.athar-picking .tabbar, html.athar-picking .wa-float { pointer-events: auto; }

.item-img { display: block; width: 100%; max-height: 190px; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 10px; margin-block-end: 12px; }
.pkg > .item-img { margin-block-end: 14px; }

/* ======================================================================
   Rising-arrows background: transparent, animated, light + dark
   ====================================================================== */
#arBg {
  --ar-c: rgba(10, 22, 40, .13); --ar-hot: #ff7a1a;
  position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
}
:root[data-theme="dark"] #arBg { --ar-c: rgba(150, 172, 210, .42); }
#arBg svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#arBg .ar { fill: var(--ar-c); stroke: var(--ar-c); stroke-linecap: round; stroke-linejoin: round; opacity: 0; will-change: transform, opacity; animation: arRise var(--dur, 18s) linear var(--dl, 0s) infinite; }
#arBg .ar-hot { fill: var(--ar-hot); stroke: var(--ar-hot); --o: .55; }
@media (max-width: 899px) { #arBg .ar-hot { --o: .4; } }
@keyframes arRise {
  0%   { transform: translate(0, 0); opacity: 0; }
  14%  { opacity: var(--o, 1); }
  78%  { opacity: var(--o, 1); }
  100% { transform: translate(var(--tx), var(--ty)); opacity: 0; }
}
@media (max-width: 899px) { #arBg .ar:not(.ar-hot) { stroke-width: .9; } }
@media (prefers-reduced-motion: reduce) { #arBg .ar { animation: none; opacity: var(--o, 1); } }

/* ======================================================================
   Official brand palette: gold #D4AF37 / navy #0A1628 / light blue #97B0FF / cream #F8F6F0
   (dark: paper #0A192F, ink #F5F4EF, accent #E5A93C)
   ====================================================================== */
.btn-primary { background: var(--gold); color: #0A1628; font-weight: 700; }
.btn-primary:hover { background: #e2bf4f; color: #0A1628; box-shadow: 0 8px 20px rgba(212, 175, 55, .35); }
:root[data-theme="dark"] .btn-primary,
:root[data-theme="dark"] .btn-primary:hover { color: #0A1628; }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
:root[data-theme="dark"] .btn-ghost { border-color: var(--gold); color: var(--gold); }
:root[data-theme="dark"] .btn-ghost:hover { background: var(--gold); color: #0A1628; }
.tag { background: rgba(151, 176, 255, .22); color: var(--ink); }
:root[data-theme="dark"] .tag { background: rgba(151, 176, 255, .16); color: var(--tert); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 2px solid var(--tert); outline-offset: 3px; }
.brand-text small, .eyebrow { color: var(--gold-deep); }
:root[data-theme="dark"] .brand-text small, :root[data-theme="dark"] .eyebrow { color: var(--gold); }

/* English text uses Plus Jakarta Sans; Arabic keeps IBM Plex Sans Arabic */
html[lang="en"] { --f-display: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; --f-body: "Plus Jakarta Sans", "IBM Plex Sans Arabic", system-ui, sans-serif; }

/* ======================================================================
   Intro animation (< 1s, pure CSS, once per session)
   ====================================================================== */
html.intro::before {
  content: ""; position: fixed; inset: 0; z-index: 9998; pointer-events: none;
  background:
    linear-gradient(122deg, transparent 0 38%, rgba(255, 122, 26, .95) 38.4% 38.85%, transparent 39.1% 100%),
    linear-gradient(122deg, transparent 0 46%, rgba(212, 175, 55, .55) 46.3% 46.6%, transparent 46.9% 100%),
    var(--paper, #F8F6F0);
  background-size: 260% 260%, 260% 260%, auto; background-position: 140% 140%, 150% 150%, 0 0;
  animation: introWipe .85s cubic-bezier(.65, 0, .25, 1) forwards;
}
html.intro::after {
  content: ""; position: fixed; z-index: 9999; pointer-events: none;
  left: 50%; top: 50%; width: min(46vw, 220px); aspect-ratio: 771 / 595; translate: -50% -50%;
  background: url("logo-mark.png") center / contain no-repeat;
  animation: introLogo .85s cubic-bezier(.2, .8, .2, 1) forwards;
}
:root[data-theme="dark"].intro::after, html[data-theme="dark"].intro::after { filter: invert(1) hue-rotate(180deg); }
@keyframes introLogo {
  0%   { opacity: 0; transform: scale(.7) translateY(10px); }
  35%  { opacity: 1; transform: scale(1) translateY(0); }
  70%  { opacity: 1; transform: scale(1.04) translate(0, -2px); }
  100% { opacity: 0; transform: scale(1.18) translate(14px, -22px); }
}
@keyframes introWipe {
  0%, 45% { opacity: 1; background-position: 140% 140%, 150% 150%, 0 0; }
  80%     { opacity: 1; background-position: -40% -40%, -30% -30%, 0 0; }
  100%    { opacity: 0; visibility: hidden; background-position: -60% -60%, -50% -50%, 0 0; }
}
@media (prefers-reduced-motion: reduce) { html.intro::before, html.intro::after { display: none; } }

/* ======================================================================
   Waly: reusable mascot component (cut-outs in assets/waly/)
   ====================================================================== */
.waly {
  --waly-h: 190px;
  position: fixed; z-index: 40; right: max(10px, env(safe-area-inset-right, 0px)); bottom: 96px;
  height: calc(var(--waly-h) * var(--waly-k, 1)); aspect-ratio: 4 / 5; pointer-events: none; user-select: none;
  display: none;
  animation: walyIn .7s cubic-bezier(.2, .9, .3, 1) .55s both;
}
.waly[data-side="start"] { right: auto; left: max(10px, env(safe-area-inset-left, 0px)); }
.waly img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: center bottom;
  opacity: 0; transition: opacity .45s ease; filter: drop-shadow(0 10px 16px rgba(10, 22, 40, .25));
}
.waly img.on { opacity: 1; }
.waly[data-anim="on"] img.on { animation: walyFloat 5.5s ease-in-out infinite; }
@keyframes walyFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes walyIn { from { opacity: 0; transform: translateY(40px); } to { opacity: 1; transform: none; } }
/* wide screens only: Waly lives in the page margin so it never sits on text */
@media (min-width: 1360px) { .waly { display: block; } }
@media (min-width: 1700px) { .waly { --waly-h: 260px; } }
/* narrower screens: a small inline Waly inside the first section (no overlap, not fixed) */
.waly-inline { display: none; position: relative; z-index: 1; margin: 44px auto 0; height: calc(150px * var(--waly-k, 1)); width: auto; max-width: 60%; object-fit: contain; filter: drop-shadow(0 8px 14px rgba(10, 22, 40, .22)); }
@media (max-width: 1359px) { .waly-inline { display: block; } }
@media (prefers-reduced-motion: reduce) { .waly, .waly[data-anim="on"] img.on { animation: none; } }
body[data-page="blog"] .waly, body[data-page="blog"] .waly-inline { display: none !important; }

/* responsive safety: nothing may create a horizontal scrollbar (the contact form and reveal animations overshoot by a few px on phones) */
html, body { overflow-x: clip; }
.form { max-width: 100%; }

/* customizers */
.cust-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.cust-form fieldset { margin: 0; padding: 16px 18px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); display: grid; gap: 6px; min-width: 0; }
.cust-form legend { padding-inline: 8px; font-weight: 600; color: var(--head); font-size: .95rem; }
.opt span { flex: 1; min-width: 0; }
.opt-p { font-style: normal; font: 600 .8rem var(--mono); color: var(--gold-deep); white-space: nowrap; }
:root[data-theme="dark"] .opt-p { color: var(--amber); }
.cust-price { font: 700 1.6rem var(--mono); color: #fff; margin: 0; }
.cust-quoted { color: var(--on-dark-muted); }
.cust-reset { margin-block-start: 2px; }
.cust-res .btn-ghost { color: var(--on-dark); border-color: rgba(255,255,255,.3); }
@media (max-width: 520px) { .cust-form { grid-template-columns: 1fr; } }
.dk-form { display: grid; gap: 12px; max-width: 560px; }
/* blog */
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.bcard { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 8px; align-content: start; }
.bcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 10px; }
.bcard h3 { margin: 0; font-size: 1.1rem; }
.bcard h3 a { color: var(--head); text-decoration: none; }
.bcard h3 a:hover { color: var(--gold-deep); }
.bc-cat, .post-cat { font: 600 .74rem var(--mono); letter-spacing: .08em; color: var(--gold-deep); margin: 0; }
.bc-meta, .post-meta { color: var(--muted, #667); font-size: .85rem; margin: 0; }
.chip { padding: 7px 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--head); font: inherit; cursor: pointer; }
.chip.is-on { background: var(--navy); color: var(--paper); border-color: var(--navy); }
.post { max-width: 760px; margin-inline: auto; }
.post-back { display: inline-block; margin-block-end: 16px; }
.post-img { width: 100%; border-radius: 14px; margin-block: 16px; }
.post-body p { line-height: 1.95; margin-block: 0 1.1em; }
.cust-form { align-items: start; } .cust-form fieldset { align-content: start; }
