* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(96, 165, 250, 0.25), transparent 28%),
    radial-gradient(circle at bottom right, rgba(168, 85, 247, 0.18), transparent 28%),
    linear-gradient(135deg, #eef5ff, #fbf8ff);
  color: #0f172a;
  padding: 34px 16px;
}

.app {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
}

.hero {
  text-align: center;
  margin-bottom: 26px;
}

.hero h1 {
  font-size: 68px;
  line-height: 1;
  margin-bottom: 14px;
  background: linear-gradient(90deg, #0b5cff, #7c3aed);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: #0b5cff;
  letter-spacing: -2px;
}

.title-line {
  width: 90px;
  height: 5px;
  background: linear-gradient(90deg, #60a5fa, #7c3aed);
  border-radius: 999px;
  margin: 0 auto 16px;
}

.subtitle {
  max-width: 720px;
  margin: 0 auto;
  color: #334155;
  font-size: 18px;
  line-height: 1.6;
}

.counter-card {
  background: rgba(255, 255, 255, 0.9);
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 24px 55px rgba(37, 99, 235, 0.15);
  border: 1px solid rgba(226, 232, 240, 0.9);
  margin-bottom: 24px;
  backdrop-filter: blur(10px);
}

.top-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
}

.label-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.label-icon {
  font-size: 27px;
}

label {
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
}

.word-limit {
  font-size: 16px;
  font-weight: 800;
  color: #0b5cff;
  background: #dbeafe;
  padding: 10px 16px;
  border-radius: 14px;
}

textarea {
  width: 100%;
  min-height: 250px;
  resize: vertical;
  border: 2px solid #cbd5e1;
  border-radius: 16px;
  padding: 18px;
  font-size: 17px;
  line-height: 1.7;
  color: #0f172a;
  outline: none;
  background: #ffffff;
}

textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.12);
}

.limit-message {
  min-height: 22px;
  margin-top: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #dc2626;
}

.button-row {
  display: flex;
  gap: 14px;
  margin-top: 14px;
  align-items: center;
}

.btn {
  border: none;
  border-radius: 12px;
  padding: 14px 22px;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.primary {
  background: linear-gradient(135deg, #0b5cff, #2563eb);
  color: #ffffff;
  box-shadow: 0 12px 25px rgba(37, 99, 235, 0.32);
}

.secondary {
  background: #f1f5f9;
  color: #0f172a;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.helper-text {
  text-align: center;
  margin-top: 10px;
  color: #64748b;
  font-size: 15px;
  font-weight: 700;
}

.copy-message {
  min-height: 22px;
  margin-top: 10px;
  color: #16a34a;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid #e2e8f0;
  border-top: 6px solid #2563eb;
  border-radius: 18px;
  padding: 28px 24px;
  display: flex;
  align-items: center;
  gap: 22px;
  box-shadow: 0 16px 35px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 42px rgba(15, 23, 42, 0.12);
}

.stat-icon {
  width: 72px;
  height: 72px;
  min-width: 72px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 900;
}

.stat-card p {
  font-size: 17px;
  color: #0f172a;
  font-weight: 900;
  margin-bottom: 8px;
}

.stat-card h2 {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.blue {
  border-top-color: #2563eb;
}

.blue .stat-icon {
  background: #dbeafe;
  color: #2563eb;
}

.blue h2 {
  color: #2563eb;
}

.purple {
  border-top-color: #7c3aed;
}

.purple .stat-icon {
  background: #ede9fe;
  color: #7c3aed;
}

.purple h2 {
  color: #7c3aed;
}

.teal {
  border-top-color: #0ea5a4;
}

.teal .stat-icon {
  background: #ccfbf1;
  color: #0ea5a4;
}

.teal h2 {
  color: #0ea5a4;
}

.orange {
  border-top-color: #f97316;
}

.orange .stat-icon {
  background: #ffedd5;
  color: #f97316;
}

.orange h2 {
  color: #f97316;
}

.green {
  border-top-color: #22c55e;
}

.green .stat-icon {
  background: #dcfce7;
  color: #22c55e;
}

.green h2 {
  color: #22c55e;
}

.wide {
  grid-column: span 2;
}

.over-limit {
  color: #dc2626;
  background: #fee2e2;
}

@media (max-width: 950px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .wide {
    grid-column: span 1;
  }

  .hero h1 {
    font-size: 56px;
  }
}

@media (max-width: 560px) {
  body {
    padding: 24px 12px;
  }

  .hero h1 {
    font-size: 42px;
    letter-spacing: -1px;
  }

  .subtitle {
    font-size: 15px;
  }

  .counter-card {
    padding: 18px;
    border-radius: 20px;
  }

  .top-row {
    flex-direction: column;
    align-items: flex-start;
  }

  label {
    font-size: 18px;
  }

  textarea {
    min-height: 230px;
    font-size: 15px;
  }

  .button-row {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 22px;
  }

  .stat-icon {
    width: 62px;
    height: 62px;
    min-width: 62px;
    font-size: 28px;
  }

  .stat-card h2 {
    font-size: 36px;
  }
}