/* =========================================================
   XGen Solutions · UX layer (v4.1)
   - light body with dark brand bands (.sec-dark) that use the hero/footer 3-colour gradient
   - cards: calm hover (border + cursor glow), nothing moves, no fill colour
   - smooth scroll helpers (see ux.js)
   Loaded after theme.css, so it can safely refine every other stylesheet.
   ========================================================= */

/* the brand gradient: deep indigo base, violet glow top right, mint glow bottom left.
   One recipe used by the hero, inner-page banners, dark bands, footer, CTA and promo boxes. */
:root{
  --brand-bg:
    radial-gradient(58% 72% at 92% 0%,rgba(139,61,255,.5),transparent 62%),
    radial-gradient(46% 62% at 0% 100%,rgba(61,245,176,.16),transparent 62%),
    linear-gradient(155deg,#1d0a4d 0%,#0f0629 55%,#080318 100%);
}

/* ---------- dark brand bands + dark cards: variables ---------- */
.sec-dark,.prod,.cta-box,.mega-promo{
  --bg:#07040f; --bg-2:#0b0717; --surface:#140b2b; --surface-2:#1b1038; --surface-3:#24164a;
  --line:rgba(190,160,255,.18); --line-2:rgba(190,160,255,.3);
  --text:#f3f0fb; --text-2:#ddd6ef; --muted:#c2bada; --dim:#a39bc2;
  --p-3:#b48cff; --p-4:#d9c6ff;
  --grad-text:linear-gradient(100deg,#d9c6ff 0%,#a66bff 45%,#8ff0cf 100%);
  --mint:#3df5b0; --amber:#ffc35c;
  --shadow:0 20px 60px -20px rgba(0,0,0,.7); --glow:0 10px 40px -10px rgba(105,4,242,.65);
  --ov:255,255,255; --c-bg:7,4,15; --c-bg2:11,7,23; --c-s1:20,11,43; --c-s2:27,16,56; --c-s3:36,22,74;
  --img-bg:#0b0717; --card-grad:linear-gradient(160deg,#1a1036,#0e0820 70%);
  color-scheme:dark; color:var(--text);
}
.sec-dark{
  position:relative; overflow:hidden; isolation:isolate;
  background:var(--brand-bg); border:0!important;
}
.sec-dark::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;opacity:.5;
  background-image:linear-gradient(rgba(190,160,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(190,160,255,.07) 1px,transparent 1px);
  background-size:56px 56px;-webkit-mask-image:radial-gradient(70% 80% at 50% 40%,#000,transparent);mask-image:radial-gradient(70% 80% at 50% 40%,#000,transparent)}
/* a tinted band that sits next to a dark one turns plain white, so the page alternates light and dark */
.sec-plain{background:var(--bg);border:0}
/* dark product cards */
.prod{background:var(--brand-bg);border-color:rgba(190,160,255,.24)}

/* the few light-theme hard-coded colours that must not leak into a dark band or dark card */
html[data-theme] :is(.sec-dark,.prod) :is(h1,h2,h3,h4){color:var(--text)}
html[data-theme] :is(.sec-dark,.prod) :is(h1,h2,h3,h4) a{color:inherit}
html[data-theme] :is(.sec-dark,.prod) .sub,html[data-theme] :is(.sec-dark,.prod) .lead{color:var(--muted)}
html[data-theme] :is(.sec-dark,.prod) .btn-ghost{background:rgba(255,255,255,.07);color:#fff;border-color:rgba(255,255,255,.3)}
html[data-theme] :is(.sec-dark,.prod) .btn-ghost:hover{background:rgba(255,255,255,.16);border-color:#fff}
html[data-theme] :is(.sec-dark,.prod) .btn-ghost :is(.ic,svg,span){color:#fff}
html[data-theme] :is(.sec-dark,.prod) .eyebrow{background:rgba(180,140,255,.14);color:#e6d8ff;border-color:rgba(180,140,255,.4)}
html[data-theme] :is(.sec-dark,.prod) :is(.tag,.prod-cat){background:rgba(180,140,255,.16);color:#e6d8ff}
html[data-theme] .prod .prod-cat{background:none;color:#c4a1ff}
html[data-theme] .sec-dark .case-tags span{background:rgba(20,11,43,.8);color:#fff}
html[data-theme] .sec-dark :is(.stat,.metric,.ben,.why,.step,.deliv){box-shadow:none}
html[data-theme] :is(.sec-dark,.prod) .link-arrow{color:#d9c6ff}
html[data-theme] :is(.sec-dark,.prod) .link-arrow:hover{color:#fff}
html[data-theme] .sec-dark :is(.sc-tab,.caps-tab){background:rgba(255,255,255,.04)}
html[data-theme] .sec-dark :is(.sc-tab,.caps-tab):hover{background:rgba(255,255,255,.09)}
html[data-theme] .sec-dark :is(.sc-tab.on,.caps-tab.on){background:rgba(139,61,255,.22);border-color:rgba(180,140,255,.55)}
html[data-theme] .prod .prod-media{background:radial-gradient(circle at 70% 0%,rgba(139,61,255,.28),transparent 60%)}
/* cards, chips and boxes inside a dark band must read as dark glass, never as white tiles */
html[data-theme] .sec-dark :is(.stat,.metric,.ben,.why,.step,.deliv,.fix,.kpi-item,.plan-step,.rm-step,.chips span,.chips a,.rel-chips a,.case,.post,.job,.learn,.region,.member,.choose,.pillar,.val,.faq-item,.news-box){
  background-color:var(--surface);border-color:var(--line);color:var(--text)}
html[data-theme] .sec-dark :is(.rm-step,.plan-step) :is(h3,p,span){color:inherit}
html[data-theme] .sec-dark .roadmap-line{background:rgba(190,160,255,.22)}
html[data-theme] .sec-dark .rm-when{color:#c4a1ff}

/* ---------- footer: same gradient as the hero ---------- */
html[data-theme] .ftr{background:var(--brand-bg);border-top:0}
html[data-theme] .ftr .logo-d{display:block}
html[data-theme] .ftr .logo-l{display:none}
html[data-theme] .ftr :is(.news input){background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.22)}
html[data-theme] .ftr .news input::placeholder{color:rgba(255,255,255,.55)}
html[data-theme] .ftr .btn-ghost{background:rgba(255,255,255,.08);color:#fff;border-color:rgba(255,255,255,.3)}
html[data-theme] .ftr .socials a{color:#fff}

/* ---------- card hover: border + soft shadow only ----------
   The cursor glow comes from .glow (motion.css). Nothing changes colour, size or position,
   so the text never jumps. */
html[data-theme] :is(.hsvc-card,.svc,.ben,.step,.why,.job,.ccard,.ind,.deliv,.pillar,.val,.case,.post,.prod,.learn,.region,.choose,.fix,.member,.cat-card,.hcard,.reel-item,.svc4,.w4c,.lay4,.w4,.t4,.plan,.work,.pstat){
  transition:border-color .25s ease,box-shadow .25s ease;
}
html[data-theme] :is(.hsvc-card,.svc,.ben,.step,.why,.job,.ccard,.ind,.deliv,.pillar,.val,.case,.post,.prod,.learn,.region,.choose,.fix,.member,.cat-card,.hcard,.reel-item,.svc4,.w4c,.lay4,.w4,.t4,.pstat):hover{
  transform:none;
  border-color:rgba(139,61,255,.55);
  box-shadow:0 22px 48px -28px rgba(105,4,242,.55);
}
html[data-theme] :is(.svc,.ind):hover{background:var(--surface)}
html[data-theme] :is(.hsvc-card,.job):hover :is(.cat-ic){transform:none}
@media (hover:none){html[data-theme] :is(.hsvc-card,.svc,.ben,.step,.why,.job,.ccard,.ind,.deliv,.case,.post,.prod):hover{box-shadow:none}}

/* numbered services, like a proper catalogue */
.hsvc-grid{counter-reset:hs}
.hsvc-card{counter-increment:hs;position:relative}
.hsvc-card::after{content:counter(hs,decimal-leading-zero);position:absolute;top:22px;right:22px;font-family:var(--ff-h);font-weight:700;font-size:.9rem;color:var(--dim);letter-spacing:.04em}

/* section headings: short gradient rule, a small techy touch */
.sec-head .h2::after{content:"";display:block;width:56px;height:4px;border-radius:4px;margin-top:16px;background:linear-gradient(90deg,#6904F2,#b48cff,#3df5b0)}
.sec-head.center .h2::after,.center>.h2::after{margin-left:auto;margin-right:auto}

/* smooth scroll: native smooth is turned off once ux.js takes over */
html.ux-smooth{scroll-behavior:auto!important}
html.ux-lock,html.ux-lock body{overflow:hidden}

@media (max-width:640px){
  .hsvc-card::after{top:18px;right:18px}
  .sec-head .h2::after{width:44px;margin-top:12px}
}
