/* =========================================================
   Ziliox Technology – zilioxtech.com
   Deep navy + indigo, cyan accent for healthcare.
   Self-hosted only: Bootstrap 5, Bootstrap Icons, Inter + Plus Jakarta Sans.
   ========================================================= */
:root {
  /* From the Ziliox logo: royal blue "Z", sky-blue highlight, orange swoosh */
  --zx-primary: #1f56d6;
  --zx-primary-dark: #1641a8;
  --zx-violet: #f7931e;   /* accent (orange); name kept so every rule below still applies */
  --zx-orange: #f7931e;
  --zx-cyan: #22a7e0;
  --zx-navy: #0c2461;      /* deep blue from the logo's Z (headings, dark surfaces) */
  --zx-navy-2: #123a9a;
  --zx-orange-dark: #e2531c; /* the red-orange end of the logo's swoosh */
  --swoosh: linear-gradient(100deg, var(--zx-orange-dark), var(--zx-orange) 60%, #ffb43d);
  --zx-text: #39405a;
  --zx-muted: #6b7290;
  --zx-soft: #f4f6fd;
  --zx-border: #e3e7f5;
  --radius: 1rem;
  --radius-lg: 1.5rem;
  --radius-xl: 2rem;
  --shadow-sm: 0 2px 10px rgba(11, 18, 48, .06);
  --shadow-md: 0 14px 34px rgba(11, 18, 48, .10);
  --shadow-lg: 0 30px 70px rgba(11, 18, 48, .16);
  --grad: linear-gradient(120deg, var(--zx-primary), var(--zx-cyan) 55%, var(--zx-orange));
  --font-head: 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --nav-h: 76px;

  --bs-primary: var(--zx-primary);
  --bs-primary-rgb: 31, 86, 214;
  --bs-link-color: var(--zx-primary);
  --bs-link-color-rgb: 31, 86, 214;
  --bs-link-hover-color: var(--zx-primary-dark);
  --bs-link-hover-color-rgb: 22, 65, 168;
  --bs-body-font-family: var(--font-body);
  --bs-focus-ring-color: rgba(31, 86, 214, .25);
}

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 1rem); }
body { color: var(--zx-text); font-family: var(--font-body); background: #fff; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, h5, h6, .navbar-brand { font-family: var(--font-head); color: var(--zx-navy); letter-spacing: -.01em; }
::selection { background: rgba(31, 86, 214, .18); }
.skip-link { position: absolute; left: 1rem; top: 1rem; z-index: 2000; background: #fff; padding: .5rem 1rem; border-radius: .5rem; }

.form-control, .form-select { border-color: var(--zx-border); padding: .75rem .95rem; border-radius: .8rem; background-color: #fbfcff; }
.form-control:focus, .form-select:focus { border-color: #9dbaf2; background-color: #fff; box-shadow: 0 0 0 .25rem rgba(31, 86, 214, .14); }

/* ---------- Buttons ---------- */
.btn-primary {
  --bs-btn-bg: var(--zx-primary); --bs-btn-border-color: var(--zx-primary);
  --bs-btn-hover-bg: var(--zx-primary-dark); --bs-btn-hover-border-color: var(--zx-primary-dark);
  --bs-btn-active-bg: var(--zx-primary-dark); --bs-btn-active-border-color: var(--zx-primary-dark);
  --bs-btn-focus-shadow-rgb: 67, 83, 255;
}
.btn-outline-primary {
  --bs-btn-color: var(--zx-primary); --bs-btn-border-color: rgba(31, 86, 214, .45);
  --bs-btn-hover-bg: var(--zx-primary); --bs-btn-hover-border-color: var(--zx-primary);
  --bs-btn-active-bg: var(--zx-primary-dark); --bs-btn-focus-shadow-rgb: 67, 83, 255;
}
.btn-pill { border-radius: 999px; padding-left: 1.4rem; padding-right: 1.4rem; font-weight: 600; }
.btn { transition: transform .2s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-glow { color: #fff !important; border: 0; background: var(--swoosh); box-shadow: 0 10px 28px rgba(226, 83, 28, .35), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn-glow:hover { background: var(--swoosh); filter: saturate(1.1) brightness(1.03); box-shadow: 0 16px 38px rgba(226, 83, 28, .45), inset 0 1px 0 rgba(255, 255, 255, .3); }
/* ---------- Navbar: white at the top (blends into the light hero), frosted glass + shadow once scrolled ---------- */
.zx-nav {
  height: var(--nav-h); padding: 0; background: rgba(255, 255, 255, .97);
  transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.zx-nav.scrolled, .zx-nav.menu-open {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
  box-shadow: 0 1px 0 rgba(11, 18, 48, .06), 0 10px 30px rgba(11, 18, 48, .06);
}
.zx-nav .navbar-toggler { border: 0; font-size: 1.8rem; color: var(--zx-navy); padding: 0 .25rem; }
.zx-nav .navbar-toggler:focus { box-shadow: 0 0 0 .2rem rgba(31, 86, 214, .25); }
.zx-nav .nav-link { font-weight: 500; color: var(--zx-text); position: relative; padding-left: .8rem !important; padding-right: .8rem !important; border-radius: 999px; }
.zx-nav .nav-link:hover, .zx-nav .nav-link.active { color: var(--zx-primary) !important; }
.zx-nav .nav-link.active { background: rgba(31, 86, 214, .08); }
.brand-text { font-weight: 800; letter-spacing: .04em; color: var(--zx-navy); font-size: 1.15rem; }
.brand-text span { color: var(--zx-primary); margin-left: .3em; font-weight: 700; }
.zx-nav .brand-logo { height: 54px; width: auto; display: block; }
@media (max-width: 575.98px) { .zx-nav .brand-logo { height: 40px; width: auto; } }
.footer-logo { display: inline-block; background: #fff; border-radius: 14px; padding: 8px 14px; margin-bottom: 1rem; }
.footer-logo img { height: 48px; width: auto; display: block; }
.brand-tagline { font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8790c0; }
@media (max-width: 991.98px) {
  .zx-nav .navbar-collapse {
    background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
    padding: .75rem; margin-top: .5rem;
  }
}
.scroll-progress { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(var(--progress, 0)); }
.brand-mark {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 11px; color: #fff;
  background: linear-gradient(135deg, var(--zx-primary), var(--zx-cyan));
  box-shadow: 0 6px 16px rgba(31, 86, 214, .32);
}
.brand-mark svg { width: 22px; height: 22px; }
.brand-logo { height: 44px; width: auto; display: block; }

/* ---------- Sections ---------- */
.section { padding-top: 4rem; padding-bottom: 4rem; }
@media (max-width: 767.98px) { .section { padding-top: 3rem; padding-bottom: 3rem; } }
/* Two sections with the same background back to back: don't add both paddings */
.section:not(.bg-soft) + .section:not(.bg-soft), .bg-soft + .bg-soft, .spotlight + .section:not(.bg-soft) { padding-top: 0; }
.hero + .section { padding-top: 2.75rem; }  /* the light hero already ends in white space */
.bg-soft { background: var(--zx-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 2.25rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem; font-size: .76rem; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--zx-primary); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; opacity: .6; }
.section-title { font-weight: 800; font-size: clamp(1.75rem, 3.4vw, 2.6rem); line-height: 1.15; }
.section-sub { color: var(--zx-muted); font-size: 1.08rem; margin-bottom: 0; margin-top: .5rem; }
.group-head { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.25rem; }
.group-line { flex: 1; height: 1px; background: var(--zx-border); }
.group-label { color: var(--zx-muted); letter-spacing: .12em; }
.group-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--zx-primary); flex: none; }
.group-dot.dot-teal { background: var(--zx-cyan); }
.narrow { max-width: 880px; }
.prose { font-size: 1.07rem; line-height: 1.8; }

/* ---------- Hero: centred, light, brand-led ----------
   Centred headline with a rotating word (websites / apps / stores / software),
   Split layout: copy on the left (headline with a rotating word, description,
   buttons, capability pills), laptop + tablet + phone showcase on the right.
   The logo's blue/orange "speed slash" streaks and a faded Z carry the brand. */
.hero, .page-hero { position: relative; overflow: hidden; isolation: isolate; background: #fff; }
.hero {
  padding: calc(var(--nav-h) + 1.75rem) 0 2.5rem;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(31, 86, 214, .09), transparent 70%),
    radial-gradient(600px 360px at 100% 30%, rgba(247, 147, 30, .09), transparent 65%),
    #fff;
}
.hero-watermark { position: absolute; width: 460px; height: 460px; right: 3%; top: 12%; opacity: .07; z-index: -1; pointer-events: none; }
.streaks { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.streaks span {
  position: absolute; right: -8%; height: 18px; border-radius: 999px; transform: skewX(-38deg);
  animation: streak-in 1.2s cubic-bezier(.2, .7, .2, 1) both;
}
.streaks span:nth-child(1) { top: 16%; width: 42%; background: linear-gradient(90deg, transparent, rgba(31, 86, 214, .16)); }
.streaks span:nth-child(2) { top: 23%; width: 30%; height: 10px; background: linear-gradient(90deg, transparent, rgba(247, 147, 30, .30)); animation-delay: .1s; }
.streaks span:nth-child(3) { top: 74%; width: 48%; height: 26px; background: linear-gradient(90deg, transparent, rgba(34, 167, 224, .14)); animation-delay: .2s; }
.streaks span:nth-child(4) { top: 82%; width: 26%; height: 8px; background: linear-gradient(90deg, transparent, rgba(247, 147, 30, .35)); animation-delay: .3s; }
.streaks span:nth-child(5) { top: 14%; width: 14%; height: 6px; right: 4%; background: rgba(31, 86, 214, .25); animation-delay: .4s; }
@keyframes streak-in { from { opacity: 0; translate: 120px 0; } to { opacity: 1; translate: 0 0; } }

.hero-copy { position: relative; }
.hero-title {
  color: var(--zx-navy); font-weight: 800; line-height: 1.1; letter-spacing: -.035em; margin: 0;
  font-size: clamp(2.3rem, 4.4vw, 3.55rem);
}
/* Rotating word: orange, on a slanted highlighter bar like the logo's swoosh */
/* own line, so the headline never re-wraps (or jumps) as the word changes length */
.rotator { position: relative; display: block; width: fit-content; color: #e2731a; padding: 0 .12em; margin-left: -.12em; }
.rotator::before {
  content: ""; position: absolute; left: 0; right: 0; bottom: .1em; height: .36em; z-index: -1;
  border-radius: .12em; background: rgba(247, 147, 30, .22); transform: skewX(-24deg);
}
.rotator-word { display: inline-block; transition: opacity .3s ease, transform .3s ease; }
.hero-lead { font-size: 1.15rem; max-width: 34rem; margin: 1.4rem 0 0; color: var(--zx-muted); line-height: 1.65; }
.cap-pills { display: flex; flex-wrap: wrap; gap: .45rem; margin: 2rem 0 0; max-width: 36rem; }
.cap-pills li {
  display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border-radius: 999px; white-space: nowrap;
  background: #fff; border: 1px solid var(--zx-border); font-size: .84rem; font-weight: 600; color: var(--zx-navy);
  box-shadow: var(--shadow-sm); transition: transform .2s ease, border-color .2s ease;
}
.cap-pills li:hover { transform: translateY(-2px); border-color: #a9c3f5; }
.cap-pills i { color: var(--zx-primary); }
.cap-pills li:nth-child(even) i { color: #e2731a; }
/* Entrance animation: plays once, always ends visible (no JS needed) */
.hero-copy > *, .showcase { animation: rise .8s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > :nth-child(2) { animation-delay: .08s; } .hero-copy > :nth-child(3) { animation-delay: .16s; }
.hero-copy > :nth-child(4) { animation-delay: .24s; } .showcase { animation-delay: .25s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Laptop + tablet + phone showcase (right column) */
.showcase { position: relative; max-width: 640px; margin: 0 auto; padding: 2rem 0 .5rem; }
@media (min-width: 992px) { .showcase { margin: 0 0 0 auto; } }
.laptop { width: 86%; margin: 0 auto; }
.laptop-screen {
  border: 12px solid #16213f; border-bottom-width: 16px; border-radius: 18px 18px 0 0; background: #fff;
  aspect-ratio: 16 / 9.4; overflow: hidden; box-shadow: 0 30px 70px rgba(12, 36, 97, .18);
}
.laptop-base { position: relative; height: 16px; width: 116%; margin-left: -8%; border-radius: 0 0 18px 18px; background: linear-gradient(180deg, #dfe4ef, #b8c1d6); }
.laptop-base::before { content: ""; position: absolute; left: 50%; top: 0; width: 18%; height: 6px; transform: translateX(-50%); border-radius: 0 0 8px 8px; background: #a9b2c8; }
.site { height: 100%; display: flex; flex-direction: column; gap: 4%; padding: 3% 4%; text-align: left; }
.site-nav { display: flex; align-items: center; gap: 4%; }
.site-logo { width: 9%; height: 14px; border-radius: 4px; background: linear-gradient(90deg, var(--zx-primary), var(--zx-orange)); }
.site-nav i { width: 7%; height: 6px; border-radius: 3px; background: #e3e8f4; }
.site-nav i:first-of-type { margin-left: auto; }
.site-nav b { font-size: .62rem; color: #fff; background: var(--zx-primary); padding: .2rem .6rem; border-radius: 999px; }
.site-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 6%; align-items: center; flex: 1; }
.site-hero .l { display: block; height: 12px; border-radius: 4px; background: var(--zx-navy); margin-bottom: 8px; }
.site-hero .l1 { width: 90%; } .site-hero .l2 { width: 70%; background: #e2731a; } .site-hero .l3 { width: 80%; height: 7px; background: #dbe2f1; margin-top: 12px; }
.site-btn { display: inline-block; margin-top: 10px; font-size: .62rem; font-weight: 700; color: #fff; background: var(--swoosh); padding: .3rem .8rem; border-radius: 999px; }
.site-img { height: 100%; min-height: 90px; border-radius: 12px; background: linear-gradient(135deg, rgba(31, 86, 214, .9), rgba(34, 167, 224, .85) 55%, rgba(247, 147, 30, .9)); position: relative; overflow: hidden; }
.site-img::after { content: ""; position: absolute; width: 60%; height: 18%; right: -10%; top: 30%; border-radius: 999px; background: rgba(255, 255, 255, .35); transform: skewX(-30deg); }
.site-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4%; }
.site-cards span { height: 46px; border-radius: 10px; background: var(--zx-soft); border: 1px solid var(--zx-border); }
.phone {
  position: absolute; right: 0; bottom: 0; width: 24%; min-width: 96px; aspect-ratio: 9 / 18.5; padding: 9px;
  border-radius: 30px; background: #16213f; box-shadow: 0 30px 60px rgba(12, 36, 97, .3);
}
.app { position: relative; height: 100%; border-radius: 22px; background: #fff; overflow: hidden; padding: 14px 10px; text-align: left; }
.app-head { display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.app-head span { width: 22px; height: 22px; border-radius: 7px; background: var(--swoosh); }
.app-head b { font-size: .72rem; color: var(--zx-navy); }
.app ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; }
.app li { display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 10px; background: var(--zx-soft); }
.app li i { width: 18px; height: 18px; border-radius: 6px; background: #d8e2f8; flex: none; }
.app li .l { height: 5px; flex: 1; border-radius: 3px; background: #dbe2f1; }
.app li em { font-style: normal; font-size: .5rem; font-weight: 700; padding: .1rem .35rem; border-radius: 999px; background: #e9edf7; color: var(--zx-muted); white-space: nowrap; }
.app li em.ok { background: rgba(61, 220, 151, .18); color: #1d9e69; }
.app li em.now { background: rgba(247, 147, 30, .18); color: #c9620d; }
.app-fab { position: absolute; right: 12px; bottom: 44px; width: 30px; height: 30px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-size: .8rem; background: var(--swoosh); box-shadow: 0 6px 14px rgba(226, 83, 28, .35); }
.app-tabs { position: absolute; left: 0; right: 0; bottom: 0; height: 32px; display: flex; justify-content: space-around; align-items: center; border-top: 1px solid var(--zx-border); background: #fff; }
.app-tabs i { width: 14px; height: 14px; border-radius: 4px; background: #dbe2f1; }
.app-tabs i:first-child { background: var(--zx-primary); }
.badge-float {
  position: absolute; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .9rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--zx-border); box-shadow: var(--shadow-md); font-size: .82rem; font-weight: 700; color: var(--zx-navy);
  animation: bob 6s ease-in-out infinite;
}
.badge-float i { font-size: 1rem; }
.bf-1 { left: 0; top: 8%; } .bf-1 i { color: #1d9e69; }
.bf-2 { right: 0; top: 0; animation-delay: -3s; } .bf-2 i { color: #e2731a; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@media (max-width: 767.98px) {
  .phone { padding: 7px; border-radius: 22px; }
  .app { border-radius: 16px; padding: 10px 7px; }
  .bf-2 { display: none; }
  .laptop { width: 92%; }
  .site-nav b, .site-btn { font-size: .5rem; }
}
@media (max-width: 575.98px) {
  .hero-watermark { width: 300px; height: 300px; right: -60px; top: auto; bottom: 4%; }
  .cap-pills li { font-size: .8rem; padding: .4rem .75rem; }
  .site-cards span { height: 26px; }
  .phone { width: 96px; }
  .app li em, .app-head b { display: none; }
}

/* Inner page header: same light, streaked style */
.page-hero {
  padding: calc(var(--nav-h) + 1.5rem) 0 2.25rem; border-bottom: 1px solid var(--zx-border);
  background: radial-gradient(600px 300px at 100% 0%, rgba(247, 147, 30, .09), transparent 65%), linear-gradient(180deg, #fff, var(--zx-soft));
}
.streaks-sm span { height: 12px; }
.streaks-sm span:nth-child(1) { top: 22%; } .streaks-sm span:nth-child(3) { top: 70%; height: 16px; } .streaks-sm span:nth-child(4) { top: 80%; }
.page-title { color: var(--zx-navy); font-weight: 800; font-size: clamp(2rem, 4.4vw, 3.1rem); letter-spacing: -.025em; margin-bottom: .6rem; }
.page-lead { font-size: 1.12rem; max-width: 44rem; margin-bottom: 0; color: var(--zx-muted); }

.pill { margin-left: auto; font-size: .7rem; font-weight: 600; padding: .22rem .65rem; border-radius: 999px; white-space: nowrap; }
.pill.ok { background: rgba(61, 220, 151, .16); color: #1d9e69; }
.pill.now { background: rgba(34, 167, 224, .16); color: #0d8fb5; }

/* ---------- Stats ---------- */
.stats-wrap { margin-top: -2.5rem; position: relative; z-index: 2; }
.stats-card { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1rem; background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-md); padding: 1.75rem; }
.stat { text-align: center; }
.stat-value { font-family: var(--font-head); font-weight: 800; font-size: 2.1rem; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-label { color: var(--zx-muted); font-size: .9rem; }

/* ---------- Cards ---------- */
.zx-card {
  display: block; background: #fff; border: 1px solid var(--zx-border); border-radius: var(--radius-lg);
  padding: 1.75rem; color: inherit; text-decoration: none;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
a.zx-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bcd0f7; color: inherit; }
.icon-tile {
  display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px; flex: none;
  border-radius: 14px; font-size: 1.4rem; color: var(--zx-primary); background: rgba(31, 86, 214, .1);
}
.icon-tile.tile-teal { color: #0a8ea6; background: rgba(18, 184, 214, .13); }
.icon-tile.tile-lg { width: 64px; height: 64px; font-size: 1.8rem; border-radius: 18px; }
.card-link { font-weight: 600; color: var(--zx-primary); font-size: .92rem; white-space: nowrap; }
.card-link i { transition: transform .2s ease; display: inline-block; }
a:hover .card-link i { transform: translateX(4px); }
.service-card { display: flex; flex-direction: column; position: relative; overflow: hidden; }
.service-card p { flex-grow: 1; }
.service-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.service-card:hover::after { transform: scaleX(1); }
.product-card { display: flex; flex-direction: column; padding: 2rem; box-shadow: var(--shadow-sm); }
.product-logo { display: block; height: 56px; width: auto; max-width: 240px; object-fit: contain; object-position: left center; }
.badge-formerly {
  display: inline-block; font-size: .75rem; font-weight: 600; color: var(--zx-muted); vertical-align: middle;
  background: var(--zx-soft); border: 1px solid var(--zx-border); border-radius: 999px; padding: .15rem .65rem;
}
.check-list { list-style: none; padding: 0; display: grid; gap: .55rem; }
.check-list li { position: relative; padding-left: 1.8rem; }
.check-list li::before { content: "\F26E"; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: 0; color: var(--zx-primary); font-weight: 700; }
.check-list.two-col { grid-template-columns: 1fr 1fr; column-gap: 1.5rem; }
@media (max-width: 575.98px) { .check-list.two-col { grid-template-columns: 1fr; } }
.check-list-lg li { font-size: 1.05rem; padding: .75rem .9rem .75rem 2.6rem; background: var(--zx-soft); border-radius: .8rem; }
.check-list-lg li::before { left: .9rem; top: .75rem; }
.feature-chip { display: flex; gap: .6rem; align-items: flex-start; background: var(--zx-soft); border-radius: .8rem; padding: .8rem 1rem; height: 100%; }
.feature-chip i { color: var(--zx-primary); font-size: 1.1rem; }
.side-cta { top: calc(var(--nav-h) + 1.5rem); box-shadow: var(--shadow-sm); }
.mini-points li { display: flex; align-items: center; gap: .6rem; font-size: .9rem; color: var(--zx-muted); padding: .3rem 0; }
.mini-points i { color: var(--zx-primary); }
.fact-list li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 0; border-bottom: 1px dashed var(--zx-border); }
.fact-list li:last-child { border-bottom: 0; }
.fact-list span { color: var(--zx-muted); }
.fact-list b { color: var(--zx-navy); text-align: right; }
.side-cta .fact-list { margin-bottom: 1.25rem; }
.fact-card { background: linear-gradient(180deg, #fff, var(--zx-soft)); }
.value-card { height: 100%; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--zx-border); transition: transform .3s ease, box-shadow .3s ease; }
.value-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ---------- Bento grids ---------- */
.bento { display: grid; gap: 1.25rem; }
.bento-tile {
  position: relative; display: block; padding: 1.6rem; border-radius: var(--radius-lg); background: #fff;
  border: 1px solid var(--zx-border); color: var(--zx-text); text-decoration: none; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.bento-tile p { color: var(--zx-muted); font-size: .94rem; }
.bento-tile > .bi:first-child { font-size: 1.6rem; color: var(--zx-primary); display: block; margin-bottom: .9rem; }
a.bento-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bcd0f7; color: var(--zx-text); }
.tile-arrow { position: absolute; top: 1.4rem; right: 1.4rem; color: var(--zx-muted); transition: transform .25s ease, color .25s ease; }
a.bento-tile:hover .tile-arrow { color: var(--zx-primary); transform: translate(3px, -3px); }
.bento-services { grid-template-columns: repeat(4, 1fr); grid-auto-flow: dense; }
.bento-services .tile-health { grid-column: 3 / span 2; grid-row: span 2; }
.tile-cta { grid-column: span var(--cta-span, 1); border-style: dashed; border-color: #f3c08a; background: linear-gradient(135deg, #fff, rgba(247, 147, 30, .07)); }
.tile-cta .icon-tile { background: rgba(247, 147, 30, .14); color: #d9680f; }
@media (max-width: 991.98px) {
  .bento-services { grid-template-columns: 1fr 1fr; }
  .bento-services .tile-health { grid-column: span 2; grid-row: auto; order: 1; }  /* general services first on small screens */
  .bento-services .tile-cta { order: 2; grid-column: span 1; }
  .bento-services .tile-cta.cta-wide { grid-column: span 2; }  /* even number of tiles: fill the row */
}
@media (max-width: 575.98px) { .bento-services .tile-cta, .bento-services .tile-cta.cta-wide { grid-column: auto; } }
@media (max-width: 575.98px) { .bento-services { grid-template-columns: 1fr; } .bento-services .tile-health { grid-column: auto; } }
.tile-dark {
  color: #c9cfee; border: 0; padding: 2.25rem;
  background: radial-gradient(600px 300px at 100% 0%, rgba(247, 147, 30, .28), transparent 60%), radial-gradient(500px 300px at 0% 100%, rgba(34, 167, 224, .3), transparent 60%), linear-gradient(150deg, var(--zx-navy), var(--zx-navy-2));
}
.tile-dark p { color: #b5bce3; font-size: 1rem; }
.tile-kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fe6f5; }
.link-list { margin: 1.5rem 0 0; display: grid; gap: .6rem; }
.link-list a {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 1rem;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); color: #fff; text-decoration: none;
  transition: background .25s ease, transform .25s ease;
}
.link-list a:hover { background: rgba(255, 255, 255, .12); transform: translateX(4px); }
.link-list .bi:first-child { font-size: 1.3rem; color: #5fdcf2; }
.link-list b { display: block; font-weight: 600; font-size: .95rem; }
.link-list small { color: #9aa3d0; font-size: .8rem; }
.bento-why { grid-template-columns: repeat(3, 1fr); }
.bento-why .tile-feature { grid-column: span 2; background: linear-gradient(135deg, rgba(31, 86, 214, .08), rgba(34, 167, 224, .07) 60%, rgba(247, 147, 30, .09)); border-color: #d6e0f7; }
.bento-why .tile-feature p { font-size: 1.02rem; max-width: 36rem; }
.bento-why .tile-accent {
  grid-column: 1 / -1; display: flex; align-items: center; gap: 1.25rem; border: 0;
  background: radial-gradient(500px 200px at 100% 0%, rgba(247, 147, 30, .35), transparent 60%), linear-gradient(120deg, var(--zx-navy), var(--zx-navy-2));
}
.bento-why .tile-accent > .bi:first-child { margin: 0; font-size: 2rem; }
.bento-why .tile-accent h3 { margin-bottom: .2rem; }
.bento-why .tile-accent p { margin: 0; }
@media (max-width: 575.98px) { .bento-why .tile-accent { flex-direction: column; align-items: flex-start; } }
.bento-why .tile-accent h3 { color: #fff; } .bento-why .tile-accent p { color: #b5bce3; } .bento-why .tile-accent > .bi:first-child { color: #5fdcf2; }
@media (max-width: 991.98px) { .bento-why { grid-template-columns: 1fr 1fr; } }
@media (max-width: 575.98px) { .bento-why { grid-template-columns: 1fr; } .bento-why .tile-feature { grid-column: auto; } }

/* ---------- Product spotlight ---------- */
.spotlight { padding: .5rem 0 4rem; }
.spotlight-card {
  position: relative; padding: 2.5rem; border-radius: var(--radius-xl); overflow: hidden;
  background: linear-gradient(135deg, #f3f5ff, #eef9fc); border: 1px solid #dfe5fb;
}
.spotlight-card::before { content: ""; position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(247, 147, 30, .16), transparent 70%); }
.spotlight-logo { display: block; height: 64px; width: auto; max-width: 260px; margin: .25rem 0 1rem; }
.spotlight-tagline { font-family: var(--font-head); font-weight: 700; font-size: 1.25rem; color: var(--zx-navy); }
@media (max-width: 767.98px) { .spotlight-card { padding: 1.75rem; } }
.app-mock { position: relative; display: flex; background: #fff; border-radius: 1.25rem; box-shadow: var(--shadow-lg); overflow: hidden; min-height: 330px; transform: perspective(1400px) rotateY(-5deg); }
.app-mock aside { display: flex; flex-direction: column; align-items: center; gap: .9rem; padding: 1rem .7rem; background: var(--zx-navy); }
.app-mock aside span { width: 34px; height: 34px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; color: #8790c0; }
.app-mock aside span.on { background: rgba(255, 255, 255, .1); color: #fff; }
.app-mock aside img { border-radius: 7px; background: #fff; padding: 2px; margin-bottom: .4rem; }
.app-main { flex: 1; padding: 1.1rem; display: flex; flex-direction: column; gap: .9rem; }
.app-top { display: flex; justify-content: space-between; align-items: center; color: var(--zx-navy); font-size: .9rem; }
.app-search { width: 30px; height: 30px; border-radius: 50%; background: var(--zx-soft); display: inline-flex; align-items: center; justify-content: center; color: var(--zx-muted); font-size: .8rem; }
.app-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; }
.app-cards div { background: var(--zx-soft); border-radius: .8rem; padding: .7rem; }
.app-cards small { display: block; font-size: .68rem; color: var(--zx-muted); margin-bottom: .5rem; }
.ph { display: block; height: 8px; border-radius: 4px; background: linear-gradient(90deg, var(--zx-primary), var(--zx-cyan)); opacity: .35; }
.ph.w-60 { width: 60%; } .ph.w-40 { width: 40%; } .ph.w-50 { width: 50%; }
.app-chart { display: flex; align-items: flex-end; gap: .5rem; height: 90px; padding: .6rem; border-radius: .8rem; background: var(--zx-soft); }
.app-chart span { flex: 1; height: var(--h); border-radius: 6px 6px 3px 3px; background: linear-gradient(180deg, var(--zx-cyan), var(--zx-primary)); opacity: .75; }
.app-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.app-rows li { display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border: 1px solid var(--zx-border); border-radius: .7rem; }
.app-rows .av { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, #c7cdfd, #b4ecf6); flex: none; }
.app-rows .ph { opacity: .2; }
@media (max-width: 991.98px) { .app-mock { transform: none; } }

/* ---------- Industries ---------- */
.industry-tile {
  display: flex; gap: 1rem; align-items: flex-start; height: 100%; padding: 1.4rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--zx-border); transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.industry-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #bcd0f7; }
.industry-tile p { color: var(--zx-muted); font-size: .9rem; }
.industry-icon {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.35rem; color: #fff; background: linear-gradient(135deg, var(--zx-primary), var(--zx-cyan)); box-shadow: 0 8px 20px rgba(31, 86, 214, .25);
}
.col-sm-6:nth-child(even) .industry-icon { background: var(--swoosh); box-shadow: 0 8px 20px rgba(226, 83, 28, .25); }

/* ---------- Process timeline ---------- */
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; margin: 0; }
.timeline::before { content: ""; position: absolute; top: 24px; left: 12%; right: 12%; height: 2px; background: linear-gradient(90deg, var(--zx-primary), var(--zx-violet), var(--zx-cyan)); opacity: .35; }
.timeline li { position: relative; text-align: center; padding: 0 .5rem; }
.timeline p { color: var(--zx-muted); font-size: .94rem; margin: 0; }
.t-dot {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 50px; height: 50px;
  border-radius: 50%; margin-bottom: 1.1rem; font-family: var(--font-head); font-weight: 800; color: #fff;
  background: var(--grad); box-shadow: 0 0 0 8px #fff, 0 10px 24px rgba(31, 86, 214, .3);
}
.bg-soft .t-dot { box-shadow: 0 0 0 8px var(--zx-soft), 0 10px 24px rgba(31, 86, 214, .3); }
@media (max-width: 991.98px) {
  .timeline { grid-template-columns: 1fr; gap: 1.75rem; max-width: 560px; margin: 0 auto; }
  .timeline::before { top: 0; bottom: 0; left: 24px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--zx-primary), var(--zx-cyan)); }
  .timeline li { text-align: left; padding-left: 4.5rem; }
  .t-dot { position: absolute; left: 0; top: 0; }
}

/* ---------- Engagement models ---------- */
.engage-card { position: relative; padding: 2rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--zx-border); transition: transform .3s ease, box-shadow .3s ease; }
.engage-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.engage-popular { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; box-shadow: var(--shadow-md); }
.popular-tag { position: absolute; top: 1.25rem; right: 1.25rem; font-size: .72rem; font-weight: 700; color: #fff; background: var(--zx-orange); padding: .25rem .7rem; border-radius: 999px; }

/* ---------- FAQ ---------- */
.zx-accordion .accordion-item { border: 1px solid var(--zx-border); border-radius: var(--radius) !important; overflow: hidden; margin-bottom: .75rem; background: #fff; }
.zx-accordion .accordion-button { font-weight: 600; color: var(--zx-navy); padding: 1.15rem 1.3rem; background: #fff; }
.zx-accordion .accordion-button:not(.collapsed) { background: rgba(31, 86, 214, .05); color: var(--zx-primary); box-shadow: none; }
.zx-accordion .accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(31, 86, 214, .18); }
.zx-accordion .accordion-body { color: var(--zx-muted); line-height: 1.7; }

/* ---------- Careers ---------- */
.job-card { display: flex; align-items: center; gap: 1.5rem; }
.job-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; color: var(--zx-muted); font-size: .88rem; }
.job-meta i { margin-right: .35rem; color: var(--zx-primary); }
@media (max-width: 575.98px) { .job-card { flex-direction: column; align-items: flex-start; gap: .75rem; } }
.hiring-strip {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .75rem;
  padding: 1.1rem 1.5rem; border-radius: var(--radius); background: rgba(31, 86, 214, .07);
  color: var(--zx-navy); font-weight: 600; text-decoration: none;
}
.hiring-strip:hover { background: rgba(31, 86, 214, .12); color: var(--zx-navy); }

/* ---------- Contact ---------- */
.contact-tile { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; }
.contact-tile small { display: block; color: var(--zx-muted); font-size: .8rem; }
.contact-tile b { color: var(--zx-navy); word-break: break-word; }

/* ---------- Toast messages ---------- */
.toast-stack { position: fixed; right: 1rem; bottom: 1rem; z-index: 1090; display: grid; gap: .6rem; max-width: min(420px, calc(100vw - 2rem)); }
.zx-toast {
  display: flex; align-items: center; gap: .75rem; padding: .95rem 1rem .95rem 1.1rem; border-radius: 1rem;
  background: var(--zx-navy); color: #fff; box-shadow: var(--shadow-lg); animation: rise .45s ease both;
}
.zx-toast > .bi { font-size: 1.25rem; color: #6ff0b8; }
.zx-toast.is-error > .bi { color: #ff8a8a; }
.zx-toast span { flex: 1; font-size: .94rem; }
.zx-toast .btn-close { opacity: .6; }

/* ---------- CTA band & footer ---------- */
.cta-band {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1.5rem;
  margin-top: .5rem; padding: 2.25rem 2.5rem; border-radius: var(--radius-xl); color: #fff; overflow: hidden;
  background: linear-gradient(110deg, var(--zx-navy-2), var(--zx-primary) 55%, #2f8fe0);
  box-shadow: 0 30px 60px rgba(31, 86, 214, .3); position: relative; z-index: 2; margin-bottom: -3.5rem;
}
.cta-band > *:not(.cta-shine) { position: relative; z-index: 1; }
/* The logo's orange swoosh as two slanted bars on the right (no muddy blue-to-orange blend) */
.cta-band::before, .cta-band::after { content: ""; position: absolute; top: -10%; bottom: -10%; transform: skewX(-28deg); }
.cta-band::before { right: -6%; width: 26%; background: var(--swoosh); }
.cta-band::after { right: 21%; width: 3%; background: var(--zx-orange); opacity: .85; }
@media (max-width: 767.98px) { .cta-band::before { width: 34%; right: -18%; } .cta-band::after { display: none; } }
.cta-band h2 { color: #fff; }
.cta-band .btn-light { color: var(--zx-primary); }
.zx-footer { background: radial-gradient(700px 300px at 100% 100%, rgba(247, 147, 30, .14), transparent 60%), linear-gradient(160deg, var(--zx-navy), #0a1d4f); color: #a9b6dc; padding: 6rem 0 1.75rem; }
.zx-footer h6 { color: #fff; font-weight: 700; margin-bottom: 1rem; }
.zx-footer a { color: #c9cfee; text-decoration: none; }
.zx-footer a:hover { color: #fff; }
.zx-footer ul li { margin-bottom: .45rem; }
.zx-footer hr { border-color: rgba(255, 255, 255, .12); margin: 2rem 0 1.25rem; opacity: 1; }
.contact-list li { display: flex; gap: .6rem; }
.contact-list i { color: var(--zx-cyan); }
.social-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff !important; transition: background .2s ease;
}
.social-btn:hover { background: var(--zx-primary); }
.social-btn-light { background: var(--zx-soft); color: var(--zx-primary) !important; }
.social-btn-light:hover { color: #fff !important; }
main + .zx-footer { padding-top: 3rem; margin-top: 2.5rem; }  /* pages without the CTA band */

/* ---------- Reveal on scroll (below the fold only). main.js adds .reveal-on, so without JS everything simply shows. ---------- */
.reveal-on .reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .7, .2, 1); transition-delay: var(--delay, 0s); }
.reveal-on .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .hero-copy > *, .showcase, .zx-toast, .streaks span, .badge-float, .rotator-word { animation: none; }
  .btn:hover, a.zx-card:hover, a.bento-tile:hover, .industry-tile:hover, .value-card:hover, .engage-card:hover { transform: none; }
}

/* ---------- Hero showcase: tablet (left), next to the laptop and phone ---------- */
.tablet {
  position: absolute; left: 0; bottom: 0; width: 29%; min-width: 104px; aspect-ratio: 3 / 4; padding: 10px;
  border-radius: 22px; background: #16213f; box-shadow: 0 30px 60px rgba(12, 36, 97, .3); z-index: 2;
}
.dash { height: 100%; border-radius: 14px; background: #fff; padding: 12px; text-align: left; display: flex; flex-direction: column; gap: 9px; overflow: hidden; }
.dash-head { display: flex; justify-content: space-between; align-items: center; }
.dash-head b { font-size: .72rem; color: var(--zx-navy); }
.dash-head span { font-size: .55rem; font-weight: 700; color: #1d9e69; background: rgba(61, 220, 151, .18); padding: .1rem .45rem; border-radius: 999px; }
.dash-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dash-kpis div { background: var(--zx-soft); border-radius: 8px; padding: 6px; }
.dash-kpis small { display: block; font-size: .5rem; color: var(--zx-muted); margin-bottom: 4px; }
.dash .l { display: block; height: 5px; width: var(--w, 60%); border-radius: 3px; background: linear-gradient(90deg, var(--zx-primary), var(--zx-cyan)); opacity: .5; }
.dash-chart { flex: 1; display: flex; align-items: flex-end; gap: 5px; padding: 6px; border-radius: 8px; background: var(--zx-soft); min-height: 50px; }
.dash-chart span { flex: 1; height: var(--h); border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, var(--zx-orange), var(--zx-orange-dark)); opacity: .85; }
.dash-chart span:nth-child(even) { background: linear-gradient(180deg, var(--zx-cyan), var(--zx-primary)); }
.dash-rows { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; }
.dash-rows li { display: flex; align-items: center; gap: 5px; padding: 5px; border-radius: 7px; border: 1px solid var(--zx-border); }
.dash-rows i { width: 14px; height: 14px; border-radius: 50%; background: #dbe4f9; flex: none; }
.dash-rows .l { flex: 1; opacity: .25; }
.dash-rows em { font-style: normal; font-size: .5rem; font-weight: 700; padding: .05rem .35rem; border-radius: 999px; background: #e9edf7; color: var(--zx-muted); }
.dash-rows em.ok { background: rgba(61, 220, 151, .18); color: #1d9e69; }
@media (max-width: 767.98px) {
  .tablet { padding: 7px; border-radius: 16px; }
  .dash { padding: 7px; gap: 5px; border-radius: 10px; }
  .dash-rows, .dash-kpis small { display: none; }
}
@media (max-width: 575.98px) { .dash-head span { display: none; } }

/* ---------- Privacy page ---------- */
.legal h2 { margin-top: 2rem; color: var(--zx-navy); }
.legal ul { padding-left: 1.2rem; }

/* ---------- Footer bottom, WhatsApp button, back-to-top ---------- */
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; }
.icon-tile.tile-wa { background: rgba(37, 211, 102, .14); color: #1a9e4f; }
.wa-float, .to-top {
  position: fixed; right: 1.25rem; z-index: 1080; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; border: 0; box-shadow: 0 12px 28px rgba(12, 36, 97, .25); transition: transform .25s ease, opacity .25s ease;
}
.wa-float { bottom: 1.25rem; width: 56px; height: 56px; font-size: 1.7rem; color: #fff !important; background: #25d366; }
.wa-float:hover { transform: scale(1.06); }
.to-top { bottom: 1.25rem; width: 44px; height: 44px; font-size: 1.1rem; color: #fff; background: var(--zx-primary); opacity: 0; pointer-events: none; transform: translateY(10px); }
.wa-float ~ .to-top { bottom: 5.25rem; }
.to-top.is-shown { opacity: 1; pointer-events: auto; transform: none; }
.toast-stack { bottom: 5.5rem; }

/* "Something else in mind?" as a full-width row when it spans 2+ columns */
@media (min-width: 992px) {
  .tile-cta.cta-row { display: flex; align-items: center; gap: 1.25rem; }
  .tile-cta.cta-row .icon-tile { flex: none; }
  .tile-cta.cta-row h3 { margin: 0 !important; white-space: nowrap; }
  .tile-cta.cta-row .tile-arrow { position: static; margin-left: auto; font-size: 1.2rem; }
}

/* Contact form spam trap (honeypot): off-screen, not display:none, so bots still see it */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }


/* =========================================================
   Motion: brand "Innovate. Accelerate." in movement.
   Everything uses transform / opacity only, and switches off with
   prefers-reduced-motion (see the end of this block). JS parts in main.js.
   ========================================================= */

/* Speed streaks keep drifting after they sweep in */
.streaks span { animation: streak-in 1.2s cubic-bezier(.2, .7, .2, 1) both, streak-drift 9s ease-in-out 1.2s infinite alternate; }
.streaks span:nth-child(even) { animation-duration: 1.2s, 12s; }
@keyframes streak-drift { from { translate: 0 0; } to { translate: -70px 0; } }

/* Hero devices: depth parallax with the mouse (main.js sets --px / --py from -1 to 1) */
.laptop, .tablet, .phone, .badge-float { transition: translate .5s cubic-bezier(.2, .7, .2, 1); }
.laptop { translate: calc(var(--px, 0) * -8px) calc(var(--py, 0) * -6px); }
.tablet { translate: calc(var(--px, 0) * 16px) calc(var(--py, 0) * 12px); }
.phone { translate: calc(var(--px, 0) * 22px) calc(var(--py, 0) * 14px); }
.badge-float { translate: calc(var(--px, 0) * 28px) calc(var(--py, 0) * 18px); }

/* The sample screens "build themselves" on a loop (8s) */
@keyframes draw-x { 0%, 6% { transform: scaleX(0); opacity: 0; } 18%, 86% { transform: scaleX(1); opacity: 1; } 96%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes pop-in { 0%, 10% { transform: scale(.6); opacity: 0; } 22%, 86% { transform: scale(1); opacity: 1; } 96%, 100% { opacity: 0; } }
@keyframes grow-y { 0%, 8% { transform: scaleY(0); } 26%, 86% { transform: scaleY(1); } 96%, 100% { transform: scaleY(1); opacity: .2; } }
@keyframes slide-in { 0%, 10% { transform: translateX(24px); opacity: 0; } 22%, 86% { transform: none; opacity: 1; } 96%, 100% { opacity: 0; } }
.site-hero .l, .site-cards span { transform-origin: left center; animation: draw-x 8s ease-in-out infinite; }
.site-hero .l2 { animation-delay: .25s; } .site-hero .l3 { animation-delay: .5s; }
.site-cards span:nth-child(1) { animation-delay: .9s; } .site-cards span:nth-child(2) { animation-delay: 1.05s; } .site-cards span:nth-child(3) { animation-delay: 1.2s; }
.site-btn { animation: pop-in 8s ease-in-out .7s infinite; }
.site-img { transform-origin: left center; animation: draw-x 8s ease-in-out .35s infinite; }
.dash-chart span { transform-origin: bottom; animation: grow-y 8s cubic-bezier(.2, .7, .2, 1) infinite; }
.dash-chart span:nth-child(2) { animation-delay: .12s; } .dash-chart span:nth-child(3) { animation-delay: .24s; }
.dash-chart span:nth-child(4) { animation-delay: .36s; } .dash-chart span:nth-child(5) { animation-delay: .48s; } .dash-chart span:nth-child(6) { animation-delay: .6s; }
.app li { animation: slide-in 8s ease-out infinite; }
.app li:nth-child(2) { animation-delay: .3s; } .app li:nth-child(3) { animation-delay: .6s; }
.app-fab { animation: pop-in 8s ease-in-out 1.1s infinite; }
/* start from the hidden first frame during each element's delay (no flash of the finished screen on load) */
.site-hero .l, .site-cards span, .site-btn, .site-img, .dash-chart span, .app li, .app-fab { animation-fill-mode: backwards; }

/* Section headings rise in word by word (main.js wraps each word in .w) */
.section-title .w { display: inline-block; }
.reveal-on .reveal .section-title .w { opacity: 0; transform: translateY(.45em); transition: opacity .5s ease, transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i) * 55ms + .1s); }
.reveal-on .reveal.is-visible .section-title .w { opacity: 1; transform: none; }

/* Cards: a soft spotlight follows the mouse (main.js sets --mx / --my) */
.glow-card { isolation: isolate; }
.glow-card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 50%), rgba(31, 86, 214, .11), rgba(247, 147, 30, .05) 45%, transparent 70%);
  transition: opacity .35s ease;
}
.glow-card:hover::before, .glow-card.is-lit::before { opacity: 1; }
.tile-dark.glow-card::before, .tile-accent.glow-card::before { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .13), transparent 65%); }
.industry-tile, .value-card, .engage-card, .bento-tile, .step { position: relative; }  /* not .zx-card: some are sticky */

/* Magnetic orange buttons (main.js sets --bx / --by) */
.btn-glow { translate: var(--bx, 0) var(--by, 0); transition: translate .25s cubic-bezier(.2, .7, .2, 1), transform .2s ease, box-shadow .2s ease; }

/* Touch: devices follow scroll / sway / tilt via the same --px --py, with a softer transition */
@media (hover: none) { .laptop, .tablet, .phone, .badge-float { transition-duration: .9s; } }

/* Ripple on pill buttons (touch and mouse), plus a small press-in */
.btn-pill { position: relative; overflow: hidden; isolation: isolate; }
.btn-pill:active { transform: scale(.97); }
.ripple { position: absolute; z-index: -1; border-radius: 50%; pointer-events: none; transform: scale(0); opacity: .45;
  background: radial-gradient(circle, rgba(255, 255, 255, .9), rgba(255, 255, 255, 0) 70%); animation: ripple .65s ease-out forwards; }
.btn-outline-primary .ripple, .btn-light .ripple { background: radial-gradient(circle, rgba(31, 86, 214, .35), rgba(31, 86, 214, 0) 70%); }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }

/* Process timeline: the line draws itself, then the dots pop in turn */
.timeline::before { transform: scaleX(0); transform-origin: left; transition: transform 1.4s cubic-bezier(.2, .7, .2, 1) .2s; }
.timeline.is-drawn::before { transform: scaleX(1); }
@media (max-width: 991.98px) { .timeline::before { transform: scaleY(0); transform-origin: top; } .timeline.is-drawn::before { transform: scaleY(1); } }
.timeline li.is-visible .t-dot { animation: dot-pop .6s cubic-bezier(.3, 1.6, .5, 1) backwards; animation-delay: calc(var(--delay, 0s) + .25s); }
@keyframes dot-pop { from { transform: scale(0); } to { transform: scale(1); } }

/* Lifyra spotlight: chart bars grow when the card scrolls in */
.app-chart span { transform-origin: bottom; transform: scaleY(.05); transition: transform 1s cubic-bezier(.2, .7, .2, 1); }
.spotlight-card.is-visible .app-chart span { transform: none; }
.app-chart span:nth-child(2) { transition-delay: .08s; } .app-chart span:nth-child(3) { transition-delay: .16s; } .app-chart span:nth-child(4) { transition-delay: .24s; }
.app-chart span:nth-child(5) { transition-delay: .32s; } .app-chart span:nth-child(6) { transition-delay: .4s; } .app-chart span:nth-child(7) { transition-delay: .48s; }

/* Shine sweeping across the "Have a project in mind?" band */
.cta-shine { position: absolute; top: 0; bottom: 0; left: -40%; width: 30%; z-index: 0; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .22), transparent); transform: skewX(-20deg);
  animation: shine 5.5s ease-in-out 1s infinite; }
@keyframes shine { 0% { left: -40%; } 45%, 100% { left: 130%; } }

/* ---------- Hero: more motion ---------- */
/* Typewriter caret after the rotating word */
.rotator.is-typing .rotator-word::after {
  content: ""; display: inline-block; width: .07em; height: .82em; margin-left: .06em; vertical-align: -.06em;
  background: currentColor; border-radius: 2px; animation: caret 1s steps(1) infinite;
}
@keyframes caret { 50% { opacity: 0; } }

/* Breathing glow behind the devices */
.showcase { isolation: isolate; }
.showcase::before {
  content: ""; position: absolute; left: 8%; right: 8%; top: 10%; bottom: 4%; z-index: -2; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(34, 167, 224, .22), rgba(247, 147, 30, .12) 55%, transparent 75%);
  filter: blur(10px); animation: breathe 6s ease-in-out infinite;
}
@keyframes breathe { 0%, 100% { transform: scale(.92); opacity: .75; } 50% { transform: scale(1.06); opacity: 1; } }

/* Orbiting icon chips: two dashed rings turning in opposite directions; the chips stay upright */
.orbit { position: absolute; left: 50%; top: 52%; z-index: -1; pointer-events: none; }
.orbit-ring { --size: 560px; position: absolute; width: var(--size); height: var(--size); left: calc(var(--size) / -2); top: calc(var(--size) / -2);
  border-radius: 50%; border: 1.5px dashed rgba(31, 86, 214, .16); animation: spin 46s linear infinite; }
.orbit-ring.r2 { --size: 400px; border-color: rgba(247, 147, 30, .22); animation-duration: 32s; animation-direction: reverse; }
.o-chip { position: absolute; left: 50%; top: 50%; width: 40px; height: 40px; margin: -20px 0 0 -20px;
  transform: rotate(var(--a)) translateY(calc(var(--size) / -2)) rotate(calc(var(--a) * -1)); }
.o-chip i { display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; border-radius: 12px; font-size: 1.05rem;
  background: #fff; color: var(--zx-primary); border: 1px solid var(--zx-border); box-shadow: 0 10px 22px rgba(12, 36, 97, .12);
  animation: spin 46s linear infinite reverse; }
.r2 .o-chip i { animation-duration: 32s; animation-direction: normal; }
.o-chip.warm i { color: #e2731a; background: linear-gradient(135deg, #fff, #fff4e8); }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 767.98px) {
  .orbit-ring { --size: 380px; } .orbit-ring.r2 { --size: 270px; }
  .o-chip { width: 32px; height: 32px; margin: -16px 0 0 -16px; } .o-chip i { font-size: .85rem; border-radius: 9px; }
}

/* A pointer walks across the laptop screen and clicks "Get started" (same 8s loop as the build) */
.site { position: relative; }
.fake-cursor { position: absolute; z-index: 3; left: 88%; top: 92%; width: 18px; height: 18px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25));
  animation: cursor-walk 8s cubic-bezier(.45, 0, .25, 1) infinite backwards; }
.fake-cursor svg { display: block; }
.fake-cursor::after { content: ""; position: absolute; left: -9px; top: -9px; width: 22px; height: 22px; border-radius: 50%;
  border: 2px solid var(--zx-orange); opacity: 0; animation: cursor-click 8s ease-out infinite; }
@keyframes cursor-walk {
  0%, 20% { left: 88%; top: 92%; opacity: 0; }
  26% { opacity: 1; }
  44%, 52% { left: 11%; top: 55%; opacity: 1; transform: none; }
  48% { left: 11%; top: 55%; transform: scale(.82); }
  70% { left: 55%; top: 38%; opacity: 1; }
  80%, 100% { left: 55%; top: 38%; opacity: 0; }
}
@keyframes cursor-click { 0%, 47% { opacity: 0; transform: scale(.3); } 49% { opacity: .9; } 58%, 100% { opacity: 0; transform: scale(1.6); } }

/* Phone: a "New order" notification slides down, then away */
.app-toast { position: absolute; z-index: 4; left: 6px; right: 6px; top: 6px; display: flex; align-items: center; gap: 6px; padding: 6px 7px;
  border-radius: 12px; background: rgba(12, 36, 97, .94); color: #fff; box-shadow: 0 8px 18px rgba(0, 0, 0, .25);
  transform: translateY(-140%); animation: toast-drop 8s cubic-bezier(.2, .8, .2, 1) 1.5s infinite; }
.app-toast span { flex: none; width: 20px; height: 20px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center;
  background: var(--swoosh); font-size: .6rem; }
.app-toast b { display: block; font-size: .58rem; line-height: 1.2; color: #fff; }
.app-toast small { display: block; font-size: .48rem; opacity: .75; }
@keyframes toast-drop { 0%, 30% { transform: translateY(-140%); } 36%, 62% { transform: none; } 68%, 100% { transform: translateY(-140%); } }
@media (max-width: 575.98px) { .app-toast small { display: none; } }

/* Shine sweep across the orange buttons */
.btn-glow::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-20deg);
  animation: btn-shine 4.5s ease-in-out 2s infinite; }
@keyframes btn-shine { 0% { left: -60%; } 35%, 100% { left: 130%; } }

/* Service pills pop in one by one on load; their icons wiggle on hover */
.cap-pills li { animation: pill-in .5s cubic-bezier(.3, 1.4, .5, 1) backwards; }
.cap-pills li:nth-child(1) { animation-delay: .45s; } .cap-pills li:nth-child(2) { animation-delay: .52s; } .cap-pills li:nth-child(3) { animation-delay: .59s; }
.cap-pills li:nth-child(4) { animation-delay: .66s; } .cap-pills li:nth-child(5) { animation-delay: .73s; } .cap-pills li:nth-child(6) { animation-delay: .8s; }
.cap-pills li:nth-child(7) { animation-delay: .87s; } .cap-pills li:nth-child(8) { animation-delay: .94s; } .cap-pills li:nth-child(9) { animation-delay: 1.01s; }
@keyframes pill-in { from { opacity: 0; transform: translateY(10px) scale(.9); } to { opacity: 1; transform: none; } }
.cap-pills li i { display: inline-block; }
.cap-pills li:hover i { animation: wiggle .5s ease; }
@keyframes wiggle { 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg) scale(1.15); } 75% { transform: rotate(-4deg); } }

@media (prefers-reduced-motion: reduce) {
  .rotator-word::after, .showcase::before, .orbit-ring, .o-chip i, .fake-cursor, .fake-cursor::after, .app-toast, .btn-glow::after,
  .cap-pills li, .cap-pills li:hover i { animation: none !important; }
  .fake-cursor, .app-toast, .btn-glow::after { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .streaks span, .site-hero .l, .site-cards span, .site-btn, .site-img, .dash-chart span, .app li, .app-fab, .cta-shine,
  .timeline li.is-visible .t-dot { animation: none !important; }
  .laptop, .tablet, .phone, .badge-float, .btn-glow { translate: none !important; }
  .timeline::before, .app-chart span, .reveal-on .reveal .section-title .w { transform: none !important; opacity: 1 !important; transition: none !important; }
  .cta-shine, .ripple { display: none; }
  .btn-pill:active { transform: none; }
}
