:root {
  --forest: #073f35;
  --mint: #e7f3ee;
  --stone: #f7f8f6;
  --ink: #16211e;
  --risk: #d85b3f;
  --line: color-mix(in srgb, var(--forest), white 78%);
  --muted: #5f6d68;
  --card: #ffffff;
  --shadow: 0 20px 60px rgb(7 63 53 / 0.12);
  color-scheme: light;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  margin: 0;
  background: linear-gradient(180deg, var(--stone), #fff 38%, var(--mint));
  color: var(--ink);
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
  padding: 12px clamp(16px, 4vw, 56px);
  background: rgb(247 248 246 / 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}
.brand { display: inline-flex; align-items: center; gap: 12px; min-width: 210px; }
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: var(--forest);
  color: white;
  font-weight: 800;
}
.brand strong, .brand small { display: block; }
.brand small { color: var(--muted); font-size: 12px; margin-top: 2px; }
.top-nav { display: flex; gap: 18px; color: var(--muted); font-size: 14px; }
.top-nav a:hover, .top-nav a:focus-visible { color: var(--forest); }
.lang-toggle { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 999px; background: white; }
.lang-toggle button { border: 0; border-radius: 999px; padding: 8px 12px; background: transparent; color: var(--muted); }
.lang-toggle .is-active { background: var(--forest); color: white; }

main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
  min-height: calc(100dvh - 76px);
  padding: 64px 0;
}
.kicker { margin: 0 0 12px; color: var(--forest); font-weight: 800; letter-spacing: 0.04em; }
h1, h2, h3 { overflow-wrap: break-word; word-break: keep-all; text-wrap: balance; }
p { overflow-wrap: break-word; }
h1 { margin: 0; max-width: 820px; font-size: clamp(40px, 8vw, 76px); line-height: 1.02; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(28px, 4vw, 44px); line-height: 1.12; }
h3 { margin: 0; font-size: 20px; line-height: 1.25; }
.hero p:not(.kicker) { max-width: 62ch; color: var(--muted); font-size: 18px; line-height: 1.7; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid var(--forest);
  border-radius: 8px;
  padding: 0 18px;
  background: white;
  color: var(--forest);
  font-weight: 750;
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); box-shadow: 0 10px 24px rgb(7 63 53 / 0.14); }
.btn--primary { background: var(--forest); color: white; }
.btn--ghost { background: transparent; }
.btn--small { min-height: 36px; padding: 0 12px; font-size: 14px; }
.btn--risk { border-color: var(--risk); color: var(--risk); }

.bridge-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: linear-gradient(145deg, #fff, var(--mint));
  box-shadow: var(--shadow);
}
.bridge-card__arc {
  height: 160px;
  border: 20px solid var(--forest);
  border-bottom: 0;
  border-radius: 180px 180px 0 0;
  box-shadow: inset 0 16px 0 rgb(255 255 255 / 0.3);
}
.metric-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 24px 0 0; }
.metric-grid div, .admin-stats article {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgb(255 255 255 / 0.72);
}
dt, .admin-stats span { color: var(--muted); font-size: 13px; }
dd, .admin-stats strong { margin: 0; display: block; color: var(--forest); font-size: 28px; font-weight: 850; }
.bar-meter { height: 10px; margin-top: 20px; border-radius: 999px; background: #d6e7df; overflow: hidden; }
.bar-meter span { display: block; width: var(--w); height: 100%; background: var(--forest); transform-origin: left; animation: grow 900ms ease-out; }

.section { padding: 72px 0; }
.section__head { display: grid; gap: 8px; margin-bottom: 24px; }
.section--split { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 28px; align-items: start; }
.filters, .provider-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
}
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  background: #fff;
  color: var(--ink);
}
input:focus, select:focus, textarea:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgb(216 91 63 / 0.35); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 8px; }
.check input { width: 18px; height: 18px; }
.listing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.listing-card, .guide-card, .dictionary, .admin-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 8px 30px rgb(7 63 53 / 0.07);
}
.listing-card { display: grid; gap: 16px; padding: 20px; }
.listing-card p, .guide-card p { color: var(--muted); line-height: 1.65; }
.listing-card__top, .listing-card__actions, .tag-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.listing-card__top { justify-content: space-between; color: var(--muted); font-size: 13px; }
.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 0 9px;
  background: var(--mint);
  color: var(--forest);
  font-size: 12px;
  font-weight: 800;
}
.badge--approved { background: var(--forest); color: white; }
.badge--pending { background: #fff3d7; color: #7a5300; }
.badge--rejected, .badge--review { background: #ffe5df; color: var(--risk); }
.badge--ad { border: 1px solid var(--line); background: white; }
.listing-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 0; }
.listing-facts div { padding: 10px; border-radius: 8px; background: var(--stone); }
.tag-row span { padding: 6px 9px; border-radius: 999px; background: var(--stone); color: var(--muted); font-size: 12px; }
.guide-list { display: grid; gap: 14px; }
.guide-card { padding: 18px; }
.guide-card small, .stack-row span, td small { display: block; color: var(--muted); font-size: 12px; line-height: 1.5; }
.dictionary { position: sticky; top: 96px; padding: 20px; }
details { border-top: 1px solid var(--line); padding: 14px 0; }
summary { cursor: pointer; font-weight: 800; }
.provider-form { grid-template-columns: 1fr; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.form-grid__wide { grid-column: 1 / -1; }
.form-result { min-height: 24px; color: var(--risk); font-weight: 700; }
.demo-note { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.6; }
.modal {
  width: min(620px, calc(100% - 32px));
  border: 0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.modal::backdrop { background: rgb(22 33 30 / 0.48); }
.modal__close { float: right; width: 36px; height: 36px; border: 1px solid var(--line); border-radius: 8px; background: white; }
.modal-facts { display: grid; gap: 12px; margin-top: 18px; }
.modal-facts div { padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.report-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: min(360px, calc(100% - 36px));
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  box-shadow: var(--shadow);
}
.report-panel form { display: grid; gap: 10px; }
.toast-region { position: fixed; right: 18px; top: 90px; z-index: 40; display: grid; gap: 8px; }
.toast { padding: 12px 14px; border-radius: 8px; background: var(--ink); color: white; box-shadow: var(--shadow); }

.admin-shell { padding-bottom: 64px; }
.admin-hero {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 54px 0 32px;
}
.admin-hero h1 { font-size: clamp(32px, 5vw, 56px); max-width: 800px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.admin-panel { padding: 20px; margin-bottom: 18px; }
.admin-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; min-width: 760px; background: white; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; }
.stack-row { display: grid; gap: 4px; padding: 14px 0; border-top: 1px solid var(--line); }
.empty { grid-column: 1 / -1; padding: 24px; border: 1px dashed var(--line); border-radius: 8px; color: var(--muted); }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 500ms ease, transform 500ms ease; }
.reveal.is-visible { opacity: 1; transform: none; }

@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: 1ms !important; transition-duration: 1ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 820px) {
  .site-header { align-items: flex-start; flex-wrap: wrap; }
  .top-nav { order: 3; width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .hero, .section--split, .admin-grid { grid-template-columns: 1fr; }
  .hero { min-height: auto; padding-top: 42px; }
  .filters, .form-grid, .listing-grid, .admin-stats { grid-template-columns: 1fr; }
  .dictionary { position: static; }
  .admin-hero { display: grid; align-items: start; }
  .table-wrap { overflow: visible; border: 0; }
  table { min-width: 0; background: transparent; }
  thead { display: none; }
  tbody { display: grid; gap: 12px; }
  tr { display: grid; padding: 8px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; }
  td { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  td:last-child { border-bottom: 0; }
  td::before { color: var(--muted); font-size: 12px; font-weight: 750; }
  td:nth-child(1)::before { content: "매물"; }
  td:nth-child(2)::before { content: "지역"; }
  td:nth-child(3)::before { content: "공급자"; }
  td:nth-child(4)::before { content: "광고"; }
  td:nth-child(5)::before { content: "상태"; }
  td:nth-child(6)::before { content: "조치"; }
  td .btn { width: auto; margin-right: 6px; }
}

@media (max-width: 420px) {
  main { width: min(100% - 24px, 1180px); }
  .site-header { padding: 10px 12px; }
  .brand { min-width: 0; }
  .brand small { max-width: 210px; }
  h1 { font-size: 34px; }
  .metric-grid, .listing-facts { grid-template-columns: 1fr; }
  .btn { width: 100%; }
}

/* ============================================================
   지침 섹션 — 100vw 풀블리드 이미지 statement · 마우스 반응 카드 · 라인 마스크 텍스트 애니
   (애플·삼성 벤치마크 · MOST forest 팔레트)
   ============================================================ */
.gbleed { width: 100vw; margin-left: calc(50% - 50vw); }
.g-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.16,1,.3,1), transform .8s cubic-bezier(.16,1,.3,1); }
.g-reveal.is-visible { opacity: 1; transform: none; }
.mask { display: block; overflow: hidden; }
.mask > span { display: block; transform: translateY(110%); transition: transform .95s cubic-bezier(.16,1,.3,1); }
.mask.is-visible > span { transform: none; }
.mask.d1 > span { transition-delay: .09s; }
@media (prefers-reduced-motion: reduce) { .g-reveal, .mask > span { opacity: 1; transform: none; transition: none; } }
.gwrap { max-width: 1180px; margin: 0 auto; padding-inline: clamp(18px, 4vw, 44px); }
.g-eye { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--forest); display: block; margin-bottom: 14px; }

/* ② 풀블리드 이미지 statement */
.stmt { position: relative; min-height: 62vh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; background: #052a22; }
.stmt-bg { position: absolute; inset: -14% 0; z-index: 0; }
.stmt-bg img { width: 100%; height: 100%; object-fit: cover; will-change: transform; }
.stmt-bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,32,26,.92) 2%, rgba(5,42,34,.24) 48%, rgba(5,42,34,.34)); }
.stmt-in { position: relative; z-index: 2; padding-block: clamp(54px, 9vh, 112px); }
.stmt .g-eye { color: #7fd7bd; }
.stmt h2 { margin: 0; font-size: clamp(1.9rem, 4.8vw, 3.3rem); font-weight: 800; line-height: 1.14; letter-spacing: -.02em; max-width: 20ch; }
.stmt p { margin-top: 20px; max-width: 46ch; font-size: clamp(1rem, 1.4vw, 1.14rem); line-height: 1.75; color: #dbeee6; }

/* ① 마우스 반응 카드 (정착 길목) */
.topics { padding: clamp(52px, 7vw, 96px) 0; }
.topics-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.3vw, 18px); padding-inline: clamp(12px, 1.6vw, 24px); perspective: 1200px; }
.topic { position: relative; aspect-ratio: 4 / 5.2; border-radius: 16px; overflow: hidden; background: #052a22; transform: rotateX(var(--rx,0deg)) rotateY(var(--ry,0deg)); transition: transform .5s cubic-bezier(.22,.61,.36,1); transform-style: preserve-3d; }
.topic.tilting { transition: transform .08s linear; }
.topic img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); transition: transform .6s cubic-bezier(.22,.61,.36,1); }
.topic:hover img { transform: scale(1.13); }
.topic::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(5,32,26,.93) 4%, rgba(5,42,34,.12) 56%, transparent); z-index: 1; }
.topic-spot { position: absolute; inset: 0; z-index: 2; background: radial-gradient(220px circle at var(--mx,50%) var(--my,50%), rgba(127,215,189,.32), transparent 62%); opacity: 0; transition: opacity .3s; mix-blend-mode: soft-light; pointer-events: none; }
.topic:hover .topic-spot { opacity: 1; }
.topic-body { position: absolute; inset: auto 0 0 0; z-index: 3; padding: clamp(16px, 1.8vw, 24px); color: #fff; transform: translateZ(40px); }
.topic-body .n { font-size: 11px; font-weight: 700; letter-spacing: .06em; color: #7fd7bd; }
.topic-body h3 { font-size: clamp(1.1rem, 1.5vw, 1.4rem); font-weight: 800; margin: 6px 0 6px; }
.topic-body p { font-size: 12.5px; color: #dbeee6; line-height: 1.6; opacity: 0; max-height: 0; overflow: hidden; transition: opacity .35s, max-height .35s; }
.topic:hover .topic-body p { opacity: 1; max-height: 96px; }
@media (max-width: 900px) { .topics-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .topics-grid { grid-template-columns: 1fr; } }
