:root {
  --bg: #0f1b2e;
  --bg-accent: #132841;
  --card: rgba(255, 255, 255, 0.9);
  --ink: #182332;
  --muted: #4d6178;
  --line: #bfd3e4;
  --action: #0f6a77;
  --action-ink: #f3fffd;
  --warn: #8f2d56;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #49a6c920 0%, transparent 40%),
    radial-gradient(circle at 90% 85%, #f2ad7b35 0%, transparent 35%),
    linear-gradient(130deg, var(--bg) 0%, var(--bg-accent) 100%);
  padding: 2rem 1rem 3rem;
}

.layout {
  max-width: 980px;
  margin: 0 auto;
  display: grid;
  gap: 1.2rem;
}

.hero {
  color: #f4fbff;
  padding: 1rem 0.4rem;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: #99d6e4;
}

.hero h1 {
  margin: 0.4rem 0 0.55rem;
  font-size: clamp(1.55rem, 2.6vw, 2.4rem);
  line-height: 1.2;
}

.subtitle {
  margin: 0;
  color: #c3e7f0;
  max-width: 72ch;
}

.panel {
  background: var(--card);
  border: 1px solid #ffffff80;
  border-radius: 14px;
  padding: 1.05rem;
  box-shadow: 0 10px 30px #0314252f;
  backdrop-filter: blur(2px);
}

.panel h2 {
  margin-top: 0;
  margin-bottom: 0.25rem;
}

.hint {
  margin-top: 0;
  color: var(--muted);
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 0.75rem 0;
}

input[type="file"] {
  max-width: 100%;
  border: 1px dashed var(--line);
  background: #f8fbff;
  border-radius: 8px;
  padding: 0.45rem;
}

.text-input {
  width: 100%;
  border: 1px solid var(--line);
  background: #fdfefe;
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  font-size: 0.95rem;
}

.text-input:focus,
textarea:focus {
  outline: 2px solid #65a4b3;
  outline-offset: 0;
}

button {
  border: none;
  border-radius: 8px;
  background: var(--action);
  color: var(--action-ink);
  padding: 0.56rem 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 120ms ease, filter 120ms ease;
}

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

button:active {
  transform: translateY(0);
}

textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.75rem;
  font-size: 0.92rem;
  line-height: 1.35;
  resize: vertical;
  font-family: "IBM Plex Mono", "Menlo", "Consolas", monospace;
  background: #fdfefe;
}

label {
  font-weight: 600;
  display: inline-block;
  margin-top: 0.2rem;
}

.status {
  margin: 0.35rem 0 0;
  min-height: 1.35rem;
  color: var(--muted);
}

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

@media (max-width: 720px) {
  body {
    padding: 1.15rem 0.8rem 2rem;
  }

  .panel {
    padding: 0.85rem;
  }

  button {
    width: 100%;
  }

  input[type="file"] {
    width: 100%;
  }
}
