:root {
  --bg: #0b1117;
  --surface: rgba(17, 25, 38, 0.86);
  --surface-strong: #182233;
  --surface-soft: rgba(24, 34, 51, 0.72);
  --border: rgba(143, 161, 181, 0.2);
  --text: #eef4fb;
  --text-dim: #99abbe;
  --accent: #ff8c42;
  --accent-strong: #ff6b2c;
  --accent-soft: rgba(255, 140, 66, 0.14);
  --teal: #2dd4bf;
  --danger: #fb7185;
  --success: #34d399;
  --shadow: 0 24px 60px rgba(3, 9, 17, 0.45);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  --max-width: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(45, 212, 191, 0.12), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 140, 66, 0.16), transparent 34%),
    linear-gradient(180deg, #091018 0%, #0c1420 45%, #0a0f16 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.45), transparent 92%);
  pointer-events: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  position: relative;
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 48px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
  background: rgba(7, 12, 19, 0.72);
  border-bottom: 1px solid rgba(143, 161, 181, 0.14);
}

.site-header-inner {
  width: min(var(--max-width), calc(100% - 32px));
  margin: 0 auto;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.24);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  display: block;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 18px;
}

.brand-copy span {
  color: var(--text-dim);
  font-size: 12px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.site-nav a {
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--text-dim);
  transition: 160ms ease;
}

.site-nav a:hover,
.site-nav a.active {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.hero {
  padding: 56px 0 28px;
  display: grid;
  gap: 20px;
}

.hero.compact {
  padding-top: 40px;
}

.hero.hero-slim {
  gap: 12px;
  padding-top: 24px;
  padding-bottom: 16px;
}

.hero.hero-slim h1 {
  font-size: clamp(28px, 4vw, 46px);
}

.hero.hero-slim p {
  font-size: 16px;
  line-height: 1.6;
}

body[data-layout="tool"] .hero.hero-slim {
  gap: 8px;
  padding-top: 10px;
  padding-bottom: 10px;
}

body[data-layout="tool"] .hero.hero-slim .hero-kicker {
  padding: 6px 10px;
  font-size: 11px;
}

body[data-layout="tool"] .hero.hero-slim h1 {
  font-size: clamp(22px, 3vw, 34px);
  max-width: 760px;
}

body[data-layout="tool"] .hero.hero-slim p {
  max-width: 760px;
  font-size: 14px;
  line-height: 1.45;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--text-dim);
  font-size: 14px;
}

body[data-layout="tool"] .breadcrumb {
  display: none;
}

.breadcrumb a {
  color: var(--text-dim);
}

.breadcrumb a:hover {
  color: var(--text);
}

.language-switcher {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px;
  color: var(--text-dim);
  font-size: 13px;
}

.language-switcher a {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  transition: 160ms ease;
}

.language-switcher a:hover,
.language-switcher a.active {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.07);
}

.hero-kicker {
  display: inline-flex;
  width: fit-content;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(45, 212, 191, 0.12);
  border: 1px solid rgba(45, 212, 191, 0.18);
  color: #b6fff4;
  font-size: 13px;
  font-weight: 600;
}

.hero h1 {
  margin: 0;
  max-width: 900px;
  font-size: clamp(34px, 5vw, 64px);
  line-height: 1.05;
  letter-spacing: -0.05em;
}

.hero p {
  margin: 0;
  max-width: 780px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions,
.chip-row,
.example-actions,
.toolbar-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.button,
.chip,
.preset-chip,
.segmented button,
.example-actions button,
.copy-button,
.tool-link {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 14px;
  cursor: pointer;
  transition: 160ms ease;
}

.button:hover,
.chip:hover,
.preset-chip:hover,
.segmented button:hover,
.example-actions button:hover,
.copy-button:hover,
.tool-link:hover {
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.button.primary,
.segmented button.active,
.preset-chip.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-color: transparent;
  color: #10151e;
  font-weight: 700;
}

.chip {
  cursor: default;
  color: var(--text-dim);
}

.grid-two {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.panel-card,
.tool-card,
.content-card,
.tool-shell,
.info-card,
.faq-card,
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.panel-card,
.content-card,
.info-card,
.faq-card,
.stat-card {
  padding: 24px;
}

.answer-summary {
  margin: 0 0 16px;
  display: grid;
  gap: 12px;
  border-color: rgba(255, 140, 66, 0.24);
  background:
    linear-gradient(180deg, rgba(255, 140, 66, 0.08), rgba(255, 255, 255, 0.02)),
    var(--surface);
}

.answer-summary h2 {
  font-size: 18px;
}

.recipe-manager {
  margin: 0 0 16px;
  display: grid;
  gap: 14px;
}

.recipe-manager-collapsed {
  padding: 0;
  overflow: hidden;
}

.recipe-manager-collapsed .utility-fold {
  border: 0;
  background: transparent;
  box-shadow: none;
}

.recipe-manager h2 {
  font-size: 18px;
}

.recipe-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.recipe-select {
  min-width: min(100%, 260px);
  flex: 1 1 260px;
}

.recipe-note {
  font-size: 13px;
  color: var(--text-dim);
}

.tool-grid,
.related-grid,
.stat-grid,
.catalog-grid {
  display: grid;
  gap: 16px;
}

.catalog-grid {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.tool-card {
  padding: 22px;
  display: grid;
  gap: 12px;
  min-height: 240px;
}

.tool-card h3,
.content-card h2,
.panel-card h2,
.info-card h2,
.faq-card h2,
.section-title,
.tool-shell h2 {
  margin: 0;
  letter-spacing: -0.03em;
}

.tool-card p,
.content-card p,
.panel-card p,
.info-card p,
.faq-card p,
.tool-meta,
.tool-card li,
.content-card li,
.info-card li,
.faq-card li,
.tool-shell p,
.page-footer p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.tool-card ul,
.content-card ol,
.info-card ul,
.faq-card ul,
.content-card ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.question-list li {
  list-style: none;
  position: relative;
  padding-left: 18px;
}

.question-list li::before {
  content: "?";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}

.example-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.example-block {
  display: grid;
  gap: 10px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 161, 181, 0.12);
}

.example-block h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.example-block pre {
  margin: 0;
  padding: 14px;
  overflow: auto;
  border-radius: 14px;
  background: rgba(3, 9, 17, 0.56);
  border: 1px solid rgba(143, 161, 181, 0.12);
}

.example-block code {
  display: block;
  white-space: pre-wrap;
  word-break: break-word;
  color: #d9e7f6;
  line-height: 1.65;
}

.tool-card-footer,
.card-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tool-shell {
  overflow: hidden;
}

.tool-meta {
  padding: 24px 24px 0;
}

.toolbar {
  padding: 20px 24px;
  display: grid;
  gap: 14px;
  border-bottom: 1px solid var(--border);
}

body[data-layout="tool"] .toolbar {
  padding: 14px 16px;
  gap: 10px;
}

body[data-layout="tool"] .segmented button,
body[data-layout="tool"] .preset-chip,
body[data-layout="tool"] .example-actions button {
  padding: 8px 11px;
  font-size: 13px;
}

body[data-layout="tool"] #presetBar {
  gap: 6px;
}

.toolbar-primary {
  align-items: start;
  justify-content: space-between;
}

.toolbar-row.compact,
.example-actions.compact {
  gap: 8px;
}

.toolbar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.toolbar-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.toolbar-details {
  min-width: min(100%, 420px);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.toolbar-details summary {
  list-style: none;
  cursor: pointer;
  padding: 12px 16px;
  font-weight: 600;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.toolbar-details summary::-webkit-details-marker {
  display: none;
}

.toolbar-details summary::after {
  content: "+";
  color: var(--text);
  font-size: 18px;
  line-height: 1;
}

.toolbar-details[open] summary::after {
  content: "−";
}

.toolbar-detail-body {
  padding: 0 16px 16px;
  display: grid;
  gap: 12px;
  border-top: 1px solid rgba(143, 161, 181, 0.12);
}

.utility-fold {
  border: 1px solid rgba(143, 161, 181, 0.14);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
}

.utility-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
}

.utility-fold > summary::-webkit-details-marker {
  display: none;
}

.utility-fold > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

.utility-fold[open] > summary {
  border-bottom: 1px solid rgba(143, 161, 181, 0.12);
}

.utility-fold[open] > summary::after {
  content: "−";
}

.utility-fold-body {
  padding: 16px 18px 18px;
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 13px;
  color: var(--text-dim);
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(143, 161, 181, 0.22);
  background: rgba(7, 12, 19, 0.88);
  color: var(--text);
  padding: 12px 14px;
}

.textarea {
  min-height: 300px;
  resize: vertical;
  line-height: 1.6;
  font-family: "IBM Plex Mono", "SFMono-Regular", monospace;
  font-size: 14px;
}

.input:focus,
.select:focus,
.textarea:focus {
  outline: 2px solid rgba(255, 140, 66, 0.22);
  border-color: rgba(255, 140, 66, 0.5);
}

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

body[data-layout="tool"] .tool-panels {
  background: rgba(255, 255, 255, 0.015);
}

.tool-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 520px;
}

body[data-layout="tool"] .tool-panel {
  min-height: 560px;
}

.tool-panel + .tool-panel {
  border-left: 1px solid var(--border);
}

body[data-layout="tool"] .tool-panel + .tool-panel {
  border-left-color: rgba(143, 161, 181, 0.14);
}

.panel-head {
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--border);
}

body[data-layout="tool"] .panel-head {
  background: rgba(255, 255, 255, 0.025);
  border-bottom-color: rgba(143, 161, 181, 0.14);
}

.panel-head > div {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.panel-head strong {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.panel-head span {
  font-size: 11px;
  color: var(--text-dim);
  line-height: 1.1;
}

.panel-head .copy-button {
  padding: 7px 12px;
  font-size: 13px;
}

.tool-panel .textarea {
  min-height: 0;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body[data-layout="tool"] .tool-panel .textarea {
  padding: 14px 16px 16px;
  font-size: 15px;
  line-height: 1.7;
}

.stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  padding: 20px 24px 24px;
}

body[data-layout="tool"] .stat-grid {
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  padding: 10px 12px 12px;
  gap: 8px;
}

body[data-layout="tool"] .tool-metrics {
  margin: 0 12px 12px;
}

body[data-layout="tool"] .tool-metrics .stat-grid {
  padding: 12px;
}

.stat-card {
  display: grid;
  gap: 6px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--surface-soft);
}

body[data-layout="tool"] .stat-card {
  padding: 10px 12px;
  gap: 2px;
  border-radius: 14px;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.035);
}

.stat-card span {
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

body[data-layout="tool"] .stat-card span {
  font-size: 10px;
}

.stat-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

body[data-layout="tool"] .stat-card strong {
  font-size: 18px;
}

body[data-layout="tool"] .tool-fold {
  margin-top: 14px;
  border: 1px solid rgba(143, 161, 181, 0.14);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}

body[data-layout="tool"] .tool-fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-dim);
}

body[data-layout="tool"] .tool-fold > summary::-webkit-details-marker {
  display: none;
}

body[data-layout="tool"] .tool-fold > summary::after {
  content: "+";
  font-size: 18px;
  line-height: 1;
  color: var(--text);
}

body[data-layout="tool"] .tool-fold[open] > summary {
  border-bottom: 1px solid rgba(143, 161, 181, 0.12);
}

body[data-layout="tool"] .tool-fold[open] > summary::after {
  content: "−";
}

body[data-layout="tool"] .tool-fold > .split-layout,
body[data-layout="tool"] .tool-fold > .section-stack {
  margin-top: 0;
  padding: 12px;
}

body[data-layout="tool"] .tool-fold > .faq-card {
  margin-top: 0;
  padding: 12px;
  background: transparent;
  border: 0;
  box-shadow: none;
}

body[data-layout="tool"] .tool-fold > .faq-card > h2 {
  display: none;
}

.split-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 20px;
  margin-top: 24px;
}

.section-stack {
  display: grid;
  gap: 20px;
  margin-top: 24px;
}

.workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.workflow-card {
  padding: 22px;
  display: grid;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.workflow-card h3 {
  margin: 0;
  letter-spacing: -0.03em;
}

.workflow-card p {
  margin: 0;
  color: var(--text-dim);
  line-height: 1.7;
}

.workflow-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(143, 161, 181, 0.12);
}

.faq-item h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.page-footer {
  margin-top: 32px;
  padding: 24px 0 40px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid rgba(143, 161, 181, 0.14);
}

.page-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.note {
  color: var(--text-dim);
  font-size: 14px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(7, 12, 19, 0.92);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.text-accent {
  color: #ffd7bb;
}

.inline-code,
code {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.94em;
}

@media (max-width: 900px) {
  .site-header-inner,
  .page-shell {
    width: min(var(--max-width), calc(100% - 24px));
  }

  .grid-two,
  .split-layout,
  .tool-panels {
    grid-template-columns: 1fr;
  }

  .tool-panel + .tool-panel {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .toolbar-primary {
    grid-template-columns: 1fr;
  }

  .toolbar-details {
    min-width: 0;
    width: 100%;
  }

  .page-footer {
    flex-direction: column;
  }

  .language-switcher {
    margin-bottom: 12px;
  }
}

@media (max-width: 720px) {
  .site-header-inner {
    align-items: flex-start;
    padding: 14px 0;
    flex-direction: column;
  }

  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .hero {
    padding-top: 36px;
  }

  .hero p {
    font-size: 16px;
  }

  .toolbar,
  .tool-meta,
  .panel-card,
  .content-card,
  .info-card,
  .faq-card {
    padding-left: 18px;
    padding-right: 18px;
  }

  .tool-panel {
    min-height: 360px;
  }

  body[data-layout="tool"] .tool-panel {
    min-height: 320px;
  }

  body[data-layout="tool"] .stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-layout="tool"] .tool-panel .textarea {
    padding: 12px 14px 14px;
    font-size: 14px;
  }

  .text-area,
  .textarea {
    min-height: 260px;
  }
}

.landing-hero {
  padding: 44px 0 28px;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 1.05fr);
  gap: 24px;
  align-items: start;
}

.landing-copy {
  display: grid;
  gap: 18px;
  padding-top: 8px;
}

.landing-copy h1 {
  margin: 0;
  max-width: 720px;
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: -0.05em;
}

.landing-copy p {
  margin: 0;
  max-width: 680px;
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.7;
}

.hero-demo {
  display: grid;
  gap: 16px;
  padding: 20px;
  background: linear-gradient(180deg, rgba(24, 34, 51, 0.94), rgba(12, 18, 28, 0.92));
  border: 1px solid rgba(143, 161, 181, 0.2);
  border-radius: calc(var(--radius-lg) + 4px);
  box-shadow: var(--shadow);
}

.hero-demo-head {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  align-items: flex-start;
}

.hero-demo-head strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.hero-demo-head span {
  display: block;
  margin-top: 6px;
  color: var(--text-dim);
  line-height: 1.55;
}

.hero-demo-toolbar {
  display: grid;
  gap: 10px;
}

.hero-demo-panels {
  border-radius: 18px;
}

.hero-demo .tool-panel {
  min-height: 280px;
}

.hero-demo .panel-head {
  background: rgba(255, 255, 255, 0.02);
}

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

.hero-demo-stats .stat-card {
  min-height: 0;
}

.landing-stack {
  margin-top: 16px;
}

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

@media (max-width: 1080px) {
  .landing-hero {
    grid-template-columns: 1fr;
  }

  .landing-copy {
    padding-top: 0;
  }
}

@media (max-width: 900px) {
  .hero-demo-head {
    flex-direction: column;
  }
}

@media (max-width: 720px) {
  .landing-hero {
    padding-top: 28px;
    gap: 18px;
  }

  .landing-copy h1 {
    font-size: clamp(32px, 10vw, 52px);
  }

  .landing-copy p {
    font-size: 16px;
  }

  .hero-demo {
    padding: 16px;
  }

  .hero-demo .tool-panel {
    min-height: 240px;
  }

  .hero-demo-stats,
  .why-grid {
    grid-template-columns: 1fr;
  }
}

.cleanup-link-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  color: var(--text-dim);
  font-size: 13px;
}

.cleanup-link-row span {
  margin-right: 4px;
}

.category-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.cleanup-catalog-grid {
  margin-top: 8px;
}

.compare-grid,
.compare-results-grid {
  display: grid;
  gap: 16px;
}

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

.compare-results-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.compare-shell .tool-panel {
  min-height: 260px;
}

.compare-shell .result-panel {
  min-height: 220px;
}

.compare-example-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.cleanup-segmented {
  flex-wrap: wrap;
}

.cleanup-toggle-row {
  align-items: center;
}

@media (max-width: 1080px) {
  .compare-results-grid,
  .compare-example-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .cleanup-link-row,
  .category-pill-row {
    gap: 8px;
  }

  .compare-grid,
  .compare-results-grid,
  .compare-example-grid {
    grid-template-columns: 1fr;
  }
}
