﻿@import url("https://fonts.googleapis.com/css2?family=Noto+Sans+SC:wght@400;500;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --ink: #1b1c22;
  --muted: #5d606c;
  --accent: #ff6b4a;
  --accent-2: #ffb14a;
  --bg: #fff3e6;
  --panel: #ffffff;
  --shadow: 0 30px 80px rgba(21, 16, 40, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans SC", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top, #fff6ef, var(--bg));
  overflow-x: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 999px;
  filter: blur(0px);
  opacity: 0.55;
  z-index: 0;
}

.orb-a {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 107, 74, 0.5), transparent 70%);
  top: -140px;
  left: -80px;
}

.orb-b {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(255, 177, 74, 0.45), transparent 70%);
  bottom: -200px;
  right: -140px;
}

.shell {
  position: relative;
  z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 64px 20px 80px;
  display: grid;
  gap: 28px;
  animation: fadeIn 700ms ease-out;
}

.hero {
  display: grid;
  gap: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

h1 {
  font-family: "Playfair Display", serif;
  font-size: clamp(32px, 4vw, 54px);
  margin: 0;
}

.subhead {
  font-size: 16px;
  color: var(--muted);
  margin: 0;
  max-width: 560px;
}

.panel {
  background: var(--panel);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
  animation: rise 650ms ease-out;
}

.label {
  font-weight: 600;
  font-size: 15px;
}

textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid #f0d6c8;
  padding: 16px;
  font-size: 15px;
  line-height: 1.6;
  min-height: 180px;
  resize: vertical;
  font-family: inherit;
  background: #fffaf6;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

button {
  border: none;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease;
  box-shadow: 0 14px 30px rgba(255, 107, 74, 0.3);
}

button:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.status {
  font-size: 14px;
  color: var(--muted);
}

.output {
  border: 1px solid rgba(255, 107, 74, 0.2);
}

.output-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.output h2 {
  margin: 0;
  font-size: 20px;
}

.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid rgba(255, 107, 74, 0.4);
  box-shadow: none;
}

pre {
  white-space: pre-wrap;
  word-break: break-word;
  background: #fff5ee;
  border-radius: 16px;
  padding: 16px;
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  min-height: 160px;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

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

@media (max-width: 720px) {
  .shell {
    padding: 40px 16px 60px;
  }

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