* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Georgia", "Times New Roman", serif;
  background: linear-gradient(135deg, #1a0e0e 0%, #2d1414 50%, #3d1a1a 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(220, 38, 38, 0.12) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 80% 80%,
      rgba(239, 68, 68, 0.08) 0%,
      transparent 55%
    ),
    radial-gradient(
      circle at 40% 10%,
      rgba(34, 197, 94, 0.06) 0%,
      transparent 55%
    );
  pointer-events: none;
}

.container {
  width: 100%;
  max-width: 560px;
  position: relative;
  z-index: 1;
  margin-bottom: 20px;
}

header {
  margin-bottom: 45px;
}

h1 {
  color: #fecaca;
  font-size: 2.6rem;
  text-align: center;
  font-weight: 300;
  letter-spacing: 1.5px;
  text-shadow: 0 0 20px rgba(220, 38, 38, 0.4);
  line-height: 1.3;
}

h1::after {
  content: "";
  display: block;
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #dc2626, transparent);
  margin: 24px auto 0;
}

form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 38px 38px 34px;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 100%;
}

input[type="text"] {
  width: 100%;
  padding: 18px 20px;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(220, 38, 38, 0.35);
  border-radius: 12px;
  margin-bottom: 10px;
  color: #fecaca;
  font-family: "Georgia", serif;
  transition: all 0.25s ease;
}

input[type="text"]::placeholder {
  color: rgba(254, 202, 202, 0.5);
}

input[type="text"]:focus {
  outline: none;
  border-color: #dc2626;
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 18px rgba(220, 38, 38, 0.35);
}

.hint {
  color: #bbf7d0;
  font-size: 0.85rem;
  text-align: left;
  margin: -4px 0 16px 4px;
  font-style: italic;
  opacity: 0.75;
  font-family: "Segoe UI", sans-serif;
}

input[type="submit"] {
  width: 100%;
  padding: 16px;
  font-size: 1rem;
  font-weight: 600;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-family: "Segoe UI", sans-serif;
  transition: all 0.25s ease;
  box-shadow: 0 10px 28px rgba(220, 38, 38, 0.4);
}

input[type="submit"]:hover {
  transform: translateY(-2px);
  box-shadow: 0 15px 36px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #b91c1c 0%, #991b1b 100%);
}

input[type="submit"]:active {
  transform: translateY(0);
}

.wisdom {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  padding: 40px 40px 34px;
  border-radius: 20px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 560px;
  margin-bottom: 36px;
  font-size: 1.25rem;
  line-height: 1.9;
  color: #fecaca;
  text-align: center;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.wisdom.hidden {
  display: none;
}

.wisdom::before {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 18px;
  border: 1px solid rgba(34, 197, 94, 0.2);
  pointer-events: none;
}

.generating {
  color: #86efac;
  font-size: 1.05rem;
  font-style: normal;
  animation: pulse 1.5s ease-in-out infinite;
}

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

footer {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(10px);
  padding: 20px 26px;
  border-radius: 14px;
  border: 1px solid rgba(220, 38, 38, 0.25);
  text-align: center;
  font-size: 0.9rem;
  color: #bbf7d0;
  max-width: 560px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  font-family: "Segoe UI", sans-serif;
}

/* Responsive */

@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  form,
  .wisdom {
    padding: 28px 22px;
  }

  .wisdom {
    font-size: 1.05rem;
  }

  footer {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  body {
    padding: 30px 14px;
  }

  h1 {
    font-size: 1.6rem;
  }

  form,
  .wisdom {
    padding: 24px 18px;
  }
}
