* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background:
    radial-gradient(circle at top left, #eef2ff 0, transparent 32%),
    linear-gradient(135deg, #f8fafc 0%, #eef2f7 100%);
  color: #111827;
}

.app-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 48px 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #4f46e5;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 16px 0 0;
  max-width: 620px;
  font-size: 17px;
  line-height: 1.6;
  color: #64748b;
}

.version-pill {
  white-space: nowrap;
  padding: 10px 14px;
  border: 1px solid #c7d2fe;
  background: #eef2ff;
  color: #3730a3;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
}

.workspace {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  padding: 24px;
  backdrop-filter: blur(12px);
}

.card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

h2 {
  margin: 0;
  font-size: 22px;
  letter-spacing: -0.02em;
}

.card-header p,
.helper-text {
  margin: 6px 0 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.5;
}

textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  border: 1px solid #cbd5e1;
  border-radius: 18px;
  padding: 18px;
  font-size: 16px;
  line-height: 1.6;
  color: #111827;
  background: #ffffff;
  outline: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

textarea:focus {
  border-color: #6366f1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.14);
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 74px;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.badge.neutral {
  background: #f1f5f9;
  color: #475569;
}

.badge.allow {
  background: #dcfce7;
  color: #166534;
}

.badge.simplify {
  background: #fef3c7;
  color: #92400e;
}

.badge.block {
  background: #fee2e2;
  color: #991b1b;
}

.evaluation-card.quiet {
  opacity: 0.88;
}

.evaluation-card.safe {
  border-color: #bbf7d0;
  box-shadow: 0 18px 50px rgba(34, 197, 94, 0.08);
}

.evaluation-card.active {
  border-color: #fca5a5;
  box-shadow: 0 20px 60px rgba(239, 68, 68, 0.16);
}

.evaluation-card.simplify-active {
  border-color: #fde68a;
  box-shadow: 0 20px 60px rgba(245, 158, 11, 0.14);
}

.evaluation-grid {
  display: grid;
  gap: 12px;
}

.info-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid #e2e8f0;
}

.info-row.full {
  display: block;
}

.info-row span,
.rewrite-section span {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #64748b;
}

.info-row strong {
  font-size: 15px;
  line-height: 1.5;
  color: #111827;
}

.rewrite-section {
  margin-top: 20px;
}

.safe-output {
  min-height: 96px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  background: #f8fafc;
  color: #111827;
  line-height: 1.6;
  font-size: 15px;
}

.evaluation-card.safe .safe-output {
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.evaluation-card.active .safe-output {
  background: #fff7ed;
  border-color: #fed7aa;
}

.evaluation-card.simplify-active .safe-output {
  background: #fffbeb;
  border-color: #fde68a;
}

@media (max-width: 860px) {
  .hero,
  .workspace {
    grid-template-columns: 1fr;
    display: grid;
  }

  .version-pill {
    width: fit-content;
  }
}

.demo-actions {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
}

.demo-btn {
  border: none;
  background: #4f46e5;
  color: #ffffff;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(79, 70, 229, 0.18);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.demo-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(79, 70, 229, 0.24);
  background: #4338ca;
}

.demo-btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

.scenario-box {
  margin: 16px 0;
  padding: 12px 14px;
  border-radius: 14px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}

.scenario-box span {
  display: block;
  margin-bottom: 4px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.scenario-box strong {
  font-size: 14px;
  color: #111827;
}
