.connect-experience {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(40px, 5vh, 64px) 0 24px;
  background: #030918;
  color: #ffffff;
  text-align: center;
}

.connect-experience__light {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    radial-gradient(ellipse at var(--light-x, 50%) var(--light-y, 62%), #155cf347, transparent 55%),
    radial-gradient(ellipse at 80% 80%, #7755e51c, transparent 46%);
  pointer-events: none;
}

.connect-space__nebula {
  position: absolute;
  z-index: -1;
  inset: -15%;
  background:
    radial-gradient(ellipse at 18% 24%, #4164bd40, transparent 32%),
    radial-gradient(ellipse at 78% 40%, #773f9b38, transparent 35%),
    radial-gradient(ellipse at 50% 80%, #156ba850, transparent 38%),
    radial-gradient(ellipse at 65% 10%, #1c3a7850, transparent 30%);
  filter: blur(32px);
  animation: connect-nebula-drift 36s ease-in-out infinite alternate;
  pointer-events: none;
}

.connect-space__stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connect-space__toggle {
  position: absolute;
  right: 24px;
  bottom: 22px;
  padding: 6px 10px;
  border: 1px solid #aac4ee40;
  border-radius: 999px;
  color: #b5c7e3;
  background: #03091880;
  font-size: 11px;
}

.connect-space__toggle[hidden] {
  display: none;
}

.connect-space__toggle:hover,
.connect-space__toggle:focus-visible {
  color: #ffffff;
  border-color: #a4c5ff;
}

.connect-experience[data-space-paused] .connect-space__nebula {
  animation-play-state: paused;
}

@keyframes connect-nebula-drift {
  from {
    transform: translate3d(-3%, -2%, 0) rotate(-8deg) scale(1);
  }
  to {
    transform: translate3d(4%, 3%, 0) rotate(8deg) scale(1.15);
  }
}

@media (max-width: 640px) {
  .connect-space__toggle {
    position: relative;
    display: block;
    right: auto;
    bottom: auto;
    margin: 12px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-space__nebula {
    animation: none;
  }
}

.connect-experience__inner {
  position: relative;
}

.connect-experience__eyebrow {
  margin-bottom: 20px;
  color: #e1ebff;
  font-family: var(--f-head);
  font-size: 18px;
  letter-spacing: -.04em;
}

.connect-experience__eyebrow span {
  color: #9cbfff;
  font-weight: 300;
}

.connect-experience h1 {
  font-family: var(--f-head);
  font-size: clamp(38px, 5.2vw, 72px);
  font-weight: 300;
  line-height: 1.12;
  letter-spacing: -.055em;
  text-wrap: balance;
  animation: connect-arrive 1.1s both;
}

.connect-experience h1 em {
  background: linear-gradient(105deg, #a4d7ff 8%, #8faaff 48%, #d5baff 95%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  font-style: normal;
}

.connect-experience__lead {
  margin: 22px auto 24px;
  max-width: 48ch;
  color: #abbcd9;
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.65;
  animation: connect-arrive 1.1s .12s both;
}

.connect-experience__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px 28px;
  animation: connect-arrive 1.1s .24s both;
}

.connect-experience__primary {
  isolation: isolate;
  overflow: hidden;
  border: 1px solid #d0e0ff;
  background: #eaf2ff;
  color: #092453;
  box-shadow: 0 0 30px #7daaff30;
  animation: connect-button-pulse 4s 1.4s ease-in-out infinite;
}

.connect-experience__primary::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(110deg, transparent 30%, #ffffffcc 46%, #b7ceff99 50%, transparent 66%);
  transform: translateX(-120%);
  animation: connect-button-shine 4s 1.4s ease-in-out infinite;
  pointer-events: none;
}

.connect-experience__primary:hover,
.connect-experience__primary:focus-visible {
  background: #ffffff;
  box-shadow: 0 0 48px #7daaff70, 0 0 0 4px #9fc5ff18;
  transform: translateY(-3px);
  animation-play-state: paused;
}

.connect-experience__primary:focus-visible {
  outline: 2px solid #a4c5ff;
  outline-offset: 5px;
}

.connect-experience__primary:active {
  transform: translateY(0) scale(.98);
}

.connect-experience[data-space-paused] .connect-experience__primary,
.connect-experience[data-space-paused] .connect-experience__primary::before {
  animation-play-state: paused;
}

@keyframes connect-button-pulse {
  0%,
  100% {
    box-shadow: 0 0 24px #7daaff30, 0 0 0 0 #a4c5ff00;
  }
  50% {
    box-shadow: 0 0 46px #7daaff65, 0 0 0 5px #a4c5ff12;
  }
}

@keyframes connect-button-shine {
  0%,
  30% {
    transform: translateX(-120%);
  }
  65%,
  100% {
    transform: translateX(120%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-experience__primary,
  .connect-experience__primary::before {
    animation: none;
  }

  .connect-experience__primary:hover,
  .connect-experience__primary:focus-visible,
  .connect-experience__primary:active {
    transform: none;
  }
}

.connect-experience__contact {
  color: #c3d2ec;
  font-size: 14px;
  text-underline-offset: 5px;
}

.connect-experience__contact:hover {
  color: #ffffff;
  text-decoration: underline;
}

.connect-scene {
  position: relative;
  isolation: isolate;
  width: min(100%, 1000px);
  height: 310px;
  margin: 22px auto 0;
  perspective: 1100px;
}

.connect-scene__halo {
  position: absolute;
  z-index: -1;
  inset: 28% 17% 5%;
  border-radius: 50%;
  background: #2268ed;
  filter: blur(64px);
  opacity: .38;
}

.connect-scene__paths {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #719dfb38;
  stroke-width: 1;
}

.connect-scene__paths path {
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: connect-path 2.8s .3s ease-out forwards;
}

.connect-scene__window {
  position: absolute;
  inset: 42px 20% 20px;
  overflow: hidden;
  border: 1px solid #8bb5ff8c;
  border-radius: 14px;
  background: #0e172a;
  box-shadow: 0 0 0 5px #b4d3ff08, 0 25px 80px #00000080, 0 -6px 44px #6b9cff30;
  transform: rotateX(12deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(#000000 65%, transparent);
  animation: connect-materialize 1.5s .25s both;
}

.connect-scene__window img {
  width: 100%;
  height: auto;
}

.connect-scene__channel {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid #8eafe340;
  border-radius: 999px;
  background: #0c1931eb;
  color: #dce9ff;
  box-shadow: 0 8px 32px #00000040;
  font-size: 12px;
  white-space: nowrap;
  animation: connect-arrive 1.2s .65s both;
}

.connect-scene__channel i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--channel-color, #a2baff);
  box-shadow: 0 0 10px var(--channel-color, #a2baff);
}

.connect-scene__channel--whatsapp {
  --channel-color: #6ee7b7;
  top: 42px;
  left: 6%;
}

.connect-scene__channel--voice {
  --channel-color: #80cdff;
  top: 185px;
  left: 2%;
}

.connect-scene__channel--crm {
  --channel-color: #a5b4ff;
  top: 45px;
  right: 8%;
}

.connect-scene__channel--ai {
  --channel-color: #d6a4ff;
  top: 185px;
  right: 0;
}

.connect-scene__signature {
  position: absolute;
  bottom: 2px;
  width: 100%;
  color: #b2c8eb;
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.connect-experience__explore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  color: #a5b8d8;
  font-size: 12px;
}

.connect-experience__explore:hover {
  color: #ffffff;
}

@keyframes connect-arrive {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes connect-materialize {
  from {
    opacity: 0;
    transform: translateY(36px) rotateX(24deg) scale(.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) rotateX(12deg) scale(1);
  }
}

@keyframes connect-path {
  to {
    stroke-dashoffset: 0;
  }
}

@media (max-width: 640px) {
  .connect-experience h1 {
    font-size: clamp(34px, 8.3vw, 48px);
  }

  .connect-experience__actions {
    flex-direction: column;
    gap: 16px;
  }

  .connect-scene {
    height: 260px;
    margin-top: 24px;
  }

  .connect-scene__window {
    inset: 60px 4% 10px;
  }

  .connect-scene__channel {
    padding: 7px 10px;
    font-size: 10px;
  }

  .connect-scene__channel--whatsapp {
    top: 15px;
    left: 3%;
  }

  .connect-scene__channel--crm {
    top: 15px;
    right: 6%;
  }

  .connect-scene__channel--voice {
    top: 192px;
    left: 0;
  }

  .connect-scene__channel--ai {
    top: 192px;
    right: 0;
  }

  .connect-scene__signature {
    bottom: -4px;
    font-size: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .connect-experience h1,
  .connect-experience__lead,
  .connect-experience__actions,
  .connect-scene__window,
  .connect-scene__channel,
  .connect-scene__paths path {
    animation: none;
  }

  .connect-scene__paths path {
    stroke-dashoffset: 0;
  }
}
