* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', sans-serif;
}

body {
  background: #05060a;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* animated background glow */
.bg {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, #6d28d9, transparent 60%);
  filter: blur(120px);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(-40px); }
  50% { transform: translateY(40px); }
}

.container {
  position: relative;
  text-align: center;
  width: 90%;
  max-width: 700px;
  animation: fadeIn 1s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

.title {
  font-size: 42px;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.subtitle {
  color: #94a3b8;
  margin-bottom: 20px;
}

.card {
  background: rgba(255,255,255,0.05);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 0 40px rgba(124,58,237,0.2);
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  from { transform: translateY(30px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

textarea {
  width: 100%;
  height: 150px;
  background: transparent;
  border: 1px solid #334155;
  color: white;
  padding: 12px;
  border-radius: 10px;
  resize: none;
  outline: none;
}

button {
  margin-top: 15px;
  width: 100%;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: linear-gradient(90deg, #7c3aed, #22d3ee);
  color: black;
  font-weight: bold;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.03);
}

.output {
  margin-top: 20px;
  text-align: left;
}

pre {
  white-space: pre-wrap;
  color: #cbd5e1;
}