:root {
  --ink: #071513;
  --ink-soft: #17302c;
  --paper: #f5f8ef;
  --paper-strong: #ffffff;
  --lime: #c8ff58;
  --aqua: #63e6c6;
  --muted: #62706c;
  --line: rgba(7, 21, 19, 0.14);
  --display: "Manrope", "Noto Sans Arabic", sans-serif;
  --body: "DM Sans", "Noto Sans Arabic", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
  z-index: 20;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 100; padding: .75rem 1rem; background: var(--lime); color: var(--ink); font-weight: 700; }
.skip-link:focus { top: 1rem; }

.site-header {
  width: min(1180px, calc(100% - 40px));
  height: 82px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 30;
}
.brand { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--display); font-size: 1.08rem; font-weight: 800; letter-spacing: -.04em; justify-self: start; }
.brand-mark { width: 30px; height: 30px; background: var(--ink); border-radius: 50%; display: grid; place-items: center; }
.brand-mark span { width: 13px; height: 13px; border: 3px solid var(--lime); border-left-color: transparent; transform: rotate(-35deg); border-radius: 2px 8px 2px 8px; }
.primary-nav { display: flex; align-items: center; gap: 2rem; font-size: .9rem; font-weight: 600; }
.primary-nav a { transition: color .2s; }
.primary-nav a:hover { color: #2f7567; }
.language-switcher { justify-self: end; display: flex; padding: 4px; background: rgba(255,255,255,.64); border: 1px solid var(--line); border-radius: 999px; }
.language-switcher button { border: 0; background: transparent; border-radius: 999px; min-width: 38px; padding: .35rem .5rem; color: var(--muted); cursor: pointer; font-size: .75rem; font-weight: 700; }
.language-switcher button.active { background: var(--ink); color: var(--paper); }
.nav-toggle { display: none; }

.hero {
  width: min(1180px, calc(100% - 40px));
  min-height: 700px;
  margin: 0 auto;
  padding: 5.7rem 0 5rem;
  display: grid;
  grid-template-columns: 1.03fr .97fr;
  align-items: center;
  gap: 4.5rem;
}
.eyebrow, .section-kicker { margin: 0 0 1.3rem; text-transform: uppercase; letter-spacing: .14em; font-size: .73rem; font-weight: 800; }
.eyebrow { display: flex; align-items: center; gap: .65rem; color: #356458; }
.eyebrow > span:first-child { width: 24px; height: 2px; background: #356458; }
h1, h2, h3 { font-family: var(--display); margin-top: 0; line-height: 1.08; }
h1 { font-size: clamp(3.4rem, 6.1vw, 6rem); max-width: 780px; margin-bottom: 1.8rem; letter-spacing: -.07em; font-weight: 700; }
h1 em { color: #287466; font-style: normal; display: block; }
.hero-lead { max-width: 620px; margin: 0 0 2.2rem; color: #3d504b; font-size: 1.12rem; line-height: 1.75; }
.hero-actions { display: flex; gap: .8rem; flex-wrap: wrap; }
.button { min-height: 52px; display: inline-flex; align-items: center; justify-content: center; gap: 1rem; padding: .8rem 1.4rem; border: 1px solid var(--ink); font-weight: 700; transition: transform .2s, background .2s, color .2s; }
.button:hover { transform: translateY(-3px); }
.button-primary { background: var(--ink); color: white; }
.button-primary:hover { background: #183a34; }
.button-secondary { background: transparent; }
.trust-row { margin-top: 2rem; display: flex; gap: 1.4rem; flex-wrap: wrap; color: var(--muted); font-size: .82rem; font-weight: 600; }
.trust-row > span { display: flex; align-items: center; gap: .4rem; }
.trust-row i { width: 7px; height: 7px; display: inline-block; background: var(--aqua); border-radius: 50%; box-shadow: 0 0 0 4px rgba(99,230,198,.18); }

.hero-visual { min-height: 510px; position: relative; display: grid; place-items: center; isolation: isolate; }
.hero-visual::before { content: ""; position: absolute; width: 390px; height: 390px; background: var(--lime); border-radius: 50%; filter: blur(1px); z-index: -2; }
.signal-orbit { position: absolute; border: 1px solid rgba(7,21,19,.2); border-radius: 50%; z-index: -1; }
.orbit-one { width: 480px; height: 480px; animation: spin 25s linear infinite; }
.orbit-one::after { content: ""; position: absolute; top: 62px; right: 48px; width: 12px; height: 12px; background: var(--ink); border-radius: 50%; }
.orbit-two { width: 340px; height: 340px; border-style: dashed; animation: spin 18s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.conversation-card { width: min(380px, 86vw); padding: 1rem; background: rgba(255,255,255,.92); border: 1px solid rgba(7,21,19,.16); box-shadow: 0 35px 90px rgba(7,21,19,.18); backdrop-filter: blur(10px); transform: rotate(-2deg); }
.conversation-head { display: flex; align-items: center; gap: .7rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.conversation-head .avatar { width: 40px; height: 40px; display: grid; place-items: center; background: var(--ink); color: var(--lime); font-weight: 800; border-radius: 50%; }
.conversation-head strong { display: block; line-height: 1.2; }
.conversation-head small { display: flex; align-items: center; gap: .35rem; color: var(--muted); }
.online-dot { width: 6px; height: 6px; border-radius: 50%; background: #1aa879; }
.channel-pill { margin-inline-start: auto; padding: .25rem .6rem; background: #e8f9ef; color: #19704f; font-size: .7rem; font-weight: 700; border-radius: 999px; }
.message { margin-top: 1rem; padding: .8rem .9rem; font-size: .86rem; line-height: 1.45; max-width: 87%; }
.customer-message { margin-inline-start: auto; background: var(--ink); color: white; border-radius: 14px 14px 2px 14px; }
.ai-message { background: #edf2e8; border-radius: 14px 14px 14px 2px; }
.result-chip { margin-top: .8rem; padding: .55rem; display: flex; gap: .65rem; align-items: center; background: white; border: 1px solid var(--line); }
.mini-image { width: 38px; height: 45px; display: block; background: linear-gradient(135deg, #24483f, #83b7a7); }
.result-chip strong, .result-chip small { display: block; font-size: .69rem; }
.result-chip small { color: var(--muted); }
.typing { display: flex; width: fit-content; gap: 4px; margin-top: .9rem; padding: .55rem .7rem; background: #edf2e8; border-radius: 12px; }
.typing span { width: 5px; height: 5px; background: #7d8b87; border-radius: 50%; animation: pulse 1.3s infinite; }
.typing span:nth-child(2) { animation-delay: .15s; }.typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pulse { 50% { opacity: .25; transform: translateY(-2px); } }
.metric-card { position: absolute; min-width: 125px; padding: .7rem .9rem; color: white; background: var(--ink); box-shadow: 0 15px 35px rgba(7,21,19,.2); }
.metric-card strong, .metric-card span { display: block; }
.metric-card strong { color: var(--lime); font-size: 1.4rem; font-family: var(--display); }
.metric-card span { color: #d2dfda; font-size: .7rem; }
.metric-top { top: 62px; right: 0; }.metric-bottom { bottom: 56px; left: 0; }

.brand-strip { background: var(--ink); color: white; min-height: 126px; padding: 1.7rem max(20px, calc((100vw - 1180px)/2)); display: grid; grid-template-columns: .55fr 1.45fr; align-items: center; gap: 2rem; }
.brand-strip p { color: #9bb0aa; font-size: .78rem; text-transform: uppercase; letter-spacing: .16em; font-weight: 700; }
.brand-strip div { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-family: var(--display); font-weight: 700; }
.brand-strip b { color: var(--lime); font-size: .65rem; }

.section { padding: 8rem max(20px, calc((100vw - 1180px)/2)); }
.section-heading { max-width: 720px; margin-bottom: 3.4rem; }
.section-kicker { color: #347166; }
.section h2 { font-size: clamp(2.5rem, 4.6vw, 4.7rem); letter-spacing: -.055em; margin-bottom: 1.2rem; }
.section-heading > p:last-child { color: var(--muted); font-size: 1.06rem; max-width: 590px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.feature-card { min-height: 400px; padding: 2rem; position: relative; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: white; border: 1px solid var(--line); }
.feature-wide { grid-column: 1 / -1; min-height: 390px; padding-right: 48%; }
.feature-number { position: absolute; top: 1.4rem; right: 1.5rem; color: #7d8b87; font-size: .7rem; font-weight: 800; }
.feature-icon { position: absolute; top: 2rem; left: 2rem; width: 64px; height: 64px; background: #edf3e9; display: grid; place-items: center; font-family: var(--display); font-size: 1.7rem; font-weight: 800; }
.feature-card h3 { font-size: clamp(1.7rem, 2.5vw, 2.5rem); letter-spacing: -.04em; margin-bottom: .8rem; }
.feature-card p { color: var(--muted); max-width: 560px; margin: 0; }
.feature-accent { background: var(--lime); }
.feature-accent p { color: #354331; }
.knowledge-stack { position: absolute; width: 38%; height: 70%; right: 5%; top: 15%; }
.knowledge-stack div { position: absolute; width: 88%; height: 128px; padding: 1.1rem; background: #edf2e8; border: 1px solid var(--line); box-shadow: 0 18px 30px rgba(7,21,19,.08); }
.knowledge-stack div:nth-child(1) { top: 0; right: 0; transform: rotate(4deg); }.knowledge-stack div:nth-child(2) { top: 72px; right: 7%; transform: rotate(-2deg); background: var(--lime); }.knowledge-stack div:nth-child(3) { top: 145px; right: 0; transform: rotate(2deg); background: var(--ink); }
.knowledge-stack span { font-size: .68rem; font-weight: 800; }.knowledge-stack div:nth-child(3) span { color: white; }
.knowledge-stack i { display: block; width: 70%; height: 5px; background: rgba(7,21,19,.2); margin-top: .8rem; }.knowledge-stack i:last-child { width: 45%; }.knowledge-stack div:nth-child(3) i { background: rgba(255,255,255,.25); }

.capabilities { background: #e9efe3; }
.capabilities-intro { display: grid; grid-template-columns: .65fr 1.35fr; gap: 2rem; align-items: start; margin-bottom: 3rem; }
.capabilities-intro h2 { margin: 0; }
.capability-list { border-top: 1px solid var(--line); }
.capability-row { display: grid; grid-template-columns: 70px 1fr auto; gap: 2rem; align-items: center; padding: 2rem 0; border-bottom: 1px solid var(--line); }
.cap-index { font-family: var(--display); color: #6f7d79; font-size: .75rem; }
.capability-row h3 { font-size: 1.4rem; margin: 0 0 .35rem; letter-spacing: -.03em; }
.capability-row p { color: var(--muted); margin: 0; max-width: 680px; }
.cap-tag { border: 1px solid var(--line); padding: .45rem .7rem; background: rgba(255,255,255,.45); font-size: .73rem; font-weight: 700; white-space: nowrap; }

.workflow { background: var(--ink); color: white; }
.workflow-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 6rem; }
.section-heading.compact { margin: 0; }
.workflow .section-kicker { color: var(--lime); }
.workflow-steps { list-style: none; margin: 0; padding: 0; }
.workflow-steps li { display: grid; grid-template-columns: 42px 1fr; gap: 1.2rem; padding: 0 0 2rem; margin-bottom: 2rem; border-bottom: 1px solid rgba(255,255,255,.16); }
.workflow-steps li > span { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.25); color: var(--lime); font-weight: 700; }
.workflow-steps h3 { font-size: 1.25rem; margin-bottom: .4rem; }
.workflow-steps p { color: #9fb2ac; margin: 0; }

.contact { padding-top: 5rem; padding-bottom: 5rem; }
.contact-card { background: var(--lime); padding: clamp(2.2rem, 7vw, 6rem); position: relative; overflow: hidden; }
.contact-card::after { content: "R"; position: absolute; right: -1rem; bottom: -8rem; font-family: var(--display); font-size: 22rem; line-height: 1; font-weight: 800; color: rgba(7,21,19,.055); pointer-events: none; }
.contact-card h2 { max-width: 900px; position: relative; z-index: 1; }
.contact-card > p:not(.section-kicker) { max-width: 650px; margin: 0 0 2rem; color: #354331; position: relative; z-index: 1; }
.button-light { background: white; position: relative; z-index: 1; }

footer { width: min(1180px, calc(100% - 40px)); min-height: 140px; margin: 0 auto; display: grid; grid-template-columns: 1fr auto auto; gap: 2rem; align-items: center; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }
.footer-brand { color: var(--ink); }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

[dir="rtl"] body { font-family: "Noto Sans Arabic", var(--body); }
[dir="rtl"] h1, [dir="rtl"] h2, [dir="rtl"] h3, [dir="rtl"] .brand { font-family: "Noto Sans Arabic", var(--display); letter-spacing: 0; }
[dir="rtl"] .feature-number { right: auto; left: 1.5rem; }
[dir="rtl"] .feature-icon { left: auto; right: 2rem; }
[dir="rtl"] .feature-wide { padding-right: 2rem; padding-left: 48%; }
[dir="rtl"] .knowledge-stack { right: auto; left: 5%; }
[dir="rtl"] .contact-card::after { right: auto; left: -1rem; }

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr auto auto; }
  .nav-toggle { display: grid; place-content: center; gap: 6px; width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; cursor: pointer; }
  .nav-toggle > span:not(.sr-only) { display: block; width: 18px; height: 2px; background: var(--ink); }
  .primary-nav { display: none; position: absolute; top: 72px; left: 0; right: 0; padding: 1.2rem; background: var(--paper-strong); border: 1px solid var(--line); flex-direction: column; align-items: stretch; gap: 0; box-shadow: 0 18px 40px rgba(7,21,19,.12); }
  .primary-nav.open { display: flex; }
  .primary-nav a { padding: .8rem; }
  .language-switcher { margin-inline-start: .65rem; }
  .hero { grid-template-columns: 1fr; padding-top: 4rem; }
  .hero-copy { max-width: 740px; }
  .hero-visual { min-height: 550px; }
  .brand-strip { grid-template-columns: 1fr; gap: .6rem; }
  .brand-strip div { flex-wrap: wrap; justify-content: flex-start; }
  .capabilities-intro, .workflow-panel { grid-template-columns: 1fr; gap: 2.5rem; }
}

@media (max-width: 640px) {
  .site-header { width: min(100% - 28px, 1180px); }
  .brand { font-size: .98rem; }
  .brand-mark { width: 27px; height: 27px; }
  .language-switcher button { min-width: 32px; padding: .28rem .36rem; }
  .hero { width: min(100% - 28px, 1180px); min-height: auto; padding: 3.5rem 0; gap: 2.5rem; }
  h1 { font-size: clamp(2.8rem, 14vw, 4.3rem); }
  .hero-lead { font-size: 1rem; }
  .hero-actions .button { width: 100%; }
  .hero-visual { min-height: 450px; }
  .hero-visual::before { width: 300px; height: 300px; }
  .orbit-one { width: 355px; height: 355px; }.orbit-two { width: 260px; height: 260px; }
  .conversation-card { width: min(315px, 88vw); }
  .metric-top { top: 5px; right: 0; }.metric-bottom { bottom: 5px; left: 0; }
  .brand-strip div { font-size: .8rem; gap: .7rem; }
  .section { padding-top: 5.5rem; padding-bottom: 5.5rem; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-wide { grid-column: auto; min-height: 520px; padding: 2rem; padding-bottom: 16rem; }
  .knowledge-stack { width: 80%; height: 230px; left: 10%; right: auto; top: auto; bottom: 1.2rem; }
  [dir="rtl"] .feature-wide { padding: 2rem; padding-bottom: 16rem; }
  [dir="rtl"] .knowledge-stack { left: 10%; right: auto; }
  .feature-card { min-height: 350px; }
  .capability-row { grid-template-columns: 42px 1fr; gap: 1rem; }
  .cap-tag { grid-column: 2; justify-self: start; }
  footer { grid-template-columns: 1fr; gap: .7rem; padding: 2rem 0; }
}

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