:root {
  --bg: #0f1117;
  --panel: #171b24;
  --border: #2a3142;
  --text: #e8ecf4;
  --muted: #9aa3b8;
  --accent: #6ee7b7;
  --accent-dim: #34d399;
  --danger: #f87171;
  --radius: 12px;
  --font: "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

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

.container {
  width: min(920px, 92vw);
  margin: 0 auto;
}

.hero {
  padding: 3rem 0 2rem;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, #141a28 0%, var(--bg) 100%);
}

.eyebrow {
  color: var(--accent);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0 0 0.5rem;
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 2.8rem);
}

.subtitle {
  color: var(--muted);
  max-width: 52ch;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin: 1.5rem 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.9rem;
  color: var(--muted);
}

input, select, textarea {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  padding: 0.65rem 0.75rem;
  font: inherit;
}

input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--accent-dim);
  border-color: transparent;
}

.actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.btn {
  border: none;
  border-radius: 8px;
  padding: 0.7rem 1.2rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.btn.primary {
  background: var(--accent);
  color: #0b1218;
}

.btn.primary:hover { background: var(--accent-dim); }

.btn.secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

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

.results.hidden { display: none; }

.result-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.result-block:last-of-type { border-bottom: none; }

.result-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.result-header h3 {
  margin: 0;
  font-size: 0.95rem;
  color: var(--accent);
}

.copy-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 6px;
  padding: 0.25rem 0.6rem;
  font-size: 0.8rem;
  cursor: pointer;
}

.copy-btn:hover { color: var(--text); border-color: var(--accent); }

.output {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 0.95rem;
}

pre.output {
  font-family: inherit;
  background: var(--bg);
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid var(--border);
}

.upsell {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 8px;
  background: #121820;
  border: 1px dashed var(--border);
}

.upsell .buy-pro {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.upsell input {
  width: 100%;
  margin: 0.5rem 0;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.85rem;
}

.footer a { color: var(--accent); }

.seo-content { margin-top: 0; }
.seo-content h2 { font-size: 1.1rem; color: var(--accent); margin-top: 0; }
.seo-content a { color: var(--accent); }