:root {
  color-scheme: light;
  --ink: #17211c;
  --muted: #5a6861;
  --line: #dbe4df;
  --soft: #f3f7f1;
  --panel: #ffffff;
  --brand: #0e7b62;
  --brand-strong: #075541;
  --accent: #cf6f2e;
  --warn: #8d3f15;
  --shadow: 0 18px 50px rgba(23, 33, 28, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #fbfcfa;
  line-height: 1.55;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(219, 228, 223, 0.85);
  background: rgba(251, 252, 250, 0.94);
  backdrop-filter: blur(14px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: white;
  background: var(--brand);
  font-size: 18px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a:hover {
  color: var(--brand-strong);
}

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 22px;
}

.hero {
  padding: 58px 0 34px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
  gap: 34px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--brand-strong);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(34px, 5vw, 68px);
  line-height: 1.02;
  letter-spacing: 0;
}

.lead {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  font-weight: 750;
}

.button.primary {
  border-color: var(--brand);
  background: var(--brand);
  color: #fff;
}

.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 123, 98, 0.12);
}

.hero-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.panel-bar {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}

.workflow {
  padding: 18px;
  display: grid;
  gap: 12px;
}

.workflow-step {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--soft);
}

.workflow-step strong {
  display: block;
  margin-bottom: 4px;
}

.workflow-step span {
  color: var(--muted);
  font-size: 14px;
}

.section {
  padding: 34px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.section h2 {
  margin: 0;
  font-size: 30px;
  line-height: 1.15;
}

.section-note {
  max-width: 560px;
  color: var(--muted);
  margin: 0;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.card {
  display: flex;
  flex-direction: column;
  min-height: 188px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.card:hover {
  border-color: rgba(14, 123, 98, 0.35);
  box-shadow: 0 12px 32px rgba(23, 33, 28, 0.08);
}

.tag {
  align-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: #e5f2ed;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 750;
}

.card h3 {
  margin: 14px 0 8px;
  font-size: 20px;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.card .card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--brand-strong);
  font-weight: 750;
}

.tool-layout {
  padding: 38px 0 46px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.tool-shell,
.side-panel,
.content-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.tool-shell {
  overflow: hidden;
}

.tool-header {
  padding: 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #f8fbf7, #fff);
}

.tool-header h1 {
  max-width: 820px;
  font-size: clamp(30px, 4vw, 46px);
}

.tool-header p {
  max-width: 760px;
  margin: 14px 0 0;
  color: var(--muted);
}

.tool-body {
  padding: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

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

.field label {
  font-size: 13px;
  color: var(--muted);
  font-weight: 750;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #fff;
}

textarea {
  min-height: 104px;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(14, 123, 98, 0.18);
  border-color: var(--brand);
}

.result {
  margin-top: 20px;
  padding: 18px;
  border-radius: 8px;
  background: #0f211c;
  color: #ecfff7;
}

.result h2 {
  margin: 0 0 12px;
  font-size: 20px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.metric {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.06);
}

.metric span {
  display: block;
  color: #b8d5cb;
  font-size: 12px;
}

.metric strong {
  display: block;
  margin-top: 5px;
  font-size: 22px;
}

.output-text {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  word-break: break-all;
  background: rgba(255, 255, 255, 0.06);
}

.side-panel,
.content-panel {
  padding: 18px;
}

.side-panel + .side-panel {
  margin-top: 14px;
}

.side-panel h2,
.content-panel h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.side-panel p,
.content-panel p,
.content-panel li {
  color: var(--muted);
}

.partner-slot {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px dashed rgba(14, 123, 98, 0.45);
  border-radius: 8px;
  background: #f6fbf8;
}

.partner-slot strong {
  color: var(--brand-strong);
}

.related-list {
  display: grid;
  gap: 8px;
}

.related-list a {
  color: var(--brand-strong);
  font-weight: 700;
}

.below {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 48px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 24px 0;
}

@media (max-width: 860px) {
  .nav {
    align-items: flex-start;
    flex-direction: column;
  }

  .nav-links {
    flex-wrap: wrap;
  }

  .hero,
  .tool-layout,
  .below {
    grid-template-columns: 1fr;
  }

  .grid,
  .metrics {
    grid-template-columns: 1fr;
  }

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