:root {
  --bg: #0f1419;
  --surface: #17212b;
  --border: #2b5278;
  --text: #e4ecf2;
  --muted: #8a9aa7;
  --accentStart: #2aabee;
  --accentEnd: #229ed9;
  --radius: 12px;
  --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.layout {
  max-width: 560px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.brand {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem;
  background: linear-gradient(135deg, var(--accentStart), var(--accentEnd));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.tagline {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(43, 82, 120, 0.35);
  border-radius: var(--radius);
  padding: 1.25rem 1.35rem;
}

label.field-label {
  display: block;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin-bottom: 0.45rem;
}

textarea,
input[type='text'] {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(43, 82, 120, 0.5);
  border-radius: 8px;
  padding: 0.65rem 0.75rem;
  resize: vertical;
  min-height: 88px;
}

textarea:focus,
input:focus {
  outline: none;
  border-color: var(--accentEnd);
  box-shadow: 0 0 0 3px rgba(34, 158, 217, 0.2);
}

.result-block {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(43, 82, 120, 0.25);
}

.result-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: stretch;
}

.result-url {
  flex: 1 1 180px;
  font-size: 0.9rem;
  word-break: break-all;
  padding: 0.65rem 0.75rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  border: 1px solid rgba(43, 82, 120, 0.35);
  color: #7dd3fc;
}

.btn {
  font: inherit;
  cursor: pointer;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1rem;
  font-weight: 600;
  transition: transform 0.08s ease, filter 0.15s ease;
}

.btn:active {
  transform: scale(0.98);
}

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

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

.btn-ghost {
  background: rgba(43, 82, 120, 0.35);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(43, 82, 120, 0.55);
}

.btn-lg {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1.05rem;
}

.hint {
  margin: 1rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.error {
  margin-top: 0.75rem;
  color: #f87171;
  font-size: 0.9rem;
}

.page-bridge {
  text-align: center;
}

.page-bridge .card {
  padding: 2rem 1.5rem;
}

.page-bridge p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.back-link {
  display: inline-block;
  margin-top: 1.5rem;
  color: var(--accentStart);
  text-decoration: none;
  font-size: 0.9rem;
}

.back-link:hover {
  text-decoration: underline;
}
