/* =========================================================================
   Cannyloop — Landing page modernization layer
   Loaded AFTER the Webflow stylesheets so it wins the cascade.
   Strategy: keep the existing monochrome (black / white) base, add depth,
   one restrained brand accent (#4d65ff — already the site's focus color),
   glassy surfaces, gradient hairlines, glow and micro-interactions.
   ========================================================================= */

:root {
  --cl-accent: #5e68f5;
  --cl-accent-2: #6f8bff;
  --cl-accent-cyan: #38e0ff;
  --cl-glow: rgba(94, 104, 245, .35);
  --cl-glow-soft: rgba(94, 104, 245, .18);
  --cl-hairline: rgba(255, 255, 255, .10);
  --cl-hairline-strong: rgba(255, 255, 255, .16);
  --cl-surface: #0a0a0c;
  --cl-ease: cubic-bezier(.22, .68, 0, 1);
}

html { scroll-behavior: smooth; }

::selection { background: var(--cl-accent); color: #fff; }

/* ---- Ambient background: fixed glow + faint grid behind everything ------ */
body { background-color: #000; }

.page-wrapper { position: relative; z-index: 1; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(55rem 38rem at 82% -8%, rgba(94, 104, 245, .20), transparent 60%),
    radial-gradient(48rem 36rem at -5% 8%, rgba(56, 224, 255, .07), transparent 55%);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% -10%, #000, transparent 65%);
  mask-image: radial-gradient(circle at 50% -10%, #000, transparent 65%);
}

/* The placeholder overlay image Webflow drops at the top of the page */
.overlay-image { display: none !important; }

/* ---- Typography polish --------------------------------------------------- */
.heading-style-h1 { letter-spacing: -.02em; }
.heading-style-h2 { letter-spacing: -.015em; }
.heading-style-h3 { letter-spacing: -.01em; }

/* Gradient accent text utility (applied to hero keywords) */
.cl-grad {
  background: linear-gradient(102deg, #ffffff 0%, #d6ddff 42%, var(--cl-accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  /* background-clip:text only paints the gradient inside the element's box,
     so the box needs room for Cal Sans descenders and the right overhang of
     the "y" in "Money". box-decoration-break:clone applies it per line. */
  padding-bottom: .3em;
  padding-right: .08em;
  margin-right: -.08em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---- Navbar: glassmorphism ---------------------------------------------- */
.navbar2_component.color-scheme-1 {
  background-color: rgba(6, 6, 8, .55) !important;
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: background-color .3s var(--cl-ease), border-color .3s var(--cl-ease), box-shadow .3s var(--cl-ease);
}
.navbar2_component.color-scheme-1.cl-scrolled {
  background-color: rgba(6, 6, 8, .8) !important;
  border-bottom-color: var(--cl-hairline);
  box-shadow: 0 10px 40px -20px rgba(0, 0, 0, .9);
}

.navbar2_link {
  position: relative;
  transition: color .25s var(--cl-ease);
}
.navbar2_link::after {
  content: "";
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: .25rem;
  height: 1px;
  background: var(--cl-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .3s var(--cl-ease);
}
.navbar2_link:hover { color: #fff; }
.navbar2_link:hover::after { transform: scaleX(1); }

#locale-link {
  transition: color .25s var(--cl-ease);
}
#locale-link:hover { color: var(--cl-accent-2); }

/* ---- Buttons: dark-adapted glass ----------------------------------------
   Frosted, dimensional surfaces tuned for a black background (the classic
   white-0.4 glass recipe is for light backgrounds and would blow out here).
   Inset rim-light is dialed back vs. the big glass cards because these
   surfaces are button-sized. A top hairline (::before) gives the "lit edge".
   ------------------------------------------------------------------------- */
.button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  transition: transform .3s var(--cl-ease), box-shadow .3s var(--cl-ease),
              background-color .25s var(--cl-ease), border-color .25s var(--cl-ease), color .25s var(--cl-ease);
}
/* Shared lit top-edge hairline for glass buttons */
.button.is-alternate::before,
.button.is-secondary.is-alternate::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .5), transparent);
}

/* Primary CTA — frosted blue glass at rest, fills solid blue on hover. */
.button.is-alternate {
  border: 1px solid rgba(94, 104, 245, .5) !important;
  background-image: none !important;
  background-color: rgba(94, 104, 245, .12) !important;
  color: #cdd6ff !important;
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 6px 2px rgba(94, 104, 245, .14);
}
.button.is-alternate:hover {
  background-color: var(--cl-accent) !important;
  border-color: var(--cl-accent) !important;
  color: #fff !important;
  box-shadow:
    0 12px 36px -12px var(--cl-glow),
    inset 0 1px 0 rgba(255, 255, 255, .3);
}

/* Navbar button stays compact, matching the glass treatment */
.button.is-navbar2-button.is-alternate {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .22),
    inset 0 0 6px 2px rgba(94, 104, 245, .14);
}

/* Secondary — neutral frosted glass */
.button.is-secondary.is-alternate {
  border: 1px solid var(--cl-hairline-strong) !important;
  background-color: rgba(255, 255, 255, .06) !important;
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  backdrop-filter: saturate(140%) blur(10px);
  color: #fff !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .18),
    inset 0 0 6px 2px rgba(255, 255, 255, .05);
}
.button.is-secondary.is-alternate:hover {
  border-color: rgba(255, 255, 255, .4) !important;
  background-color: rgba(255, 255, 255, .1) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .26),
    inset 0 0 8px 3px rgba(255, 255, 255, .07);
}

/* ---- Tag / eyebrow used in cards ---------------------------------------- */
.tag.is-text.is-alternate {
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: var(--cl-accent-2);
}

/* ---- Section ambient glow (over the opaque black sections) -------------- */
.section_case_studies.color-scheme-4,
.section_services.color-scheme-1 {
  position: relative;
  isolation: isolate;
}
.section_case_studies.color-scheme-4::after,
.section_services.color-scheme-1::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(60rem 28rem at 50% -4%, var(--cl-glow-soft), transparent 60%);
}
.section_case_studies .padding-global,
.section_services .padding-global { position: relative; z-index: 1; }

/* Hairline divider between stacked sections */
.section_logo.color-scheme-3,
.section_case_studies.color-scheme-4,
.section_services.color-scheme-1,
.section_cta.color-scheme-2 {
  border-top: 1px solid var(--cl-hairline);
}

/* ---- Hero ---------------------------------------------------------------- */
.header1_image-wrapper {
  position: relative;
  /* The photo is a transparent cutout, so fill the panel behind it with the
     brand accent. The dark figure reads cleanly against the solid colour. */
  background: linear-gradient(160deg, var(--cl-accent), var(--cl-accent-2));
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 40px 120px -40px var(--cl-glow);
}
.header1_image-wrapper::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  background: radial-gradient(closest-side, var(--cl-glow), transparent 70%);
  filter: blur(20px);
  animation: clFloat 9s ease-in-out infinite;
}
/* Cutout sits flush at the bottom of the accent panel. */
.header1_image.unique {
  display: block;
  width: 100%;
}
@keyframes clFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -16px, 0) scale(1.05); }
}

/* ---- "Trusted by" logo band --------------------------------------------- */
/* Keep the heading from crowding the logos: add a gap and push logos right. */
@media (min-width: 768px) {
  .logo2_content {
    justify-content: flex-start !important;
    grid-column-gap: 4rem !important;
  }
  .logo2_logo-list {
    justify-content: flex-start !important;
  }
}
.logo2_logo {
  opacity: .65;
  filter: grayscale(1) brightness(1.6);
  transition: opacity .3s var(--cl-ease), filter .3s var(--cl-ease);
}
.logo2_logo:hover {
  opacity: 1;
  filter: grayscale(0) brightness(1);
}

/* ---- Cards: case studies + services ------------------------------------- */
.layout380_card-large,
.layout380_card-medium,
.layout380_card-small,
.layout353_content-item {
  border-color: var(--cl-hairline) !important;
  transition: transform .45s var(--cl-ease), border-color .35s var(--cl-ease), box-shadow .45s var(--cl-ease);
}
.layout380_card-large:hover,
.layout380_card-medium:hover,
.layout380_card-small:hover,
.layout353_content-item:hover {
  transform: translateY(-6px);
  border-color: rgba(94, 104, 245, .55) !important;
  box-shadow: 0 30px 70px -32px var(--cl-glow), inset 0 1px 0 rgba(255, 255, 255, .05);
}

/* Services: drop the sticky "stacking deck" effect for a clean equal grid.
   The cards used position:sticky with staggered top offsets, which made them
   overlap as you scrolled. Lay them out as equal-height cards instead. */
.layout353_content-right {
  display: grid;
  grid-row-gap: 1.5rem;
  align-content: start;
}
.layout353_content-item,
.layout353_content-item.content-item-1,
.layout353_content-item.content-item-2,
.layout353_content-item.content-item-3,
.layout353_content-item.content-item-4 {
  position: static;
  top: auto;
  margin-bottom: 0;
  height: 100%;
  background-color: var(--_primitives---colors--black-darker) !important;
}

/* Stat cards — make the numbers the hero of the card */
.layout380_card-small {
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(94, 104, 245, .12), transparent 60%),
    var(--_primitives---colors--neutral-darker) !important;
}
.layout380_card-small-content { align-items: center; text-align: center; }
.layout380_card-small .heading-style-h3 {
  font-size: 2.4rem;
  line-height: 1.05;
  background: linear-gradient(120deg, #fff 0%, #c7d0ff 55%, var(--cl-accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* Services icon tiles */
.layout353_icon-wrapper {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  padding: .85rem;
  border: 1px solid var(--cl-hairline-strong);
  border-radius: 18px;
  background: linear-gradient(150deg, rgba(94, 104, 245, .18), rgba(56, 224, 255, .05));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 24px -14px var(--cl-glow);
}
.layout353_icon-wrapper svg.icon-1x1-medium {
  width: 3rem;
  height: 3rem;
  color: #e3e8ff;
  transition: color .2s ease;
}
.layout353_content-item:hover .layout353_icon-wrapper {
  border-color: rgba(94, 104, 245, .5);
}
.layout353_content-item:hover .layout353_icon-wrapper svg.icon-1x1-medium {
  color: var(--cl-accent);
}

/* ---- CTA ----------------------------------------------------------------- */
.section_cta.color-scheme-2 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
}
.section_cta.color-scheme-2::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(46rem 34rem at 50% 18%, rgba(94, 104, 245, .26), transparent 62%);
}
.section_cta .padding-global { position: relative; z-index: 1; }
.section_cta .cta57_heading-bottom .heading-style-h1 {
  background: linear-gradient(102deg, #fff 0%, #cdd6ff 50%, var(--cl-accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
/* The Cal.com inline embed — frame it as a card */
#my-cal-inline-discovery {
  border: 1px solid var(--cl-hairline);
  border-radius: 24px;
  background: rgba(255, 255, 255, .02);
  box-shadow: 0 40px 120px -50px var(--cl-glow);
  overflow: hidden !important;
  min-height: 520px;
  margin-top: 1rem;
}

/* =========================================================================
   Case-study detail pages
   Sections below (portfolio-header2 / content15 / cta25) only exist on the
   /case-studies/* pages, so these rules are inert on the landing page.
   ========================================================================= */

/* ---- Portfolio header: gradient headline + ambient glow ----------------- */
.section_portfolio-header2.color-scheme-1 {
  position: relative;
  isolation: isolate;
}
.section_portfolio-header2.color-scheme-1::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(50rem 30rem at 50% -12%, var(--cl-glow), transparent 62%);
}
.section_portfolio-header2 .padding-global { position: relative; z-index: 1; }
.section_portfolio-header2 .heading-style-h1 {
  background: linear-gradient(102deg, #fff 0%, #d6ddff 48%, var(--cl-accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-bottom: .12em;
}

/* Tag chips (year / category) under the headline */
.portfolio-header2_tag-list .tag {
  border: 1px solid var(--cl-hairline-strong) !important;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, .04) !important;
  color: rgba(255, 255, 255, .85) !important;
  transition: border-color .25s var(--cl-ease), background-color .25s var(--cl-ease), color .25s var(--cl-ease);
}
.portfolio-header2_tag-list .tag:hover {
  border-color: rgba(94, 104, 245, .55) !important;
  background-color: rgba(94, 104, 245, .14) !important;
  color: #fff !important;
}

/* The Success / Challenge / Solution / Results metatags are left as the
   original plain-text layout — no card chrome (it read cleaner that way). */

/* The lightbox video poster — frame it like the hero image */
.content15_lightbox {
  position: relative;
  border: 1px solid var(--cl-hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 120px -50px var(--cl-glow);
  transition: border-color .35s var(--cl-ease), box-shadow .45s var(--cl-ease);
}
.content15_lightbox:hover {
  border-color: rgba(94, 104, 245, .5);
  box-shadow: 0 50px 130px -50px var(--cl-glow);
}

/* ---- Bottom CTA section (cta25) ----------------------------------------- */
.section_cta25.color-scheme-1 {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-top: 1px solid var(--cl-hairline);
}
.section_cta25.color-scheme-1::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(46rem 34rem at 50% 18%, rgba(94, 104, 245, .22), transparent 62%);
}
.section_cta25 .padding-global { position: relative; z-index: 1; }
.section_cta25 .heading-style-h2 {
  background: linear-gradient(102deg, #fff 0%, #cdd6ff 50%, var(--cl-accent) 120%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

/* ---- Footer -------------------------------------------------------------- */
.footer15_link {
  transition: color .25s var(--cl-ease), opacity .25s var(--cl-ease);
  opacity: .85;
}
.footer15_link:hover { color: var(--cl-accent-2); opacity: 1; }
.footer15_image { opacity: .9; }

/* ---- Mobile refinements -------------------------------------------------- */
@media (max-width: 767px) {
  /* Center the footer content — mobile only. Desktop/tablet keep the original
     Webflow multi-column footer layout. */
  .footer15_top-wrapper {
    grid-template-columns: 1fr !important;
    justify-items: center;
    text-align: center;
    grid-row-gap: 2rem !important;
  }
  .footer15_left-wrapper,
  .footer15_details-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .footer15_menu-wrapper { justify-content: center; }
  .footer15_link-list {
    align-items: center !important;
    place-items: center !important;
    text-align: center;
  }
  .footer15_bottom-wrapper {
    flex-direction: column;
    align-items: center;
    grid-row-gap: 1rem;
    justify-content: center;
    text-align: center;
  }
  /* Tighten the footer: less vertical air, denser link rows */
  .footer15_link { padding-top: .35rem; padding-bottom: .35rem; }
}

@media (max-width: 479px) {
  /* Keep the two link lists side-by-side instead of stacking into one column */
  .footer15_menu-wrapper {
    grid-template-columns: 1fr 1fr !important;
    grid-column-gap: 1.5rem !important;
    grid-row-gap: 1.5rem !important;
  }
}

/* ---- Scroll reveal (progressively enhanced via js/redesign.js) ---------- */
.cl-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .7s var(--cl-ease), transform .7s var(--cl-ease);
  will-change: opacity, transform;
}
.cl-reveal.cl-in {
  opacity: 1;
  transform: none;
}

/* ---- Reduced motion ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .header1_image-wrapper::before { animation: none; }
  .cl-reveal { opacity: 1; transform: none; transition: none; }
  .button, .layout380_card-large, .layout380_card-medium, .layout380_card-small { transition: none; }
}
