:root {
  color-scheme: dark;
  color: #111827;
  background: #f6f7fb;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
}

body {
  margin: 0;
  padding: 2rem 1rem;
  background: radial-gradient(circle at top, rgba(99, 102, 241, 0.18), transparent 35%),
    linear-gradient(180deg, #ffffff 0%, #f6f7fb 100%);
}

button, textarea {
  font: inherit;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(300px, 0.9fr);
  gap: 1.5rem;
  align-items: start;
}

.hero-copy {
  padding: 2rem;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.08);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #6366f1;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.05;
  color: #111827;
}

.hero-copy p {
  margin: 0;
  color: #475569;
  max-width: 42rem;
}

.hero-card {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.5rem;
  border-radius: 32px;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.06);
}

.input-label {
  font-weight: 600;
  color: #0f172a;
}

.input-square {
  position: relative;
  width: 100%;
  min-height: 300px;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  overflow: hidden;
  background: #eef2ff;
  display: grid;
}

textarea {
  width: 100%;
  min-height: 100%;
  resize: none;
  border: none;
  padding: 1.25rem;
  background: transparent;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.6;
  font-family: inherit;
}

textarea:focus {
  outline: none;
}

.button-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

button {
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.4rem;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

button:hover {
  transform: translateY(-1px);
}

#mix-btn {
  background: #4f46e5;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(79, 70, 229, 0.18);
}

#clear-btn {
  background: #f8fafc;
  color: #334155;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.result-panel {
  display: grid;
  gap: 1.5rem;
}

.output-card {
  border-radius: 32px;
  padding: 1.75rem;
  background: white;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 22px 55px rgba(15, 23, 42, 0.05);
}

.output-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: baseline;
  margin-bottom: 1rem;
}

.output-header h2 {
  margin: 0;
  font-size: 1.35rem;
  color: #111827;
}

.output-note {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
}

.mixed-list {
  margin: 0;
  padding-left: 1.35rem;
  color: #334155;
}

.mixed-list li {
  margin-bottom: 0.75rem;
}

@media (max-width: 820px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .input-square {
    min-height: 260px;
  }
}

@media (max-width: 520px) {
  body {
    padding: 1rem;
  }

  .hero-copy,
  .hero-card,
  .output-card {
    border-radius: 24px;
  }

  .button-row {
    flex-direction: column;
  }
}
