﻿:root {
  --bg-0: #081b29;
  --bg-1: #102f44;
  --bg-2: #16374f;
  --surface: rgba(255, 255, 255, 0.08);
  --surface-strong: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.24);
  --text: #f4fbff;
  --muted: #c4d8e4;
  --accent: #ffb84d;
  --accent-2: #4dd7ff;
  --danger: #ff6b6b;
  --ok: #45e0a8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #27506d 0%, transparent 40%),
    radial-gradient(circle at 90% 0%, #1e4a62 0%, transparent 45%),
    linear-gradient(145deg, var(--bg-0), var(--bg-1) 48%, var(--bg-2));
  padding: 20px;
}

.shell {
  width: min(980px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 18px;
}

.hero {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
}

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  font-size: 0.8rem;
  margin: 0 0 8px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
}

.lede {
  color: var(--muted);
  line-height: 1.55;
  margin: 8px 0 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  display: grid;
  gap: 12px;
}

label {
  font-size: 0.92rem;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

textarea,
input,
button,
pre {
  font: inherit;
}

textarea,
input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  color: var(--text);
  padding: 11px 12px;
}

textarea {
  min-height: 140px;
  resize: vertical;
  line-height: 1.5;
}

.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  font-weight: 600;
  cursor: pointer;
}

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

.primary {
  background: linear-gradient(90deg, var(--accent), #ffd17d);
  color: #2f2106;
}

.ghost {
  background: var(--surface-strong);
  color: var(--text);
}

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

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

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

.output-wrap {
  display: grid;
  gap: 6px;
}

pre {
  margin: 0;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.2);
  padding: 12px;
  white-space: pre-wrap;
  line-height: 1.55;
}

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

  .hero,
  .panel {
    padding: 14px;
    border-radius: 14px;
  }
}
