/* Home motion: hero entrance, stars and parallax; the four moving agent cards; the live Odoo hub; heading reveals */

/* hide the hero's words and scene until GSAP takes over (removed after 3 s at most) */
html.nl-pre .portal-copy, html.nl-pre .portal-scene { opacity: 0; }

/* ---------- hero ---------- */
.nl-stars { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; pointer-events: none; }
.portal-scene { overflow: hidden; }
.nl-sweep { position: absolute; inset: 0; z-index: 2; pointer-events: none; background: linear-gradient(100deg, transparent 35%, rgb(255 255 255 / .22) 50%, transparent 65%); mix-blend-mode: overlay; transform: translateX(-120%); }
/* the Arabic page mirrors the scene's children, so GSAP can move the scene itself */
html[dir="rtl"] .portal-scene { transform: none; }
html[dir="rtl"] .portal-scene > img, html[dir="rtl"] .portal-scene > .portal-motion { transform: scaleX(-1); }
#portal-title .w { display: inline-block; vertical-align: top; }
#portal-title .ch { display: inline-block; will-change: transform; }
#portal-title strong { text-shadow: 0 0 28px rgb(255 202 8 / .5), 0 0 60px rgb(255 159 26 / .28); }
.portal-copy .btn.primary { animation: nl-ring 2.8s ease-out 2.8s infinite; }
@keyframes nl-ring { 0% { box-shadow: 0 0 0 0 rgb(255 202 8 / .45) } 70%, 100% { box-shadow: 0 0 0 16px rgb(255 202 8 / 0) } }

/* ---------- agents: four moving cards ---------- */
.ag-sec { padding-block: 40px 90px; }
.ag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 34px;
  --fx-bg: #17202e; --fx-surface: #0d1b30; --fx-ink: #eef2f8; --fx-muted: #9aa6ba; --fx-accent: #ffca08; --fx-accent-ink: #060f1e; }
.ag-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid #ffffff14;
  background: linear-gradient(135deg, #1c3554, #12263f); transition: border-color .3s, transform .3s; }
.ag-card:hover { border-color: #13a4ff70; transform: translateY(-3px); }
.ag-card::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), rgb(19 164 255 / .18), transparent 60%); }
.ag-card:hover::after { opacity: 1; }
.ag-card__text { padding: 24px 24px 0; }
.ag-card h3 { margin: 0; font-size: 19px; letter-spacing: -.3px; color: #f3f5fa; }
.ag-card p { margin: 8px 0 0; font-size: 14px; line-height: 1.6; color: #a9b7cc; min-height: 3.2em; }
.ag-panel { position: relative; height: 270px; margin-top: 20px; overflow: hidden; border-radius: 12px 12px 0 0;
  background: radial-gradient(80% 70% at 25% 0%, #d6e8f7 0%, transparent 60%), radial-gradient(90% 80% at 85% 100%, #3f78ad 0%, transparent 65%), linear-gradient(170deg, #9cc3e6, #5d8fbe 60%, #2f5f8f); }
.ag-panel::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(transparent, rgb(47 95 143 / .95)); pointer-events: none; }
.ag-stage { position: absolute; left: 50%; top: 22px; width: min(360px, calc(100% - 28px)); transform: translateX(-50%) scale(.9); transform-origin: 50% 0; }
.ag-stage > .ui { width: 100%; max-width: none; }
.ag-panel .dg { position: absolute; inset: 0; }
html[dir="rtl"] .ag-stage .ui { direction: rtl; text-align: right; }
@media (max-width: 1199px) { .ag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 639px) { .ag-grid { grid-template-columns: 1fr; gap: 12px; } .ag-panel { height: 220px; } .ag-stage { transform: translateX(-50%) scale(.84); } }

/* ---------- Odoo hub ---------- */
.odoo-intro.has-hub { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; }
.hub { position: relative; height: 440px; border-radius: 16px; overflow: hidden; border: 1px solid rgb(255 255 255 / .07); direction: ltr;
  background: radial-gradient(60% 55% at 50% 50%, #12355c 0%, #0b1f38 45%, #081527 100%); }
.hub::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgb(255 255 255 / .07) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%); mask-image: radial-gradient(70% 70% at 50% 50%, #000 30%, transparent 80%); }
.hub > * { position: absolute; }
.hub > svg { inset: 0; width: 100%; height: 100%; }
.hub .ln { fill: none; stroke: rgb(255 255 255 / .12); stroke-width: 1.5; }
.hub .ln.is-on { stroke: rgb(255 202 8 / .7); }
.hub .pulse { fill: #ffca08; filter: drop-shadow(0 0 6px #ffca08); }
.hub__orbit { left: 50%; top: 50%; width: 72%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed rgb(19 164 255 / .22); animation: nl-spin 60s linear infinite; pointer-events: none; }
.hub__orbit::after { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: #13a4ff; box-shadow: 0 0 12px #13a4ff; }
@keyframes nl-spin { to { transform: translate(-50%, -50%) rotate(360deg) } }
.hub__core, .hub__ring { left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 28px; }
.hub__core { display: grid; place-items: center; align-content: center; gap: 6px; background: linear-gradient(160deg, #fff, #dfe8f4);
  box-shadow: 0 0 0 1px rgb(255 255 255 / .4), 0 20px 50px -18px rgb(0 0 0 / .8), 0 0 60px rgb(19 164 255 / .35); }
.hub__core img.odoo { width: 70px; height: auto; }
.hub__core small { font: 500 11px/1 Manrope, Arial, sans-serif; color: #3b4a5e; display: flex; align-items: center; gap: 5px; }
.hub__core small img { width: 14px; height: 14px; border-radius: 3px; }
.hub__ring { border: 2px solid rgb(255 202 8 / .8); opacity: 0; pointer-events: none; }
.hub__nodes { inset: 0; }
.hub__node { position: absolute; transform: translate(-50%, -50%); display: flex; align-items: center; gap: 9px; padding: 9px 13px 9px 9px; border-radius: 13px; white-space: nowrap;
  background: #111f33; border: 1px solid rgb(255 255 255 / .1); color: #dfe6f0; font: 600 13px/1 Manrope, Tahoma, Arial, sans-serif; box-shadow: 0 14px 30px -16px rgb(0 0 0 / .9);
  transition: background .35s, border-color .35s, color .35s, box-shadow .35s; }
.hub__node i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgb(19 164 255 / .14); color: #7cc8ff; font-style: normal; }
.hub__node i svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.hub__node.is-on { background: #2a2306; border-color: rgb(255 202 8 / .8); color: #fff3c2; box-shadow: 0 0 0 4px rgb(255 202 8 / .12), 0 0 34px rgb(255 202 8 / .35); }
.hub__node.is-on i { background: #ffca08; color: #2a2306; }
.hub__msg { left: 50%; top: 5%; transform: translateX(-50%); display: flex; align-items: center; gap: 9px; padding: 9px 13px; border-radius: 14px 14px 14px 4px; opacity: 0;
  background: #0f3b2a; border: 1px solid rgb(37 211 102 / .45); color: #d9fbe8; font: 500 13px/1.3 Manrope, Tahoma, Arial, sans-serif; box-shadow: 0 14px 34px -14px rgb(0 0 0 / .9); white-space: nowrap; }
.hub__msg img { width: 18px; height: 18px; }
.hub__toast { padding: 7px 11px; border-radius: 9px; background: #ffca08; color: #1b1606; font: 600 12px/1.2 Manrope, Tahoma, Arial, sans-serif; white-space: nowrap; pointer-events: none; opacity: 0;
  box-shadow: 0 12px 26px -12px rgb(0 0 0 / .9); transform: translate(-50%, 0); }
.department-card.is-hub-on { border-color: rgb(255 202 8 / .7); box-shadow: 0 0 0 3px rgb(255 202 8 / .1), 0 0 30px rgb(255 202 8 / .12); }
@media (max-width: 899px) { .odoo-intro.has-hub { grid-template-columns: 1fr; gap: 22px; } .hub { height: 380px; } .hub__node { font-size: 12px; gap: 6px; padding: 6px 9px 6px 6px; } .hub__node i { width: 22px; height: 22px; } .hub__core, .hub__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; } .hub__core img.odoo { width: 56px; } .hub__core small { font-size: 9px; } }

/* ---------- heading reveals ---------- */
.nl-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.nl-split .w > span { display: inline-block; }

@media (prefers-reduced-motion: reduce) { .portal-copy .btn.primary, .hub__orbit { animation: none; } }
/* the diagram card: the kit's tokens for a light panel ground */
.ag-panel .dg { --ink: #0b1d35; --bg: #d6e8f7; --dg-ink: #0b1d35; --dg-accent: #ffca08; --dg-accent-ink: #1b1606; --dg-pulse: #ffca08; }
.ag-panel .dg .dg-node--core { background: #fff; color: #0b1d35; }
.odoo-intro.has-hub > p { font-size: 17px; line-height: 1.85; color: #b8c6da; max-width: none; }

/* the merged "What we can build" section */
.anchor-alias { position: absolute; top: -90px; }
.build-sec { position: relative; }
.ag-tag { display: inline-block; margin-bottom: 10px; padding: 4px 9px; border-radius: 999px; font: 600 10px/1 "Space Grotesk", monospace; letter-spacing: 1px; text-transform: uppercase; color: #ffca08; background: rgb(255 202 8 / .1); border: 1px solid rgb(255 202 8 / .3); }
[dir="rtl"] .ag-tag { letter-spacing: 0; font-family: inherit; font-size: 11px; }
.build-sec .ag-grid { row-gap: 18px; }

/* five cards: three on the first row, two wider on the second */
.build-grid { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; }
.build-grid > .ag-card { grid-column: span 2; }
.build-grid > .ag-card:nth-child(n+4) { grid-column: span 3; }
@media (max-width: 1199px) { .build-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .build-grid > .ag-card, .build-grid > .ag-card:nth-child(n+4) { grid-column: auto; } .build-grid > .ag-card:last-child { grid-column: 1 / -1; } }
@media (max-width: 639px) { .build-grid { grid-template-columns: 1fr !important; } .build-grid > .ag-card:last-child { grid-column: auto; } }
/* the workflow card beside the Odoo hub */
.odoo-left { display: flex; flex-direction: column; gap: 22px; }
.odoo-flow .ag-panel { height: 230px; }
.odoo-flow { --fx-bg: #17202e; }
.odoo-intro.has-hub { align-items: start; }
.odoo-intro.has-hub .hub { height: 520px; }

/* six cards: three by two */
.build-grid > .ag-card, .build-grid > .ag-card:nth-child(n+4) { grid-column: span 2; }
@media (max-width: 1199px) { .build-grid > .ag-card, .build-grid > .ag-card:nth-child(n+4), .build-grid > .ag-card:last-child { grid-column: auto; } }

/* the websites card: a small browser, a bilingual catalogue and a quote cart that fills */
.web-mock { position: absolute; left: 50%; top: 22px; width: min(340px, calc(100% - 28px)); transform: translateX(-50%); border-radius: 12px; overflow: hidden; background: #f4f6fa; color: #0d1b30;
  box-shadow: 0 18px 40px -18px rgb(0 0 0 / .7); font-family: Manrope, Tahoma, Arial, sans-serif; direction: ltr; }
.wm-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: #0f1c30; color: #c9d4e4; font-size: 10px; }
.wm-bar > i { width: 7px; height: 7px; border-radius: 50%; background: #3b4b63; }
.wm-url { flex: 1; margin-left: 4px; padding: 3px 8px; border-radius: 6px; background: #1b2b44; color: #9fb0c8; }
.wm-lang { display: inline-flex; border: 1px solid #2c3d57; border-radius: 6px; overflow: hidden; }
.wm-lang b { padding: 2px 6px; font-weight: 600; animation: wm-lang 6s infinite; }
.wm-lang b:last-child { animation-delay: -3s; }
@keyframes wm-lang { 0%, 45% { background: #ffca08; color: #1b1606 } 50%, 100% { background: transparent; color: #9fb0c8 } }
.wm-cart { display: inline-flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 6px; background: #ffca08; color: #1b1606; font-weight: 700; }
.wm-cart em { font-style: normal; font-weight: 600; }
.wm-count { position: relative; display: inline-block; width: 14px; height: 14px; overflow: hidden; border-radius: 50%; background: #0d1b30; color: #ffca08; font-size: 9px; text-align: center; line-height: 14px; }
.wm-count span { position: absolute; inset: 0; opacity: 0; animation: wm-count 8s infinite; }
.wm-count span:nth-child(1) { animation-delay: 0s; } .wm-count span:nth-child(2) { animation-delay: 2s; } .wm-count span:nth-child(3) { animation-delay: 4s; } .wm-count span:nth-child(4) { animation-delay: 6s; }
@keyframes wm-count { 0%, 24% { opacity: 1; transform: none } 25%, 100% { opacity: 0; transform: translateY(-100%) } }
.wm-body { padding: 10px 12px 14px; }
.wm-title { font-size: 12px; font-weight: 800; margin-bottom: 8px; }
.wm-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.wm-item { display: grid; gap: 4px; padding: 6px; border-radius: 9px; background: #fff; box-shadow: 0 1px 0 #e3e8f0, 0 0 0 1px #e8edf4; }
.wm-img { height: 42px; border-radius: 6px; background: linear-gradient(135deg, #d9e2ee, #b9c7da); position: relative; overflow: hidden; }
.wm-img::after { content: ""; position: absolute; left: 25%; right: 25%; top: 30%; bottom: 18%; border-radius: 4px; background: linear-gradient(160deg, #eef2f7, #9aa9bd); }
.wm-name { font-size: 10.5px; font-weight: 700; }
.wm-add { justify-self: start; padding: 3px 7px; border-radius: 6px; background: #0d1b30; color: #fff; font-size: 9px; font-weight: 700; animation: wm-add 8s infinite; animation-delay: calc(var(--i) * 2s - .2s); }
@keyframes wm-add { 0%, 2% { background: #0d1b30; color: #fff; transform: none } 4%, 10% { background: #ffca08; color: #1b1606; transform: scale(.94) } 14%, 100% { background: #0d1b30; color: #fff; transform: none } }
[dir="rtl"] .web-mock .wm-name, [dir="rtl"] .web-mock .wm-title, [dir="rtl"] .web-mock .wm-add, [dir="rtl"] .web-mock .wm-cart em { font-family: Tahoma, Arial, sans-serif; }
@media (prefers-reduced-motion: reduce) { .wm-lang b, .wm-count span, .wm-add { animation: none; } .wm-count span:last-child { opacity: 1; } }

/* no forced height on the robot section: the next section follows it directly */
.hero { min-height: 0 !important; padding-bottom: 20px !important; }
/* the robot section never scrolls inside itself (an anchor or a focus could scroll it and leave a gap) */
.hero { overflow: clip !important; }

/* Odoo: one visual. The tools sit around the hub on dashed lines; the core is dark */
.hub__tools { position: absolute; inset: 0; pointer-events: none; }
.hub__tool { position: absolute; transform: translate(-50%, -50%); display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px -12px #000, 0 0 0 4px rgb(255 255 255 / .06); }
.hub .ln.tl { stroke: rgb(124 200 255 / .35); stroke-dasharray: 4 6; animation: hub-flow 1.6s linear infinite; }
@keyframes hub-flow { to { stroke-dashoffset: -20 } }
.hub__core { background: linear-gradient(160deg, #1b3b63, #0c1d35) !important; border: 1px solid rgb(255 202 8 / .55);
  box-shadow: 0 0 0 6px rgb(255 202 8 / .06), 0 20px 50px -18px rgb(0 0 0 / .9), 0 0 50px rgb(255 202 8 / .18) !important; }
.hub__core img.odoo { filter: brightness(0) invert(1); }
.hub__core small { color: #c9d4e4 !important; }
.odoo-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 22px; }
.odoo-tools > span { width: 100%; font: 600 11px/1 "Space Grotesk", monospace; letter-spacing: 1.4px; text-transform: uppercase; color: #ffca08; }
[dir="rtl"] .odoo-tools > span { letter-spacing: 0; font-family: inherit; font-size: 12px; }
.odoo-tools b { display: inline-flex; align-items: center; gap: 7px; padding: 7px 11px; border-radius: 999px; background: #ffffff0a; border: 1px solid #ffffff1a; color: #dfe6f0; font-size: 13px; font-weight: 600; }
.odoo-tools b img { width: auto; }
.odoo-intro.has-hub { align-items: center !important; }
.odoo-intro.has-hub .hub { height: 480px !important; }
@media (prefers-reduced-motion: reduce) { .hub .ln.tl { animation: none; } }
