:root {
  --bg: #0d1010;
  --panel: #151917;
  --panel-strong: #1e2420;
  --line: #384035;
  --text: #f2ead9;
  --muted: #b9ad98;
  --gold: #d5ad63;
  --teal: #6ea9a0;
  --red: #b65c4f;
  --shadow: rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Pretendard", "Noto Sans KR", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

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

.site-header {
  align-items: center;
  background: rgba(13, 16, 16, 0.82);
  border-bottom: 1px solid rgba(213, 173, 99, 0.2);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  min-height: 64px;
  max-width: 1180px;
  padding: 12px 0;
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: min(calc(100% - 36px), 1180px);
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  font-weight: 800;
  gap: 10px;
  letter-spacing: 0;
  white-space: nowrap;
}

.brand-mark {
  align-items: center;
  background: linear-gradient(135deg, var(--gold), #7f5430);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #111;
  display: inline-flex;
  font-size: 16px;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.main-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.main-nav a {
  color: var(--muted);
  font-size: 14px;
  padding: 8px 10px;
}

.main-nav a:hover {
  color: var(--text);
}

.hero {
  align-items: stretch;
  background: #0b0d12;
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(360px, 0.9fr);
  gap: 28px;
  margin: 0 auto;
  max-width: 1180px;
  min-height: clamp(440px, 64vh, 600px);
  overflow: visible;
  padding: 128px 0 72px;
  position: relative;
  width: min(calc(100% - 36px), 1180px);
}

.hero::after {
  background:
    linear-gradient(90deg, rgba(11, 13, 18, 0) 58%, rgba(11, 13, 18, 0.16) 82%, rgba(11, 13, 18, 0.42) 100%),
    linear-gradient(180deg, rgba(11, 13, 18, 0) 72%, rgba(11, 13, 18, 0.38) 100%);
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  pointer-events: none;
  position: relative;
  width: 100%;
  z-index: 2;
}

.hero-image {
  align-self: stretch;
  grid-column: 2;
  grid-row: 1;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  position: relative;
  width: 100%;
  z-index: 1;
}

.hero-shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(10, 12, 12, 0.52) 0%, rgba(10, 12, 12, 0.12) 38%, rgba(10, 12, 12, 0) 58%),
    linear-gradient(180deg, rgba(10, 12, 12, 0) 0%, rgba(13, 16, 16, 0.16) 70%, var(--bg) 100%);
  pointer-events: none;
}

.hero-content {
  background: rgba(10, 12, 12, 0.72);
  border: 1px solid rgba(213, 173, 99, 0.22);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.34);
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 620px;
  padding: clamp(22px, 4vw, 34px);
  position: relative;
  z-index: 1;
  backdrop-filter: blur(10px);
  grid-column: 1;
  grid-row: 1;
}

.eyebrow {
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(30px, 4.2vw, 52px);
  line-height: 1.08;
  margin-bottom: 16px;
}

h2 {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.15;
  margin-bottom: 14px;
}

h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.hero-copy {
  color: #dfd3bf;
  font-size: clamp(15px, 1.5vw, 17px);
  max-width: 620px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.button {
  align-items: center;
  border: 1px solid rgba(213, 173, 99, 0.42);
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
}

.button.primary {
  background: var(--gold);
  color: #111;
}

.button.secondary {
  background: rgba(21, 25, 23, 0.72);
  color: var(--text);
}

.intro-band {
  background: #111715;
  border-bottom: 1px solid var(--line);
  border-top: 1px solid var(--line);
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1180px;
  width: min(calc(100% - 36px), 1180px);
}

.intro-band > div {
  background: rgba(255, 255, 255, 0.025);
  padding: 24px clamp(18px, 4vw, 32px);
}

.stat {
  color: var(--teal);
  display: block;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
  margin-bottom: 10px;
}

.intro-band p,
.section-heading p,
.process-list p,
.fee-panel p,
.site-footer p {
  color: var(--muted);
}

.section-shell {
  margin: 0 auto;
  max-width: 1180px;
  padding: 88px clamp(18px, 4vw, 32px);
}

.section-heading {
  margin-bottom: 28px;
  max-width: 760px;
}

.section-heading.compact {
  margin-bottom: 0;
}

.category-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.category-button {
  background: #111715;
  border: 1px solid var(--line);
  color: var(--muted);
  cursor: pointer;
  font: inherit;
  min-height: 38px;
  padding: 7px 12px;
}

.category-button:hover,
.category-button.is-active {
  border-color: var(--gold);
  color: var(--text);
}

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

.item-card {
  background: var(--panel);
  border: 1px solid rgba(213, 173, 99, 0.22);
  box-shadow: 0 18px 48px var(--shadow);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.item-visual {
  align-items: center;
  appearance: none;
  aspect-ratio: 4 / 3;
  background: #090a09;
  border: none;
  border-bottom: 1px solid rgba(213, 173, 99, 0.18);
  cursor: zoom-in;
  display: flex;
  font: inherit;
  justify-content: center;
  overflow: hidden;
  padding: 8px;
  width: 100%;
}

.item-visual img {
  display: block;
  height: 100%;
  object-fit: contain;
  transition: transform 0.25s ease;
  width: 100%;
}

.item-visual:hover img,
.item-visual:focus-visible img {
  transform: scale(1.04);
}

.item-visual:focus-visible {
  outline: 2px solid var(--gold, #d5ad63);
  outline-offset: -2px;
}

/* 이미지 라이트박스(클릭 확대) */
.no-scroll {
  overflow: hidden;
}

.lightbox {
  align-items: center;
  background: rgba(6, 7, 6, 0.92);
  display: none;
  inset: 0;
  justify-content: center;
  padding: 24px;
  position: fixed;
  z-index: 1000;
}

.lightbox.is-open {
  display: flex;
}

.lightbox-figure {
  display: inline-flex;
  margin: 0;
  max-height: 92vh;
  max-width: 92vw;
  position: relative;
}

.lightbox-image {
  border: 1px solid rgba(213, 173, 99, 0.35);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.6);
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.lightbox-close {
  align-items: center;
  appearance: none;
  background: rgba(20, 20, 20, 0.78);
  border: 1px solid rgba(213, 173, 99, 0.4);
  border-radius: 50%;
  color: #f4ecd8;
  cursor: pointer;
  display: flex;
  font-size: 22px;
  height: 38px;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: -16px;
  top: -16px;
  width: 38px;
  z-index: 1;
}

.lightbox-close:hover,
.lightbox-close:focus-visible {
  background: rgba(213, 173, 99, 0.25);
}

.item-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px;
}

.item-meta {
  align-items: flex-start;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.category-label {
  color: var(--teal);
  font-size: 13px;
  font-weight: 800;
}

.fee {
  background: linear-gradient(135deg, rgba(213, 173, 99, 0.18), rgba(182, 92, 79, 0.12));
  border: 1px solid rgba(213, 173, 99, 0.72);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 8px 22px rgba(0, 0, 0, 0.28);
  color: var(--gold);
  display: inline-flex;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.2;
  padding: 7px 10px;
  white-space: nowrap;
}

.fee-panel strong {
  color: var(--text);
}

.split {
  align-items: start;
  display: grid;
  gap: 42px;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 1.1fr);
}

.process-list {
  display: grid;
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.process-list li {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: 54px 1fr;
  padding: 18px;
}

.process-list span {
  color: var(--gold);
  font-weight: 900;
}

.fee-panel {
  align-items: start;
  background: var(--panel-strong);
  border: 1px solid var(--line);
  display: grid;
  gap: 28px;
  grid-template-columns: 0.55fr 1fr;
  margin-bottom: 24px;
  padding: 34px;
}

.commission-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  display: grid;
  gap: 12px;
  padding: 20px;
}

.commission-panel p {
  color: var(--muted);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 24px clamp(18px, 4vw, 56px);
  text-align: center;
}

.site-footer p {
  font-size: 13px;
  margin: 0;
}

.admin-link {
  color: rgba(185, 173, 152, 0.45);
  display: inline-block;
  font-size: 12px;
  margin-top: 10px;
}

.admin-link:hover {
  color: var(--muted);
}

.item-inquiry {
  margin-top: auto;
  width: 100%;
}

.to-top {
  align-items: center;
  background: rgba(213, 173, 99, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.24);
  bottom: 22px;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  color: #111;
  display: inline-flex;
  font-size: 12px;
  font-weight: 900;
  height: 46px;
  justify-content: center;
  position: fixed;
  right: 22px;
  width: 46px;
  z-index: 30;
}

.to-top:hover {
  background: #efca78;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
  }

  .main-nav {
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: 760px;
    padding-top: 150px;
  }

  .hero::after {
    grid-column: 1;
    grid-row: 2;
  }

  .hero-image {
    grid-column: 1;
    grid-row: 2;
    height: auto;
    max-height: none;
    min-height: 0;
    width: min(100%, 520px);
  }

  .hero-content {
    grid-column: 1;
    grid-row: 1;
  }

  .intro-band,
  .item-grid,
  .split,
  .fee-panel {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 520px) {
  .hero {
    min-height: 720px;
  }

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

  .to-top {
    bottom: 16px;
    height: 42px;
    right: 16px;
    width: 42px;
  }

  .process-list li {
    grid-template-columns: 1fr;
  }

  .section-shell {
    padding-bottom: 62px;
    padding-top: 62px;
  }
}
