
:root {
  --bg: #0f0f12;
  --surface: #1a1a1f;
  --border: #2d2d35;
  --text: #e8e8ed;
  --text-muted: #8b8b9a;
  --accent: #6366f1;
  --accent-hover: #818cf8;
  --error: #f87171;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: "DM Sans", system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem;
}
.container { width: 100%; max-width: 480px; }
.header { text-align: center; margin-bottom: 2rem; }
.header--small { margin-bottom: 1.5rem; }
.logo {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  opacity: 0.9;
}
h1 { font-size: 1.75rem; font-weight: 700; margin: 0 0 0.5rem; }
.tagline { color: var(--text-muted); margin: 0; font-size: 1rem; }
.url-display {
  font-size: 0.9rem;
  color: var(--text-muted);
  word-break: break-all;
  margin: 0;
}
.form { margin-bottom: 1rem; }
.input-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
input[type="url"] {
  width: 100%;
  padding: 1rem 1.25rem;
  font-size: 1rem;
  font-family: inherit;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  transition: border-color 0.2s;
}
input[type="url"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(99,102,241,0.2);
}
input[type="url"]::placeholder { color: var(--text-muted); }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  font-family: inherit;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--accent);
  color: white;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--border); }
.error { color: var(--error); font-size: 0.9rem; margin: 0.5rem 0 0; }
.hint, .permanent-hint {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}
.permanent-hint a { color: var(--accent); }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  text-align: center;
}
.qr-wrap {
  padding: 1rem;
  background: white;
  border-radius: var(--radius);
  display: inline-block;
  margin-bottom: 1.5rem;
}
.qr-image { display: block; }
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; margin-bottom: 1rem; }
.footer { margin-top: auto; padding-top: 2rem; text-align: center; color: var(--text-muted); font-size: 0.875rem; }
