:root {
  --bg: #0a0a0a;
  --surface: #141414;
  --border: #222;
  --text: #f0f0f0;
  --muted: #777;
  --accent: #00d4aa;
  --accent-hover: #00f5c4;
  --error: #ff4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

main { max-width: 540px; margin: 0 auto; padding: 3rem 1.5rem; }

.hero { text-align: center; margin-bottom: 3rem; }
.hero h1 { font-size: 2.4rem; font-weight: 700; margin-bottom: 0.5rem; }
.hero .subhead { color: var(--muted); font-size: 1.05rem; margin-bottom: 1.5rem; }
.cta {
  background: var(--accent); color: #000; border: none; padding: 1rem 2rem;
  font-size: 1rem; font-weight: 600; border-radius: 8px; cursor: pointer;
  transition: background 0.2s;
}
.cta:hover { background: var(--accent-hover); }
.note { font-size: 0.85rem; color: var(--muted); margin-top: 1rem; }

.steps { margin-bottom: 3rem; }
.steps h2 { font-size: 1.2rem; text-align: center; margin-bottom: 1.5rem; }
.step-list { display: flex; flex-direction: column; gap: 0.75rem; }
.step {
  display: flex; align-items: center; gap: 1rem;
  background: var(--surface); padding: 1rem; border-radius: 8px; border: 1px solid var(--border);
}
.step span {
  width: 28px; height: 28px; background: var(--accent); color: #000;
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.85rem; flex-shrink: 0;
}
.step p { font-size: 0.95rem; }

.form-section, .success {
  background: var(--surface); padding: 2rem; border-radius: 12px; border: 1px solid var(--border);
}
.form-section h2, .success h2 { font-size: 1.3rem; text-align: center; margin-bottom: 1.5rem; }

.field { margin-bottom: 1rem; }
.field input {
  width: 100%; padding: 0.875rem 1rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--text); font-size: 1rem;
}
.field input:focus { outline: none; border-color: var(--accent); }

button[type="submit"], #copy-btn {
  width: 100%; padding: 1rem; background: var(--accent); color: #000;
  border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer;
}
button[type="submit"]:hover, #copy-btn:hover { background: var(--accent-hover); }
button:disabled { opacity: 0.6; cursor: not-allowed; }

.error { color: var(--error); text-align: center; margin-top: 1rem; font-size: 0.9rem; }

.hidden { display: none; }

.link-display { display: flex; gap: 0.5rem; margin-bottom: 0.75rem; }
.link-display input {
  flex: 1; padding: 0.75rem; border: 1px solid var(--border);
  border-radius: 8px; background: var(--bg); color: var(--accent); font-family: monospace; font-size: 0.9rem;
}
.link-display button { width: auto; padding: 0.75rem 1.25rem; }

.copied { color: var(--accent); text-align: center; font-size: 0.9rem; margin-bottom: 1.5rem; opacity: 0; transition: opacity 0.3s; }
.copied.show { opacity: 1; }

.usage { margin: 1.5rem 0; padding: 1rem; background: var(--bg); border-radius: 8px; }
.usage h3 { font-size: 0.95rem; color: var(--muted); margin-bottom: 0.75rem; }
.usage ul { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; }
.usage li { font-size: 0.9rem; padding-left: 1rem; position: relative; }
.usage li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }

.guidance {
  text-align: center; font-size: 0.85rem; color: var(--muted);
  padding: 1rem; background: rgba(0,212,170,0.08); border-radius: 8px;
  border: 1px solid rgba(0,212,170,0.15);
}

.secondary {
  margin-top: 1rem; background: transparent; border: 1px solid var(--border);
  color: var(--muted);
}
.secondary:hover { border-color: var(--accent); color: var(--accent); }

footer { text-align: center; padding: 2rem 0; color: var(--muted); font-size: 0.85rem; }

@media (max-width: 480px) {
  .hero h1 { font-size: 2rem; }
  main { padding: 2rem 1rem; }
}
