.morph-section {
  position: relative;
  overflow: hidden;
  padding: 82px 0;
  color: #fff;
  background:
    radial-gradient(circle at 76% 48%, rgba(55, 121, 231, .28), transparent 32%),
    linear-gradient(135deg, #081d45 0%, #0c2c63 58%, #071a3d 100%);
}

.morph-section::before {
  content: "D";
  position: absolute;
  left: -42px;
  bottom: -155px;
  color: rgba(255, 255, 255, .025);
  font: italic 480px/.8 Georgia, serif;
  pointer-events: none;
}

.morph-grid {
  position: absolute;
  inset: 0;
  opacity: .45;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, transparent, #000 35%, #000 100%);
}

.morph-layout {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: .82fr 1.18fr;
  align-items: center;
  gap: 70px;
  min-height: 450px;
}

.morph-copy h2 {
  margin: 0;
  font-size: clamp(38px, 4.8vw, 62px);
  line-height: 1.18;
  letter-spacing: -.045em;
}

.morph-copy > p {
  max-width: 480px;
  margin: 24px 0 32px;
  color: #b9c9e2;
  font-size: 15px;
  line-height: 1.9;
}

.morph-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.morph-sequence span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: #8497b8;
  font-size: 11px;
  transition: .35s ease;
}

.morph-sequence span i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.morph-sequence span.is-active {
  border-color: rgba(99, 223, 224, .48);
  color: #89ece9;
  background: rgba(69, 203, 207, .09);
  box-shadow: 0 0 24px rgba(66, 211, 217, .08);
}

.morph-stage {
  position: relative;
  width: min(100%, 570px);
  min-height: 440px;
  justify-self: end;
  display: grid;
  place-items: center;
  padding: 20px 20px 64px;
  border: 1px solid rgba(137, 192, 255, .16);
  border-radius: 32px;
  color: #fff;
  background: linear-gradient(145deg, rgba(255, 255, 255, .075), rgba(255, 255, 255, .018));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 34px 85px rgba(0, 7, 25, .28);
  backdrop-filter: blur(12px);
  transform-style: preserve-3d;
  perspective: 900px;
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  isolation: isolate;
}

.morph-stage:hover {
  transform: translateY(-5px) rotateX(1.5deg) rotateY(-1.5deg);
  border-color: rgba(123, 212, 242, .34);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 42px 95px rgba(0, 7, 25, .36);
}

.morph-stage:focus-visible {
  outline: 3px solid #7ee4e7;
  outline-offset: 5px;
}

.morph-aura {
  position: absolute;
  width: 290px;
  height: 290px;
  border: 1px solid rgba(112, 190, 255, .16);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(79, 141, 229, .035), 0 0 90px rgba(52, 127, 232, .17);
  animation: morphAura 5s ease-in-out infinite;
}

.morph-canvas-shell {
  position: relative;
  z-index: 2;
  display: block;
  width: min(360px, 82vw);
  aspect-ratio: 1;
  transform: translateZ(35px);
}

.morph-canvas-shell::after {
  content: "";
  position: absolute;
  inset: 10% 15%;
  border-radius: 50%;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, .11) 50%, transparent 65%);
  transform: translateX(-130%) rotate(-8deg);
  animation: morphShine 4.8s ease-in-out infinite;
  pointer-events: none;
}

#morphCanvas {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 24px 23px rgba(0, 9, 31, .3));
}

.morph-label {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 23px;
  z-index: 3;
  color: #dce9fb;
  font-size: 12px;
  letter-spacing: .08em;
  text-align: center;
}

.morph-click-hint {
  position: absolute;
  right: 21px;
  top: 20px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: #6f87aa;
  font: 700 8px/1 Arial, sans-serif;
  letter-spacing: .18em;
}

.morph-click-hint i {
  width: 19px;
  height: 19px;
  border: 1px solid rgba(126, 228, 231, .45);
  border-radius: 50%;
  position: relative;
}

.morph-click-hint i::after {
  content: "";
  position: absolute;
  inset: 5px;
  border-radius: 50%;
  background: #7ee4e7;
  animation: morphClick 1.8s ease-in-out infinite;
}

@keyframes morphAura {
  50% { transform: scale(1.06); opacity: .7; }
}

@keyframes morphShine {
  0%, 22% { transform: translateX(-130%) rotate(-8deg); }
  65%, 100% { transform: translateX(140%) rotate(-8deg); }
}

@keyframes morphClick {
  50% { transform: scale(.4); opacity: .45; }
}

@media (max-width: 900px) {
  .morph-layout { grid-template-columns: 1fr; gap: 42px; }
  .morph-copy { text-align: center; }
  .morph-copy .eyebrow, .morph-sequence { justify-content: center; }
  .morph-copy > p { margin-left: auto; margin-right: auto; }
  .morph-stage { justify-self: center; }
}

@media (max-width: 560px) {
  .morph-section { padding: 62px 0; }
  .morph-layout { min-height: 0; gap: 32px; }
  .morph-copy h2 { font-size: 38px; }
  .morph-copy > p { font-size: 13px; margin-top: 18px; }
  .morph-stage { min-height: 365px; padding-bottom: 56px; border-radius: 24px; }
  .morph-canvas-shell { width: min(310px, 83vw); }
  .morph-aura { width: 235px; height: 235px; }
  .morph-sequence { gap: 6px; }
  .morph-sequence span { padding: 8px 9px; font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  .morph-aura, .morph-canvas-shell::after, .morph-click-hint i::after { animation: none; }
}
