body {
  min-height: 100vh;
  overflow: hidden;
  padding: 2rem;
}
.topbar {
  position: relative;
  z-index: 5;
}
.wrapper {
  position: relative;
  z-index: 2;
  height: calc(100vh - 90px);
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 2rem;
  align-items: center;
}
.hero h1 {
  margin-top: 1rem;
  font-size: clamp(4rem, 9vw, 7rem);
  line-height: 0.88;
  letter-spacing: -0.08em;
}
.hero p {
  margin-top: 2rem;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.9;
}
.workspace {
  height: 88%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  background:
    linear-gradient(
      135deg,
      rgba(69, 250, 250, 0.69),
      rgba(40, 40, 40, 0.01)
    );
  border: 1px solid rgba(69, 69, 69, 0.01);
  backdrop-filter: blur(24px);
}
.editor {
  flex: 1;
}
textarea {
  width: 100%;
  height: 100%;
  border: none;
  resize: none;
  outline: none;
  border-radius: 24px;
  padding: 1.5rem;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border-light);
  line-height: 1.8;
  color: var(--text);
  font-size: 0.98rem;
  transition: var(--transition);
}
textarea:focus {
  border-color: rgba(36, 83, 255, 0.2);
  box-shadow: 0 0 0 5px rgba(36, 83, 255, 0.06);
}
.stats-grid {
  margin-top: 1.5rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.stat-card {
  padding: 1.2rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--border-light);
}
.stat-card h2 {
  margin-top: 0.7rem;
  font-size: 2rem;
  letter-spacing: -0.05em;
}

@media (max-width: 980px) {
  body {
    overflow: auto;
    padding: 1.25rem;
  }
  .wrapper {
    grid-template-columns: 1fr;
    height: auto;
    gap: 1.5rem;
    padding-bottom: 2rem;
  }
  .hero h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
  .workspace {
    height: auto;
  }
  textarea {
    min-height: 320px;
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
