:root {
  --navy: #172536;
  --navy-2: #263b53;
  --action: #3478c8;
  --ai: #7656c8;
  --canvas: #f5f7fa;
  --surface: #ffffff;
  --muted: #64748b;
  --line: #e2e8f0;
  --success: #198754;
  --warning: #d99a2b;
  --radius: 20px;
  --shadow: 0 18px 44px -18px rgba(23, 37, 54, 0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "IBM Plex Sans Arabic", "Cairo", Tahoma, Arial, sans-serif;
  color: var(--navy-2);
  background: var(--canvas);
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, .brand strong {
  font-family: "Cairo", "IBM Plex Sans Arabic", sans-serif;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0;
}
p { margin: 0; }
.container { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.skip-link {
  position: fixed; inset-inline-start: 12px; top: 12px; z-index: 100;
  background: #fff; color: var(--navy); padding: 10px 16px; border-radius: 8px;
  transform: translateY(-160%); opacity: 0; pointer-events: none;
}
.skip-link:focus { transform: none; opacity: 1; pointer-events: auto; }
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(23, 37, 54, 0.94);
  border-bottom: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(14px);
  color: #fff;
}
.nav-wrap { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--action), var(--ai));
  font-family: "Cairo", sans-serif; font-weight: 800; font-size: 16px; color: #fff;
  box-shadow: 0 8px 20px rgba(52,120,200,0.28);
}
.brand-copy { display: flex; flex-direction: column; line-height: 1.15; }
.brand-copy strong { font-size: 16px; letter-spacing: 0.06em; }
.brand-copy small { color: #94a3b8; font-size: 10.5px; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: 22px; font-size: 13px; color: #cbd5e1; }
.nav-links a:hover { color: #fff; }
.nav-cta {
  border: 1px solid rgba(255,255,255,0.16); border-radius: 10px;
  padding: 8px 14px; color: #fff !important; background: rgba(255,255,255,0.06);
}
.hero {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(900px 420px at 80% -10%, rgba(52,120,200,0.42), transparent 65%),
    radial-gradient(700px 380px at 10% 0%, rgba(118,86,200,0.26), transparent 70%),
    var(--navy);
  padding: 76px 0 90px;
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 78%);
}
.hero-layout {
  position: relative; z-index: 1; display: grid;
  grid-template-columns: 1.02fr 0.98fr; gap: 56px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px;
  color: #93b8e4; font-size: 11.5px; font-weight: 700; letter-spacing: 0.09em;
}
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: #64d6b4; box-shadow: 0 0 0 5px rgba(100,214,180,0.12); }
.hero h1 { font-size: clamp(32px, 4.2vw, 56px); font-weight: 800; max-width: 680px; }
.hero h1 span { color: #8fbbeb; display: block; }
.hero-lead { margin-top: 20px; max-width: 590px; color: #cbd5e1; font-size: 16px; line-height: 1.9; }
.hero-lead strong { color: #fff; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid transparent;
  font-size: 13px; font-weight: 700; cursor: pointer; transition: transform 160ms ease, background 160ms ease;
}
.button:hover { transform: translateY(-1px); }
.button-primary { background: var(--action); color: #fff; box-shadow: 0 10px 24px -10px rgba(52,120,200,0.8); }
.button-primary:hover { background: #2c6bb5; }
.button-ghost { border-color: rgba(255,255,255,0.2); background: rgba(255,255,255,0.06); color: #fff; }
.button-ghost:hover { background: rgba(255,255,255,0.12); }
.button-light { background: #fff; color: var(--navy); }
.button-outline-light { border-color: rgba(255,255,255,0.3); color: #fff; }
.hero-note { margin-top: 18px; max-width: 560px; color: #94a3b8; font-size: 11.5px; line-height: 1.8; }
.hero-note strong { color: #e2e8f0; }
.hero-visual { position: relative; }
.browser-frame {
  border-radius: 16px; overflow: hidden; background: #fff;
  border: 1px solid rgba(255,255,255,0.25);
  box-shadow: 0 40px 90px -34px rgba(0,0,0,0.65);
  transform: rotate(-1.2deg);
}
.browser-bar {
  height: 34px; display: flex; align-items: center; gap: 10px; padding: 0 12px;
  background: #f8fafc; border-bottom: 1px solid var(--line); direction: ltr;
}
.browser-dots { display: flex; gap: 5px; }
.browser-dots i { width: 7px; height: 7px; border-radius: 50%; background: #cbd5e1; }
.browser-dots i:first-child { background: #fca5a5; }
.browser-dots i:nth-child(2) { background: #fcd34d; }
.browser-dots i:nth-child(3) { background: #86efac; }
.browser-url { flex: 1; color: #94a3b8; font: 10px/1 monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.browser-lock { color: #86efac; font-size: 8px; }
.browser-frame img { width: 100%; max-height: 460px; object-fit: cover; object-position: top; }
.floating-card {
  position: absolute; display: flex; align-items: center; gap: 9px;
  background: rgba(255,255,255,0.96); color: var(--navy); border-radius: 12px;
  padding: 9px 12px; box-shadow: var(--shadow); border: 1px solid rgba(226,232,240,0.9);
}
.floating-card strong { display: block; font-size: 11.5px; line-height: 1.3; }
.floating-card small { display: block; font-size: 10px; color: var(--muted); line-height: 1.4; }
.floating-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: #eff6ff; color: var(--action); font-weight: 800; }
.floating-a { inset-inline-start: -18px; bottom: 28px; }
.floating-b { inset-inline-end: -16px; top: 30px; }
.metrics { background: #fff; border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metric { padding: 24px 18px; text-align: center; border-inline-end: 1px solid var(--line); }
.metric:last-child { border-inline-end: 0; }
.metric strong { display: block; color: var(--navy); font: 800 27px/1.2 "Cairo", sans-serif; }
.metric span { color: var(--muted); font-size: 12px; }
.section { padding: 84px 0; }
.section-soft { background: #eef3f9; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; margin-bottom: 34px; }
.section-head > div { max-width: 640px; }
.section-head > p { max-width: 380px; color: var(--muted); font-size: 13px; }
.section-kicker { display: block; color: var(--action); font-size: 11px; font-weight: 800; letter-spacing: 0.11em; margin-bottom: 8px; }
.section h2 { color: var(--navy); font-size: clamp(25px, 3vw, 38px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 13px; }
.capability-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.capability {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; min-height: 170px; position: relative; overflow: hidden;
  box-shadow: 0 1px 2px rgba(38,59,83,0.04);
}
.capability::after { content: ""; position: absolute; inset-inline-start: 0; top: 0; width: 3px; height: 100%; background: linear-gradient(var(--action), var(--ai)); opacity: 0.7; }
.capability-num { display: inline-block; color: var(--action); font: 700 11px/1 monospace; margin-bottom: 18px; }
.capability h3 { font-size: 17px; color: var(--navy); margin-bottom: 7px; }
.capability p { color: var(--muted); font-size: 12.5px; line-height: 1.8; }
.gallery-toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter {
  border: 1px solid var(--line); background: #fff; color: var(--muted);
  padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer;
}
.filter.is-active { background: var(--navy); border-color: var(--navy); color: #fff; }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.shot {
  position: relative; border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  background: #fff; padding: 0; cursor: zoom-in; text-align: start; min-height: 180px;
}
.shot-wide { grid-column: span 2; }
.shot-tall { grid-row: span 2; }
.shot img { width: 100%; height: 100%; min-height: 180px; max-height: 250px; object-fit: cover; object-position: top; transition: transform 300ms ease; }
.shot-tall img { max-height: 514px; }
.shot:hover img { transform: scale(1.025); }
.shot-label {
  position: absolute; inset-inline: 0; bottom: 0; display: flex; flex-direction: column;
  padding: 24px 12px 10px; color: #fff;
  background: linear-gradient(transparent, rgba(23,37,54,0.9));
}
.shot-label strong { font-size: 12.5px; }
.shot-label small { font-size: 10.5px; color: #cbd5e1; }
.split { display: grid; grid-template-columns: 1fr 0.9fr; gap: 60px; align-items: center; }
.architecture-card { background: var(--navy); border-radius: var(--radius); padding: 25px; color: #fff; box-shadow: var(--shadow); }
.arch-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 12px 14px; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; }
.arch-row span { color: #94a3b8; font-size: 11px; }
.arch-row strong { font-size: 12px; color: #e2e8f0; }
.arch-arrow { text-align: center; color: #64748b; font-size: 14px; line-height: 1.4; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 40px; }
.proof { padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.proof h3 { color: var(--navy); font-size: 14px; margin-bottom: 5px; }
.proof p { color: var(--muted); font-size: 12px; line-height: 1.8; }
.demo-card { background: linear-gradient(135deg, var(--navy), #223b5a); color: #fff; border-radius: 24px; padding: 38px; max-width: 880px; margin-inline: auto; text-align: center; box-shadow: var(--shadow); }
.demo-badge { display: inline-block; border: 1px solid rgba(255,255,255,0.18); border-radius: 999px; padding: 5px 12px; color: #9ec5f0; font: 700 10px/1.5 monospace; }
.demo-card h2 { font-size: clamp(24px, 3vw, 36px); margin: 14px 0 12px; }
.demo-card > p { color: #cbd5e1; max-width: 680px; margin: 0 auto 22px; font-size: 13.5px; }
.demo-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; text-align: start; margin-bottom: 24px; }
.demo-points div { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.1); border-radius: 12px; padding: 14px; }
.demo-points strong { display: block; font-size: 12px; margin-bottom: 3px; }
.demo-points span { display: block; color: #94a3b8; font-size: 11px; line-height: 1.7; }
.contact-section { padding-top: 0; }
.contact-card { background: var(--action); color: #fff; border-radius: 24px; padding: 34px; display: flex; justify-content: space-between; align-items: center; gap: 30px; box-shadow: var(--shadow); }
.contact-card h2 { font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.contact-card p { color: #dbeafe; font-size: 13px; }
.contact-card .section-kicker { color: #bfdbfe; }
.contact-actions { display: flex; flex-wrap: wrap; gap: 10px; flex-shrink: 0; }
.site-footer { background: #101c2b; color: #94a3b8; padding: 22px 0; font-size: 11px; }
.footer-wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-contact a:hover { color: #fff; }
.lightbox { border: 0; padding: 0; background: transparent; max-width: 94vw; max-height: 94vh; }
.lightbox::backdrop { background: rgba(10, 18, 28, 0.84); backdrop-filter: blur(4px); }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close { position: fixed; top: 18px; inset-inline-end: 22px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.25); background: rgba(23,37,54,0.8); color: #fff; font-size: 22px; cursor: pointer; }
/* Content is visible by default: screenshots, no-JS and print must never show blank sections. */
.reveal { opacity: 1; transform: none; }
.is-hidden { display: none !important; }

@media (max-width: 980px) {
  .hero-layout { grid-template-columns: 1fr; gap: 38px; }
  .hero-visual { max-width: 700px; }
  .capability-grid, .proof-grid { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .shot-wide { grid-column: span 2; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .section-head { flex-direction: column; align-items: start; gap: 10px; }
  .section-head > p { max-width: 640px; }
  .nav-links { gap: 14px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 28px); }
  .nav-wrap { min-height: 62px; }
  .nav-links a:not(.nav-cta) { display: none; }
  .hero { padding: 50px 0 64px; }
  .hero h1 { font-size: clamp(30px, 10vw, 44px); }
  .hero-lead { font-size: 14px; }
  .floating-a { inset-inline-start: 8px; bottom: 12px; }
  .floating-b { display: none; }
  .browser-frame { transform: none; }
  .browser-frame img { max-height: 330px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metric:nth-child(2) { border-inline-end: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .section { padding: 56px 0; }
  .capability-grid, .proof-grid, .demo-points { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: 1fr; }
  .shot-wide { grid-column: span 1; }
  .shot-tall { grid-row: span 1; }
  .shot img, .shot-tall img { max-height: 250px; }
  .demo-card, .contact-card { padding: 24px 18px; }
  .contact-card { flex-direction: column; align-items: start; }
  .contact-actions { width: 100%; }
  .contact-actions .button { flex: 1; }
  .footer-wrap { flex-direction: column; align-items: start; }
  .lightbox img { max-height: 80vh; }
}
@media (max-width: 360px) {
  .hero-actions .button { width: 100%; }
  .brand-copy small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
