:root {
  --navy: #0f172a;
  --blue: #2563eb;
  --green: #10b981;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --white: #fff;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--navy);
  font-family:
    Pretendard,
    "Noto Sans KR",
    system-ui,
    -apple-system,
    sans-serif;
  line-height: 1.55;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 68px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}
.brand b {
  color: var(--blue);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
}
.data-badge,
.sample-tag {
  font-size: 12px;
  font-weight: 700;
  color: #047857;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 999px;
  padding: 6px 10px;
}
.hero {
  padding: 78px 20px 64px;
  text-align: center;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.eyebrow {
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.hero h1 {
  margin: 14px 0 18px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.15;
  letter-spacing: -0.05em;
}
.hero h1 span {
  color: var(--blue);
}
.hero > p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 17px;
}
.search-form {
  position: relative;
  display: flex;
  gap: 10px;
  max-width: 760px;
  margin: 34px auto 10px;
}
.search-box {
  position: relative;
  display: flex;
  align-items: center;
  flex: 1;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}
.search-box > span {
  padding-left: 18px;
  font-size: 25px;
  color: var(--muted);
}
input {
  width: 100%;
  height: 58px;
  border: 0;
  outline: 0;
  background: transparent;
  padding: 0 44px 0 12px;
  font: inherit;
  font-size: 16px;
}
.search-box:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}
#clearSearch {
  position: absolute;
  right: 10px;
  border: 0;
  background: transparent;
  font-size: 22px;
  color: var(--muted);
  cursor: pointer;
}
.search-button {
  min-width: 138px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.search-button:hover {
  background: #1d4ed8;
}
.suggestions {
  position: absolute;
  top: 66px;
  left: 0;
  right: 148px;
  z-index: 10;
  margin: 0;
  padding: 7px;
  list-style: none;
  text-align: left;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
}
.suggestions li {
  padding: 11px 13px;
  border-radius: 8px;
  cursor: pointer;
}
.suggestions li[aria-selected="true"],
.suggestions li:hover {
  background: #eff6ff;
}
.suggestions small {
  display: block;
  color: var(--muted);
}
.search-help {
  font-size: 13px !important;
}
.content {
  width: min(1180px, calc(100% - 40px));
  margin: auto;
  padding: 34px 0 72px;
}
.status-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 34px;
}
.status-dot {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 50%;
}
.content h2 {
  font-size: 24px;
  letter-spacing: -0.03em;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}
.feature-grid article,
.data-section,
.message-card,
.result-head,
.notice {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.feature-grid article {
  padding: 24px;
}
.feature-grid b,
.section-number {
  color: var(--blue);
  font-size: 12px;
}
.feature-grid h3 {
  margin: 18px 0 7px;
  font-size: 17px;
}
.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.message-card {
  text-align: center;
  padding: 46px;
}
.error {
  color: #b91c1c;
}
.result-head {
  display: flex;
  justify-content: space-between;
  gap: 28px;
  padding: 28px;
  margin-bottom: 16px;
}
.result-head h2 {
  font-size: 32px;
  margin: 14px 0 3px;
}
.result-head p {
  margin: 0;
  color: var(--muted);
}
.result-head dl {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin: 0;
  min-width: 450px;
}
.result-head dt {
  font-size: 12px;
  color: var(--muted);
}
.result-head dd {
  margin: 5px 0 0;
  font-size: 14px;
  font-weight: 700;
}
.data-section {
  padding: 26px;
  margin-top: 14px;
}
.section-title {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 18px;
}
.section-title h3 {
  margin: 0;
  font-size: 19px;
}
.data-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.metric {
  background: #fff;
  padding: 17px;
  min-width: 0;
}
.metric span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.metric strong {
  display: block;
  margin-top: 7px;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.notice {
  margin-top: 18px;
  padding: 22px;
  border-left: 4px solid var(--blue);
}
.notice p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 14px;
}
footer {
  text-align: center;
  border-top: 1px solid var(--line);
  padding: 28px;
  color: var(--muted);
  font-size: 13px;
}
.home-link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-right: 18px;
  color: inherit;
  font-weight: 700;
  text-underline-offset: 4px;
}
.home-link:hover,
.home-link:focus-visible {
  text-decoration: underline;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.35);
  outline-offset: 2px;
}
@media (max-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .result-head {
    display: block;
  }
  .result-head dl {
    margin-top: 24px;
    min-width: 0;
  }
  .data-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .header-inner,
  .content {
    width: min(100% - 28px, 1180px);
  }
  .data-badge {
    font-size: 10px;
  }
  footer {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .home-link {
    margin-right: 0;
  }
  .hero {
    padding: 54px 14px 42px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .hero > p {
    font-size: 15px;
  }
  .search-form {
    display: block;
  }
  .search-button {
    width: 100%;
    height: 52px;
    margin-top: 10px;
  }
  .suggestions {
    top: 64px;
    right: 0;
  }
  .feature-grid {
    grid-template-columns: 1fr;
  }
  .result-head,
  .data-section {
    padding: 20px;
  }
  .result-head dl {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .data-grid {
    grid-template-columns: 1fr;
  }
  .result-head h2 {
    font-size: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
