:root {
  --nd-ink: #082f3b;
  --nd-ink-2: #123c45;
  --nd-primary: #0d8b78;
  --nd-accent: #28c59c;
  --nd-accent-soft: #e5f6f1;
  --nd-surface: #f7faf9;
  --nd-text: #183238;
  --nd-muted: #60767a;
  --nd-white: #fff;
  --nd-border: #dce8e5;
  --nd-radius: 22px;
  --nd-shadow: 0 18px 45px rgba(6, 47, 58, 0.09);
  --nd-container: 1200px;
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
.poc-ar { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }
.poc-en { font-family: "Segoe UI", Arial, sans-serif; }
/* Shared POC layout utilities. */
.poc-shell { width: 100%; max-width: 100%; }
.poc-card { height: 100%; box-sizing: border-box; }
.poc-logo-row img {
  max-height: 58px;
  width: auto;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .78;
}
.poc-contact iframe {
  width: 100%;
  height: 360px;
  border: 0;
  border-radius: 18px;
}
.poc-shell a { transition: opacity .2s ease; }
.poc-shell a:hover { opacity: .8; }

.poc-en h1,
.poc-en h2,
.poc-en h3 { letter-spacing: -0.035em; }
.poc-kicker {
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
}
.poc-stats strong {
  display: block;
  font-size: 2rem;
  color: var(--nd-accent);
}
.poc-section { box-sizing: border-box; }
.poc-shell > .poc-section:first-of-type {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 520px;
  display: grid;
  align-items: center;
  box-shadow: inset 0 -1px rgba(255, 255, 255, 0.15);
}
.poc-shell > .poc-section:first-of-type::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: rgba(114, 244, 207, 0.1);
  filter: blur(4px);
  inset: auto -120px -180px auto;
}
.poc-section > .wp-block-columns { gap: clamp(28px, 5vw, 72px); }

.poc-card,
.poc-shell .wp-block-column:has(> figure + h3) {
  border: 1px solid var(--nd-border) !important;
  border-radius: var(--nd-radius) !important;
  background: var(--nd-white) !important;
  padding: clamp(24px, 3vw, 34px) !important;
  box-shadow: 0 10px 30px rgba(6, 47, 58, 0.055);
  transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.poc-card:hover,
.poc-shell .wp-block-column:has(> figure + h3):hover {
  transform: translateY(-4px);
  border-color: #b8d8cf !important;
  box-shadow: var(--nd-shadow);
}
.poc-shell .wp-block-column:has(> figure + h3) figure {
  aspect-ratio: 16 / 9;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
}
.poc-shell .wp-block-column:has(> figure + h3) img {
  width: auto;
  max-height: 180px;
  object-fit: contain;
}

.wp-element-button,
.wp-block-button__link {
  box-shadow: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.wp-element-button:hover,
.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(6, 47, 58, 0.16);
  opacity: 1 !important;
}
.poc-stats { gap: 20px; }
.poc-stats p {
  margin: 0;
  padding: 12px;
  border-inline-start: 2px solid rgba(114, 244, 207, 0.45);
}
.poc-stats strong { font-variant-numeric: tabular-nums; }

.wpcf7-form input:not([type="submit"]),
.wpcf7-form textarea,
.wpcf7-form select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid var(--nd-border);
  border-radius: 13px;
  background: var(--nd-white);
  padding: 13px 15px;
  font: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.wpcf7-form input:focus,
.wpcf7-form textarea:focus {
  outline: 0;
  border-color: var(--nd-accent);
  box-shadow: 0 0 0 4px rgba(24, 185, 143, 0.12);
}
.wpcf7-form input[type="submit"] {
  border: 0;
  border-radius: 999px;
  background: var(--nd-accent);
  color: var(--nd-white);
  padding: 13px 26px;
  font-weight: 700;
  cursor: pointer;
}
.poc-contact iframe { box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18); }

.nd-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 var(--nd-border);
}
body.admin-bar .nd-header { top: 32px; }
.nd-header-inner { min-height: 74px; }
.nd-header .wp-block-image { margin: 0; }
.nd-header .wp-block-navigation-item__content {
  color: var(--nd-ink);
  text-decoration: none;
}
.nd-header .wp-block-navigation-item__content:hover { color: var(--nd-accent); }
.nd-lang .wp-element-button {
  background: transparent !important;
  color: var(--nd-ink) !important;
  border: 1px solid var(--nd-border) !important;
}
.nd-header .wp-block-navigation__responsive-container.is-menu-open {
  background: var(--nd-ink) !important;
  color: var(--nd-white) !important;
  padding: 36px !important;
}
.nd-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  color: var(--nd-white);
  font-size: 1.2rem;
}
.nd-header .wp-block-navigation__responsive-container-open { color: var(--nd-ink); }

/* Polylang-driven bilingual header. The document language controls which
   navigation, logo target and CTA are exposed; no direction workaround. */
html[lang^="ar"] .nd-only-en,
html[lang^="en"] .nd-only-ar { display: none !important; }
.nd-language-switcher .lang-item { list-style: none; }
.nd-language-switcher .lang-item a {
  border: 1px solid var(--nd-border);
  border-radius: 999px;
  padding: .62rem .9rem;
  font-weight: 700;
}

footer { margin-block-start: 0 !important; }
footer .wp-block-group.alignfull { background: var(--wp--preset--gradient--nd-footer) !important; }
footer a { color: var(--nd-accent-soft); text-decoration: none; }
footer a:hover { color: #72f4cf; }

@media (max-width: 1000px) {
  .nd-header-cta { display: none !important; }
  .nd-header-inner { min-height: 64px; }
  .nd-header .wp-block-navigation { margin-inline-start: auto; }
}
@media (max-width: 782px) {
  body.admin-bar .nd-header { top: 46px; }
  .poc-section { padding-inline: 22px !important; padding-block: 56px !important; }
  .poc-shell > .poc-section:first-of-type { min-height: auto; padding-block: 66px !important; }
  .poc-hero-title { font-size: clamp(2.35rem, 12vw, 3.8rem) !important; }
  .poc-shell .wp-block-columns { gap: 28px; }
  .poc-logo-row { gap: 24px !important; }
  .poc-card,
  .poc-shell .wp-block-column:has(> figure + h3) { padding: 24px !important; }
  .nd-header { padding-inline: 18px !important; }
  .nd-header-inner { gap: 14px !important; }
  .nd-header-logo img { width: 138px !important; }
  .nd-lang .wp-element-button { padding: 0.62rem 0.85rem !important; font-size: 0.82rem; }
  .poc-stats { padding: 26px !important; }
}
@media (max-width: 430px) {
  .nd-lang { display: none !important; }
  .nd-header-logo img { width: 124px !important; }
}

/* Home visual system v1.3 — premium B2B ERP direction. */
*, *::before, *::after { box-sizing: border-box; }
.wp-site-blocks,
.wp-site-blocks > main,
.nd-home,
.nd-home-section {
  width: 100%;
  max-width: 100%;
}
.nd-home {
  background: var(--nd-surface);
  color: var(--nd-text);
  margin: 0;
}
.nd-home-ar { font-family: "Noto Sans Arabic", "Segoe UI", Tahoma, Arial, sans-serif; }
.nd-home-en { font-family: Inter, "Segoe UI", Arial, sans-serif; }
.nd-home h1,
.nd-home h2,
.nd-home h3 { color: var(--nd-ink); margin-block-start: 0; }
.nd-home-en h1,
.nd-home-en h2,
.nd-home-en h3 { letter-spacing: -0.035em; }
.nd-home-section {
  padding-block: clamp(72px, 8vw, 112px);
  padding-inline: clamp(22px, 5vw, 72px);
}
.nd-home-section > * { max-width: 1200px; }
.nd-eyebrow {
  color: var(--nd-primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .08em;
  margin-block: 0 14px;
  text-transform: uppercase;
}
.nd-home-ar .nd-eyebrow { letter-spacing: 0; }
.nd-section-lead {
  color: var(--nd-muted);
  max-width: 690px;
  font-size: 1.12rem;
  line-height: 1.8;
  margin-block-end: 38px;
}

.nd-home-hero {
  color: #fff;
  background: linear-gradient(135deg, #082f3b 0%, #123c45 76%, #0d8b78 145%);
  min-height: min(760px, calc(100vh - 74px));
  display: grid;
  align-items: center;
  position: relative;
}
.nd-home-hero::before,
.nd-home-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 999px;
  opacity: .3;
}
.nd-home-hero::before {
  width: 210px;
  height: 210px;
  inset-block-start: 11%;
  inset-inline-end: 4%;
  border: 1px solid rgba(229, 246, 241, .22);
}
.nd-home-hero::after {
  width: 110px;
  height: 110px;
  inset-block-end: 8%;
  inset-inline-start: 5%;
  background: rgba(40, 197, 156, .1);
}
.nd-home-hero .nd-eyebrow { color: #8ce6cf; }
.nd-hero-grid { gap: clamp(40px, 6vw, 84px); position: relative; z-index: 1; }
.nd-home-title {
  color: #fff !important;
  font-size: clamp(2.45rem, 5vw, 4.35rem) !important;
  line-height: 1.12 !important;
  max-width: 16ch;
  margin-block-end: 22px;
}
.nd-home-ar .nd-home-title { max-width: 14ch; }
.nd-hero-lead {
  color: #d7e6e4;
  font-size: clamp(1.04rem, 1.5vw, 1.18rem);
  line-height: 1.85;
  max-width: 650px;
  margin-block: 0 30px;
}
.nd-hero-actions { gap: 12px; margin-block-end: 28px; }
.nd-hero-actions .wp-block-button__link { min-width: 156px; text-align: center; }
.nd-button-primary .wp-block-button__link {
  background: var(--nd-accent) !important;
  color: var(--nd-ink) !important;
}
.nd-button-secondary .wp-block-button__link {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255, 255, 255, .45) !important;
}
.nd-trust-chips { gap: 9px !important; }
.nd-trust-chips p {
  margin: 0;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
  color: #dceae8;
  font-size: .78rem;
  line-height: 1.4;
}
.nd-browser-frame {
  width: 100%;
  max-width: 620px;
  margin-inline: auto;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .35);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 28px 70px rgba(0, 19, 26, .34);
  transform: perspective(1100px) rotateY(0deg);
}
.nd-home-ar .nd-browser-frame { transform: perspective(1100px) rotateY(-2deg); }
.nd-home-en .nd-browser-frame { transform: perspective(1100px) rotateY(2deg); }
.nd-browser-bar {
  min-height: 38px;
  padding-inline: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: #60767a;
  font-size: .7rem;
}
.nd-browser-bar p { margin: 0; }
.nd-browser-bar p:first-child { display: flex; gap: 5px; direction: ltr; }
.nd-browser-bar span { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #dce8e5; }
.nd-browser-bar span:nth-child(2) { background: #a9dacc; }
.nd-browser-bar span:nth-child(3) { background: #28c59c; }
.nd-browser-image { margin: 0 !important; border-radius: 13px; background: #f4f7f6; overflow: clip; }
.nd-browser-image img { width: 100%; height: auto; display: block; border-radius: 13px; }

.nd-platform-section { background: #fff; }
.nd-featured-products { gap: 24px; margin-block: 44px 38px; align-items: stretch !important; }
.nd-featured-products > .wp-block-column { display: flex; min-width: 0; }
.nd-featured-product {
  width: 100%;
  border: 1px solid var(--nd-border);
  border-radius: 22px;
  background: #fff;
  padding: clamp(24px, 3vw, 34px);
  box-shadow: 0 12px 38px rgba(8, 47, 59, .055);
}
.nd-featured-product-pro { background: linear-gradient(150deg, #fff 0%, #f1faf7 100%); }
.nd-product-shot {
  margin: 0 0 26px !important;
  min-height: 210px;
  border-radius: 16px;
  background: #f4f8f7;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: clip;
}
.nd-product-shot img { width: 100%; height: 220px; object-fit: cover; object-position: top center; }
.nd-product-logo-shot img { object-fit: contain; padding: 28px; }
.nd-product-label { color: var(--nd-primary); font-size: .78rem; font-weight: 800; text-transform: uppercase; }
.nd-featured-product h3 { font-size: clamp(1.55rem, 2.3vw, 2.15rem); margin-block-end: 10px; }
.nd-featured-product > p:not(.nd-product-label):not(.nd-text-link) { color: var(--nd-muted); }
.nd-capability-list { padding-inline-start: 1.25rem; color: var(--nd-text); line-height: 1.9; }
.nd-text-link { margin-block-start: 22px; font-weight: 750; }
.nd-text-link a { color: var(--nd-primary); text-decoration: none; }
.nd-system-grid,
.nd-service-grid,
.nd-reason-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 15px !important;
}
.nd-system-card {
  min-width: 0;
  border: 1px solid var(--nd-border);
  border-radius: 16px;
  padding: 20px;
  background: var(--nd-surface);
}
.nd-system-card h3 { font-size: 1.02rem; margin-block: 0 8px; }
.nd-system-card p { margin: 0; font-size: .84rem; }
.nd-system-card a { color: var(--nd-primary); text-decoration: none; }

.nd-services-section { background: var(--nd-surface); }
.nd-service-grid { margin-block-start: 38px; }
.nd-service-card {
  min-width: 0;
  border: 1px solid var(--nd-border);
  border-radius: 18px;
  padding: 26px;
  background: #fff;
}
.nd-service-card h3 { font-size: 1.2rem; margin-block: 18px 9px; }
.nd-service-card > p:not(.nd-service-icon):not(.nd-text-link) { color: var(--nd-muted); line-height: 1.7; }
.nd-service-icon {
  width: 44px;
  height: 44px;
  margin: 0;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: var(--nd-accent-soft);
  color: var(--nd-primary);
  font-size: .76rem;
  font-weight: 800;
}

.nd-why-section { background: #fff; }
.nd-why-section > .wp-block-columns { gap: clamp(34px, 6vw, 78px); }
.nd-reason-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.nd-reason-card {
  min-width: 0;
  min-height: 128px;
  padding: 24px;
  border: 1px solid var(--nd-border);
  border-radius: 18px;
  background: var(--nd-surface);
  display: flex;
  align-items: flex-end;
  position: relative;
}
.nd-reason-card::before {
  content: "";
  position: absolute;
  inset-block-start: 22px;
  inset-inline-start: 24px;
  width: 26px;
  height: 3px;
  border-radius: 3px;
  background: var(--nd-accent);
}
.nd-reason-card h3 { font-size: 1.02rem; margin: 0; }

.nd-home-cta {
  background: linear-gradient(135deg, #082f3b 0%, #123c45 82%, #0d8b78 145%);
  color: #fff;
  text-align: center;
}
.nd-home-cta h2 { color: #fff; max-width: 780px; margin-inline: auto; }
.nd-home-cta p { color: #d7e6e4; font-size: 1.08rem; }
.nd-home-cta .wp-block-button__link { background: var(--nd-accent); color: var(--nd-ink); }

.nd-footer { font-size: .94rem; }
.nd-footer h3 { color: #fff; font-size: 1rem; }
.nd-footer p { color: #cbdcda; }
.nd-footer-contact a { color: #fff; }
.nd-footer-links { gap: 9px !important; }
.nd-footer-links a { color: var(--nd-accent-soft); }

@media (max-width: 1020px) {
  .nd-system-grid,
  .nd-service-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .nd-home-hero { min-height: auto; }
}
@media (max-width: 782px) {
  .nd-home-section { padding-block: 66px; padding-inline: 22px; }
  .nd-home-hero { padding-block: 62px 70px; }
  .nd-hero-grid { gap: 38px; }
  .nd-home-title { font-size: clamp(2.2rem, 9.8vw, 3.25rem) !important; max-width: 17ch; }
  .nd-home-ar .nd-home-title { max-width: 15ch; }
  .nd-hero-lead { font-size: 1rem; line-height: 1.75; }
  .nd-hero-actions { gap: 10px; }
  .nd-browser-frame,
  .nd-home-ar .nd-browser-frame,
  .nd-home-en .nd-browser-frame { transform: none; max-width: 620px; }
  .nd-featured-products { gap: 18px; }
  .nd-product-shot { min-height: 190px; }
  .nd-product-shot img { height: 205px; }
  .nd-footer { padding-inline: 22px !important; }
}
@media (max-width: 520px) {
  .nd-home-section { padding-block: 56px; padding-inline: 18px; }
  .nd-home-hero { padding-block: 52px 60px; }
  .nd-home-title { font-size: clamp(1.85rem, 9.6vw, 2.45rem) !important; line-height: 1.16 !important; }
  .nd-hero-actions { flex-direction: column; align-items: stretch; }
  .nd-hero-actions .wp-block-button,
  .nd-hero-actions .wp-block-button__link { width: 100%; }
  .nd-trust-chips { gap: 7px !important; }
  .nd-trust-chips p { font-size: .72rem; padding: 6px 9px; }
  .nd-browser-frame { padding: 6px; border-radius: 16px; }
  .nd-browser-bar { min-height: 32px; }
  .nd-browser-bar p:last-child { display: none; }
  .nd-system-grid,
  .nd-service-grid,
  .nd-reason-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .nd-featured-product,
  .nd-service-card { padding: 22px; }
  .nd-product-shot { min-height: 155px; }
  .nd-product-shot img { height: 170px; }
  .nd-reason-card { min-height: 108px; }
}

/* Phase 10B — Home polish: native iconography and refined capability cards. */
.nd-system-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  column-gap: 13px;
  row-gap: 3px;
  align-items: center;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nd-system-card:hover {
  border-color: rgba(13, 139, 120, .34);
  box-shadow: 0 14px 34px rgba(8, 47, 59, .07);
  transform: translateY(-2px);
}
.nd-system-icon {
  grid-row: 1 / span 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: var(--nd-primary);
  background: var(--nd-mint);
}
.nd-icon-svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.nd-system-card h3 { grid-column: 2; margin-block: 0 2px; }
.nd-system-card .nd-system-capability {
  grid-column: 2;
  color: var(--nd-muted);
  font-size: .78rem;
  line-height: 1.45;
}
.nd-system-card .nd-text-link { grid-column: 2; margin-block-start: 3px; }
.nd-service-icon {
  color: var(--nd-primary);
}
.nd-service-icon .nd-icon-svg { width: 23px; height: 23px; }
.nd-service-card {
  box-shadow: 0 10px 28px rgba(8, 47, 59, .035);
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.nd-service-card:hover {
  border-color: rgba(13, 139, 120, .34);
  box-shadow: 0 18px 38px rgba(8, 47, 59, .075);
  transform: translateY(-3px);
}
.nd-reason-grid { counter-reset: nd-reason; }
.nd-reason-card {
  counter-increment: nd-reason;
  position: relative;
  isolation: isolate;
  overflow: clip;
  display: flex;
  align-items: flex-end;
  background: linear-gradient(145deg, #fff 10%, #f4faf8 100%);
  border-block-start: 3px solid var(--nd-accent);
  box-shadow: 0 14px 36px rgba(8, 47, 59, .055);
}
.nd-reason-card::before {
  content: "0" counter(nd-reason);
  position: absolute;
  inset-block-start: 15px;
  inset-inline-end: 18px;
  color: rgba(13, 139, 120, .22);
  font-size: 2rem;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.05em;
}
.nd-reason-card::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 86px;
  height: 86px;
  inset-block-start: -48px;
  inset-inline-end: -38px;
  border-radius: 999px;
  background: rgba(40, 197, 156, .08);
}
.nd-reason-card h3 { max-width: 80%; margin: 0; }

@media (max-width: 520px) {
  .nd-system-card { padding: 17px 18px; }
  .nd-reason-card { min-height: 116px; }
}
