/* =========================================================
   Zonix Tech IT — shared styles
   Tokens, reset, font roles, section headings, buttons, dark sections and the scroll-reveal
   states. Rules used by one section only live in that section's own {% stylesheet %}.
   ========================================================= */

/* The platform's reset makes images block-level and its body is 17px; the design sets its own. */
img,
svg {
  vertical-align: middle;
}
:root {
  /* Theme tab → Colours. Lighter shades are see-through mixes of these. */
  --zx-orange: var(--color-primary, #f57200);    /* logo orange: buttons, highlights, numbers */
  --zx-blue: var(--color-secondary, #0a47b0);     /* logo blue: links, icons, accents */
  --zx-ink: var(--color-text, #0b1638);           /* headings and text on light sections */
  --zx-paper: var(--color-bg, #f4f6fb);           /* page background */
  --zx-night: var(--theme-color_night, #050a1c);  /* dark sections: hero, process, CTA, footer */
  --zx-sky: var(--theme-color_sky, #2bb3f0);      /* logo pixels: glows, dots, dark-section accents */
  --zx-muted: var(--theme-color_muted, #56627f);  /* paragraphs on light sections */
  --zx-line: var(--theme-color_line, #dde3ef);    /* borders and dividers */
  --zx-white: #ffffff;
  --zx-card: #ffffff;

  /* Theme tab → Typography */
  --zx-f-head: var(--font-heading, "Sora"), ui-sans-serif, system-ui, sans-serif;
  --zx-f-body: var(--font-body, "Manrope"), ui-sans-serif, system-ui, sans-serif;
  --zx-f-mono: var(--theme-font_label, "JetBrains Mono"), ui-monospace, SFMono-Regular, monospace;

  /* Layout */
  --zx-page: 1240px;
  --zx-gutter: clamp(18px, 4cqw, 40px);
  --zx-sec: clamp(76px, 9cqw, 128px);
  --zx-head-h: 92px;
  --zx-radius: 22px;
  --zx-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --zx-grad: linear-gradient(100deg, var(--zx-orange) 0%, color-mix(in oklab, var(--zx-orange) 55%, #ffffff) 42%, color-mix(in oklab, var(--zx-sky) 55%, #ffffff) 62%, var(--zx-sky) 100%);
}
@media (max-width: 767.98px) {
  :root {
    --zx-head-h: 76px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  /* marketing.css leaks `body { overflow-x: hidden }`, which stops the sticky header. */
  overflow-x: clip;
}
:root {
  scroll-padding-top: 0;
}
body {
  background: var(--zx-paper);
  color: var(--zx-ink);
  font-family: var(--zx-f-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3,
h4,
p,
ul,
figure,
blockquote {
  margin: 0;
}
ul {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font: inherit;
  color: inherit;
}
section[id] {
  scroll-margin-top: calc(var(--zx-head-h) + 8px);
}
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 3000;
  padding: 10px 18px;
  background: var(--zx-night);
  color: var(--zx-white);
  font-family: var(--zx-f-mono);
}
.skip-link:focus {
  left: 0;
}
:focus-visible {
  outline: 2px solid var(--zx-orange);
  outline-offset: 3px;
}

/* Font roles: headings, names and big numbers → heading font; paragraphs → body font;
   labels, tags, menu links and buttons → label font. */
h1,
h2,
h3,
h4,
.zx-f-head {
  font-family: var(--zx-f-head);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
}
.zx-f-mono {
  font-family: var(--zx-f-mono);
}

/* Page width */
.zx-wrap {
  width: 100%;
  max-width: calc(var(--zx-page) + 2 * var(--zx-gutter));
  margin: 0 auto;
  padding: 0 var(--zx-gutter);
}

/* Section heading: label, title and subtitle */
.zx-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--zx-f-mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--zx-blue);
}
.zx-label::before {
  content: "";
  flex: none;
  width: 14px;
  height: 14px;
  background:
    linear-gradient(var(--zx-orange) 0 0) 0 0 / 6px 6px no-repeat,
    linear-gradient(var(--zx-sky) 0 0) 8px 0 / 6px 6px no-repeat,
    linear-gradient(var(--zx-sky) 0 0) 8px 8px / 6px 6px no-repeat;
}
.zx-head {
  max-width: 760px;
}
.zx-head--center {
  margin: 0 auto;
  text-align: center;
}
.zx-head__title {
  margin-top: 18px;
  font-size: clamp(32px, 4.4cqw, 54px);
  color: var(--zx-ink);
  text-wrap: balance;
}
.zx-head__sub {
  margin-top: 18px;
  font-size: clamp(16px, 1.4cqw, 18.5px);
  color: var(--zx-muted);
  text-wrap: pretty;
}
.zx-head--center .zx-head__sub {
  margin-left: auto;
  margin-right: auto;
  max-width: 640px;
}

/* Buttons */
.zx-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-family: var(--zx-f-mono);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.35s var(--zx-ease), background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.35s ease;
}
.zx-btn__arrow {
  flex: none;
  width: 16px;
  height: 16px;
  transition: transform 0.35s var(--zx-ease);
}
.zx-btn:hover .zx-btn__arrow {
  transform: translateX(4px);
}
.zx-btn:hover {
  transform: translateY(-2px);
}
.zx-btn--primary {
  background: var(--zx-orange);
  color: var(--zx-white);
  box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--zx-orange) 70%, transparent);
}
/* A light sweep crosses the orange button on hover. */
.zx-btn--primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--zx-ease);
}
.zx-btn--primary:hover::after {
  transform: translateX(120%);
}
.zx-btn--primary:hover {
  box-shadow: 0 16px 36px -12px color-mix(in srgb, var(--zx-orange) 80%, transparent);
}
.zx-btn--ghost {
  background: transparent;
  color: var(--zx-ink);
  border-color: color-mix(in srgb, var(--zx-ink) 22%, transparent);
}
.zx-btn--ghost:hover {
  border-color: var(--zx-ink);
  background: var(--zx-ink);
  color: var(--zx-white);
}
.zx-btn--dark {
  background: var(--zx-ink);
  color: var(--zx-white);
}
.zx-btn--dark:hover {
  background: var(--zx-blue);
}

/* Dark sections */
.zx-dark {
  background: var(--zx-night);
  color: color-mix(in srgb, var(--zx-white) 72%, transparent);
}
.zx-dark .zx-head__title,
.zx-dark h1,
.zx-dark h2,
.zx-dark h3,
.zx-dark h4 {
  color: var(--zx-white);
}
.zx-dark .zx-head__sub {
  color: color-mix(in srgb, var(--zx-white) 66%, transparent);
}
.zx-dark .zx-label {
  color: var(--zx-sky);
}
.zx-dark .zx-btn--ghost {
  color: var(--zx-white);
  border-color: color-mix(in srgb, var(--zx-white) 28%, transparent);
}
.zx-dark .zx-btn--ghost:hover {
  background: var(--zx-white);
  border-color: var(--zx-white);
  color: var(--zx-night);
}

/* Words in the brand gradient */
/* Orange → sky → orange, twice as wide as the text and sliding, so both colours always show. */
.zx-grad-text {
  background: linear-gradient(100deg, var(--zx-orange) 0%, color-mix(in oklab, var(--zx-orange) 55%, #ffffff) 20%, color-mix(in oklab, var(--zx-sky) 55%, #ffffff) 32%, var(--zx-sky) 50%, color-mix(in oklab, var(--zx-sky) 55%, #ffffff) 68%, color-mix(in oklab, var(--zx-orange) 55%, #ffffff) 80%, var(--zx-orange) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: zx-grad-shift 9s linear infinite;
}
@keyframes zx-grad-shift {
  to {
    background-position: -200% 0;
  }
}

/* Icons drawn inline */
.zx-ico {
  flex: none;
  width: 24px;
  height: 24px;
}

/* ---------------- scroll reveal (global.js) ----------------
   Only elements the script is watching (`.is-pending`, set by the script for elements below the
   screen) are hidden, so the page can never end up blank. Each kind of element arrives its own
   way: data-zx-rv = rise | tilt | mask | left | right | zoom | draw | pop. The movement uses the
   individual translate/rotate/scale properties so hover transforms keep working. */
[data-zx-rv] {
  transition:
    opacity 0.9s var(--zx-ease),
    translate 1s var(--zx-ease),
    rotate 1.1s var(--zx-ease),
    scale 1s var(--zx-ease),
    clip-path 1.1s var(--zx-ease),
    filter 0.9s ease;
  transition-delay: calc(var(--zx-i, 0) * 90ms);
}
[data-zx-rv].is-pending {
  opacity: 0;
}
[data-zx-rv="rise"].is-pending {
  translate: 0 42px;
}
[data-zx-rv="tilt"].is-pending {
  translate: 0 50px;
  rotate: x 22deg;
  transform-origin: 50% 0;
}
[data-zx-rv="mask"].is-pending {
  opacity: 1;
  clip-path: inset(0 0 100% 0);
  translate: 0 24px;
}
[data-zx-rv="mask"].is-in {
  clip-path: inset(0 0 -10% 0);
}
[data-zx-rv="left"].is-pending {
  translate: -60px 0;
}
[data-zx-rv="right"].is-pending {
  translate: 60px 0;
}
[data-zx-rv="zoom"].is-pending {
  scale: 0.9;
  filter: blur(10px);
}
[data-zx-rv="pop"].is-pending {
  scale: 0.6;
}
[data-zx-rv="draw"].is-pending {
  opacity: 1;
  clip-path: inset(0 100% 0 0);
}
[data-zx-rv="draw"].is-in {
  clip-path: inset(0 0 0 0);
}
.zx-persp {
  perspective: 1200px;
}

/* Angle for the header's running gradient ring (an @property must sit outside the sections). */
@property --zx-a {
  syntax: "<angle>";
  inherits: false;
  initial-value: 0deg;
}
@keyframes zx-spin {
  to {
    --zx-a: 360deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-zx-rv].is-pending {
    opacity: 1;
    translate: none;
    rotate: none;
    scale: none;
    clip-path: none;
    filter: none;
  }
  .zx-grad-text {
    animation: none;
  }
}
