:root {
  --bg: #f7f8fb;
  --card: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --brand: #0f766e;
  --brand2: #2563eb;
  --soft: #ecfdf5;
  --soft2: #eff6ff;
  --soft3: #fff7ed;
  --shadow: 0 18px 55px rgba(15, 23, 42, .08);
  --radius: 22px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: radial-gradient(circle at top left, #e0f2fe 0, transparent 30%), var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.72;
  letter-spacing: -0.025em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(12px);
  background: rgba(255, 255, 255, .78);
  border-bottom: 1px solid rgba(229, 231, 235, .8);
}

.nav {
  max-width: 1120px;
  margin: 0 auto;
  padding: 16px 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.brand {
  font-weight: 800;
  color: var(--brand);
  font-size: 18px;
}

.nav-links {
  display: flex;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}

.nav-links a {
  color: #374151;
  text-decoration: none;
  font-weight: 750;
  padding: 8px 2px;
  border-bottom: 2px solid transparent;
  transition: color .18s ease, border-color .18s ease;
}

.nav-links a:visited {
  color: #374151;
}

.nav-links a:hover {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 42px 22px 84px;
}

.hero {
  background: linear-gradient(135deg, #ffffff 0%, #f0fdfa 100%);
  border: 1px solid rgba(15, 118, 110, .12);
  border-radius: 32px;
  padding: 44px;
  box-shadow: var(--shadow);
  overflow: hidden;
  position: relative;
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -110px;
  width: 330px;
  height: 330px;
  background: rgba(20, 184, 166, .12);
  border-radius: 999px;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
}

h1 {
  margin: 18px 0 14px;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  letter-spacing: -0.055em;
}

h2 {
  margin-top: 46px;
  margin-bottom: 16px;
  font-size: 30px;
  line-height: 1.25;
  letter-spacing: -0.04em;
}

h3 {
  margin-top: 28px;
  font-size: 22px;
  letter-spacing: -0.035em;
}

p {
  margin: 12px 0;
}

.lead {
  max-width: 790px;
  color: #374151;
  font-size: 19px;
  margin: 0;
}

.meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  color: var(--muted);
  font-size: 14px;
}

.pill {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  margin-top: 22px;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .04);
}

.span-4 {
  grid-column: span 4;
}

.span-6 {
  grid-column: span 6;
}

.span-12 {
  grid-column: span 12;
}

.stat-label {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 6px;
}

.stat {
  font-size: 30px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.stat small {
  font-size: 14px;
  color: var(--muted);
  font-weight: 600;
}

article {
  margin-top: 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: clamp(26px, 5vw, 58px);
}

.quote {
  border-left: 5px solid var(--brand);
  background: var(--soft);
  border-radius: 0 18px 18px 0;
  padding: 18px 22px;
  margin: 22px 0;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 18px;
  margin: 18px 0;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 650px;
  background: white;
  font-size: 15px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

thead th {
  background: #f9fafb;
  color: #374151;
  font-weight: 800;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 14px 0 4px;
}

.tag {
  padding: 8px 11px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  font-size: 14px;
  font-weight: 650;
}

.score {
  display: grid;
  gap: 12px;
  margin-top: 8px;
}

.score-item {
  display: grid;
  grid-template-columns: 150px 1fr 48px;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}

.bar {
  height: 10px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
}

.bar > i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #14b8a6, #2563eb);
  border-radius: inherit;
}

.callout {
  background: var(--soft2);
  border: 1px solid #bfdbfe;
  border-radius: 20px;
  padding: 20px;
  margin: 22px 0;
}

.warning {
  background: var(--soft3);
  border: 1px solid #fed7aa;
  border-radius: 20px;
  padding: 20px;
  margin: 22px 0;
}

.sparkline {
  width: 100%;
  height: auto;
  display: block;
}

/* =========================
   Charts
   ========================= */

.chart-card {
  min-height: auto;
  overflow: hidden;
}

.chart-title {
  font-weight: 800;
  margin-bottom: 4px;
}

.chart-note {
  color: var(--muted);
  font-size: 13px;
  min-height: 22px;
  margin-bottom: 8px;
}

.megatrend-chart {
  width: 100% !important;
  height: 260px !important;
  max-height: 260px;
  display: block;
  margin-top: 8px;
  cursor: default;
  touch-action: pan-y;
}

.final-box {
  background: linear-gradient(135deg, #0f766e, #1d4ed8);
  color: white;
  border-radius: 26px;
  padding: 28px;
  margin-top: 38px;
}

.final-box h2 {
  color: white;
  margin-top: 0;
}

.final-box p {
  color: rgba(255, 255, 255, .92);
}

.disclaimer {
  margin-top: 28px;
  padding: 16px 18px;
  border-radius: 18px;
  background: #f9fafb;
  color: var(--muted);
  font-size: 13px;
}

.source {
  margin-top: 24px;
  color: var(--muted);
  font-size: 13px;
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 820px) {
  .wrap {
    padding: 26px 14px 54px;
  }

  .hero {
    padding: 30px;
  }

  article {
    padding: 22px 14px;
    border-radius: 24px;
  }

  .grid {
    gap: 14px;
  }

  .span-4,
  .span-6 {
    grid-column: span 12;
  }

  .card {
    padding: 18px;
  }

  .nav-links {
    display: none;
  }

  .score-item {
    grid-template-columns: 120px 1fr 42px;
  }

  .chart-card {
    min-height: auto;
    padding: 16px;
  }

  .chart-note {
    min-height: auto;
    margin-bottom: 6px;
  }

  .megatrend-chart {
    height: 220px !important;
    max-height: 220px;
  }
}

@media (max-width: 480px) {
  .megatrend-chart {
    height: 190px !important;
    max-height: 190px;
  }

  .chart-card {
    padding: 14px;
  }
}

/* =========================
   Footer
   ========================= */

.legal-footer {
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
  padding: 24px 16px 40px;
}

.legal-footer a {
  color: #cbd5e1;
  margin: 0 8px;
  text-decoration: none;
}