:root {
  color-scheme: light;
  --ink: #17201d;
  --muted: #62706b;
  --line: #d9e2dd;
  --surface: #ffffff;
  --soft: #f4f8f5;
  --teal: #0f766e;
  --teal-dark: #0a514c;
  --amber: #b9821f;
  --blue: #355f88;
  --rose: #aa4d5f;
  --shadow: 0 18px 48px rgba(20, 34, 30, 0.11);
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 15px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 850;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: var(--teal);
  color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav a,
.site-footer a {
  text-decoration: none;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.62fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  min-height: calc(100vh - 67px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 4vw, 56px);
  background:
    linear-gradient(115deg, rgba(244, 248, 245, 0.96), rgba(244, 248, 245, 0.78)),
    url("https://images.unsplash.com/photo-1454165804606-c3d57bc86b40?auto=format&fit=crop&w=1600&q=80") center/cover;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 24px;
  max-width: 830px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 0.99;
  letter-spacing: 0;
}

h2 {
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: 0;
}

h3 {
  font-size: 22px;
  letter-spacing: 0;
}

.lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
}

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

.button.ghost {
  background: rgba(255, 255, 255, 0.72);
}

.hero-panel,
.tool-card,
.tool-shell,
.info-box,
.split-section article,
.content-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.hero-panel {
  padding: 24px;
}

.panel-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
}

.panel-row strong {
  color: var(--ink);
  font-size: 46px;
}

.mini-chart {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: end;
  gap: 12px;
  height: 210px;
  margin: 28px 0;
  padding: 16px;
  border-radius: 8px;
  background: #edf4f0;
}

.mini-chart span {
  display: block;
  min-height: 28px;
  border-radius: 6px 6px 0 0;
  background: linear-gradient(180deg, var(--teal), var(--amber));
}

.hero-panel p {
  color: var(--muted);
  line-height: 1.75;
}

.tool-grid-section,
.split-section,
.page-section,
.site-footer {
  padding: clamp(44px, 7vw, 86px) clamp(18px, 4vw, 56px);
}

.section-heading {
  max-width: 740px;
  margin-bottom: 26px;
}

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

.tool-card {
  display: grid;
  gap: 10px;
  padding: 24px;
  text-decoration: none;
  box-shadow: none;
}

.tool-card p,
.split-section p,
.content-card p,
.info-box p {
  color: var(--muted);
  line-height: 1.8;
}

.tool-icon {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: #e7f2ee;
  color: var(--teal-dark);
  font-weight: 850;
}

.card-link,
.split-section a,
.content-card a {
  color: var(--teal-dark);
  font-weight: 850;
}

.split-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding-top: 0;
}

.split-section article {
  padding: 28px;
  box-shadow: none;
}

.page-hero {
  padding: clamp(46px, 8vw, 86px) clamp(18px, 4vw, 56px) clamp(30px, 5vw, 58px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.page-hero p {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

.page-hero h1 {
  margin-bottom: 16px;
  font-size: clamp(38px, 6vw, 68px);
}

.tool-shell {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1fr);
  gap: 22px;
  padding: 22px;
  box-shadow: none;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 760;
}

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

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

.result-box {
  display: grid;
  gap: 14px;
  align-content: start;
  min-height: 420px;
  padding: 18px;
  border-radius: 8px;
  background: #f7faf8;
  border: 1px solid var(--line);
}

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

.metric {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.metric span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: clamp(20px, 3vw, 30px);
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-row {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 110px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
}

.track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfe9e4;
}

.fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: var(--teal);
}

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

.button.secondary {
  background: #fff;
  color: var(--teal-dark);
}

pre {
  margin: 0;
  min-height: 320px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #26312e;
  font: 14px/1.7 Consolas, "SFMono-Regular", monospace;
}

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

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

.info-box,
.content-card {
  padding: 22px;
  box-shadow: none;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: #fff;
}

@media (max-width: 900px) {
  .hero,
  .tool-grid,
  .split-section,
  .tool-shell,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .site-header,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  h1 {
    font-size: 42px;
  }

  .hero-actions,
  .toolbar {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

  .bar-row {
    grid-template-columns: 1fr;
  }
}
