/* ── 리셋 & 기본 ──────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Noto Sans KR', -apple-system, sans-serif;
  background: #f0f4ff;
  color: #1e293b;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }

/* ── 컨테이너 ──────────────────────────────────────── */
.container { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

/* ── 헤더 ──────────────────────────────────────── */
.site-header {
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  padding: 14px 0;
  position: sticky; top: 0; z-index: 100;
}
.site-header .container { display: flex; align-items: center; gap: 16px; }
.logo { font-size: 22px; font-weight: 800; color: #1e40af; }
.logo span { color: #2563eb; }
.header-tagline { font-size: 13px; color: #64748b; margin-left: auto; }

/* ── 히어로 ──────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 50%, #2563eb 100%);
  color: #fff;
  padding: 64px 0 56px;
  text-align: center;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 20px;
  padding: 4px 16px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 16px;
}
.hero-title .highlight { color: #93c5fd; }
.hero-desc { font-size: 16px; color: rgba(255,255,255,.85); margin-bottom: 28px; line-height: 1.7; }
.hero-badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge-item {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 8px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
}

/* ── 폼 섹션 ──────────────────────────────────────── */
.form-section { padding: 48px 0 56px; }
.form-card {
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 4px 32px rgba(37,99,235,.12);
  padding: 40px 48px;
  max-width: 740px;
  margin: 0 auto;
}
.form-result-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #eff6ff;
  border: 1.5px solid #bfdbfe;
  border-radius: 12px;
  padding: 14px 18px;
  font-size: 14px;
  color: #1e40af;
  line-height: 1.7;
  margin-bottom: 28px;
}
.banner-icon { font-size: 18px; flex-shrink: 0; margin-top: 1px; }
.form-result-banner strong { color: #1e3a8a; }
.form-title { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.form-subtitle { color: #64748b; font-size: 14px; margin-bottom: 28px; }
.form-reassure {
  text-align: center;
  font-size: 13px;
  color: #64748b;
  margin-top: 14px;
}

.form-row { margin-bottom: 0; }
.form-row.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row.full-width .form-group { margin-bottom: 16px; }

.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; color: #374151; margin-bottom: 6px; }
.required { color: #ef4444; }
.form-group input {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
}
.form-group input:focus { border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.12); }
.form-group input.error { border-color: #ef4444; }
.field-hint { font-size: 12px; color: #94a3b8; margin-top: 4px; display: block; }

/* 동의 체크박스 */
.consent-group { margin: 4px 0 20px; }
.consent-label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.consent-label input[type="checkbox"] { width: 18px; height: 18px; margin-top: 2px; flex-shrink: 0; accent-color: #2563eb; }
.consent-text strong { font-size: 14px; display: block; color: #1e293b; }
.consent-text small { font-size: 12px; color: #64748b; }

/* 진단 버튼 */
.btn-diagnose {
  width: 100%;
  background: linear-gradient(135deg, #1e40af, #2563eb);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 15px 24px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .15s, box-shadow .15s;
}
.btn-diagnose:hover { transform: translateY(-1px); box-shadow: 0 8px 24px rgba(37,99,235,.35); }
.btn-diagnose:disabled { opacity: .65; cursor: not-allowed; transform: none; }

/* 에러박스 */
.error-box {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  border-radius: 10px;
  padding: 12px 16px;
  color: #b91c1c;
  font-size: 14px;
  margin-bottom: 20px;
}

/* ── 히어로 추가 요소 ──────────────────────────────────────── */
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}
.hero-stat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 12px;
  padding: 10px 20px;
}
.stat-num {
  font-size: 20px;
  font-weight: 800;
  color: #93c5fd;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,.8);
  line-height: 1.5;
}
.hero-stat-divider {
  font-size: 20px;
  color: rgba(255,255,255,.4);
  font-weight: 300;
}
.hero-cta-btn {
  display: inline-block;
  background: #f97316;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  padding: 16px 36px;
  border-radius: 12px;
  text-decoration: none;
  transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(249,115,22,.4);
}
.hero-cta-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(249,115,22,.5); }

/* ── 공감(Pain) 섹션 ──────────────────────────────────────── */
.pain-section {
  background: #fafbff;
  padding: 52px 0;
  border-bottom: 1px solid #e2e8f0;
}
.pain-label {
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 28px;
  letter-spacing: .3px;
}
.pain-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
.pain-card {
  background: #fff;
  border-radius: 14px;
  padding: 24px 20px;
  text-align: center;
  border: 1.5px solid #e2e8f0;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
  transition: border-color .2s, box-shadow .2s;
}
.pain-card:hover { border-color: #93c5fd; box-shadow: 0 4px 16px rgba(37,99,235,.1); }
.pain-icon { font-size: 28px; margin-bottom: 10px; }
.pain-card p { font-size: 14px; color: #475569; line-height: 1.7; }
.pain-card p strong { color: #1e293b; }
.pain-footer {
  text-align: center;
  font-size: 15px;
  color: #475569;
  padding: 16px 24px;
  background: #fff7ed;
  border-radius: 10px;
  border-left: 4px solid #f97316;
  max-width: 600px;
  margin: 0 auto;
}
.pain-footer strong { color: #c2410c; }

/* ── 특징 섹션 ──────────────────────────────────────── */
.features-section { background: #fff; padding: 56px 0; }
.section-title { text-align: center; font-size: 24px; font-weight: 700; margin-bottom: 12px; }
.section-subtitle { text-align: center; font-size: 15px; color: #64748b; margin-bottom: 40px; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature-card {
  border-radius: 16px;
  padding: 28px 24px;
  border: 2px solid transparent;
}
.seo-card { background: #eff6ff; border-color: #bfdbfe; }
.aeo-card { background: #f5f3ff; border-color: #ddd6fe; }
.geo-card { background: #ecfdf5; border-color: #a7f3d0; }
.feature-icon { font-size: 32px; margin-bottom: 12px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card h3 small { font-size: 12px; font-weight: 500; display: block; color: #64748b; }
.feature-card p { font-size: 13px; color: #475569; margin-bottom: 12px; line-height: 1.7; }
.feature-card ul { padding-left: 16px; margin-bottom: 14px; }
.feature-card ul li { font-size: 12px; color: #64748b; margin-bottom: 4px; }
.feature-fail-example {
  font-size: 12px;
  color: #b91c1c;
  background: #fff1f1;
  border-radius: 8px;
  padding: 8px 12px;
  margin-top: 4px;
}

/* ── 프로세스 섹션 ──────────────────────────────────────── */
.process-section {
  background: #f8faff;
  padding: 56px 0;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
}
.process-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}
.process-step {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  width: 220px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 2px solid #e2e8f0;
  position: relative;
}
.process-num {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: #1e40af;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.process-icon { font-size: 36px; margin-bottom: 12px; }
.process-step h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; color: #1e293b; }
.process-step p { font-size: 13px; color: #64748b; line-height: 1.7; }
.process-time { display: inline-block; margin-top: 6px; font-size: 12px; font-weight: 600; color: #64748b; }
.highlight-time { color: #2563eb; font-size: 13px; }
.process-arrow { font-size: 24px; color: #94a3b8; font-weight: 300; }

/* ── 진단 진행 화면 ──────────────────────────────────── */
.diagnosis-page { background: #0f172a; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.diagnosis-wrapper { padding: 24px; width: 100%; max-width: 520px; }
.diagnosis-card { background: #1e293b; border-radius: 20px; padding: 48px 40px; text-align: center; box-shadow: 0 20px 60px rgba(0,0,0,.4); }
.diagnosis-logo { font-size: 24px; font-weight: 800; color: #93c5fd; margin-bottom: 32px; }
.diagnosis-logo span { color: #60a5fa; }

/* 스피너 */
.spinner-ring {
  width: 64px; height: 64px;
  border: 5px solid rgba(147,197,253,.2);
  border-top-color: #60a5fa;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.diagnosis-title { font-size: 20px; font-weight: 700; color: #f1f5f9; margin-bottom: 8px; }
.diagnosis-url { font-size: 13px; color: #94a3b8; margin-bottom: 32px; word-break: break-all; }

.steps-list { text-align: left; margin-bottom: 28px; }
.step-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06); }
.step-item:last-child { border-bottom: none; }
.step-icon { font-size: 16px; flex-shrink: 0; line-height: 1.5; color: #64748b; transition: color .3s; }
.step-icon.done { color: #34d399; }
.step-icon.active { color: #60a5fa; animation: pulse 1s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.step-text { font-size: 14px; color: #94a3b8; }
.step-item.done .step-text { color: #f1f5f9; }
.step-item.active .step-text { color: #bfdbfe; font-weight: 500; }
.diagnosis-notice { font-size: 12px; color: #475569; }

/* ── 결과 화면 ──────────────────────────────────────── */
.result-page { background: #f8fafc; }
.result-main { padding: 40px 0 64px; }

.result-complete { text-align: center; margin-bottom: 40px; }
.complete-icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: #dcfce7; color: #16a34a;
  font-size: 28px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.result-complete h1 { font-size: 26px; font-weight: 800; margin-bottom: 8px; }
.result-url { font-size: 14px; color: #64748b; word-break: break-all; }

/* 점수 카드 */
.score-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 32px; }
.score-card {
  background: #fff;
  border-radius: 16px;
  padding: 28px 24px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border: 2px solid #e2e8f0;
  position: relative;
}
.score-card.lowest-highlight { border-color: #f97316; box-shadow: 0 4px 20px rgba(249,115,22,.2); }
.lowest-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: #f97316; color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 3px 12px; border-radius: 12px; white-space: nowrap;
}
.score-category { font-size: 13px; font-weight: 700; color: #64748b; letter-spacing: 1px; margin-bottom: 2px; }
.score-label { font-size: 12px; color: #94a3b8; margin-bottom: 16px; }
.score-number { font-size: 56px; font-weight: 800; line-height: 1; margin-bottom: 4px; }
.score-max { font-size: 16px; color: #94a3b8; margin-bottom: 12px; }
.grade-badge { display: inline-block; border-radius: 8px; padding: 4px 12px; font-size: 14px; font-weight: 700; margin-bottom: 16px; }
.score-bar { height: 8px; background: #f1f5f9; border-radius: 4px; overflow: hidden; }
.score-fill { height: 100%; border-radius: 4px; transition: width 1s ease; }

/* 등급 색상 — score-number / grade-badge */
.grade-a { color: #15803d; background-color: #dcfce7; }
.grade-b { color: #4d7c0f; background-color: #ecfccb; }
.grade-c { color: #a16207; background-color: #fef9c3; }
.grade-d { color: #c2410c; background-color: #ffedd5; }
.grade-e { color: #b91c1c; background-color: #fee2e2; }

/* 등급 색상 — 점수바 채움 (진한 단색) */
.score-fill.grade-a { background-color: #16a34a; }
.score-fill.grade-b { background-color: #65a30d; }
.score-fill.grade-c { background-color: #ca8a04; }
.score-fill.grade-d { background-color: #ea580c; }
.score-fill.grade-e { background-color: #dc2626; }

/* 요약 박스 */
.summary-box {
  background: #fff; border-radius: 16px; padding: 28px 32px;
  border-left: 5px solid #2563eb; margin-bottom: 24px;
  box-shadow: 0 2px 12px rgba(0,0,0,.05);
}
.summary-box h2 { font-size: 16px; font-weight: 700; margin-bottom: 12px; }
.summary-box p { font-size: 15px; color: #374151; line-height: 1.7; margin-bottom: 8px; }
.summary-cta-text { font-size: 15px; font-weight: 600; color: #f97316; }

/* 개선 포인트 */
.improvements-box { background: #fff; border-radius: 16px; padding: 28px 32px; margin-bottom: 24px; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.improvements-box h2 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.improvement-list { display: flex; flex-direction: column; gap: 12px; }
.improvement-item { display: flex; align-items: flex-start; gap: 16px; padding: 14px 16px; background: #f8fafc; border-radius: 10px; border-left: 4px solid #2563eb; }
.improvement-num { width: 28px; height: 28px; background: #2563eb; color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 700; flex-shrink: 0; }
.improvement-category { display: inline-block; background: #dbeafe; color: #1d4ed8; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 4px; margin-bottom: 4px; }
.improvement-content p { font-size: 14px; color: #374151; }

/* 흐림 처리 섹션 */
.blur-section { background: #fff; border-radius: 16px; padding: 28px 32px; margin-bottom: 24px; position: relative; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,.05); }
.blur-section h2 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.blur-desc { font-size: 13px; color: #94a3b8; margin-bottom: 20px; }
.blur-preview { filter: blur(5px); pointer-events: none; }
.blur-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid #f1f5f9; }
.blur-category { font-size: 11px; font-weight: 700; background: #dbeafe; color: #1d4ed8; padding: 2px 8px; border-radius: 4px; width: 40px; text-align: center; flex-shrink: 0; }
.blur-bar { height: 8px; background: #e2e8f0; border-radius: 4px; flex: 1; }
.blur-text { font-size: 13px; color: #94a3b8; flex: 2; }
.blur-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(2px);
}
.blur-overlay p { font-size: 15px; font-weight: 600; color: #374151; }

/* CTA 섹션 */
.cta-section { background: linear-gradient(135deg, #1e3a8a, #1e40af); border-radius: 20px; padding: 40px 36px; text-align: center; color: #fff; }
.cta-title { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.cta-desc { font-size: 15px; color: rgba(255,255,255,.8); margin-bottom: 28px; }
.cta-buttons { display: flex; flex-direction: column; gap: 12px; max-width: 420px; margin: 0 auto 16px; }
.btn-cta {
  display: block; width: 100%; padding: 14px 24px;
  border-radius: 12px; font-size: 15px; font-weight: 700;
  font-family: inherit; cursor: pointer; border: none;
  transition: transform .15s, box-shadow .15s;
}
.btn-cta:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.btn-primary { background: #f97316; color: #fff; }
.btn-secondary { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.3) !important; }
.btn-outline { background: transparent; color: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.3) !important; }
.consult-success { background: #dcfce7; color: #15803d; border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; margin-top: 12px; }

/* ── 푸터 ──────────────────────────────────────── */
.site-footer { background: #1e293b; color: #94a3b8; padding: 28px 0; text-align: center; }
.footer-notice { font-size: 12px; margin-bottom: 8px; line-height: 1.6; }
.footer-copy { font-size: 12px; color: #475569; }

/* ── 반응형 ──────────────────────────────────────── */
@media (max-width: 768px) {
  .features-grid { grid-template-columns: 1fr; }
  .score-cards { grid-template-columns: 1fr; }
  .form-card { padding: 28px 24px; }
  .form-row.two-col { grid-template-columns: 1fr; }
  .hero { padding: 40px 0 36px; }
  .hero-title { font-size: 26px; }
  .hero-stats { gap: 6px; }
  .hero-stat-item { padding: 8px 14px; }
  .hero-stat-divider { display: none; }
  .cta-section { padding: 32px 24px; }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .process-steps { flex-direction: column; align-items: center; }
  .process-arrow { transform: rotate(90deg); }
  .process-step { width: 100%; max-width: 320px; }
}
