:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --surface: #ffffff;
  --surface-soft: #eef5f1;
  --text: #18212f;
  --muted: #667085;
  --line: #dce3ea;
  --accent: #1b7f5f;
  --accent-dark: #0d5f47;
  --accent-soft: #dff3ea;
  --warning: #b45309;
  --code: #111827;
  --shadow: 0 16px 40px rgba(24, 33, 47, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
}

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

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

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 900;
}

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

.nav-links a:hover {
  color: var(--accent-dark);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  gap: 42px;
  align-items: center;
  min-height: 520px;
  padding: 70px 0 42px;
}

.eyebrow {
  color: var(--accent-dark);
  font-size: 14px;
  font-weight: 750;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin: 12px 0 18px;
  font-size: clamp(40px, 7vw, 72px);
}

h2 {
  margin: 0 0 14px;
  font-size: clamp(26px, 4vw, 40px);
}

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

.lead {
  max-width: 720px;
  color: var(--muted);
  font-size: 19px;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-weight: 750;
}

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

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

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

.panel-top {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef4444;
}

.dot:nth-child(2) {
  background: #f59e0b;
}

.dot:nth-child(3) {
  background: #22c55e;
}

.panel-body {
  padding: 22px;
}

.mock-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}

.mini-tile {
  min-height: 92px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-soft);
}

.mini-tile strong {
  display: block;
  margin-bottom: 6px;
}

.section {
  padding: 54px 0;
}

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

.section-head p {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
}

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

.tool-card {
  min-height: 188px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.tool-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

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

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 750;
}

.content-page {
  max-width: 900px;
  padding: 54px 20px 80px;
}

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

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

.tool-main,
.side-panel,
.info-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.tool-main {
  overflow: hidden;
}

.tool-header {
  padding: 26px;
  border-bottom: 1px solid var(--line);
}

.tool-header h1 {
  margin: 0 0 10px;
  font-size: clamp(32px, 5vw, 52px);
}

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

.tool-body {
  padding: 26px;
}

.field-stack {
  display: grid;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 7px;
  color: #344054;
  font-size: 14px;
  font-weight: 750;
}

textarea,
input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--text);
}

textarea {
  min-height: 190px;
  padding: 14px;
  resize: vertical;
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

.control-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0;
}

.output {
  min-height: 150px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e5edf6;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.output.light {
  background: #fbfcfd;
  color: var(--text);
}

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

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

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

.stat strong {
  display: block;
  margin-top: 6px;
  font-size: 24px;
}

.side-panel {
  padding: 20px;
}

.side-panel ul {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.side-panel a {
  display: block;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
}

.side-panel a:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.info-block {
  margin-top: 18px;
  padding: 22px 26px;
}

.info-block p,
.info-block li {
  color: var(--muted);
}

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

.article-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

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

.faq {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.faq-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.faq-item strong {
  display: block;
  margin-bottom: 6px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding-left: 20px;
}

.note {
  margin-top: 14px;
  padding: 14px;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

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

.serp-url {
  color: #188038;
  font-size: 14px;
}

.serp-title {
  margin: 3px 0;
  color: #1a0dab;
  font-size: 20px;
}

.serp-desc {
  color: #4d5156;
  font-size: 14px;
}

.meter {
  height: 8px;
  border-radius: 999px;
  background: #e5e7eb;
  overflow: hidden;
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.15fr 1.8fr;
  gap: 28px;
  padding: 34px 20px;
  color: var(--muted);
  font-size: 14px;
}

.footer-brand strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
  font-size: 18px;
}

.footer-brand p {
  max-width: 420px;
  margin: 0;
}

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

.footer-links strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.footer-links a {
  display: block;
  margin-top: 7px;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent-dark);
}

.footer-bottom {
  border-top: 1px solid var(--line);
  padding: 16px 20px;
  color: var(--muted);
  font-size: 13px;
}

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

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

  .section-head,
  .footer-inner {
    align-items: flex-start;
    grid-template-columns: 1fr;
  }

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

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

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

  .hero {
    min-height: auto;
    padding-top: 42px;
  }

  .tool-grid,
  .mini-grid,
  .stats-grid,
  .article-grid,
  .footer-links {
    grid-template-columns: 1fr;
  }

  .tool-header,
  .tool-body,
  .info-block {
    padding: 20px;
  }
}
