/* ── Cubiq Hero Glow — mouse-flowing brand aurora hero ─────────────────── */

.cqh,
.cqh *,
.cqh *::before,
.cqh *::after { box-sizing: border-box; }

.cqh {
  /* Brand palette */
  --c1: 20, 171, 218;   /* #14ABDA cyan  */
  --c2: 3, 139, 241;    /* #038BF1 blue  */
  --c3: 114, 89, 191;   /* #7259BF purple */

  /* Aurora anchor — orbits gently on its own (JS-driven ambient drift). */
  --mx: 50%;
  --my: 46%;

  /* Parallax offset — cursor position as -1…1 on each axis. JS eases these;
     each depth layer translates by a different fraction of them. */
  --px: 0;
  --py: 0;

  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: clamp(560px, 92vh, 980px);
  display: flex;
  align-items: center;        /* sit the content around the vertical middle */
  justify-content: center;
  padding: clamp(90px, 12vh, 160px) 0;
  background:
    radial-gradient(120% 90% at 50% 8%, #0a1845 0%, #020b31 58%);  /* resolves to the site navy #020b31 at the edges */
  font-family: 'Open Sauce One', system-ui, -apple-system, "Segoe UI", sans-serif;
  color: #eaf1f8;
  text-align: left;
}

/* Bottom fade — melts the glow into the site navy so there's no hard seam
   where the next section begins. Sits above the aura, below the content. */
.cqh::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 34%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 11, 49, 0) 0%, #020b31 100%);
}

/* The aurora — three brand-coloured blobs orbiting on their own, split into
   depth layers. The mouse adds a gentle parallax shift (opposite the cursor),
   foreground moving most and background least, so it reads as a deep lit space
   you're looking into — not a glow chasing the pointer. Overscanned so the soft
   edges never reveal a hard cut. */
.cqh-aura {
  position: absolute;
  inset: -15%;
  z-index: -1;
  filter: blur(28px) saturate(130%);
  /* Promote to a stable composited layer — prevents the multi-monitor
     re-rasterisation flicker on unfocused / cross-display windows. */
  transform: translateZ(0);
  backface-visibility: hidden;
}

.cqh-layer {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
}

/* Foreground — cyan, shifts most */
.cqh-l1 {
  background: radial-gradient(42% 52% at var(--mx) var(--my),
    rgba(var(--c1), .55), transparent 68%);
  transform: translate(calc(var(--px) * -6%), calc(var(--py) * -6%));
}
/* Mid — blue */
.cqh-l2 {
  background: radial-gradient(38% 48% at calc(var(--mx) - 15%) calc(var(--my) + 12%),
    rgba(var(--c2), .50), transparent 70%);
  transform: translate(calc(var(--px) * -4%), calc(var(--py) * -4%));
}
/* Background — purple, shifts least */
.cqh-l3 {
  background: radial-gradient(44% 52% at calc(var(--mx) + 17%) calc(var(--my) + 7%),
    rgba(var(--c3), .42), transparent 72%);
  transform: translate(calc(var(--px) * -2%), calc(var(--py) * -2%));
}

/* Ambient colour wheel — runs whether or not the mouse moves, so the gradient
   always feels alive. Screen-blended for a luminous, non-muddy mix. */
.cqh-aura::before {
  content: "";
  position: absolute;
  inset: -35%;
  background: conic-gradient(
    from 0deg,
    rgba(var(--c1), 0) 0%,
    rgba(var(--c2), .20) 28%,
    rgba(var(--c3), .18) 55%,
    rgba(var(--c1), .16) 78%,
    rgba(var(--c1), 0) 100%
  );
  filter: blur(70px);
  opacity: .7;
  animation: cqh-spin 30s linear infinite;
  backface-visibility: hidden;
}

/* A soft second pulse on the same wheel, counter-rotating, for depth */
.cqh-aura::after {
  content: "";
  position: absolute;
  inset: -20%;
  background: radial-gradient(50% 50% at 50% 60%,
    rgba(var(--c1), .14), transparent 70%);
  animation: cqh-breathe 14s ease-in-out infinite;
  will-change: opacity, transform;
}

@keyframes cqh-spin {
  to { transform: rotate(360deg); }
}
@keyframes cqh-breathe {
  0%, 100% { opacity: .35; transform: scale(1); }
  50%      { opacity: .65; transform: scale(1.08); }
}

/* Faint film grain so the glow reads as premium glass, not a flat web gradient */
.cqh-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: .04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Branded text selection — brand light blue fill, deep navy text. The
   -webkit-text-fill-color override is needed so the gradient-clipped title
   turns solid navy when highlighted instead of staying transparent. */
.cqh ::selection {
  background: rgba(var(--c1), .3);
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
}
.cqh ::-moz-selection {
  background: rgba(var(--c1), .3);
  color: #fff;
  -webkit-text-fill-color: #fff;
  text-shadow: none;
}

/* ── Content ───────────────────────────────────────────────────────────── */

.cqh-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 92rem;   /* matches the theme .wrap so it lines up with other sections */
  margin: 0 auto;
  padding: 0 20px;
}
@media (min-width: 1536px) {
  .cqh-inner { padding: 0; }
}

.cqh-eyebrow {
  display: inline-block;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(120, 200, 240, .85);
  margin-bottom: 22px;
}

/* Metallic white title — subtle silver gradient, like the reference */
.cqh-title {
  margin: 0;
  max-width: 24ch;
  font-weight: 400;                      /* matches the "Three ways to partner" title */
  font-size: clamp(46px, 6.8vw, 120px);  /* matches the pricing title scale */
  /* Slightly looser than the (single-line) pricing title so descenders like
     the 'g' in "Hiring" aren't clipped where background-clip:text meets the
     next line. */
  line-height: 1.12;
  padding-bottom: .04em;                 /* room for the last line's descenders */
  letter-spacing: -.025em;
  background: linear-gradient(180deg, #ffffff 0%, #c4d2e6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Brand-gradient highlight word(s) */
.cqh-title .cqh-hl {
  background: linear-gradient(100deg,
    rgb(var(--c1)) 0%, rgb(var(--c2)) 52%, rgb(var(--c3)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.cqh-sub {
  margin: clamp(20px, 2.5vw, 30px) 0 0;
  max-width: 540px;
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  color: rgba(206, 224, 245, .72);
}

.cqh-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-start;
  margin-top: clamp(32px, 4vw, 46px);
}

.cqh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 32px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: .01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.7,.2,1), box-shadow .28s, background .28s, border-color .28s;
}

/* Primary — brand gradient pill with a soft glow */
.cqh-btn--gradient {
  color: #02101f;
  background: linear-gradient(100deg,
    rgb(var(--c1)) 0%, rgb(var(--c2)) 55%, rgb(var(--c3)) 120%);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.35),
    0 16px 40px -16px rgba(var(--c2), .8);
}
.cqh-btn--gradient:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.45),
    0 22px 52px -16px rgba(var(--c2), .95);
}

/* Secondary — frosted glass pill */
.cqh-btn--glass {
  color: #eaf1f8;
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  -webkit-backdrop-filter: blur(16px) saturate(140%);
          backdrop-filter: blur(16px) saturate(140%);
  border: 1px solid rgba(160, 200, 235, .22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
.cqh-btn--glass:hover {
  transform: translateY(-2px);
  background: linear-gradient(180deg, rgba(255,255,255,.16), rgba(255,255,255,.07));
  border-color: rgba(160, 200, 235, .4);
}

/* Mobile — let the title wrap naturally to the screen rather than holding the
   laptop-width line rule. */
@media (max-width: 767px) {
  .cqh-title { max-width: none; }
}

/* ── Alignment: centre variant ─────────────────────────────────────────── */
.cqh--center { text-align: center; }
.cqh--center .cqh-title { margin-left: auto; margin-right: auto; }
.cqh--center .cqh-sub { margin-left: auto; margin-right: auto; }
.cqh--center .cqh-ctas { justify-content: center; }

/* ── Background variant: brand-gradient orb ────────────────────────────── */
.cqh--orb { background: radial-gradient(120% 100% at 50% 108%, #06163c 0%, #020b31 60%); }
.cqh-orb-stage { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
/* Soft bottom fade so the orb glow dissolves into the section base colour
   rather than hard-clipping where the next element begins. */
.cqh--orb::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 24%;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(to bottom, rgba(2, 11, 49, 0) 0%, rgba(2, 11, 49, 0) 42%, #020b31 100%);
}

/* Brand-coloured halo behind the sphere — parent holds position + parallax,
   the ::before spins the conic gradient so the rim light drifts around.
   Anchored to the TOP so the sphere hangs down and we see its underside. */
.cqh-orb-glow {
  position: absolute;
  left: 50%;
  bottom: 6%;                        /* rim sits lower in the hero */
  width: min(2150px, 212vh);         /* sized by viewport HEIGHT so it never falls off short screens */
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(85px);
  opacity: .85;
  transform: translateX(-50%) translateY(calc(var(--scroll, 0px) * 0.42)) translate(calc(var(--px) * -2.2%), calc(var(--py) * -2.2%));
}
.cqh-orb-glow::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 200deg,
    rgb(var(--c3)), rgb(var(--c2)), rgb(var(--c1)), rgb(var(--c2)), rgb(var(--c3)));
  animation: cqh-spin 42s linear infinite;
  will-change: transform;
}
/* The dark sphere itself, parallaxing a touch less than its halo for depth */
.cqh-orb {
  position: absolute;
  left: 50%;
  bottom: 9%;                        /* dark rim sits just above the glow's rim */
  width: min(1950px, 192vh);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 82%, #122253 0%, #07143a 45%, #020b31 72%);  /* outer = site navy, so the sphere edge blends in */
  transform: translateX(-50%) translateY(calc(var(--scroll, 0px) * 0.34)) translate(calc(var(--px) * -1.1%), calc(var(--py) * -1.1%));
  box-shadow: inset 0 -2px 60px rgba(255, 255, 255, .05);
}

/* Frozen while the page is hidden (set by JS) — stops the ambient animations
   drifting out of sync with the paused rAF loop. */
.cqh-paused .cqh-aura::before,
.cqh-paused .cqh-aura::after,
.cqh-paused .cqh-orb-glow::before { animation-play-state: paused; }

/* ── Reduced motion ────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .cqh-aura::before,
  .cqh-aura::after,
  .cqh-orb-glow::before { animation: none; }
}
