:root {
  --bg: #f4f6f5;
  --surface: #ffffff;
  --ink: #16201d;
  --muted: #5d6b66;
  --line: #dbe2df;
  --accent: #145c4a;
  --accent-2: #c37a2c;
  --danger: #b94b4b;
  --shadow: 0 18px 50px rgba(23, 38, 33, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 72px);
  border-bottom: 1px solid var(--line);
  background: rgba(244, 246, 245, 0.92);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.nav {
  display: flex;
  gap: 18px;
  color: var(--muted);
  font-size: 14px;
}

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

main {
  padding: 0 clamp(20px, 5vw, 72px) 64px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 32px;
  align-items: center;
  min-height: 72vh;
  padding: 72px 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-2);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1 {
  max-width: 860px;
  margin-bottom: 22px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 30px;
  letter-spacing: 0;
}

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

.hero-text {
  max-width: 720px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.75;
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--accent);
  border-radius: 6px;
  font-weight: 800;
}

.button.primary {
  color: #fff;
  background: var(--accent);
}

.button.secondary {
  color: var(--accent);
  background: transparent;
}

.status-panel,
.metric,
.report,
.notice {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.status-panel {
  padding: 26px;
}

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

#lastUpdated {
  display: block;
  margin: 8px 0 24px;
  font-size: 24px;
}

dl {
  display: grid;
  gap: 16px;
  margin: 0;
}

dl div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

dt {
  color: var(--muted);
}

dd {
  margin: 0;
  font-weight: 800;
  text-align: right;
}

.section {
  padding: 46px 0;
}

.section-heading {
  margin-bottom: 20px;
}

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

.metric {
  min-height: 136px;
  padding: 22px;
}

.metric span,
.metric em {
  display: block;
  color: var(--muted);
  font-style: normal;
}

.metric strong {
  display: block;
  margin: 12px 0 8px;
  font-size: 30px;
}

.metric .up {
  color: var(--accent);
  font-weight: 800;
}

.metric .down {
  color: var(--danger);
  font-weight: 800;
}

.report-list {
  display: grid;
  gap: 14px;
}

.report {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px;
}

.report p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.6;
}

.report a,
.report button {
  min-width: 88px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
  text-align: center;
}

.report a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.report.locked {
  box-shadow: none;
}

.tag {
  display: inline-flex;
  margin-bottom: 10px;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 800;
}

.tag.free {
  color: var(--accent);
  background: #dcece7;
}

.tag.paid {
  color: #7a4616;
  background: #f6e3cc;
}

.membership {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.membership p {
  color: var(--muted);
  line-height: 1.75;
}

.notice {
  padding: 22px;
  box-shadow: none;
}

.notice strong {
  display: block;
  margin-bottom: 10px;
}

.notice p {
  margin-bottom: 0;
  font-size: 14px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 24px clamp(20px, 5vw, 72px);
  border-top: 1px solid var(--line);
  color: var(--muted);
}

@media (max-width: 860px) {
  .site-header,
  .nav,
  .hero,
  .membership,
  .report,
  .site-footer {
    display: block;
  }

  .nav {
    margin-top: 14px;
  }

  .nav a {
    margin-right: 14px;
  }

  .hero {
    min-height: auto;
    padding-top: 48px;
  }

  .status-panel {
    margin-top: 32px;
  }

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

  .report a,
  .report button {
    margin-top: 16px;
  }

  .notice {
    margin-top: 20px;
  }
}

@media (max-width: 560px) {
  h1 {
    font-size: 38px;
  }

  .market-grid {
    grid-template-columns: 1fr;
  }
}
