
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;600;700&display=swap');

:root {
  --bg: #0d0f17;
  --panel: #171a26;
  --border: #2b3042;
  --text: #f4f5fb;
  --muted: #9da3b8;
  --purple: #ad96ff;
  --mint: #77e6c2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background:
    radial-gradient(ellipse at 10% 5%, #39265c55, transparent 35%),
    radial-gradient(ellipse at 90% 50%, #174c4050, transparent 35%),
    var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
}

button, input, select, textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.navbar {
  height: 75px;
  padding: 0 6%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #ffffff12;
  background: #0d0f17cc;
}

.logo {
  color: var(--text);
  text-decoration: none;
  font: 700 21px 'Space Grotesk', sans-serif;
}

.logo span {
  color: var(--purple);
}

.status {
  color: var(--mint);
  font-size: 12px;
  border: 1px solid #77e6c233;
  background: #77e6c20b;
  padding: 9px 13px;
  border-radius: 50px;
}

.container {
  width: min(1150px, 90%);
  margin: auto;
}

.hero {
  text-align: center;
  padding: 65px 0 45px;
}

.eyebrow, .step {
  font-size: 10px;
  letter-spacing: 2px;
  font-weight: 700;
  color: var(--purple);
}

h1 {
  font: 600 clamp(36px, 5vw, 60px)/1.12 'Space Grotesk', sans-serif;
  letter-spacing: -2px;
  margin: 20px 0;
}

h1 span {
  background: linear-gradient(90deg, #b59cff, #7ee7cc);
  color: transparent;
  background-clip: text;
}

.subtitle {
  max-width: 590px;
  margin: auto;
  color: var(--muted);
  line-height: 1.8;
  font-size: 14px;
}

.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}

.panel {
  background: linear-gradient(145deg, #1a1d2b, #131620);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 25px;
  min-width: 0;
  box-shadow: 0 20px 60px #0002;
}

.panel h2 {
  font: 600 20px 'Space Grotesk', sans-serif;
  margin: 8px 0 25px;
}

label {
  display: block;
  font-size: 12px;
  color: #d8dbea;
  font-weight: 600;
  margin: 17px 0 8px;
}

input, select, textarea {
  display: block;
  width: 100%;
  padding: 12px;
  border: 1px solid #34394c;
  border-radius: 10px;
  background: #10131d;
  color: var(--text);
  font-size: 12px;
  outline: none;
  transition: border .2s, box-shadow .2s;
}

input:focus, select:focus, textarea:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px #ad96ff17;
}

input::placeholder, textarea::placeholder {
  color: #70778e;
}

textarea {
  resize: vertical;
  line-height: 1.7;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.privacy {
  background: #a58bff0c;
  border: 1px solid #a58bff2c;
  color: #b9bdd0;
  border-radius: 10px;
  padding: 13px;
  margin-top: 22px;
  font-size: 11px;
  line-height: 1.7;
}

.primary, .secondary {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  transition: transform .2s, filter .2s;
}

.primary {
  background: linear-gradient(100deg, #b29aff, #8eabff);
  color: #191529;
  border: 0;
}

.primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

form > .primary {
  width: 100%;
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.secondary {
  background: #232638;
  color: #e4e6f3;
  border: 1px solid #3a3f54;
}

.mode {
  text-align: center;
  color: #898fa7;
  font-size: 10px;
  margin: 14px 0 0;
}

.output-panel {
  min-height: 590px;
}

.empty-state {
  text-align: center;
  padding: 60px 10px;
}

.art {
  width: 100px;
  height: 115px;
  display: grid;
  place-items: center;
  margin: 0 auto 25px;
  font-size: 48px;
  color: var(--purple);
  border: 1px solid #62558a;
  border-radius: 15px;
  background: linear-gradient(145deg, #34274e, #1b2635);
  transform: rotate(-5deg);
  box-shadow: 15px 18px 35px #0004;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-5deg); }
  50% { transform: translateY(-9px) rotate(-2deg); }
}

.empty-state h3 {
  font: 600 18px 'Space Grotesk', sans-serif;
}

.empty-state p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.hidden {
  display: none !important;
}

.result-heading, .saved-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.result-heading h3 {
  font: 600 17px 'Space Grotesk', sans-serif;
  overflow-wrap: anywhere;
}

.text-button {
  border: 0;
  background: none;
  color: var(--purple);
  font-size: 11px;
  padding: 7px 0;
}

.actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.actions button {
  flex: 1;
}

.benefits {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 20px;
}

.benefits article {
  background: #171a26cc;
  border: 1px solid var(--border);
  border-radius: 15px;
  padding: 19px;
}

.benefits article > span {
  color: var(--mint);
  font-size: 23px;
}

.benefits h3 {
  font-size: 13px;
  margin-bottom: 8px;
}

.benefits p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
  margin: 0;
}

.saved {
  margin: 45px 0 30px;
}

.saved-heading h2 {
  font: 600 22px 'Space Grotesk', sans-serif;
}

.empty-history {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 22px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

.history-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
  margin: 10px 0;
  overflow-wrap: anywhere;
}

.history-card strong {
  font-size: 13px;
}

.history-card p {
  font-size: 11px;
  color: var(--muted);
}

footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  color: var(--muted);
  font-size: 11px;
}

.toast {
  position: fixed;
  bottom: 20px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  background: #e9e2ff;
  color: #1c1630;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
  transition: .25s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 800px) {
  .workspace {
    grid-template-columns: 1fr;
  }
  .benefits {
    grid-template-columns: 1fr;
  }
  .output-panel {
    min-height: auto;
  }
}

@media (max-width: 500px) {
  .container {
    width: 92%;
  }
  .navbar {
    padding: 0 4%;
  }
  .logo {
    font-size: 17px;
  }
  .status {
    font-size: 9px;
    padding: 8px;
  }
  .hero {
    padding-top: 45px;
  }
  .field-row {
    grid-template-columns: 1fr;
  }
  .panel {
    padding: 17px;
  }
  footer {
    flex-direction: column;
  }
}

