* {
  box-sizing: border-box;
}

:root {
  color: #ecfeff;
  background:
    radial-gradient(circle at top left, rgba(168, 85, 247, 0.22), transparent 28%),
    radial-gradient(circle at top right, rgba(34, 211, 238, 0.18), transparent 28%),
    linear-gradient(180deg, #0a0f1d 0%, #101828 56%, #090d18 100%);
  font-family: "Outfit", system-ui, sans-serif;
}

body {
  margin: 0;
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  max-width: 1180px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 3rem;
}

.hero {
  display: grid;
  justify-items: center;
  margin-bottom: 1.75rem;
  text-align: center;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: #67e8f9;
  font-size: 0.82rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
}

.hero h1,
.summary h2 {
  margin: 0;
  font-size: clamp(2.3rem, 5vw, 4.5rem);
  line-height: 0.95;
}

.intro,
.summary__text {
  width: min(760px, 100%);
  margin-top: 1rem;
  color: #cbd5e1;
  font-size: 1rem;
  line-height: 1.7;
}

.panel,
.summary {
  width: min(980px, 100%);
  margin-inline: auto;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 28px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(18px);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.35);
}

.panel {
  padding: 1.8rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.stat {
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
  padding: 1.1rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.stat__label {
  display: block;
  color: #94a3b8;
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.stat__value {
  display: block;
  margin-top: 0.55rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.quote {
  margin-top: 1.5rem;
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.55);
  padding: 1.75rem 1.8rem;
  color: #e2e8f0;
  font-size: 1.08rem;
  line-height: 1.9;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.quote span {
  border-radius: 8px;
}

.quote .current {
  background: rgba(56, 189, 248, 0.18);
  outline: 1px solid rgba(56, 189, 248, 0.35);
}

.quote .correct {
  color: #99f6e4;
}

.quote .incorrect {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.18);
}

.input-wrap {
  display: block;
  margin-top: 1.5rem;
}

.input-wrap__label {
  display: block;
  margin-bottom: 0.35rem;
  color: #cbd5e1;
  font-weight: 600;
}

.input-wrap__hint {
  display: block;
  margin-bottom: 0.8rem;
  color: #94a3b8;
  font-size: 0.92rem;
  line-height: 1.6;
}

textarea {
  width: 100%;
  resize: vertical;
  min-height: 180px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 24px;
  background: rgba(2, 6, 23, 0.72);
  padding: 1.1rem 1.2rem;
  color: #f8fafc;
  font: inherit;
  font-size: 1rem;
  line-height: 1.7;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

textarea:focus {
  border-color: rgba(34, 211, 238, 0.8);
  box-shadow: 0 0 0 4px rgba(34, 211, 238, 0.12);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.25rem;
}

.button {
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #22d3ee, #8b5cf6);
  color: #02111d;
  font: inherit;
  font-weight: 700;
  padding: 0.9rem 1.25rem;
  cursor: pointer;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

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

.button--secondary {
  background: rgba(255, 255, 255, 0.08);
  color: #f8fafc;
}

.summary {
  margin-top: 1.5rem;
  padding: 1.6rem 1.8rem;
}

.hidden {
  display: none;
}

@media (max-width: 760px) {
  .app-shell {
    padding: 1rem 0.9rem 2rem;
  }

  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel {
    padding: 1.2rem;
  }

  .quote {
    padding: 1.2rem;
    font-size: 1rem;
  }

  textarea {
    min-height: 150px;
  }
}
