:root {
  --ink: #111827;
  --text: #344054;
  --muted: #667085;
  --line: #d9e0ea;
  --paper: #ffffff;
  --soft: #f5f7fb;
  --blue: #2563eb;
  --blue-soft: #eaf1ff;
  --green: #079455;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-synthesis: none;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, dl, dd { margin-top: 0; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(180px, 1fr);
  align-items: center;
  min-height: 64px;
  padding: 0 clamp(20px, 4vw, 64px);
  border-bottom: 1px solid rgba(17, 24, 39, 0.1);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}
.wordmark { font-size: 16px; font-weight: 900; }
.topbar nav, .top-actions, .hero-links, .section-links, footer div { display: flex; align-items: center; gap: 10px; }
.topbar nav a, .top-actions a {
  min-height: 38px;
  padding: 9px 11px;
  color: #475467;
  font-size: 13px;
  font-weight: 800;
}
.topbar nav a:hover, .top-actions a:hover { color: var(--blue); }
.top-actions { justify-self: end; }
.primary { border: 1px solid var(--blue); background: var(--blue); color: #fff !important; }

main, footer { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.hero { padding: clamp(64px, 10vw, 118px) 0 48px; }
.eyebrow {
  margin-bottom: 14px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}
h1 {
  max-width: 820px;
  margin-bottom: 22px;
  font-size: clamp(38px, 6vw, 66px);
  line-height: 1.12;
  word-break: keep-all;
}
.hero-copy {
  max-width: 840px;
  margin-bottom: 26px;
  color: var(--text);
  font-size: 17px;
  line-height: 1.8;
  word-break: keep-all;
}
.hero-links { flex-wrap: wrap; margin-bottom: 64px; }
.hero-links a, .section-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 850;
}
.focus-strip { display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; border-block: 1px solid var(--line); }
.focus-strip div { padding: 24px; border-right: 1px solid var(--line); }
.focus-strip div:last-child { border-right: 0; }
.focus-strip dt { margin-bottom: 7px; font-size: 17px; font-weight: 900; }
.focus-strip dd { color: var(--muted); font-size: 13px; line-height: 1.5; }

.section { padding: clamp(72px, 9vw, 112px) 0; border-bottom: 1px solid var(--line); }
.section-heading { max-width: 820px; margin-bottom: 36px; }
.section-heading h2 { margin-bottom: 16px; font-size: clamp(32px, 4.7vw, 50px); line-height: 1.18; word-break: keep-all; }
.section-heading > p:last-child { color: var(--text); font-size: 16px; line-height: 1.75; }

.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.research-grid article {
  display: flex;
  flex-direction: column;
  min-height: 410px;
  padding: 24px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--blue);
  border-radius: 8px;
}
.research-grid article:nth-child(2) { border-top-color: #e04f16; }
.research-grid article:nth-child(3) { border-top-color: var(--green); }
.index { margin-bottom: 26px; color: var(--blue); font-size: 24px; font-weight: 900; }
.research-grid h3 { min-height: 56px; margin-bottom: 22px; font-size: 20px; line-height: 1.35; }
.research-grid dl { margin-bottom: 24px; }
.research-grid dt { margin-top: 13px; color: var(--muted); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.research-grid dd { margin: 5px 0 0; color: var(--text); font-size: 13px; line-height: 1.65; }
.research-grid article > a { margin-top: auto; color: var(--blue); font-size: 13px; font-weight: 900; }

.financial-section { background: var(--soft); box-shadow: 0 0 0 100vmax var(--soft); clip-path: inset(0 -100vmax); }
.flow { display: flex; align-items: stretch; gap: 8px; margin-bottom: 28px; overflow-x: auto; padding-bottom: 6px; }
.flow span {
  display: grid;
  place-items: center;
  min-width: 112px;
  min-height: 62px;
  padding: 10px;
  border: 1px solid #cdd8e8;
  border-radius: 8px;
  background: #fff;
  font-size: 12px;
  font-weight: 850;
  text-align: center;
}
.flow i { display: grid; place-items: center; color: #98a2b3; font-style: normal; }
.flow.compact span { min-width: 124px; background: var(--blue-soft); }
.decision-grid, .rag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 26px; }
.decision-grid article, .rag-grid article { padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.decision-grid span { display: block; margin-bottom: 10px; color: var(--blue); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.decision-grid strong { display: block; margin-bottom: 8px; font-size: 19px; }
.decision-grid p, .rag-grid p { margin-bottom: 0; color: var(--text); font-size: 13px; line-height: 1.65; }
.live-metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 0 10px; color: var(--text); font-size: 12px; }
.live-metric-heading > div { display: flex; align-items: center; gap: 8px; }
.live-metric-heading strong { color: var(--ink); font-size: 13px; }
.live-metric-heading > span { color: var(--muted); font-variant-numeric: tabular-nums; }
.live-metric-heading > span.error { color: #b42318; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(7, 148, 85, 0.12); }
.metrics { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0 0 18px; background: var(--ink); }
.metrics div { padding: 22px 14px; border-right: 1px solid rgba(255, 255, 255, 0.18); text-align: center; }
.metrics div:last-child { border-right: 0; }
.metrics dt { min-height: 27px; color: #fff; font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.metrics dd { margin: 5px 0 0; color: #c9d2df; font-size: 11px; }
.live-metric-note { margin: -8px 0 18px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.disclaimer { margin-bottom: 24px; color: var(--muted); font-size: 12px; line-height: 1.65; }

.rag-grid { grid-template-columns: repeat(4, 1fr); }
.rag-grid h3 { margin-bottom: 8px; font-size: 16px; }
.rag-metrics { grid-template-columns: repeat(4, 1fr); background: var(--blue-soft); }
.rag-metrics dt { color: var(--blue); }
.rag-metrics dd { color: #475467; }

.principles { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.principles li { display: grid; grid-template-columns: 56px minmax(220px, 0.7fr) minmax(0, 1fr); align-items: center; gap: 20px; min-height: 94px; border-bottom: 1px solid var(--line); }
.principles span { color: var(--blue); font-size: 22px; font-weight: 900; }
.principles strong { font-size: 18px; }
.principles p { margin: 0; color: var(--text); font-size: 14px; line-height: 1.6; }

footer { display: flex; justify-content: space-between; gap: 20px; padding: 38px 0 56px; color: #475467; font-size: 13px; }
footer a { font-weight: 750; }

@media (max-width: 900px) {
  .topbar { grid-template-columns: 1fr auto; }
  .topbar nav { display: none; }
  .research-grid, .decision-grid { grid-template-columns: 1fr; }
  .research-grid article { min-height: 0; }
  .rag-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics { grid-template-columns: repeat(2, 1fr); }
  .metrics div:last-child { grid-column: 1 / -1; }
  .live-metric-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
}

@media (max-width: 620px) {
  .topbar { min-height: 58px; padding: 0 16px; }
  .wordmark { font-size: 14px; }
  .top-actions a:first-child { display: none; }
  main, footer { width: min(100% - 32px, 1160px); }
  .hero { padding-top: 60px; }
  h1 { font-size: 38px; }
  .focus-strip, .rag-grid, .metrics { grid-template-columns: 1fr; }
  .focus-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .focus-strip div:last-child { border-bottom: 0; }
  .metrics div, .metrics div:last-child { grid-column: auto; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, 0.18); }
  .principles li { grid-template-columns: 42px 1fr; gap: 12px; padding: 18px 0; }
  .principles p { grid-column: 2; }
  footer { flex-direction: column; }
  footer div { flex-wrap: wrap; }
}
