:root {
  --ink: #071a2f;
  --ink-soft: #123c69;
  --teal: #1fb7a6;
  --teal-dark: #128b80;
  --gold: #c6a15b;
  --paper: #ffffff;
  --mist: #f4f8fa;
  --line: #dce6eb;
  --text: #142333;
  --muted: #657585;
  --success: #238c68;
  --warning-bg: #fff8e9;
  --warning-line: #ead49e;
  --shadow: 0 24px 70px rgba(7, 26, 47, 0.12);
  --shadow-soft: 0 14px 42px rgba(7, 26, 47, 0.075);
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-ar: "IBM Plex Sans Arabic", system-ui, sans-serif;
  --font-en: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

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

body {
  min-width: 320px;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-ar);
  text-rendering: optimizeLegibility;
}

body[data-lang="en"] {
  font-family: var(--font-en);
}

body[data-lang="ar"] {
  direction: rtl;
}

body[data-lang="en"] {
  direction: ltr;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

img {
  max-width: 100%;
}

.container {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.lang-ar,
.lang-en {
  display: none;
}

body[data-lang="ar"] .lang-ar,
body[data-lang="en"] .lang-en {
  display: initial;
}

.skip-link {
  position: fixed;
  top: 8px;
  inset-inline-start: 8px;
  z-index: 200;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  transform: translateY(-140%);
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 230, 235, 0.78);
  background: rgba(255, 255, 255, 0.91);
  backdrop-filter: blur(18px);
}

.nav {
  display: grid;
  min-height: 78px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand img {
  display: block;
  width: auto;
  height: 39px;
}

.brand-note {
  max-width: 92px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  color: #526373;
  font-size: 13px;
  font-weight: 600;
}

.nav-links a {
  position: relative;
  padding-block: 28px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 19px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: var(--teal);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--ink-soft);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.menu-toggle,
.lang-toggle {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  cursor: pointer;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  font-size: 13px;
  font-weight: 700;
}

.menu-lines {
  display: grid;
  gap: 3px;
}

.menu-lines i {
  display: block;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.lang-toggle:hover {
  border-color: rgba(31, 183, 166, 0.5);
  background: #f5fbfa;
}

.globe-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 50%;
  background: rgba(31, 183, 166, 0.11);
  color: var(--teal-dark);
  font-size: 9px;
}

.btn {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 700;
  line-height: 1.2;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--ink-soft), var(--teal));
  box-shadow: 0 13px 30px rgba(18, 60, 105, 0.2);
  color: #fff;
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-soft);
}

.btn-light {
  background: #fff;
  color: var(--ink-soft);
}

.btn-gold {
  background: linear-gradient(135deg, #f2dca4, var(--gold));
  box-shadow: 0 14px 32px rgba(198, 161, 91, 0.2);
  color: var(--ink);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-cta {
  min-height: 40px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 13px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 76px 0 68px;
  background:
    radial-gradient(circle at 7% 12%, rgba(31, 183, 166, 0.16), transparent 25rem),
    radial-gradient(circle at 92% 4%, rgba(198, 161, 91, 0.12), transparent 26rem),
    linear-gradient(180deg, #fff, #f7fafb);
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  align-items: center;
  gap: 58px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.eyebrow,
.section-kicker,
.construction-tag,
.self-hosted-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.eyebrow {
  margin-bottom: 22px;
  padding: 8px 12px;
  border: 1px solid rgba(31, 183, 166, 0.25);
  border-radius: 999px;
  background: rgba(31, 183, 166, 0.08);
}

.eyebrow-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 0 6px rgba(31, 183, 166, 0.12);
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: var(--ink);
  font-size: clamp(42px, 4.8vw, 50px);
  font-weight: 700;
  letter-spacing: -0.048em;
  line-height: 1.08;
}

body[data-lang="ar"] .hero h1 {
  letter-spacing: -0.018em;
  line-height: 1.24;
}

.lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.trust-row {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.trust-row div {
  min-width: 0;
  padding-inline-start: 11px;
  border-inline-start: 2px solid rgba(31, 183, 166, 0.34);
}

.trust-row strong,
.trust-row span {
  display: block;
}

.trust-row strong {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

.trust-row span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}

.product-preview {
  position: relative;
  min-width: 0;
}

.preview-glow {
  position: absolute;
  inset: 7% 4% 2%;
  border-radius: 50%;
  background: rgba(31, 183, 166, 0.2);
  filter: blur(55px);
}

.preview-window {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(18, 60, 105, 0.12);
  border-radius: 28px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  min-height: 116px;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 25px;
  background: linear-gradient(130deg, var(--ink), var(--ink-soft) 62%, var(--teal));
  color: #fff;
}

.preview-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.preview-brand img {
  width: 32px;
  height: 32px;
}

.preview-brand strong,
.preview-brand small {
  display: block;
}

.preview-brand strong {
  margin-bottom: 5px;
  font-size: 16px;
}

.preview-brand small {
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  font-size: 10px;
  font-weight: 700;
}

.live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #7be2c1;
}

.preview-body {
  margin: -19px 16px 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 15px 38px rgba(7, 26, 47, 0.1);
}

.preview-filters {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 15px;
}

.preview-filters > span {
  padding: 8px 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.metric-card {
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--mist);
}

.metric-card small,
.metric-card strong,
.metric-card > span {
  display: block;
}

.metric-card small {
  min-height: 31px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.45;
}

.metric-card strong {
  margin-top: 6px;
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 19px;
}

.metric-card strong em {
  font-size: 9px;
  font-style: normal;
}

.metric-card > span {
  margin-top: 5px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.metric-card > span.positive {
  color: var(--success);
}

.chart-card {
  margin-top: 10px;
  padding: 15px 15px 11px;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.chart-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.chart-title strong {
  color: var(--ink);
  font-size: 12px;
}

.chart-title > span {
  color: var(--muted);
  font-size: 10px;
}

.chart-bars {
  display: flex;
  height: 142px;
  align-items: end;
  gap: 10px;
  padding: 17px 7px 0;
  border-bottom: 1px solid var(--line);
  background: repeating-linear-gradient(to top, transparent 0, transparent 34px, rgba(220, 230, 235, 0.7) 35px);
}

.chart-bars i {
  height: var(--value);
  flex: 1;
  border-radius: 7px 7px 1px 1px;
  background: linear-gradient(180deg, var(--teal), var(--ink-soft));
  box-shadow: 0 8px 18px rgba(18, 60, 105, 0.14);
}

.chart-bars i:nth-child(even) {
  opacity: 0.75;
}

.chart-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  color: var(--muted);
  font-size: 10px;
}

.chart-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.chart-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--teal);
}

.chart-legend > span:last-child i {
  background: var(--ink-soft);
}

.section {
  padding: 88px 0;
}

.section-heading {
  margin-bottom: 34px;
}

.section-heading.centered {
  max-width: 820px;
  margin-inline: auto;
  text-align: center;
}

.section-heading.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  align-items: end;
  gap: 50px;
}

.section-kicker {
  margin-bottom: 12px;
  text-transform: uppercase;
}

.section-heading h2,
.construction-heading h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(32px, 3.6vw, 30px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

body[data-lang="ar"] .section-heading h2,
body[data-lang="ar"] .construction-heading h2 {
  letter-spacing: -0.012em;
  line-height: 1.32;
}

.section-heading p,
.construction-heading p {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.section-heading.split > p {
  margin: 0;
}

.value-section {
  background: var(--paper);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.value-card {
  position: relative;
  min-height: 255px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.value-card.featured {
  border-color: rgba(31, 183, 166, 0.32);
  background: linear-gradient(145deg, #f0fbf9, #fff 70%);
}

.card-number {
  display: block;
  margin-bottom: 38px;
  color: var(--teal);
  font-family: var(--font-en);
  font-size: 13px;
  font-weight: 700;
}

.value-card h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.45;
}

.value-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.capabilities-section {
  background: var(--mist);
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.capability-card {
  min-height: 235px;
  padding: 25px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.capability-card:hover {
  border-color: rgba(31, 183, 166, 0.42);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.line-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(18, 60, 105, 0.1), rgba(31, 183, 166, 0.14));
  color: var(--ink-soft);
  font-family: var(--font-en);
  font-size: 19px;
  font-weight: 700;
}

.line-icon img {
  width: 22px;
  height: 25px;
}

.capability-card h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 18px;
}

.capability-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.construction-section {
  background: var(--paper);
}

.construction-shell {
  position: relative;
  overflow: hidden;
  padding: 50px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 8% 8%, rgba(31, 183, 166, 0.28), transparent 27rem),
    linear-gradient(145deg, var(--ink), #0d2e50 62%, #125d68);
  box-shadow: var(--shadow);
  color: #fff;
}

.construction-shell::after {
  content: "";
  position: absolute;
  top: -220px;
  inset-inline-end: -180px;
  width: 500px;
  height: 500px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 0 65px rgba(255, 255, 255, 0.025), 0 0 0 130px rgba(255, 255, 255, 0.018);
}

.construction-heading,
.construction-grid,
.construction-outcomes {
  position: relative;
  z-index: 1;
}

.construction-heading {
  max-width: 820px;
}

.construction-tag {
  margin-bottom: 15px;
  padding: 7px 11px;
  border: 1px solid rgba(99, 216, 203, 0.25);
  border-radius: 999px;
  background: rgba(31, 183, 166, 0.11);
  color: #72dfd3;
}

.construction-heading h2 {
  color: #fff;
}

.construction-heading p {
  color: rgba(255, 255, 255, 0.68);
}

.construction-grid {
  display: grid;
  margin-top: 38px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.construction-value {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.065);
  backdrop-filter: blur(10px);
}

.construction-value > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 12px;
  background: rgba(31, 183, 166, 0.15);
  color: #72dfd3;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}

.construction-value h3 {
  margin: 0 0 6px;
  color: #fff;
  font-size: 16px;
}

.construction-value p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 15px;
  line-height: 1.65;
}

.construction-outcomes {
  display: grid;
  margin-top: 22px;
  padding: 18px 22px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  background: #fff;
  color: var(--ink);
}

.construction-outcomes div {
  text-align: center;
}

.construction-outcomes strong,
.construction-outcomes span {
  display: block;
}

.construction-outcomes strong {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

.construction-outcomes div > span {
  color: var(--muted);
  font-size: 13px;
}

.construction-outcomes > i {
  color: var(--teal);
  font-size: 18px;
  font-style: normal;
}

body[data-lang="en"] .construction-outcomes > i {
  transform: rotate(180deg);
}

.ai-section {
  background:
    radial-gradient(circle at 8% 20%, rgba(31, 183, 166, 0.11), transparent 26rem),
    linear-gradient(180deg, #fff, #f7fafb);
}

.ai-experience-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
}

.ai-agent-story {
  padding: 30px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 90% 5%, rgba(31, 183, 166, 0.26), transparent 18rem),
    linear-gradient(145deg, var(--ink), var(--ink-soft));
  box-shadow: var(--shadow);
  color: #fff;
}

.ai-agent-story-head,
.ai-capability-card-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.ai-agent-mark,
.ai-capability-icon,
.ai-sales-icon {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  font-family: var(--font-en);
  font-weight: 800;
}

.ai-agent-mark {
  width: 48px;
  height: 48px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 15px;
  background: rgba(31, 183, 166, 0.16);
  color: #72dfd3;
  font-size: 14px;
}

.ai-agent-label,
.ai-capability-label,
.ai-sales-label {
  display: block;
  margin-bottom: 6px;
  color: var(--teal-dark);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.ai-agent-label {
  color: #72dfd3;
}

.ai-agent-story h3,
.ai-capability-card h3,
.ai-sales-card h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.4;
}

.ai-agent-story h3 {
  color: #fff;
}

.ai-agent-story > p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 1.75;
}

.ai-channel-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 20px;
}

.ai-channel-row > span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 700;
}

.ai-channel-row small {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
}

.ai-agent-steps {
  display: grid;
  gap: 9px;
  margin-top: 24px;
}

.ai-agent-steps > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
}

.ai-agent-steps > div > span {
  color: #72dfd3;
  font-family: var(--font-en);
  font-size: 11px;
  font-weight: 800;
}

.ai-agent-steps p {
  margin: 0;
}

.ai-agent-steps strong,
.ai-agent-steps small {
  display: block;
}

.ai-agent-steps strong {
  color: #fff;
  font-size: 14px;
}

.ai-agent-steps small {
  margin-top: 3px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.5;
}

.ai-capability-stack {
  display: grid;
  gap: 16px;
}

.ai-capability-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ai-capability-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, rgba(18, 60, 105, 0.1), rgba(31, 183, 166, 0.17));
  color: var(--ink-soft);
  font-size: 11px;
}

.ai-capability-card h3,
.ai-sales-card h3 {
  color: var(--ink);
}

.ai-capability-card > p {
  margin: 15px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.ai-capability-card ul {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.ai-capability-card li {
  position: relative;
  padding-inline-start: 20px;
  color: #465666;
  font-size: 13px;
  line-height: 1.6;
}

.ai-capability-card li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.ai-outcomes {
  display: grid;
  margin-top: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid rgba(31, 183, 166, 0.2);
  border-radius: 18px;
  background: rgba(31, 183, 166, 0.07);
}

.ai-outcomes > div {
  padding: 18px 20px;
}

.ai-outcomes > div + div {
  border-inline-start: 1px solid rgba(31, 183, 166, 0.18);
}

.ai-outcomes strong,
.ai-outcomes span {
  display: block;
}

.ai-outcomes strong {
  margin-bottom: 4px;
  color: var(--ink-soft);
  font-size: 15px;
}

.ai-outcomes div > span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.ai-sales-card {
  display: grid;
  margin-top: 16px;
  padding: 24px 26px;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  border: 1px solid rgba(18, 60, 105, 0.12);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.ai-sales-icon {
  width: 50px;
  height: 50px;
  border-radius: 15px;
  background: var(--ink);
  color: #72dfd3;
  font-size: 14px;
}

.ai-sales-card h3 {
  font-size: 20px;
}

.ai-sales-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
}

.ai-sales-card .btn {
  white-space: nowrap;
}

.saudi-section {
  background: var(--mist);
}

.saudi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.saudi-grid article {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
}

.saudi-grid article > span {
  display: grid;
  width: 49px;
  height: 49px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 15px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-en);
  font-size: 16px;
  font-weight: 700;
}

.saudi-grid h3 {
  margin: 0 0 9px;
  color: var(--ink);
  font-size: 18px;
}

.saudi-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.workflow-note {
  display: grid;
  margin-top: 16px;
  padding: 20px 22px;
  grid-template-columns: auto 1fr;
  gap: 16px;
  border: 1px solid rgba(31, 183, 166, 0.22);
  border-radius: 17px;
  background: linear-gradient(135deg, rgba(31, 183, 166, 0.1), rgba(255, 255, 255, 0.92));
  color: var(--ink-soft);
}

.workflow-note strong {
  white-space: nowrap;
}

.workflow-note p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.pricing-section {
  background: #fff;
}

.pricing-status,
.pricing-fallback {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
  color: var(--muted);
}

.pricing-status[hidden] {
  display: none;
}

.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(18, 60, 105, 0.14);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.pricing-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 410px;
  padding: 27px;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.pricing-card.is-featured {
  border: 2px solid var(--teal);
  box-shadow: 0 20px 50px rgba(31, 183, 166, 0.15);
}

.popular-badge {
  position: absolute;
  top: -13px;
  inset-inline-end: 20px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--teal);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.pricing-card h3 {
  min-height: 32px;
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 22px;
}

.pricing-card > p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 22px;
}

.price > strong {
  color: var(--ink);
  font-family: var(--font-en);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.price > span {
  color: var(--muted);
  font-size: 12px;
}

.money-amount {
  display: inline-flex;
  direction: ltr;
  align-items: baseline;
  gap: 0.22em;
  white-space: nowrap;
}

.money-number {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
}

.sar-symbol {
  width: 0.72em;
  height: 0.82em;
  flex: 0 0 auto;
  object-fit: contain;
}

.money-amount-inline {
  vertical-align: -0.08em;
  font-family: var(--font-en);
  font-weight: 600;
}

.money-amount-inline .sar-symbol {
  opacity: 0.68;
}

.vat-total {
  min-height: 35px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.seat-capacity {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(18, 60, 105, 0.07), rgba(31, 183, 166, 0.12));
}

.seat-symbol {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 12px;
  background: #fff;
  color: var(--ink-soft);
  font-family: var(--font-en);
  font-weight: 800;
}

.seat-capacity small,
.seat-capacity strong {
  display: block;
}

.seat-capacity small {
  color: var(--muted);
  font-size: 11px;
}

.seat-capacity strong {
  color: var(--ink);
  font-size: 14px;
}

.pricing-inclusions {
  display: grid;
  gap: 8px;
  margin: 18px 0 23px;
  padding: 0;
  list-style: none;
}

.pricing-inclusions li {
  position: relative;
  padding-inline-start: 19px;
  color: #465666;
  font-size: 13px;
  line-height: 1.5;
}

.pricing-inclusions li::before {
  content: "✓";
  position: absolute;
  inset-inline-start: 0;
  color: var(--teal-dark);
  font-weight: 800;
}

.pricing-card .btn {
  width: 100%;
  margin-top: auto;
}

.pricing-error {
  display: block;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--mist);
  text-align: center;
}

.pricing-error p {
  margin: 0 0 14px;
  color: var(--muted);
}

.self-hosted-card {
  display: grid;
  margin-top: 18px;
  padding: 29px 32px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 23px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--ink), var(--ink-soft));
  box-shadow: var(--shadow);
  color: #fff;
}

.server-icon {
  display: grid;
  width: 54px;
  gap: 5px;
}

.server-icon i {
  position: relative;
  display: block;
  height: 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.09);
}

.server-icon i::after {
  content: "";
  position: absolute;
  top: 4px;
  inset-inline-end: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6ee0d3;
}

.self-hosted-label {
  margin-bottom: 6px;
  color: #72dfd3;
}

.self-hosted-card h3 {
  margin: 0 0 5px;
  color: #fff;
  font-size: 23px;
}

.self-hosted-card p {
  max-width: 690px;
  margin: 0;
  color: rgba(255, 255, 255, 0.67);
  font-size: 15px;
  line-height: 1.65;
}

.final-cta {
  padding-top: 30px;
  background: #fff;
}

.cta-shell {
  display: grid;
  padding: 48px;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 35px;
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 10% 20%, rgba(31, 183, 166, 0.28), transparent 24rem),
    linear-gradient(135deg, var(--ink), var(--ink-soft));
  box-shadow: var(--shadow);
  color: #fff;
}

.cta-shell .section-kicker {
  color: #72dfd3;
}

.cta-shell h2 {
  max-width: 720px;
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: -0.045em;
  line-height: 1.13;
}

body[data-lang="ar"] .cta-shell h2 {
  letter-spacing: -0.012em;
  line-height: 1.32;
}

.cta-shell p {
  max-width: 720px;
  margin: 15px 0 0;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.8;
}

.cta-actions {
  display: grid;
  min-width: 220px;
  gap: 9px;
}

.footer {
  margin-top: 88px;
  padding: 55px 0 24px;
  border-top: 1px solid var(--line);
  background: var(--mist);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(340px, 0.8fr);
  gap: 80px;
}

.footer-brand img {
  width: auto;
  height: 40px;
}

.footer-brand p {
  max-width: 560px;
  margin: 16px 0 9px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.75;
}

.footer-brand small {
  color: #85929d;
}

.footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 35px;
}

.footer-links div {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-links strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.footer-links a {
  color: var(--muted);
  font-size: 13px;
}

.footer-links a:hover {
  color: var(--teal-dark);
}

.footer-bottom {
  display: flex;
  margin-top: 38px;
  padding-top: 19px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #8a97a1;
  font-size: 11px;
}

.legal-page {
  padding-top: 46px;
}

.legal-hero {
  padding: 38px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--ink), var(--ink-soft), var(--teal-dark));
  box-shadow: var(--shadow);
  color: #fff;
}

.legal-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(38px, 5vw, 60px);
}

.legal-hero p {
  max-width: 850px;
  margin: 13px 0 0;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.8;
}

.legal-content {
  margin-top: 22px;
}

.panel {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.block.lang-ar,
.block.lang-en {
  display: none;
}

body[data-lang="ar"] .block.lang-ar,
body[data-lang="en"] .block.lang-en {
  display: block;
}

.legal-content h2 {
  margin: 25px 0 8px;
  color: var(--ink);
  font-size: 23px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p,
.legal-content li {
  color: var(--muted);
  line-height: 1.8;
}

.source-note {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--warning-bg);
  font-size: 12px;
}

@media (max-width: 1080px) {
  .nav {
    gap: 16px;
  }

  .nav-links {
    gap: 14px;
    font-size: 11px;
  }

  .brand-note {
    display: none;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 820px;
    text-align: center;
    margin-inline: auto;
  }

  .hero h1,
  .lead {
    margin-inline: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .trust-row {
    text-align: start;
  }

  .product-preview {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: 0;
  }

  .pricing-card h3,
  .pricing-card > p,
  .vat-total {
    min-height: 0;
  }

  .cta-shell {
    grid-template-columns: 1fr;
  }

  .cta-actions {
    min-width: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 840px) {
  html {
    scroll-padding-top: 72px;
  }

  .container {
    width: min(100% - 30px, 680px);
  }

  .nav {
    min-height: 70px;
    grid-template-columns: 1fr auto auto;
  }

  .brand img {
    height: 34px;
  }

  .menu-toggle {
    display: inline-flex;
    grid-column: 2;
  }

  .nav-actions {
    grid-column: 3;
  }

  .nav-cta {
    display: none;
  }

  .nav-links {
    position: fixed;
    top: 70px;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    padding: 28px 24px;
    align-content: start;
    justify-content: stretch;
    gap: 0;
    background: rgba(255, 255, 255, 0.98);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-12px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  body.nav-open .nav-links {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: 16px;
  }

  .nav-links a::after {
    display: none;
  }

  body.nav-open .menu-lines i:first-child {
    transform: translateY(5px) rotate(45deg);
  }

  body.nav-open .menu-lines i:nth-child(2) {
    opacity: 0;
  }

  body.nav-open .menu-lines i:last-child {
    transform: translateY(-5px) rotate(-45deg);
  }

  .hero {
    padding: 54px 0;
  }

  .hero h1 {
    font-size: clamp(38px, 8vw, 50px);
  }

  .trust-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .section {
    padding: 70px 0;
  }

  .section-heading.split {
    grid-template-columns: 1fr;
    gap: 15px;
  }

  .section-heading.split > p {
    margin-top: 0;
  }

  .value-grid,
  .capability-grid,
  .saudi-grid,
  .ai-experience-grid {
    grid-template-columns: 1fr;
  }

  .value-card,
  .capability-card {
    min-height: 0;
  }

  .card-number {
    margin-bottom: 24px;
  }

  .construction-shell {
    width: calc(100% - 20px);
    padding: 35px 25px;
  }

  .construction-grid {
    grid-template-columns: 1fr;
  }

  .construction-outcomes {
    grid-template-columns: 1fr;
  }

  .construction-outcomes > i {
    transform: rotate(-90deg);
  }

  body[data-lang="en"] .construction-outcomes > i {
    transform: rotate(90deg);
  }

  .workflow-note {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .ai-outcomes {
    grid-template-columns: 1fr;
  }

  .ai-outcomes > div + div {
    border-top: 1px solid rgba(31, 183, 166, 0.18);
    border-inline-start: 0;
  }

  .ai-sales-card {
    grid-template-columns: 1fr;
  }

  .ai-sales-card .btn {
    width: 100%;
  }

  .self-hosted-card {
    grid-template-columns: 1fr;
  }

  .self-hosted-card .btn {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 35px;
  }
}

@media (max-width: 560px) {
  .container {
    width: calc(100% - 24px);
  }

  .nav {
    gap: 8px;
  }

  .brand img {
    height: 31px;
  }

  .menu-toggle {
    padding: 8px;
  }

  .menu-toggle .lang-ar,
  .menu-toggle .lang-en {
    display: none !important;
  }

  .lang-toggle {
    padding: 7px 9px;
  }

  .globe-icon {
    display: none;
  }

  .hero {
    padding-top: 42px;
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 10px;
  }

  .hero h1 {
    font-size: 38px;
  }

  body[data-lang="ar"] .hero h1 {
    line-height: 1.3;
  }

  .lead {
    font-size: 15px;
  }

  .hero-actions,
  .hero-actions .btn {
    width: 100%;
  }

  .trust-row {
    grid-template-columns: 1fr 1fr;
  }

  .preview-top {
    min-height: 103px;
    padding: 19px;
  }

  .preview-brand img {
    display: none;
  }

  .preview-body {
    margin-inline: 10px;
    padding: 12px;
  }

  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card small {
    min-height: 0;
  }

  .chart-bars {
    height: 115px;
    gap: 6px;
  }

  .section-heading h2,
  .construction-heading h2,
  .cta-shell h2 {
    font-size: 30px;
  }

  .construction-shell {
    width: calc(100% - 12px);
    padding: 30px 18px;
    border-radius: 24px;
  }

  .construction-value {
    grid-template-columns: 32px 1fr;
    padding: 16px;
  }

  .construction-value > span {
    width: 32px;
    height: 32px;
  }

  .ai-agent-story,
  .ai-capability-card {
    padding: 22px;
  }

  .ai-agent-story-head,
  .ai-capability-card-head {
    gap: 11px;
  }

  .ai-agent-story h3,
  .ai-capability-card h3 {
    font-size: 19px;
  }

  .ai-sales-card {
    padding: 22px;
  }

  .pricing-card {
    padding: 22px;
  }

  .self-hosted-card {
    padding: 24px;
  }

  .cta-shell {
    padding: 32px 24px;
  }

  .cta-actions {
    grid-template-columns: 1fr;
  }

  .footer-links {
    gap: 20px;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-hero,
  .panel {
    padding: 24px;
  }
}

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

body[data-lang="ar"] .lang-en,
body[data-lang="en"] .lang-ar {
  display: none !important;
}
