/* Landing page custom styles for Nominal */

.nominal-gradient-text {
  background: linear-gradient(to right, #fff 20%, #7dd3fc 50%, #818cf8 80%, #a78bfa 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
}

.nominal-button-glow {
  box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 0 20px 5px rgba(139,233,253,0.3), 0 0 40px 10px rgba(167,139,250,0.2);
  transition: all 0.3s ease;
}

.nominal-button-glow:hover {
  box-shadow: 0 0 0 0 rgba(255,255,255,0), 0 0 30px 8px rgba(139,233,253,0.4), 0 0 50px 15px rgba(167,139,250,0.3);
}

.bg-mesh {
  background-image: radial-gradient(circle at 20% 30%, rgba(124, 58, 237, 0.3) 0%, transparent 25%),
                   radial-gradient(circle at 70% 60%, rgba(56, 189, 248, 0.3) 0%, transparent 25%),
                   radial-gradient(circle at 40% 80%, rgba(167, 139, 250, 0.3) 0%, transparent 25%),
                   radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.3) 0%, transparent 25%);
  background-size: 100% 100%;
}

.mesh-overlay {
  background-image: 
    linear-gradient(to bottom, rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.6)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23a78bfa' fill-opacity='0.1'%3E%3Cpath opacity='.5' d='M96 95h4v1h-4v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4h-9v4h-1v-4H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15v-9H0v-1h15V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h9V0h1v15h4v1h-4v9h4v1h-4v9h4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9h-9v9zm10 0h9v-9h-9v9z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.float-up {
  animation: float-up 1s ease-out forwards;
  opacity: 0;
  transform: translateY(20px);
}

@keyframes float-up {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.float-up-delay-1 {
  animation-delay: 0.2s;
}

.float-up-delay-2 {
  animation-delay: 0.4s;
}

.float-up-delay-3 {
  animation-delay: 0.6s;
}

.float-up-delay-4 {
  animation-delay: 0.8s;
}

.scaling-dots {
  position: relative;
}

.scaling-dots::before {
  content: "";
  position: absolute;
  top: -120px;
  left: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle at center, rgba(139, 92, 246, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 8s infinite alternate;
}

.scaling-dots::after {
  content: "";
  position: absolute;
  bottom: -80px;
  right: -80px;
  width: 180px;
  height: 180px;
  background: radial-gradient(circle at center, rgba(56, 189, 248, 0.15) 0%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  animation: pulse 6s infinite alternate-reverse;
}

@keyframes pulse {
  0% {
    transform: scale(0.8);
    opacity: 0.3;
  }
  100% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.card-hover {
  transition: all 0.3s ease;
}

.card-hover:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.terminal-animation::before {
  content: "|";
  animation: blink 1s infinite step-end;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

.screenshot-mask {
  mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 80%, transparent 100%);
}

/* Custom animations for specific elements */
.title-animation {
  animation: slide-in-blur 1s cubic-bezier(0.23, 1, 0.32, 1) forwards;
  opacity: 0;
  transform: translateY(-10px);
  filter: blur(8px);
}

@keyframes slide-in-blur {
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

/* Wavy line animation */
.wavy-line {
  position: relative;
  overflow: hidden;
}

.wavy-line::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, #7dd3fc, #818cf8, #a78bfa);
  transform: translateX(-100%);
  animation: wave-flow 3s ease-in-out infinite;
}

@keyframes wave-flow {
  0% { transform: translateX(-100%); }
  50% { transform: translateX(0); }
  100% { transform: translateX(100%); }
}