.seo-head-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: 8px 0 40px;
}

/* 상단 */
.seo-head-page .utility-top {
  text-align: center;
  padding: 30px 20px 28px;
}

.seo-head-page .utility-label {
  display: inline-flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 6px 13px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.seo-head-page .utility-title {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #0f172a;
}

.seo-head-page .utility-desc {
  max-width: 760px;
  margin: 16px auto 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.8;
}

/* 요약 카드 */
.seo-summary-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 22px;
}

.seo-summary-item {
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 20px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.06);
}

.seo-summary-item::before {
  content: "";
  display: block;
  width: 34px;
  height: 4px;
  margin-bottom: 14px;
  border-radius: 999px;
  background: linear-gradient(90deg, #2563eb, #7c3aed);
}

.seo-summary-item strong {
  display: block;
  margin-bottom: 7px;
  color: #0f172a;
  font-size: 15px;
  font-weight: 900;
}

.seo-summary-item span {
  color: #64748b;
  font-size: 13px;
  line-height: 1.6;
}

/* 카드 공통 */
.seo-input-card,
.seo-score-card,
.seo-result-card,
.seo-detail-card {
  padding: 28px;
  margin-bottom: 24px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 24px;
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.08);
}

.seo-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 24px;
}

.seo-card-head h2 {
  margin: 0 0 8px;
  color: #0f172a;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.seo-card-head p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
}

.seo-head-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  padding-top: 4px;
}

/* 입력 영역 */
.seo-head-page .utility-field-label {
  display: block;
  margin-bottom: 12px;
  color: #0f172a;
  font-weight: 900;
}

.seo-head-input {
  width: 100%;
  min-height: 360px;
  box-sizing: border-box;
  padding: 22px;
  border-radius: 20px;
  resize: vertical;
  line-height: 1.8;
  font-size: 14px;
  font-family:
    Consolas,
    Monaco,
    "SFMono-Regular",
    "Courier New",
    monospace;
}

.seo-head-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.14);
}

/* 버튼 */
.seo-action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.seo-head-page .utility-btn {
  min-height: 46px;
  padding: 0 20px;
  border-radius: 14px;
  font-weight: 800;
}

.seo-head-page .utility-btn-primary {
  border-color: #0f172a;
  background: linear-gradient(135deg, #0f172a, #2563eb);
  color: #ffffff;
}

.seo-head-page .utility-btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.18);
}

/* 점수 카드 */
.seo-score-main {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.seo-score-label {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 6px 11px;
  border-radius: 999px;
  background: #eff6ff;
  color: #2563eb;
  font-size: 12px;
  font-weight: 900;
}

.seo-score-main strong {
  display: block;
  margin-bottom: 10px;
  color: #0f172a;
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.seo-score-main p {
  margin: 0;
  color: #64748b;
  font-size: 15px;
  line-height: 1.7;
}

.seo-score-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #ffffff 58%, transparent 59%),
    conic-gradient(#2563eb 0deg, #2563eb 0deg, #dbeafe 0deg);
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.18);
}

.seo-score-ring span {
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
}

/* 상태 */
.seo-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 82px;
  padding: 8px 13px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.seo-status-badge.is-ready {
  background: #f1f5f9;
  color: #475569;
}

.seo-status-badge.is-success {
  background: #dbeafe;
  color: #1d4ed8;
}

.seo-status-badge.is-error {
  background: #fee2e2;
  color: #b91c1c;
}

/* 검사 결과 */
.seo-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.seo-check-item {
  position: relative;
  overflow: hidden;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: #f8fafc;
}

.seo-check-item.is-good {
  border-color: rgba(34, 197, 94, 0.22);
  background:
    radial-gradient(circle at top right, rgba(34, 197, 94, 0.08), transparent 26%),
    #f8fafc;
}

.seo-check-item.is-warning {
  border-color: rgba(245, 158, 11, 0.24);
  background:
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.08), transparent 26%),
    #fffdf7;
}

.seo-check-item.is-error {
  border-color: rgba(239, 68, 68, 0.24);
  background:
    radial-gradient(circle at top right, rgba(239, 68, 68, 0.08), transparent 26%),
    #fef2f2;
}

.seo-check-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.seo-check-top strong {
  color: #0f172a;
  font-size: 16px;
  font-weight: 900;
}

.seo-check-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
}

.seo-check-badge.good {
  background: #dcfce7;
  color: #15803d;
}

.seo-check-badge.warning {
  background: #fef3c7;
  color: #b45309;
}

.seo-check-badge.error {
  background: #fee2e2;
  color: #b91c1c;
}

.seo-check-item p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
  line-height: 1.7;
}

.seo-empty-result {
  grid-column: 1 / -1;
  padding: 40px 20px;
  border: 1px dashed rgba(148, 163, 184, 0.3);
  border-radius: 20px;
  text-align: center;
  color: #94a3b8;
  font-size: 14px;
  font-weight: 700;
}

/* 결과 박스 */
.seo-result-box {
  min-height: 320px;
  max-height: 720px;
  overflow: auto;
  margin-top: 18px;
  padding: 24px;
  border-radius: 20px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.9;
  font-size: 14px;
  font-family:
    Consolas,
    Monaco,
    "SFMono-Regular",
    "Courier New",
    monospace;
}

.seo-result-box.is-ready {
  border: 1px solid rgba(148, 163, 184, 0.24);
  background: #f8fafc;
  color: #64748b;
}

.seo-result-box.is-success {
  border: 1px solid rgba(37, 99, 235, 0.22);
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.08), transparent 28%),
    linear-gradient(180deg, #0f172a 0%, #111827 100%);
  color: #dbeafe;
}

.seo-result-box.is-error {
  border: 1px solid rgba(239, 68, 68, 0.28);
  background: #fef2f2;
  color: #991b1b;
}

/* 도움말 */
.seo-head-page .help-panel {
  margin-top: 30px;
}

.seo-head-page .help-panel > h2 {
  margin: 0 0 18px;
  color: #0f172a;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.seo-head-page .help-box {
  border-radius: 22px;
}

/* 반응형 */
@media (max-width: 980px) {
  .seo-summary-card,
  .seo-check-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .seo-head-page {
    padding: 0 0 28px;
  }

  .seo-head-page .utility-top {
    padding: 24px 14px 22px;
  }

  .seo-input-card,
  .seo-score-card,
  .seo-result-card,
  .seo-detail-card {
    padding: 22px;
    border-radius: 20px;
  }

  .seo-card-head {
    flex-direction: column;
    gap: 14px;
  }

  .seo-head-actions,
  .seo-action-row {
    width: 100%;
    flex-direction: column;
  }

  .seo-head-actions .utility-btn,
  .seo-action-row .utility-btn {
    width: 100%;
  }

  .seo-head-input {
    min-height: 300px;
    padding: 18px;
    font-size: 13px;
  }

  .seo-result-box {
    min-height: 260px;
    font-size: 13px;
  }

  .seo-head-page .utility-title {
    font-size: 32px;
  }

  .seo-score-ring {
    width: 110px;
    height: 110px;
  }

  .seo-score-ring span {
    font-size: 20px;
  }
}