/* Home hero v2 — dark 3D "ERP globe" (only this section is dark; the rest of the site stays white + sky) */
body[data-page="home"] .site-header { background: rgba(4, 16, 27, .82) !important; border-bottom-color: rgba(120, 210, 245, .12) !important; }
body[data-page="home"] .site-header .nav a,
body[data-page="home"] .site-header .nav-dropdown-toggle { color: rgba(225, 242, 250, .82) !important; }
body[data-page="home"] .site-header .nav a:hover,
body[data-page="home"] .site-header .nav-dropdown-toggle:hover { background: rgba(255, 255, 255, .07) !important; color: #fff !important; }
body[data-page="home"] .site-header .nav a.active { background: rgba(64, 200, 245, .16) !important; color: #7fdcfa !important; }
body[data-page="home"] .site-header .language-toggle,
body[data-page="home"] .site-header .menu-toggle { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .14) !important; color: #e6f6fd !important; }
@media (max-width: 1200px) { body[data-page="home"] .site-header .nav { background: #061827 !important; border-color: rgba(120, 210, 245, .12) !important; } }


/* ================= HERO v2 ================= */
@media (min-width: 901px) and (max-height: 820px) { .x-hero { padding-top: 34px !important; } .x-title { margin-top: 14px; } .x-ctas { margin-top: 22px; } }
.x-hero { --x-bg: #030d17; --x-ink: #eef9fe; --x-mute: rgba(208, 232, 244, .70); --x-sky: #40c8f5; --x-sky-l: #9fe6ff; --x-ok: #4fdba0; --x-line: rgba(140, 215, 245, .14);
  --px: 0; --py: 0;
  position: relative; overflow: hidden; isolation: isolate; color: var(--x-ink); background: var(--x-bg); padding: clamp(40px, 6vw, 72px) 0 0; }

/* background layers (static paint, composited motion only) */
.x-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.x-bg > span { position: absolute; display: block; }
.x-aurora { border-radius: 50%; will-change: transform; }
.x-aurora.a1 { width: 1100px; height: 760px; top: -380px; inset-inline-start: 50%; margin-inline-start: -150px;
  background: radial-gradient(closest-side, rgba(36, 170, 235, .30), rgba(36, 170, 235, .08) 55%, transparent); }
.x-aurora.a2 { width: 900px; height: 700px; top: -260px; inset-inline-end: 50%; margin-inline-end: -120px;
  background: radial-gradient(closest-side, rgba(70, 110, 255, .20), rgba(70, 110, 255, .05) 55%, transparent); }
.x-rays { inset: -10% 0 30%; opacity: .9;
  background:
    linear-gradient(100deg, transparent 0 33%, rgba(150, 220, 255, .055) 36%, transparent 41%),
    linear-gradient(94deg, transparent 0 46%, rgba(150, 220, 255, .07) 49%, transparent 53%),
    linear-gradient(80deg, transparent 0 58%, rgba(150, 220, 255, .05) 61%, transparent 66%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.x-grid { inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(140, 215, 245, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(140, 215, 245, .07) 1px, transparent 1px);
  background-size: 64px 64px; background-position: center top;
  -webkit-mask-image: radial-gradient(55% 45% at 50% 28%, #000, transparent 80%); mask-image: radial-gradient(55% 45% at 50% 28%, #000, transparent 80%); }
.x-stars { inset: 0; opacity: .55;
  background-image: radial-gradient(1px 1px at 12% 22%, #cdefff 50%, transparent 51%), radial-gradient(1px 1px at 78% 14%, #cdefff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 88% 38%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 22% 48%, #bfe9ff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 64% 30%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 36% 12%, #cdefff 50%, transparent 51%),
    radial-gradient(1px 1px at 6% 62%, #bfe9ff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 94% 66%, #fff 50%, transparent 51%);
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 75%); mask-image: linear-gradient(180deg, #000 40%, transparent 75%); }
@media (prefers-reduced-motion: no-preference) {
  .x-aurora.a1 { animation: x-drift1 22s ease-in-out infinite alternate; }
  .x-aurora.a2 { animation: x-drift2 26s ease-in-out infinite alternate; }
  @keyframes x-drift1 { to { transform: translate3d(-120px, 60px, 0) scale(1.08); } }
  @keyframes x-drift2 { to { transform: translate3d(140px, 40px, 0) scale(1.1); } }
}
/* cursor spotlight */
.x-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 25%), rgba(64, 200, 245, .09), transparent 60%); }

/* text block */
.x-inner { position: relative; z-index: 4; max-width: 1040px; margin: 0 auto; padding: 0 16px; text-align: center; display: grid; justify-items: center; }
.x-pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 500; color: #d7eef8;
  background: linear-gradient(rgba(10, 32, 48, .85), rgba(10, 32, 48, .85)) padding-box, linear-gradient(90deg, rgba(127, 220, 250, .55), rgba(127, 220, 250, .08), rgba(127, 220, 250, .4)) border-box; border: 1px solid transparent; }
.x-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--x-ok); box-shadow: 0 0 0 0 rgba(79, 219, 160, .6); }
.x-title { margin: 22px 0 0; font-family: var(--f-display); font-weight: 600; line-height: 1.12; letter-spacing: -.01em; font-size: clamp(56px, min(8.8vw, 15vh), 138px); }
.x-w { display: inline-block; padding: 0 .04em .06em; }
.x-w1 { background: linear-gradient(180deg, #ffffff 25%, #b9d2df 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-w2 { background: linear-gradient(100deg, #7fdcfa 0%, #40c8f5 30%, #d8f6ff 48%, #40c8f5 62%, #1597d6 100%); background-size: 220% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 12px 42px rgba(64, 200, 245, .32)); }
.x-lead { margin: 20px 0 0; max-width: 60ch; color: var(--x-mute); font-size: clamp(16px, 1.45vw, 19px); line-height: 1.9; }
.x-lead b { color: #fff; font-weight: 600; }
.x-ctas { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 30px; }
.x-btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 26px; border-radius: 14px;
  font-family: var(--f-display); font-weight: 500; font-size: 15.5px; text-decoration: none; transition: transform .25s cubic-bezier(.2, .7, .2, 1), box-shadow .25s, background-color .25s, border-color .25s; }
.x-btn svg { width: 18px; height: 18px; transition: transform .25s; }
.x-btn-main { color: #03121e; background: linear-gradient(180deg, #7fdcfa, #2bb6ec); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 14px 34px -10px rgba(43, 182, 236, .75), 0 0 0 1px rgba(127, 220, 250, .4); }
.x-btn-main::after { content: ""; position: absolute; inset: 0; transform: translateX(120%); background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transition: transform .7s ease; }
.x-btn-main:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .55) inset, 0 20px 44px -12px rgba(43, 182, 236, .9), 0 0 0 1px rgba(127, 220, 250, .6); }
.x-btn-main:hover::after { transform: translateX(-120%); }
.x-btn-main:hover svg { transform: translateX(-4px); }
.x-btn-ghost { color: #eaf7fd; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .16); }
.x-btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(127, 220, 250, .45); transform: translateY(-2px); }
.x-btn:focus-visible { outline: 2px solid var(--x-sky-l); outline-offset: 3px; }

/* stage: full-bleed globe */
.x-stage { position: relative; z-index: 2; height: clamp(460px, 42vw, 660px); margin-top: clamp(-150px, -7vw, -40px); }
.x-globe { position: absolute; inset: 0; width: 100%; height: 100%; display: block; opacity: 0; transform: translateY(40px) scale(.97); transform-origin: 50% 100%;
  transition: opacity 1.4s ease, transform 1.6s cubic-bezier(.2, .7, .2, 1); }
.x-stage.is-ready .x-globe { opacity: 1; transform: none; }
.x-stage::after { content: ""; position: absolute; inset: auto 0 0; height: 140px; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(3, 13, 23, 0), var(--x-bg)); }

.x-cards { position: absolute; inset: 0; z-index: 4; max-width: 1280px; margin: 0 auto; pointer-events: none; }
.x-par { position: absolute; pointer-events: auto; will-change: transform; }
.x-par-a { inset-inline-start: 2%; top: 22%; transform: translate3d(calc(var(--px) * -16px), calc(var(--py) * -10px), 0); }
.x-par-b { inset-inline-end: 3%; top: 30%; transform: translate3d(calc(var(--px) * -24px), calc(var(--py) * -14px), 0); }
.x-par-c { inset-inline-end: 4%; top: 11%; transform: translate3d(calc(var(--px) * -10px), calc(var(--py) * -6px), 0); }

.x-card { position: relative; color: var(--x-ink); border-radius: 20px; border: 1px solid transparent;
  background: linear-gradient(165deg, rgba(15, 42, 63, .94), rgba(5, 19, 32, .96)) padding-box,
              linear-gradient(155deg, rgba(160, 228, 255, .5), rgba(160, 228, 255, .06) 42%, rgba(160, 228, 255, .22)) border-box;
  box-shadow: 0 40px 80px -34px rgba(0, 0, 0, .9), 0 0 50px -20px rgba(64, 200, 245, .25), inset 0 1px 0 rgba(255, 255, 255, .07); }
.x-card-sales { width: 304px; padding: 16px 18px 12px; }
.x-card-top { display: flex; align-items: center; gap: 10px; }
.x-ic { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--x-sky-l); background: rgba(64, 200, 245, .12); border: 1px solid rgba(64, 200, 245, .22); }
.x-ic svg { width: 18px; height: 18px; }
.x-card-h { display: grid; font-family: var(--f-display); font-weight: 500; font-size: 14px; line-height: 1.3; }
.x-card-h small { font-family: var(--font-ar); font-size: 11.5px; font-weight: 400; color: var(--x-mute); }
.x-live { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--x-ok); padding: 3px 9px; border-radius: 99px; background: rgba(79, 219, 160, .1); border: 1px solid rgba(79, 219, 160, .25); }
.x-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--x-ok); }
.x-big { margin-top: 12px; display: flex; align-items: baseline; justify-content: flex-end; gap: 8px; direction: ltr; }
.x-big span { font-family: var(--f-display); font-weight: 600; font-size: 38px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; }
.x-big small { font-size: 13px; color: var(--x-mute); }
.x-delta { text-align: end; font-size: 12px; color: var(--x-mute); margin-top: 2px; }
.x-up { color: var(--x-ok); font-weight: 600; direction: ltr; unicode-bidi: isolate; }
.x-spark { width: 100%; height: 56px; margin-top: 10px; display: block; overflow: visible; }
#x-spark-d { filter: drop-shadow(0 0 6px rgba(64, 200, 245, .9)); }
.x-branches { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.x-branches span { font-size: 11.5px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .05); border: 1px solid var(--x-line); color: #d6eef8; }
.x-branches .x-more { background: rgba(64, 200, 245, .18); border-color: rgba(64, 200, 245, .4); color: var(--x-sky-l); font-weight: 600; }
.x-demo { margin: 10px 0 0; font-size: 10.5px; color: rgba(208, 232, 244, .42); text-align: end; }

.x-card-comply { width: 236px; padding: 22px 18px 20px; text-align: center; }
.x-shield { position: relative; width: 70px; height: 70px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; color: var(--x-ok);
  background: radial-gradient(circle at 50% 30%, rgba(79, 219, 160, .26), rgba(79, 219, 160, .05)); border: 1px solid rgba(79, 219, 160, .35); box-shadow: 0 0 40px -6px rgba(79, 219, 160, .35); }
.x-shield svg { width: 36px; height: 36px; position: relative; }
.x-ring { position: absolute; inset: -1px; border-radius: inherit; border: 1px solid rgba(79, 219, 160, .5); opacity: 0; }
.x-comply-k { margin: 0; font-size: 12px; color: var(--x-mute); letter-spacing: .02em; }
.x-comply-t { margin: 6px 0 0; font-size: 14px; color: #dff3fb; line-height: 1.5; }
.x-comply-t b { display: block; margin-top: 2px; font-family: var(--f-display); font-weight: 600; font-size: 25px; line-height: 1.3;
  background: linear-gradient(90deg, #ffffff, #8fe9c6); -webkit-background-clip: text; background-clip: text; color: transparent; }
.x-comply-s { margin: 8px auto 0; display: inline-block; font-size: 12px; color: var(--x-ok); padding: 4px 12px; border-radius: 99px; background: rgba(79, 219, 160, .08); border: 1px solid rgba(79, 219, 160, .22); }

.x-toast { display: flex; align-items: center; gap: 10px; padding: 9px 14px 9px 12px; border-radius: 14px; min-width: 220px;
  background: linear-gradient(rgba(8, 28, 43, .92), rgba(8, 28, 43, .92)) padding-box, linear-gradient(90deg, rgba(127, 220, 250, .45), rgba(127, 220, 250, .1)) border-box; border: 1px solid transparent;
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .8); }
.x-toast-ic { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; color: #03121e; background: linear-gradient(180deg, #8ff0c9, #3fcf92); }
.x-toast-ic svg { width: 15px; height: 15px; }
.x-toast-b { display: grid; line-height: 1.35; transition: opacity .35s ease, transform .35s ease; }
.x-toast-t { font-family: var(--f-display); font-weight: 500; font-size: 13px; color: #fff; }
.x-toast-s { font-size: 11.5px; color: var(--x-mute); }
.x-toast.is-out .x-toast-b { opacity: 0; transform: translateY(6px); }

/* modules strip */
.x-strip { position: relative; z-index: 5; margin-top: -34px; padding: 0 16px 34px; }
.x-strip ul { list-style: none; margin: 0 auto; padding: 10px; max-width: 1080px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border-radius: 18px;
  background: linear-gradient(rgba(8, 26, 40, .78), rgba(8, 26, 40, .78)) padding-box, linear-gradient(90deg, rgba(127, 220, 250, .08), rgba(127, 220, 250, .4), rgba(127, 220, 250, .08)) border-box; border: 1px solid transparent; }
.x-strip li { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 12px; font-family: var(--f-display); font-weight: 500; font-size: 14.5px; color: rgba(225, 242, 250, .78); transition: background-color .25s, color .25s; }
.x-strip li svg { width: 18px; height: 18px; color: var(--x-sky); }
.x-strip li:hover { background: rgba(64, 200, 245, .1); color: #fff; }

/* entrance + ambient motion */
@media (prefers-reduced-motion: no-preference) {
  .x-in { animation: x-rise 1s cubic-bezier(.2, .7, .2, 1) calc(var(--d, 0) * 110ms + 120ms) both; }
  .x-title .x-in { animation-name: x-rise-blur; animation-duration: 1.2s; }
  .x-title .x-w2.x-in { animation: x-rise-glow 1.2s cubic-bezier(.2, .7, .2, 1) calc(var(--d) * 110ms + 120ms) both, x-sheen 2.4s ease-in-out 1.3s 1 both; }
  @keyframes x-rise-glow { from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(14px) drop-shadow(0 12px 42px rgba(64, 200, 245, 0)); } to { opacity: 1; transform: none; filter: blur(0) drop-shadow(0 12px 42px rgba(64, 200, 245, .32)); } }
  .x-card-sales.x-in { animation: x-rise 1.1s cubic-bezier(.2, .7, .2, 1) .9s both, x-float 9s ease-in-out 2.1s infinite; }
  .x-card-comply.x-in { animation: x-rise 1.1s cubic-bezier(.2, .7, .2, 1) 1.05s both, x-float 10s ease-in-out 2.6s infinite reverse; }
  .x-toast.x-in { animation: x-rise 1.1s cubic-bezier(.2, .7, .2, 1) 1.25s both, x-float 8s ease-in-out 2.4s infinite; }
  .x-pill-dot { animation: x-ping 2s ease-out infinite; }
  .x-ring { animation: x-ring 2.8s ease-out infinite; }
  .x-ring.r2 { animation-delay: 1.4s; }
  .x-live::before { animation: x-blink 1.6s ease-in-out infinite; }
  @keyframes x-rise { from { opacity: 0; transform: translate3d(0, 26px, 0); } to { opacity: 1; transform: none; } }
  @keyframes x-rise-blur { from { opacity: 0; transform: translate3d(0, 34px, 0); filter: blur(14px); } to { opacity: 1; transform: none; filter: blur(0); } }
  @keyframes x-sheen { from { background-position: 100% 0; } to { background-position: 0 0; } }
  @keyframes x-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -12px, 0); } }
  @keyframes x-ping { 0% { box-shadow: 0 0 0 0 rgba(79, 219, 160, .55); } 100% { box-shadow: 0 0 0 10px rgba(79, 219, 160, 0); } }
  @keyframes x-ring { 0% { opacity: .8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.55); } }
  @keyframes x-blink { 50% { opacity: .35; } }
}

@media (max-width: 1180px) {
  .x-par-a { top: 30%; inset-inline-start: 1%; }
  .x-par-b { top: 40%; inset-inline-end: 1%; }
  .x-par-c { inset-inline-end: 2%; top: 14%; }
  .x-card-sales { width: 272px; }
  .x-card-comply { width: 214px; }
}
@media (max-width: 900px) {
  .x-br { display: none; }
  .x-stage { height: auto; margin-top: 0; padding-top: 250px; }
  .x-globe { inset: 0 0 auto; height: 400px; }
  .x-stage::after { display: none; }
  .x-cards { position: relative; inset: auto; display: grid; gap: 12px; padding: 0 16px 14px; max-width: 560px; }
  .x-par { position: relative; inset: auto !important; transform: none !important; }
  .x-par-c { display: none; }
  .x-card-sales, .x-card-comply { width: auto; }
  .x-card-comply { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; align-items: center; text-align: start; padding: 18px; }
  .x-card-comply .x-shield { grid-row: span 3; margin: 0; }
  .x-comply-t b { display: inline; font-size: 20px; }
  .x-comply-s { justify-self: start; margin-top: 6px; }
  .x-card-sales.x-in, .x-card-comply.x-in { animation-name: x-rise; animation-iteration-count: 1; }
  .x-strip { margin-top: 0; }
  .x-strip ul { display: grid; grid-template-columns: repeat(2, 1fr); }
  .x-strip li { font-size: 13.5px; padding: 9px 10px; }
}
@media (max-width: 420px) { .x-title { font-size: 60px; } .x-btn { width: 100%; } }

/* soft hand-off from the dark hero into the white page */
.x-hero + * { position: relative; }
.x-hero::after { content: ""; position: absolute; inset: auto 0 0; height: 1px; z-index: 6; background: linear-gradient(90deg, transparent, rgba(127, 220, 250, .5), transparent); }


/* 3D tilt cards (sections below the hero) */
.fx-tilt { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; transform-style: preserve-3d; position: relative; }
.fx-tilt::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(260px circle at var(--gx, 50%) var(--gy, 50%), rgba(28, 184, 238, .14), transparent 65%); }
.fx-tilt:hover { box-shadow: 0 22px 44px -22px rgba(10, 143, 204, .45); }
.fx-tilt:hover::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .fx-tilt { transform: none !important; } }

.fx-tilt.fx-tilt:hover { transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-3px); }
