/* Click Experience v6.1.2 — Home persistent CTA visibility fix + selective Liquid Glass
   Purposeful glass only on interactive/action surfaces. Existing visual cards,
   trusted brands and assistant modal already have enough translucency. */
:root{
  --cxs-glass-border:rgba(176,222,255,.24);
  --cxs-glass-highlight:rgba(255,255,255,.22);
  --cxs-glass-shadow:0 18px 46px rgba(0,8,50,.22);
  --cxs-glass-blur:18px;
}

/* --------------------------------------------------------------------------
   HERO: persistent actions are outside the rotating scenes, so slide changes
   never remount or replay the CTA entrance animation.
   -------------------------------------------------------------------------- */
.cxs-hero--visual-v520 .cxs-hero-persistent-actions{
  position:relative;
  z-index:8;
  width:min(100%,620px);
  margin-top:24px;
  animation:cxsHeroPersistentIn .7s cubic-bezier(.16,1,.3,1) .48s both;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-ctas{
  display:grid!important;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px!important;
  width:100%;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta{
  position:relative;
  isolation:isolate;
  overflow:hidden;
  min-width:0!important;
  min-height:58px!important;
  padding:13px 18px!important;
  border:1px solid var(--cxs-glass-border)!important;
  border-radius:18px!important;
  color:#fff!important;
  box-shadow:var(--cxs-glass-shadow),inset 0 1px 0 var(--cxs-glass-highlight),inset 0 -1px 0 rgba(255,255,255,.06)!important;
  -webkit-backdrop-filter:blur(var(--cxs-glass-blur)) saturate(155%);
  backdrop-filter:blur(var(--cxs-glass-blur)) saturate(155%);
  opacity:1!important;
  transform:none!important;
  transition:transform .24s cubic-bezier(.16,1,.3,1),box-shadow .24s ease,border-color .24s ease,background-color .24s ease!important;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta--assistant{
  background:linear-gradient(135deg,rgba(22,155,255,.78),rgba(0,96,224,.58))!important;
  border-color:rgba(112,209,255,.44)!important;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta--services{
  background:linear-gradient(135deg,rgba(230,42,57,.86),rgba(181,20,48,.66))!important;
  border-color:rgba(255,168,178,.34)!important;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta::before{
  content:"";
  position:absolute;
  z-index:-1;
  top:-80%;
  bottom:-80%;
  left:-44%;
  width:34%;
  pointer-events:none;
  opacity:0;
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.42),transparent);
  transform:translate3d(-180%,0,0) rotate(17deg);
  animation:cxsHeroGlassSweep 7.2s cubic-bezier(.45,0,.2,1) infinite;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta--services::before{animation-delay:1.25s}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta::after{
  content:"";
  position:absolute;
  z-index:-2;
  inset:-35%;
  pointer-events:none;
  background:radial-gradient(circle at 50% 50%,rgba(255,255,255,.14),transparent 58%);
  opacity:.24;
  animation:cxsHeroGlassBreath 5.8s ease-in-out infinite;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta--services::after{animation-delay:-2.1s}
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta:hover,
.cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta:focus-visible{
  transform:translateY(-2px) scale(1.008)!important;
  border-color:rgba(208,238,255,.62)!important;
  box-shadow:0 24px 58px rgba(0,8,50,.29),0 0 0 1px rgba(255,255,255,.07) inset,inset 0 1px 0 rgba(255,255,255,.30)!important;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-tag{
  position:relative;
  display:flex;
  align-items:center;
  gap:12px;
  min-height:38px;
  margin:18px 0 0;
  color:rgba(247,249,255,.68);
  font-size:10px;
  line-height:1.55;
  font-weight:650;
  letter-spacing:.14em;
  text-transform:uppercase;
}
.cxs-hero--visual-v520 .cxs-hero-persistent-tag>span:first-child{
  flex:0 0 34px;
  width:34px;
  height:4px;
  border-radius:999px;
  background:linear-gradient(90deg,#ffbd59,#ffcf7e);
  box-shadow:0 0 18px rgba(255,189,89,.18);
}

/* The progress/control rail is an interaction group, so glass improves grouping. */
.cxs-hero--reference .cxs-hero-rotation{
  width:min(100%,620px)!important;
  margin-top:18px!important;
  padding:13px 14px!important;
  border:1px solid rgba(132,202,255,.16)!important;
  border-radius:19px!important;
  background:linear-gradient(145deg,rgba(7,34,98,.46),rgba(3,20,70,.30))!important;
  box-shadow:0 16px 42px rgba(0,7,42,.16),inset 0 1px 0 rgba(255,255,255,.07)!important;
  -webkit-backdrop-filter:blur(15px) saturate(135%);
  backdrop-filter:blur(15px) saturate(135%);
}
.cxs-hero--reference .cxs-scene-tab{background:rgba(255,255,255,.15)!important}
.cxs-hero--reference .cxs-pause{
  min-height:34px!important;
  padding:5px 9px!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:999px!important;
  background:rgba(255,255,255,.055)!important;
  text-decoration:none!important;
  -webkit-backdrop-filter:blur(8px);
  backdrop-filter:blur(8px);
}
.cxs-hero--reference .cxs-pause:hover,.cxs-hero--reference .cxs-pause:focus-visible{background:rgba(255,255,255,.11)!important}

/* --------------------------------------------------------------------------
   HEADER: the header shell already uses glass. Refine only the action tools so
   the interactive affordances feel consistent without adding another panel.
   -------------------------------------------------------------------------- */
.cxs-header-search-toggle,
.cxs-mobile-menu-toggle,
.cxs-header-commerce__icon,
.cxs-header-account__trigger{
  border-color:rgba(177,220,255,.20)!important;
  background:linear-gradient(145deg,rgba(255,255,255,.115),rgba(255,255,255,.055))!important;
  box-shadow:0 9px 26px rgba(0,9,49,.16),inset 0 1px 0 rgba(255,255,255,.14)!important;
  -webkit-backdrop-filter:blur(15px) saturate(145%);
  backdrop-filter:blur(15px) saturate(145%);
}
.cxs-header-search-toggle:hover,
.cxs-mobile-menu-toggle:hover,
.cxs-header-commerce__icon:hover,
.cxs-header-account__trigger:hover,
.cxs-header-account.is-open .cxs-header-account__trigger{
  background:linear-gradient(145deg,rgba(255,255,255,.18),rgba(39,173,255,.09))!important;
  border-color:rgba(188,226,255,.36)!important;
}

/* --------------------------------------------------------------------------
   SECONDARY ACTION BARS: frosted white on light surfaces. These are action
   groupings, not content cards, so glass clarifies hierarchy without noise.
   -------------------------------------------------------------------------- */
.cxs-services-help,
.cxs-academy--showcase .cxs-academy-foot{
  padding:14px 16px!important;
  border:1px solid rgba(20,72,132,.09)!important;
  border-radius:20px!important;
  background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(246,251,255,.56))!important;
  box-shadow:0 14px 36px rgba(16,54,99,.07),inset 0 1px 0 rgba(255,255,255,.88)!important;
  -webkit-backdrop-filter:blur(16px) saturate(128%);
  backdrop-filter:blur(16px) saturate(128%);
}
.cxs-services-help{margin-top:28px!important}
.cxs-academy--showcase .cxs-academy-foot{margin-top:24px!important}

@keyframes cxsHeroPersistentIn{
  from{opacity:0;transform:translate3d(0,16px,0);filter:blur(5px)}
  to{opacity:1;transform:none;filter:none}
}
@keyframes cxsHeroGlassSweep{
  0%,63%{opacity:0;transform:translate3d(-180%,0,0) rotate(17deg)}
  69%{opacity:.72}
  83%{opacity:.12;transform:translate3d(520%,0,0) rotate(17deg)}
  84%,100%{opacity:0;transform:translate3d(520%,0,0) rotate(17deg)}
}
@keyframes cxsHeroGlassBreath{
  0%,100%{opacity:.18;transform:scale(.96)}
  50%{opacity:.34;transform:scale(1.04)}
}

@media(max-width:700px){
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions{margin-top:22px}
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-ctas{gap:10px!important}
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta{min-height:56px!important;padding:12px 10px!important;border-radius:17px!important;font-size:12px!important}
  .cxs-hero--visual-v520 .cxs-hero-persistent-tag{margin-top:18px;font-size:8px;letter-spacing:.13em}
  .cxs-hero--visual-v520 .cxs-hero-persistent-tag>span:first-child{flex-basis:28px;width:28px;height:3px}
  .cxs-hero--reference .cxs-hero-rotation{margin-top:16px!important;padding:12px!important;border-radius:18px!important}
  .cxs-services-help,.cxs-academy--showcase .cxs-academy-foot{padding:13px 14px!important;border-radius:18px!important}
}
@media(max-width:350px){
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-ctas{grid-template-columns:1fr!important}
}
@media(prefers-reduced-motion:reduce){
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions,
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta::before,
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta::after{animation:none!important}
  .cxs-hero--visual-v520 .cxs-hero-persistent-actions .cxs-hero-cta{transition:none!important}
}
