/* CoverArtify v1 — landing palette
 * Deep space + magenta-bias (Maya-adjacent product). Mirrors Bridge palette
 * vars (--bg/--magenta/--zaeem) so Eyad sees one visual family across surfaces.
 */

:root {
  --bg: #0a0814;
  --bg-1: #11091f;
  --bg-2: #1a0c2e;
  --line: #2a1845;
  --line-2: #3d2466;
  --text: #f4eaff;
  --text-dim: #b6a3d8;
  --text-faint: #6e5b91;
  --magenta: #ff006e;
  --magenta-soft: #ff4d9a;
  --gold: #ffd700;
  --cyan: #00e5ff;
  --error: #ff5577;
  --font-body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Space Grotesk", ui-sans-serif, system-ui, sans-serif;
}

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

body {
  background:
    radial-gradient(ellipse at top, rgba(255, 0, 110, 0.18), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(255, 215, 0, 0.08), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.shell {
  max-width: 560px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

/* ---------- HERO ---------- */
.hero { text-align: center; }
.kicker {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--magenta-soft);
  margin: 0 0 12px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.15;
  margin: 0 0 12px;
  background: linear-gradient(95deg, var(--magenta), var(--gold) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.lede {
  margin: 0 auto;
  max-width: 440px;
  color: var(--text-dim);
  font-size: 1rem;
}

/* ---------- FORM ---------- */
.form {
  display: flex;
  flex-direction: column;
  gap: 18px;
  background: linear-gradient(180deg, rgba(26, 12, 46, 0.7), rgba(17, 9, 31, 0.7));
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  box-shadow: 0 24px 60px -32px rgba(255, 0, 110, 0.4);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.95rem;
}
.field > span {
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}
.field em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
}

.field input,
.field select {
  width: 100%;
  background: rgba(10, 8, 20, 0.7);
  border: 1px solid var(--line-2);
  border-radius: 10px;
  padding: 12px 14px;
  color: var(--text);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field input::placeholder { color: var(--text-faint); }
.field input:focus,
.field select:focus {
  outline: none;
  border-color: var(--magenta);
  box-shadow: 0 0 0 3px rgba(255, 0, 110, 0.18);
}

.field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--magenta-soft) 50%),
    linear-gradient(135deg, var(--magenta-soft) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  padding-right: 36px;
}

/* ---------- CTA ---------- */
.cta {
  margin-top: 6px;
  border: 0;
  border-radius: 12px;
  padding: 14px 18px;
  font-family: var(--font-display);
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: #1a0418;
  background: linear-gradient(95deg, var(--magenta), var(--gold) 110%);
  cursor: pointer;
  transition: transform 0.12s ease, filter 0.12s ease;
}
.cta:hover { filter: brightness(1.08); }
.cta:active { transform: translateY(1px); }
.cta:disabled { opacity: 0.5; cursor: not-allowed; filter: grayscale(0.4); }

/* ---------- STATUS LINE ---------- */
.status {
  margin: 0;
  min-height: 1.2em;
  font-size: 0.85rem;
  color: var(--text-dim);
  text-align: center;
}
.status.error { color: var(--error); }
.status.ok { color: var(--gold); }

/* ---------- FOOTER ---------- */
.footnote {
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  font-family: var(--font-display);
  text-transform: uppercase;
}
.footnote p { margin: 0; }

/* ---------- RESULTS ---------- */
.results-shell { max-width: 880px; }

.cover-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.cover-card {
  background: linear-gradient(180deg, rgba(26, 12, 46, 0.7), rgba(17, 9, 31, 0.7));
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 18px 40px -28px rgba(255, 0, 110, 0.35);
}

.cover-card canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
  background: var(--bg-1);
  border: 1px solid var(--line-2);
}

.cover-card .download {
  border: 1px solid var(--line-2);
  background: rgba(10, 8, 20, 0.55);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease;
}
.cover-card .download:hover {
  border-color: var(--magenta);
  background: rgba(255, 0, 110, 0.1);
  color: var(--text);
}
.cover-card .download:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: grayscale(0.4);
}

@media (max-width: 480px) {
  .shell { padding: 40px 18px 60px; }
  .form { padding: 22px 18px; }
  .cover-grid { grid-template-columns: 1fr; }
}
