:root {
  --navy: #2c3e50;
  --ink: #272B35;
  --coral: #F56D41;
  --coral-hover: #F86F4C;
  --coral-strong: #C2410C;       /* darker coral for text / white-on-fill — meets WCAG AA contrast */
  --coral-strong-hover: #A8380A;
  --muted: #6b6868;
  --bg: #ffffff;
  --bg-alt: #f7f7f7;
  --border: #e6e6e6;
  --radius: 16px;
  --shadow: 0 10px 30px rgba(44, 62, 80, 0.08);
  --maxw: 1140px;
  --font-body: "Lato", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Alice", "Montserrat", Georgia, serif;
  --font-ui: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* ===== Legal / Privacy page ===== */
.legal h3 {
  font-family: var(--font-ui);
  color: var(--navy);
  font-size: 1.15rem;
  margin: 28px 0 8px;
}
.legal p { color: var(--ink); }
.legal ul { color: var(--ink); padding-left: 20px; }
.legal a { color: var(--coral-strong); }

/* ===== Accessibility ===== */
.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  text-decoration: none;
  font-family: var(--font-ui);
  font-weight: 600;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; }

a:focus-visible,
.btn:focus-visible,
.nav a:focus-visible,
.footer-nav a:focus-visible {
  outline: 3px solid var(--coral-strong);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 999px;
  font-family: var(--font-ui);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .2s ease, color .2s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--coral-strong); color: #fff; }
.btn-primary:hover { background: var(--coral-strong-hover); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { background: #f0f0f0; }
.btn-text { color: var(--coral-strong); background: transparent; padding-left: 4px; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-sm { padding: 9px 18px; font-size: .9rem; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo { height: 40px; width: auto; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--ink); text-decoration: none; font-family: var(--font-ui); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--coral-strong); }

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, #f7f7f7 0%, #ffffff 100%);
  padding: 80px 0 96px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .8rem;
  font-weight: 700;
  color: var(--coral-strong);
  margin: 0 0 12px;
  font-family: var(--font-ui);
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.05;
  margin: 0 0 18px;
  color: var(--navy);
}
.lead { font-size: 1.18rem; color: var(--muted); max-width: 540px; margin: 0 0 30px; }
.cta-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }

.hero-visual { display: flex; justify-content: center; }
.hero-card {
  background: var(--navy);
  color: #fff;
  border-radius: 20px;
  padding: 30px;
  width: 280px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: var(--shadow);
}
.hero-card-row {
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
  padding: 14px 18px;
  border-radius: 12px;
  font-family: var(--font-ui);
  font-weight: 600;
}

/* ===== Sections ===== */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head h1,
.section-head h2 {
  font-family: var(--font-head);
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  margin: 0 0 12px;
  color: var(--navy);
}
.section-sub { color: var(--muted); margin: 0; }

/* ===== Cards ===== */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  justify-content: center;
}
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: var(--shadow);
  transition: transform .15s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44,62,80,.12); }
.card-icon {
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  font-size: 1.5rem;
  margin-bottom: 16px;
}
.card h3 { font-family: var(--font-ui); margin: 0 0 8px; font-size: 1.2rem; color: var(--navy); }
.card p { margin: 0; color: var(--muted); }
.card-plain { box-shadow: none; }
.product { display: flex; flex-direction: column; }
.product .badge {
  align-self: flex-start;
  background: var(--coral-strong);
  color: #fff;
  font-family: var(--font-ui);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.product-tag {
  font-family: var(--font-ui);
  font-weight: 600;
  color: var(--coral-strong);
  font-size: .85rem;
  margin: -4px 0 10px;
}
.product-stack { font-family: var(--font-ui); font-size: .8rem; color: var(--navy); margin: 14px 0 16px !important; }
.copyright a { color: inherit; }
.product .btn-text { margin-top: auto; padding-left: 0; }

/* ===== Brand band ===== */
.band {
  background:
    linear-gradient(rgba(44,62,80,.92), rgba(44,62,80,.92)),
    url("assets/img/software-bg.jpg") center/cover no-repeat;
  color: #fff;
  padding: 90px 0;
}
.band-inner { max-width: 720px; }
.band h2 { font-family: var(--font-head); font-size: clamp(1.8rem, 3.4vw, 2.6rem); margin: 0 0 16px; }
.band p { font-size: 1.15rem; color: #e7ecf2; margin: 0 0 28px; }

/* ===== CTA ===== */
.cta {
  background: var(--coral-strong);
  color: #fff;
  text-align: center;
  padding: 76px 0;
}
.cta h2 { font-family: var(--font-head); font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 0 0 12px; }
.cta p { margin: 0 0 28px; opacity: .95; }
.cta .btn-primary { background: #fff; color: var(--coral-strong); }
.cta .btn-primary:hover { background: #f0f0f0; }

/* ===== Footer ===== */
.site-footer { background: var(--navy); color: #c7d0e0; padding: 52px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; align-items: start; }
.footer-brand p { color: #b3c0d0; max-width: 320px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-nav a { color: #c7d0e0; text-decoration: none; font-family: var(--font-ui); font-weight: 600; }
.footer-nav a:hover { color: #fff; }
.copyright {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: 18px; margin: 8px 0 0;
  font-size: .85rem; color: #aeb9c9;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
  .hero { padding: 56px 0 64px; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .nav a:not(.btn) { display: none; }
}

/* ---- Language switcher ---- */
.lang-switch { display: flex; gap: 16px; justify-content: flex-end; padding: 6px 0 10px; font-family: var(--font-ui); font-size: .85rem; }
.lang-switch a { color: var(--ink); text-decoration: none; padding: 4px 2px; }
.lang-switch a:hover { text-decoration: underline; }
.lang-switch a[aria-current="page"] { font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--coral-strong); }

/* ---- Arabic / RTL ---- */
[dir="rtl"] body { line-height: 1.8; font-family: "Noto Sans Arabic", "Lato", Tahoma, "Segoe UI", system-ui, sans-serif; }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .btn, [dir="rtl"] .nav a, [dir="rtl"] .eyebrow, [dir="rtl"] .badge, [dir="rtl"] .product-tag, [dir="rtl"] .footer-nav a, [dir="rtl"] .lang-switch {
  font-family: "Noto Sans Arabic", "Lato", Tahoma, "Segoe UI", system-ui, sans-serif;
}
[dir="rtl"] .skip-link { left: auto; right: 16px; }
[dir="rtl"] .btn-text { padding-left: 0; padding-right: 4px; }
[dir="rtl"] .product .btn-text { padding-right: 0; }
[dir="rtl"] .lang-switch { justify-content: flex-start; }
[dir="rtl"] .product-stack { direction: ltr; text-align: right; }

/* ---- Product & feature icons ---- */
.product-icon { display: block; width: 56px; height: 56px; margin: 0 0 14px; border-radius: 16px; }
.card-plain .product-icon { margin-bottom: 12px; }
