:root {
  --roxo: #6d3bd1;
  --roxo-escuro: #28164f;
  --roxo-claro: #efe8ff;
  --verde: #34c77b;
  --verde-claro: #e7f9ef;
  --azul: #2979ff;
  --rosa: #e83e8c;
  --laranja: #ff8a00;
  --vermelho: #d92d20;
  --cinza-texto: #5f5a72;
  --cinza-claro: #f6f3fb;
  --branco: #ffffff;
  --borda: #e6def7;
  --sombra: 0 18px 45px rgba(50, 28, 100, 0.12);
  --sombra-suave: 0 10px 28px rgba(50, 28, 100, 0.08);
}

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

body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  min-height: 100vh;
  color: var(--roxo-escuro);
  background:
    radial-gradient(circle at top left, rgba(109, 59, 209, 0.18), transparent 32%),
    radial-gradient(circle at top right, rgba(52, 199, 123, 0.16), transparent 28%),
    linear-gradient(135deg, #f9f6ff 0%, #eefbf5 100%);
}

.container {
  width: 92%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 42px 0;
}

.hero {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(14px);
  padding: 42px;
  border-radius: 30px;
  box-shadow: var(--sombra);
  margin-bottom: 26px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero::before {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -70px;
  top: -80px;
  background: linear-gradient(135deg, rgba(109, 59, 209, 0.20), rgba(52, 199, 123, 0.18));
  border-radius: 50%;
}

.hero::after {
  content: "";
  position: absolute;
  width: 130px;
  height: 130px;
  right: 90px;
  bottom: -60px;
  background: rgba(109, 59, 209, 0.08);
  border-radius: 50%;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--roxo-claro), #f7f1ff);
  color: var(--roxo);
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 18px;
  border: 1px solid #dfd0ff;
}

.tag::before {
  content: "IA";
  background: var(--roxo);
  color: var(--branco);
  font-size: 11px;
  padding: 4px 7px;
  border-radius: 999px;
}

.hero h1 {
  position: relative;
  z-index: 1;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.08;
  max-width: 820px;
  margin-bottom: 16px;
  color: var(--roxo-escuro);
  letter-spacing: -0.8px;
}

.hero p {
  position: relative;
  z-index: 1;
  font-size: 17px;
  line-height: 1.7;
  color: var(--cinza-texto);
  max-width: 880px;
}

.card,
.resultado,
.observacao {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  padding: 30px;
  border-radius: 28px;
  box-shadow: var(--sombra-suave);
  margin-bottom: 26px;
  border: 1px solid rgba(230, 222, 247, 0.9);
}

.card {
  border-top: 5px solid var(--roxo);
}

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

.card h2,
.resultado h2,
.observacao h3 {
  color: var(--roxo-escuro);
  margin-bottom: 7px;
  font-size: 24px;
  letter-spacing: -0.3px;
}

.card p,
.observacao p {
  color: var(--cinza-texto);
  line-height: 1.7;
}

textarea {
  width: 100%;
  min-height: 165px;
  resize: vertical;
  padding: 20px;
  border: 1.8px solid var(--borda);
  border-radius: 22px;
  font-size: 16px;
  outline: none;
  color: #2f2a3f;
  margin-top: 14px;
  background: #fbfaff;
  transition: 0.25s ease;
  line-height: 1.6;
}

textarea::placeholder {
  color: #9a93aa;
}

textarea:focus {
  background: var(--branco);
  border-color: var(--roxo);
  box-shadow: 0 0 0 5px rgba(109, 59, 209, 0.12);
}

.botoes {
  display: flex;
  gap: 12px;
  margin-top: 18px;
  flex-wrap: wrap;
}

button {
  border: none;
  background: linear-gradient(135deg, var(--roxo), #8658f2);
  color: white;
  padding: 14px 22px;
  border-radius: 16px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  transition: 0.22s ease;
  box-shadow: 0 10px 22px rgba(109, 59, 209, 0.22);
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(109, 59, 209, 0.28);
}

button:active {
  transform: translateY(0);
}

button.secundario {
  background: #eee8fb;
  color: var(--roxo);
  box-shadow: none;
}

button.secundario:hover {
  background: #e4d8fb;
  box-shadow: none;
}

.exemplos {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid #eee8fa;
}

.exemplos p {
  font-weight: 700;
  color: #4b4364;
  margin-bottom: 12px;
}

.exemplos button {
  background: #f3edff;
  color: var(--roxo);
  padding: 10px 15px;
  margin: 4px 5px 4px 0;
  font-size: 14px;
  border: 1px solid #ded0ff;
  box-shadow: none;
}

.exemplos button:hover {
  background: var(--roxo);
  color: white;
}

.resultado {
  border-top: 5px solid var(--verde);
}

.resultado-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  gap: 14px;
  flex-wrap: wrap;
}

#badgePrioridade {
  background: #f0edf7;
  color: #5e5475;
  padding: 9px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  border: 1px solid #e3dcef;
}

#badgePrioridade.alta {
  background: #ffe4e4;
  color: #b32626;
  border-color: #ffcaca;
}

#badgePrioridade.media {
  background: #fff3dc;
  color: #9a6200;
  border-color: #ffd98c;
}

#badgePrioridade.baixa {
  background: #e1f7eb;
  color: #167447;
  border-color: #b9ebd0;
}

#badgePrioridade.critica {
  background: #ffd6dc;
  color: #9f1239;
  border-color: #ffb3c0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.item {
  position: relative;
  background: linear-gradient(180deg, #ffffff, #fbf9ff);
  border: 1px solid #ece5fa;
  border-radius: 22px;
  padding: 20px;
  overflow: hidden;
}

.item::before {
  content: "";
  position: absolute;
  width: 5px;
  height: 42px;
  left: 0;
  top: 22px;
  background: var(--roxo);
  border-radius: 0 999px 999px 0;
}

.item strong {
  display: block;
  margin-bottom: 9px;
  color: var(--roxo-escuro);
  font-size: 15px;
  letter-spacing: 0.2px;
}

.item p {
  color: var(--cinza-texto);
  line-height: 1.6;
  font-size: 15.5px;
}

.item-maior {
  grid-column: span 2;
}

.observacao {
  border-top: 5px solid var(--azul);
}

.observacao h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.observacao h3::before {
  content: "!";
  width: 28px;
  height: 28px;
  background: var(--azul);
  color: white;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}

.observacao p {
  font-size: 15.5px;
}

@media (max-width: 900px) {
  .container {
    width: 94%;
    padding: 28px 0;
  }

  .hero {
    padding: 32px;
  }

  .hero h1 {
    font-size: 32px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .item-maior {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  body {
    background:
      radial-gradient(circle at top left, rgba(109, 59, 209, 0.16), transparent 34%),
      linear-gradient(135deg, #f9f6ff 0%, #eefbf5 100%);
  }

  .container {
    width: 94%;
    padding: 22px 0;
  }

  .hero,
  .card,
  .resultado,
  .observacao {
    padding: 22px;
    border-radius: 22px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 15.8px;
  }

  .card-header {
    flex-direction: column;
  }

  .card h2,
  .resultado h2,
  .observacao h3 {
    font-size: 21px;
  }

  textarea {
    min-height: 145px;
    font-size: 15px;
    padding: 16px;
  }

  .botoes {
    flex-direction: column;
  }

  button {
    width: 100%;
  }

  .exemplos {
    display: grid;
    grid-template-columns: 1fr;
  }

  .exemplos p {
    margin-bottom: 6px;
  }

  .exemplos button {
    width: 100%;
    margin: 4px 0;
  }

  .resultado-header {
    align-items: flex-start;
  }

  #badgePrioridade {
    width: 100%;
    text-align: center;
  }

  .grid {
    gap: 14px;
  }

  .item {
    padding: 18px;
    border-radius: 18px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 25px;
  }

  .tag {
    font-size: 12.5px;
    padding: 8px 12px;
  }

  .hero,
  .card,
  .resultado,
  .observacao {
    padding: 19px;
  }

  .card h2,
  .resultado h2,
  .observacao h3 {
    font-size: 19px;
  }

  .item p,
  .observacao p,
  .card p {
    font-size: 14.5px;
  }
}