.ai-shaped-section {
  position: relative;
  padding: var(--site-section-y) var(--site-gutter);
  /* min-height: clamp(420px, 52vw, 600px); */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.ai-shaped-grid {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1440px;
  height: 100%;
  opacity: 0.15;
  pointer-events: none;
  background-image: 
    linear-gradient(to right, rgba(255,255,255,0.3) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255,255,255,0.3) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 50%, black, transparent);
}

.ai-shaped-gradient-blur {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 1000px;
  height: 300px;
  background: radial-gradient(ellipse at center, rgba(146, 39, 143, 0.25) 0%, rgba(222, 137, 122, 0.15) 40%, transparent 70%);
  filter: blur(60px);
  pointer-events: none;
}

.ai-shaped-container {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
}

.ai-shaped-title {
  font-family: 'Anybody', sans-serif;
  font-size: clamp(28px, 7vw, 48px);
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 24px;
  letter-spacing: -0.02em;
}

.ai-shaped-title-line1 {
  display: block;
  color: white;
}

.ai-shaped-title-line1 .highlight {
  background: linear-gradient(92.03deg, #fff 30%, #de897ae6 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.ai-shaped-title-line2 {
  display: block;
}

.ai-shaped-title-line2 .white-text {
  color: white;
}

.ai-shaped-rotating-wrapper {
  position: relative;
  height: 55px;
  overflow: hidden;
  display: inline-block;
  vertical-align: bottom;
  clip-path: inset(0);
  -webkit-clip-path: inset(0);
  text-align: left;
}

.ai-shaped-rotating-text {
  display: block;
  animation: rotateWords 9s ease-in-out infinite;
}

.ai-shaped-word {
  color: #fcd2d2;
  height: 55px;
  line-height: 55px;
  display: block;
  position: relative;
  white-space: nowrap;
}

.ai-shaped-word::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #de897a 0%, #92278f 100%);
  border-radius: 2px;
}

@keyframes rotateWords {
  0%, 28% {
    transform: translateY(0);
  }
  33%, 61% {
    transform: translateY(-55px);
  }
  66%, 94% {
    transform: translateY(-110px);
  }
  100% {
    transform: translateY(-165px);
  }
}

.ai-shaped-subtitle {
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.6;
  max-width: 720px;
  margin: 0 auto 32px;
}

.ai-shaped-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(to right, #de897a, #92278f);
  border-radius: 6px;
  color: white;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 400;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ai-shaped-cta::before {
  content: '';
  position: absolute;
  inset: 0;
  box-shadow: inset 0px 0px 9px 1px #dc7ff3;
  pointer-events: none;
  border-radius: 6px;
}

.ai-shaped-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(222, 137, 122, 0.4);
}

.ai-shaped-cta:focus-visible {
  outline: 2px solid #de897a;
  outline-offset: 3px;
  box-shadow: var(--site-focus);
}


@media (max-width: 768px) {
  .ai-shaped-section {
    padding-block: var(--site-section-y-compact);
    min-height: auto;
  }
  
  .ai-shaped-rotating-wrapper {
    height: 38px;
  }
  
  .ai-shaped-word {
    height: 38px;
    line-height: 38px;
  }
  
  .ai-shaped-rotating-text {
    animation-name: rotateWordsMobile;
  }
  
  .ai-shaped-subtitle {
    font-size: 14px;
  }
}

@keyframes rotateWordsMobile {
  0%, 28% {
    transform: translateY(0);
  }
  33%, 61% {
    transform: translateY(-38px);
  }
  66%, 94% {
    transform: translateY(-76px);
  }
  100% {
    transform: translateY(-114px);
  }
}

@media (max-width: 480px) {
  .ai-shaped-section {
    padding-block: var(--site-section-y-compact);
  }
  
  .ai-shaped-rotating-wrapper {
    height: 32px;
  }
  
  .ai-shaped-word {
    height: 32px;
    line-height: 32px;
  }
  
  .ai-shaped-rotating-text {
    animation-name: rotateWordsSmall;
  }

  .ai-shaped-subtitle {
    font-size: 13px;
    line-height: 1.5;
  }
}

@keyframes rotateWordsSmall {
  0%, 28% {
    transform: translateY(0);
  }
  33%, 61% {
    transform: translateY(-32px);
  }
  66%, 94% {
    transform: translateY(-64px);
  }
  100% {
    transform: translateY(-96px);
  }
}
