:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: #f6f7f9;
  color: #191f28;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #f6f7f9;
}

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

.seo-shell {
  width: min(1040px, calc(100% - 40px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.seo-header,
.seo-hero,
.seo-section,
.stock-list {
  background: #fff;
  border: 1px solid #eaedf2;
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(25, 31, 40, 0.06);
}

.seo-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  margin-bottom: 14px;
}

.seo-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 19px;
}

.seo-brand img {
  width: 82px;
  height: auto;
}

.seo-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #6b7684;
  font-weight: 700;
  font-size: 14px;
}

.seo-nav a:hover,
.stock-grid a:hover {
  color: #3182f6;
}

.seo-hero {
  padding: 44px;
  margin-bottom: 14px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #3182f6;
  font-size: 15px;
  font-weight: 800;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.08;
  letter-spacing: 0;
}

.lead {
  max-width: 760px;
  margin: 18px 0 0;
  color: #4e5968;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 650;
}

.seo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 800;
}

.btn.primary {
  background: #3182f6;
  color: #fff;
}

.btn.secondary {
  background: #f2f4f6;
  color: #333d4b;
}

.seo-section {
  padding: 28px;
  margin-top: 14px;
}

h2 {
  margin: 0 0 14px;
  font-size: 24px;
  line-height: 1.25;
}

.seo-section p,
.seo-section li {
  color: #4e5968;
  font-size: 17px;
  line-height: 1.75;
  font-weight: 600;
}

.seo-section ul {
  margin: 0;
  padding-left: 20px;
}

.keyword-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.keyword-row span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f2f4f6;
  color: #4e5968;
  font-size: 14px;
  font-weight: 800;
}

.stock-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 24px;
}

.stock-meta div {
  border-radius: 14px;
  background: #f8fafc;
  padding: 16px;
}

.stock-meta dt {
  color: #8b95a1;
  font-size: 13px;
  font-weight: 800;
}

.stock-meta dd {
  margin: 6px 0 0;
  color: #191f28;
  font-size: 18px;
  font-weight: 850;
}

.stock-list {
  padding: 26px;
  margin-top: 14px;
}

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

.stock-grid a {
  display: block;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: #333d4b;
  font-size: 15px;
  font-weight: 750;
}

.seo-footer {
  margin-top: 22px;
  color: #8b95a1;
  font-size: 13px;
  font-weight: 650;
  text-align: center;
}

@media (max-width: 720px) {
  .seo-shell {
    width: min(100% - 24px, 1040px);
    padding-top: 18px;
  }

  .seo-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .seo-hero {
    padding: 28px 22px;
  }

  .lead {
    font-size: 17px;
  }

  .seo-section {
    padding: 22px;
  }

  .stock-meta {
    grid-template-columns: 1fr;
  }

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