:root {
  color-scheme: light;
  --fundo: #eef2f7;
  --painel: #ffffff;
  --texto: #172033;
  --texto-suave: #667085;
  --linha: #d8dee8;
  --principal: #1166ff;
  --principal-escuro: #0a45bd;
  --destaque-cor: #14b8a6;
  --sombra: 0 24px 70px rgba(20, 35, 61, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--texto);
  background:
    radial-gradient(circle at top left, rgba(17, 102, 255, 0.14), transparent 32rem),
    linear-gradient(135deg, #f8fafc 0%, var(--fundo) 100%);
}

button,
input {
  font: inherit;
}

.estrutura-aplicativo {
  width: min(1120px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 28px;
  align-items: center;
  padding: 48px 0;
}

.area-principal,
.painel-estatisticas {
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(216, 222, 232, 0.9);
  box-shadow: var(--sombra);
  backdrop-filter: blur(18px);
}

.area-principal {
  border-radius: 8px;
  padding: clamp(28px, 5vw, 56px);
}

.linha-marca {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 56px;
  color: #344054;
  font-weight: 700;
}

.simbolo-marca {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, var(--principal), var(--destaque-cor));
  font-weight: 800;
}

.introducao {
  max-width: 720px;
}

.destaque {
  margin: 0 0 12px;
  color: var(--principal-escuro);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.7rem);
  line-height: 0.98;
  letter-spacing: 0;
}

.subtitulo {
  max-width: 600px;
  margin: 22px 0 0;
  color: var(--texto-suave);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.formulario-encurtador {
  margin-top: 40px;
}

.formulario-encurtador label {
  display: block;
  margin-bottom: 10px;
  color: #344054;
  font-size: 0.92rem;
  font-weight: 700;
}

.linha-campo {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  padding: 8px;
  border: 1px solid var(--linha);
  border-radius: 8px;
  background: #f9fbff;
}

.linha-campo:focus-within {
  border-color: rgba(17, 102, 255, 0.65);
  box-shadow: 0 0 0 4px rgba(17, 102, 255, 0.1);
}

input {
  width: 100%;
  min-height: 54px;
  border: 0;
  outline: 0;
  padding: 0 16px;
  color: var(--texto);
  background: transparent;
}

input::placeholder {
  color: #98a2b3;
}

.linha-campo button,
.botao-secundario,
.botao-abrir {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  padding: 0 20px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.linha-campo button {
  color: #fff;
  background: var(--principal);
  box-shadow: 0 12px 22px rgba(17, 102, 255, 0.24);
}

.linha-campo button:hover,
.botao-secundario:hover,
.botao-abrir:hover {
  transform: translateY(-1px);
}

.linha-campo button:hover {
  background: var(--principal-escuro);
}

.dica {
  margin: 10px 0 0;
  color: var(--texto-suave);
  font-size: 0.9rem;
}

.painel-resultado {
  margin-top: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(20, 184, 166, 0.35);
  border-radius: 8px;
  background: #effdf9;
}

.rotulo-resultado {
  display: block;
  margin-bottom: 6px;
  color: #0f766e;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

#linkCurto {
  color: #0f3d8f;
  font-size: 1.12rem;
  font-weight: 800;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.acoes {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.botao-secundario {
  color: var(--principal-escuro);
  background: #ffffff;
  border: 1px solid #c7d7fe;
}

.botao-abrir {
  display: inline-grid;
  place-items: center;
  color: #fff;
  background: #111827;
  text-decoration: none;
}

.painel-estatisticas {
  border-radius: 8px;
  padding: 28px;
  display: grid;
  gap: 16px;
}

.metrica {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--linha);
}

.metrica strong,
.metrica span {
  display: block;
}

.metrica strong {
  font-size: 1.45rem;
}

.metrica span {
  margin-top: 6px;
  color: var(--texto-suave);
  line-height: 1.5;
}

.cartao-previa {
  min-height: 180px;
  padding: 20px;
  border-radius: 8px;
  background: #172033;
  color: #fff;
  overflow: hidden;
}

.etiqueta-previa {
  display: inline-flex;
  margin-bottom: 30px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 0.78rem;
  font-weight: 700;
}

.linha-previa {
  height: 12px;
  width: 58%;
  margin-bottom: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.linha-previa.maior {
  width: 86%;
}

.url-previa {
  margin-top: 28px;
  color: #67e8f9;
  font-weight: 800;
}

@media (max-width: 860px) {
  .estrutura-aplicativo {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 24px 0;
  }

  .linha-marca {
    margin-bottom: 40px;
  }
}

@media (max-width: 620px) {
  .estrutura-aplicativo {
    width: min(100% - 20px, 1120px);
  }

  .area-principal,
  .painel-estatisticas {
    padding: 22px;
  }

  .linha-campo,
  .painel-resultado,
  .acoes {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .linha-campo button,
  .botao-secundario,
  .botao-abrir {
    width: 100%;
  }
}
