:root {
  --bg-a: #f6efe5;
  --bg-b: #dce8f2;
  --ink: #1f2a36;
  --muted: #55606d;
  --card: rgba(255, 255, 255, 0.82);
  --line: rgba(31, 42, 54, 0.15);
  --accent: #d76a2c;
  --accent-strong: #b74f16;
  --chip: #eef3f8;
  --ok: #1d7b4f;
  --danger: #b83b3b;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Pretendard", "Space Grotesk", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 700px at 10% -10%, #ffe9d5, transparent 62%), radial-gradient(1200px 700px at 90% 0%, #d8ecff, transparent 58%), linear-gradient(155deg, var(--bg-a), var(--bg-b));
}

.app-shell {
  width: min(980px, calc(100% - 2rem));
  margin: 2.4rem auto 3rem;
  display: grid;
  gap: 1rem;
}

.hero {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.35));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1.4rem 1.2rem;
  backdrop-filter: blur(5px);
  animation: rise-in 500ms ease both;
}

.hero-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.lang-btn {
  padding: 0.4rem 0.72rem;
  font-size: 0.82rem;
  white-space: nowrap;
}

.hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(1.5rem, 3.3vw, 2.35rem);
  letter-spacing: -0.03em;
}

.badge {
  display: inline-flex;
  margin: 0;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 0.78rem;
  font-weight: 600;
}

.hero-copy {
  margin: 0;
  color: var(--muted);
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem;
  backdrop-filter: blur(6px);
  animation: rise-in 620ms ease both;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

h2 {
  margin: 0 0 0.8rem;
  font-size: 1rem;
}

.grid.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.92rem;
}

label > span {
  font-weight: 600;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.68rem 0.78rem;
  color: var(--ink);
  font: inherit;
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 106, 44, 0.18);
}

textarea {
  resize: vertical;
  line-height: 1.45;
}

.preset-title {
  margin: 0.1rem 0 0.45rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.chip-btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.35rem 0.72rem;
  font-size: 0.83rem;
  background: var(--chip);
  color: var(--ink);
  cursor: pointer;
}

.chip-btn:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.radio-list {
  display: grid;
  gap: 0.55rem;
}

.preset-option {
  width: 100%;
  text-align: left;
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.75);
  padding: 0.7rem;
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.preset-option:hover {
  border-color: rgba(215, 106, 44, 0.5);
  transform: translateY(-1px);
}

.preset-option:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(215, 106, 44, 0.18);
}

.preset-option.is-selected {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(215, 106, 44, 0.14);
  background: rgba(255, 249, 243, 0.95);
}

.radio-title {
  display: block;
  font-weight: 700;
}

.radio-desc {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.86rem;
}

.action-row {
  margin-top: 0.65rem;
  display: flex;
  align-items: center;
  gap: 0.7rem;
}

.primary-btn,
.ghost-btn {
  border-radius: 11px;
  border: 1px solid transparent;
  padding: 0.52rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.primary-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff;
}

.primary-btn:hover {
  filter: brightness(1.04);
}

.ghost-btn {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
}

.ghost-btn:hover {
  border-color: var(--accent);
}

.hint,
.status {
  margin: 0.6rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.status.ok {
  color: var(--ok);
}

.status.error {
  color: var(--danger);
}

@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app-shell {
    width: min(980px, calc(100% - 1rem));
    margin-top: 1rem;
  }

  .grid.two-col {
    grid-template-columns: 1fr;
  }

  .section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}
