:root {
  --ink: #13231f;
  --muted: #5d6d68;
  --paper: #f7f5ee;
  --surface: #ffffff;
  --surface-soft: #eef5f0;
  --line: #d9e2dc;
  --forest: #166148;
  --forest-dark: #0e4835;
  --mint: #bfe4d1;
  --gold: #e5b85b;
  --coral: #dc765f;
  --shadow: 0 20px 55px rgba(22, 52, 42, 0.1);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shell: 1160px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.72;
  word-break: keep-all;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--forest);
  text-underline-offset: 0.2em;
}

a:hover {
  color: var(--forest-dark);
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 10px;
  left: 10px;
  transform: translateY(-160%);
  padding: 10px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(calc(100% - 40px), var(--shell));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid rgba(217, 226, 220, 0.9);
  background: rgba(247, 245, 238, 0.94);
  backdrop-filter: blur(16px);
}

.header-row {
  display: flex;
  min-height: 76px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  letter-spacing: -0.04em;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 39px;
  height: 39px;
  place-items: center;
  border-radius: 13px;
  background: var(--forest);
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: -0.03em;
  box-shadow: 0 8px 20px rgba(22, 97, 72, 0.2);
}

.brand-name {
  font-size: 1.22rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.site-nav a {
  padding: 9px 12px;
  border-radius: 10px;
  color: #334741;
  font-size: 0.94rem;
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--forest-dark);
}

.nav-cta {
  margin-left: 6px;
  background: var(--forest) !important;
  color: #fff !important;
}

.menu-toggle {
  display: none;
  min-width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.breadcrumb {
  padding: 24px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.breadcrumb li:not(:last-child)::after {
  margin-left: 8px;
  color: #94a39e;
  content: "/";
}

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

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
  align-items: center;
  gap: clamp(36px, 6vw, 82px);
  padding: clamp(64px, 8vw, 108px) 0 76px;
}

.hero.compact {
  padding-top: 50px;
  padding-bottom: 54px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 15px;
  color: var(--forest);
  font-size: 0.79rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.eyebrow::before {
  width: 30px;
  height: 2px;
  background: var(--gold);
  content: "";
}

h1,
h2,
h3 {
  margin-top: 0;
  line-height: 1.28;
  letter-spacing: -0.045em;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(2.5rem, 5.4vw, 5rem);
  font-weight: 900;
}

.compact h1 {
  font-size: clamp(2.25rem, 4.5vw, 4rem);
}

h2 {
  margin-bottom: 17px;
  font-size: clamp(1.75rem, 3vw, 2.65rem);
  font-weight: 850;
}

h3 {
  margin-bottom: 10px;
  font-size: 1.16rem;
}

.lead {
  max-width: 670px;
  margin: 0;
  color: #4d5f59;
  font-size: clamp(1.05rem, 2vw, 1.2rem);
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 21px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--forest);
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(22, 97, 72, 0.16);
}

.button:hover {
  background: var(--forest-dark);
  color: #fff;
  transform: translateY(-1px);
}

.button.secondary {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
  box-shadow: none;
}

.button.secondary:hover {
  border-color: #acc7bb;
  background: var(--surface-soft);
  color: var(--forest-dark);
}

.button.external::after {
  content: "↗";
}

.visual-slot {
  position: relative;
  overflow: hidden;
  min-height: 320px;
  margin: 0;
  border: 1px solid rgba(22, 97, 72, 0.15);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 78% 22%, rgba(229, 184, 91, 0.55), transparent 26%),
    radial-gradient(circle at 22% 82%, rgba(191, 228, 209, 0.95), transparent 35%),
    linear-gradient(135deg, #dcece3, #f7f1df);
  box-shadow: var(--shadow);
}

.visual-slot img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
}

.visual-slot figcaption {
  position: absolute;
  right: 14px;
  bottom: 12px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(19, 35, 31, 0.78);
  color: #fff;
  font-size: 0.72rem;
}

.visual-slot.is-missing {
  display: grid;
  place-items: center;
}

.visual-slot.is-missing::before {
  max-width: 280px;
  padding: 22px;
  color: var(--forest-dark);
  content: attr(data-placeholder);
  font-weight: 800;
  text-align: center;
}

.visual-slot.is-missing img,
.visual-slot.is-missing figcaption {
  display: none;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.trust-item {
  padding: 21px 24px;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
}

.trust-item strong,
.trust-item span {
  display: block;
}

.trust-item strong {
  margin-bottom: 3px;
  font-size: 1.04rem;
}

.trust-item span {
  color: var(--muted);
  font-size: 0.87rem;
}

.section {
  padding: 76px 0;
}

.section.tint {
  background: var(--surface-soft);
}

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

.section-head > div {
  max-width: 720px;
}

.section-head p,
.prose p,
.card p {
  color: var(--muted);
}

.section-head p {
  margin: 0;
}

.grid {
  display: grid;
  gap: 18px;
}

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

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

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

.card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.card > :last-child {
  margin-bottom: 0;
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.card-link:hover {
  transform: translateY(-3px);
  border-color: #a9c4b8;
  color: inherit;
  box-shadow: var(--shadow);
}

.card-number,
.icon-tile {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 19px;
  place-items: center;
  border-radius: 13px;
  background: var(--surface-soft);
  color: var(--forest);
  font-size: 0.85rem;
  font-weight: 900;
}

.pill,
.tag,
.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
}

.pill,
.tag {
  padding: 5px 9px;
  background: var(--surface-soft);
  color: var(--forest-dark);
}

.status-chip {
  padding: 6px 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: #53635e;
}

.status-chip::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4b9c76;
  content: "";
}

.split {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  align-items: center;
  gap: clamp(34px, 6vw, 72px);
}

.feature-list,
.check-list,
.plain-list {
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.check-list li {
  position: relative;
  margin: 12px 0;
  padding-left: 30px;
}

.feature-list li::before,
.check-list li::before {
  position: absolute;
  top: 0;
  left: 0;
  color: var(--forest);
  content: "✓";
  font-weight: 900;
}

.plain-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.plain-list li:last-child {
  border-bottom: 0;
}

.callout {
  padding: 26px 28px;
  border: 1px solid #c6d8cf;
  border-left: 5px solid var(--forest);
  border-radius: var(--radius-md);
  background: #f1f7f3;
}

.callout.warning {
  border-color: #ead9b4;
  border-left-color: var(--gold);
  background: #fff9eb;
}

.callout.danger {
  border-color: #ecc9c0;
  border-left-color: var(--coral);
  background: #fff4f1;
}

.callout h2,
.callout h3 {
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.callout p:last-child {
  margin-bottom: 0;
}

.content-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  align-items: start;
  gap: 40px;
}

.prose {
  min-width: 0;
}

.prose h2 {
  margin-top: 52px;
  font-size: clamp(1.55rem, 2.6vw, 2.15rem);
}

.prose h3 {
  margin-top: 30px;
}

.prose > :first-child {
  margin-top: 0;
}

.prose a:not(.button) {
  font-weight: 700;
}

.side-nav {
  position: sticky;
  top: 102px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
}

.side-nav strong {
  display: block;
  margin-bottom: 9px;
}

.side-nav a {
  display: block;
  padding: 7px 0;
  color: var(--muted);
  font-size: 0.9rem;
  text-decoration: none;
}

.side-nav a:hover {
  color: var(--forest);
}

.directory-tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 16px;
  margin-bottom: 22px;
}

.search-field {
  width: 100%;
  min-height: 49px;
  padding: 11px 15px;
  border: 1px solid #bdcdc5;
  border-radius: 13px;
  background: #fff;
  color: var(--ink);
}

.search-field:focus {
  outline: 3px solid rgba(22, 97, 72, 0.17);
  border-color: var(--forest);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.filter-button {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #42554e;
  font-size: 0.86rem;
  font-weight: 750;
  cursor: pointer;
}

.filter-button:hover,
.filter-button[aria-pressed="true"] {
  border-color: var(--forest);
  background: var(--forest);
  color: #fff;
}

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

.directory-card {
  display: flex;
  min-height: 238px;
  flex-direction: column;
  padding: 23px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.directory-card[hidden] {
  display: none;
}

.directory-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 13px;
}

.directory-card h2 {
  margin: 0;
  font-size: 1.18rem;
}

.directory-domain {
  margin: 0 0 8px;
  color: var(--forest) !important;
  font-size: 0.84rem;
  font-weight: 800;
}

.directory-card p {
  margin-top: 0;
  font-size: 0.92rem;
}

.directory-card .button {
  min-height: 42px;
  margin-top: auto;
  padding: 8px 14px;
  font-size: 0.88rem;
}

.directory-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 17px;
}

.result-count {
  align-self: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.category-section {
  scroll-margin-top: 110px;
  padding: 32px 0;
  border-bottom: 1px solid var(--line);
}

.category-section:last-child {
  border-bottom: 0;
}

.category-header {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  gap: 18px;
}

.category-header .icon-tile {
  width: 60px;
  height: 60px;
  margin: 0;
  font-size: 1.1rem;
}

.data-table-wrap {
  overflow-x: auto;
  margin: 26px 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}

.data-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #fff;
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface-soft);
  color: var(--forest-dark);
  font-size: 0.86rem;
}

.data-table tr:last-child td {
  border-bottom: 0;
}

.steps {
  display: grid;
  gap: 15px;
  margin: 28px 0;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 68px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.steps li::before {
  position: absolute;
  top: 20px;
  left: 20px;
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  content: counter(step);
  counter-increment: step;
  font-size: 0.84rem;
  font-weight: 850;
}

.note {
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 22px;
  color: var(--muted);
  font-size: 0.88rem;
}

.cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--radius-lg);
  background: var(--ink);
  color: #fff;
}

.cta-panel h2 {
  margin-bottom: 8px;
}

.cta-panel p {
  max-width: 700px;
  margin: 0;
  color: #c3d0cc;
}

.cta-panel .button {
  background: var(--gold);
  color: #1f2b27;
  box-shadow: none;
}

.cta-panel .button:hover {
  background: #f0c977;
  color: #1f2b27;
}

.site-footer {
  margin-top: 70px;
  padding: 52px 0 26px;
  border-top: 1px solid var(--line);
  background: #f0eee6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  gap: 40px;
}

.footer-grid h2 {
  margin-bottom: 9px;
  font-size: 1rem;
}

.footer-grid p,
.footer-grid a {
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-links {
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer-links li {
  margin: 7px 0;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
}

.external-notice {
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.84rem;
}

.empty-state {
  padding: 44px 20px;
  border: 1px dashed #afc2b9;
  border-radius: var(--radius-md);
  color: var(--muted);
  text-align: center;
}

.not-found {
  display: grid;
  min-height: 68vh;
  place-items: center;
  padding: 60px 0;
  text-align: center;
}

.not-found .code {
  margin: 0;
  color: var(--forest);
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 950;
  line-height: 1;
  letter-spacing: -0.08em;
}

@media (max-width: 980px) {
  .menu-toggle {
    display: inline-grid;
    place-items: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 20px;
    left: 20px;
    display: none;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: grid;
  }

  .site-nav a {
    padding: 12px;
  }

  .nav-cta {
    margin: 4px 0 0;
    text-align: center;
  }

  .hero,
  .split,
  .content-layout {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 54px;
  }

  .hero-copy {
    max-width: 760px;
  }

  .side-nav {
    position: static;
    order: -1;
  }

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

  .cta-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body {
    word-break: normal;
  }

  .site-shell {
    width: min(calc(100% - 28px), var(--shell));
  }

  .header-row {
    min-height: 68px;
  }

  .hero {
    gap: 34px;
    padding-bottom: 52px;
  }

  h1 {
    font-size: clamp(2.35rem, 14vw, 3.4rem);
  }

  .hero-actions .button,
  .button-row .button {
    width: 100%;
  }

  .visual-slot,
  .visual-slot img {
    min-height: 250px;
  }

  .trust-strip,
  .grid.three,
  .grid.four,
  .grid.two,
  .directory-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .trust-item + .trust-item {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .section {
    padding: 58px 0;
  }

  .section-head,
  .footer-bottom {
    align-items: start;
    flex-direction: column;
  }

  .directory-tools {
    grid-template-columns: 1fr;
  }

  .result-count {
    justify-self: start;
  }

  .category-header {
    grid-template-columns: 48px minmax(0, 1fr);
  }

  .category-header .icon-tile {
    width: 48px;
    height: 48px;
  }

  .steps li {
    padding-left: 62px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}
