:root {
  --bg-top: #fff7f1;
  --bg-bottom: #ffe7ec;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: #f6cbd3;
  --text-main: #3f2e36;
  --text-soft: #7c636c;
  --accent: #ef7f96;
  --accent-dark: #d45b74;
  --accent-light: #fff0f3;
  --error-bg: #fff1f1;
  --error-text: #b54458;
  --shadow: 0 18px 45px rgba(197, 120, 141, 0.18);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Noto Sans KR", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.7), transparent 40%),
    linear-gradient(180deg, var(--bg-top), var(--bg-bottom));
}

button,
input {
  font: inherit;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 560px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.app-card {
  padding: 32px 24px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
  line-height: 1.2;
}

.description {
  margin: 14px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.form {
  margin-top: 28px;
}

.label {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
}

.input {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid #efc0ca;
  border-radius: 16px;
  background: #fffdfd;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(239, 127, 150, 0.16);
}

.hint {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.button {
  width: 100%;
  margin-top: 18px;
  padding: 15px 18px;
  border: 0;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--accent), #ff9b7f);
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
  box-shadow: 0 12px 20px rgba(239, 127, 150, 0.24);
}

.message {
  min-height: 24px;
  margin: 16px 0 0;
}

.error {
  color: var(--error-text);
  font-weight: 600;
}

.result-card {
  margin-top: 24px;
  padding: 24px;
  background: linear-gradient(180deg, #fffdf8, var(--accent-light));
}

.result-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 700;
}

.result-title {
  margin: 10px 0 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1.4;
}

.result-subtitle {
  margin: 12px 0 0;
  font-weight: 700;
}

.result-quote {
  margin: 12px 0 0;
  color: var(--text-soft);
  line-height: 1.6;
}

.hidden {
  display: none;
}

@media (max-width: 640px) {
  .page {
    padding: 18px;
  }

  .app-card {
    padding: 26px 18px;
    border-radius: 24px;
  }

  .result-card {
    padding: 20px;
    border-radius: 20px;
  }
}
