:root {
  --bg: #0f0f12;
  --card: #1a1a20;
  --accent: #7c3aed;
  --accent2: #a78bfa;
  --text: #f4f4f5;
  --muted: #a1a1aa;
  --border: #27272a;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.logo a { font-weight: 700; font-size: 1.25rem; color: inherit; text-decoration: none; }
.logo span { color: var(--accent2); }
nav a { color: var(--muted); margin-left: 1.2rem; text-decoration: none; }
nav a:hover { color: var(--text); }
.hero {
  text-align: center;
  padding: 3.5rem 1.5rem 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 1rem; background: linear-gradient(90deg, #fff, var(--accent2)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; }
.subtitle { font-size: 1.15rem; color: var(--muted); margin-bottom: 1.5rem; }
.tool {
  max-width: 900px;
  margin: 0 auto 3rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.upload-area {
  border: 2px dashed var(--border);
  border-radius: 12px;
  padding: 2.5rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s;
  margin-bottom: 1rem;
}
.upload-area:hover { border-color: var(--accent); }
textarea, select {
  width: 100%;
  background: #111;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.75rem;
  font-size: 1rem;
  margin-bottom: 1rem;
}
textarea { min-height: 90px; resize: vertical; }
.controls { display: flex; gap: 1rem; flex-wrap: wrap; }
.controls > * { flex: 1; min-width: 140px; }
button {
  background: var(--accent);
  color: white;
  border: none;
  padding: 0.85rem 1.5rem;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
}
button:hover { background: #6d28d9; }
.samples { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.samples button { width: auto; padding: 0.45rem 0.9rem; font-size: 0.85rem; background: #27272a; }
.result { margin-top: 1.5rem; display: none; text-align: center; }
.result img { max-width: 100%; border-radius: 12px; border: 1px solid var(--border); }
.sections { max-width: 900px; margin: 0 auto 4rem; padding: 0 1.5rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; margin: 1.5rem 0; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 1.25rem; }
h2 { font-size: 1.75rem; margin-top: 2.5rem; }
h3 { margin-top: 0; }
footer { text-align: center; padding: 2rem 1rem; color: var(--muted); border-top: 1px solid var(--border); font-size: 0.875rem; }
.footer-links { margin-bottom: 0.5rem; }
.footer-links a { color: var(--muted); margin: 0 0.4rem; }
.note { font-size: 0.8rem; color: var(--muted); margin-top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
@media (max-width: 640px) {
  header { flex-direction: column; gap: 0.5rem; }
  nav a { margin: 0 0.6rem; }
}
