:root {
  --bg: #f3ede3;
  --panel: rgba(255, 251, 245, 0.9);
  --panel-strong: #fffdf8;
  --text: #1f1d1a;
  --muted: #5f584f;
  --accent: #0f766e;
  --accent-dark: #0b5a54;
  --accent-soft: #d6f3ee;
  --border: rgba(31, 29, 26, 0.1);
  --shadow: 0 24px 60px rgba(59, 47, 30, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(196, 138, 84, 0.18), transparent 30%),
    linear-gradient(135deg, #f5efe6 0%, #efe6d6 100%);
}

.page {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 64px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.intro-panel,
.card-main {
  padding: 36px;
}

.center-panel {
  padding: 28px;
}

.tool-stack {
  display: grid;
  gap: 28px;
  margin-top: 28px;
}

.tool-panel {
  width: 100%;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 16px 0 12px;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.5rem, 6vw, 4.7rem);
  letter-spacing: -0.04em;
}

h2 {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  letter-spacing: -0.03em;
}

p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.7;
}

form {
  margin-top: 28px;
}

label {
  display: block;
  font-weight: 700;
  margin-bottom: 10px;
}

textarea {
  width: 100%;
  min-height: 280px;
  resize: vertical;
  padding: 18px;
  border-radius: 18px;
  border: 1px solid rgba(31, 29, 26, 0.12);
  background: var(--panel-strong);
  color: var(--text);
  font: inherit;
  line-height: 1.55;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

textarea:focus {
  outline: none;
  border-color: rgba(15, 118, 110, 0.5);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
  transform: translateY(-1px);
}

.controls,
.actions,
.feature-list,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

.controls {
  justify-content: space-between;
  margin-top: 18px;
}

.checkbox {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  margin: 0;
  font-weight: 600;
  color: var(--text);
}

.checkbox input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}

.button,
button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

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

.button-primary,
button[type="submit"] {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 118, 110, 0.25);
}

.button-primary:hover,
button[type="submit"]:hover {
  background: var(--accent-dark);
}

.button-secondary {
  background: #ebe4d8;
  color: var(--text);
}

.button-secondary:hover {
  background: #e1d8ca;
}

.feature-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.feature-list li {
  padding: 12px 14px;
  width: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.6);
  color: var(--text);
}

.result-box {
  margin-top: 22px;
  padding: 22px;
  background: #fffdf8;
  border: 1px solid var(--border);
  border-radius: 18px;
  white-space: pre-wrap;
  line-height: 1.65;
  min-height: 220px;
}

.helper {
  margin-top: 12px;
  font-size: 0.95rem;
}

.center-panel {
  margin: 0;
}

@media (max-width: 860px) {
  .page {
    width: min(100% - 24px, 900px);
    padding-top: 24px;
  }

  .card-main,
  .intro-panel,
  .center-panel {
    padding: 24px;
  }

  h1 {
    font-size: clamp(2.3rem, 10vw, 3.8rem);
  }

  textarea {
    min-height: 220px;
  }

  .controls {
    align-items: stretch;
  }

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