:root {
  --bg: #f4efe7;
  --panel: rgba(255, 252, 247, 0.86);
  --panel-strong: #fffaf3;
  --ink: #16212f;
  --muted: #5b6976;
  --line: rgba(22, 33, 47, 0.12);
  --accent: #0c7a6f;
  --accent-soft: rgba(12, 122, 111, 0.12);
  --gold: #c38a2e;
  --shadow: 0 24px 80px rgba(38, 48, 62, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans KR", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(195, 138, 46, 0.16), transparent 28%),
    radial-gradient(circle at right center, rgba(12, 122, 111, 0.12), transparent 24%),
    linear-gradient(180deg, #f8f3eb 0%, var(--bg) 100%);
  line-height: 1.65;
}

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

.hero,
.section,
.footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 24px 0 40px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: rgba(255, 250, 243, 0.72);
  backdrop-filter: blur(16px);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand,
h1,
h2,
h3 {
  font-family: "Newsreader", serif;
}

.brand {
  font-size: 1.3rem;
  font-weight: 700;
}

.nav-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--muted);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.6fr 0.9fr;
  gap: 28px;
  padding-top: 48px;
}

.hero-copy h1 {
  font-size: clamp(2.7rem, 5vw, 5rem);
  line-height: 1.02;
  margin: 0 0 18px;
  max-width: 12ch;
}

.eyebrow,
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-text,
.section-heading p,
.panel-note,
.footer p {
  color: var(--muted);
}

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

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, background 180ms ease;
}

.button:hover,
.axis-chip:hover {
  transform: translateY(-2px);
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: rgba(255, 255, 255, 0.45);
}

.hero-panel,
.map-card,
.topic-card,
.compare-card,
.timeline-card,
.pillar,
.info-card,
.summary-card,
.therapy-band,
.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.hero-panel {
  padding: 26px;
  align-self: start;
}

.axis-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 14px;
}

.axis-chip {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 10px 14px;
  border-radius: 999px;
  font: inherit;
  cursor: pointer;
}

.axis-chip.active {
  background: var(--accent);
  color: white;
  border-color: transparent;
}

.section {
  padding: 32px 0;
}

.section.alt {
  padding: 42px 0;
}

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

.section-heading h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  margin: 0 0 12px;
}

.map-grid,
.compare-grid,
.card-grid,
.summary-grid {
  display: grid;
  gap: 18px;
}

.map-grid {
  grid-template-columns: repeat(5, 1fr);
}

.compare-grid,
.summary-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid {
  grid-template-columns: repeat(5, 1fr);
}

.map-card,
.compare-card,
.info-card,
.summary-card {
  padding: 22px;
}

.topic-stack,
.timeline,
.dual-grid {
  display: grid;
  gap: 18px;
}

.topic-card,
.timeline-card,
.pillar {
  padding: 24px;
}

.topic-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.topic-head span {
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 600;
}

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

.callout {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--accent-soft);
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  text-align: left;
  padding: 18px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  color: var(--muted);
  font-weight: 600;
}

.timeline {
  grid-template-columns: repeat(4, 1fr);
}

.therapy-band {
  margin-top: 18px;
  padding: 22px 24px;
  background: linear-gradient(135deg, rgba(12, 122, 111, 0.15), rgba(255, 255, 255, 0.85));
}

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

.disease-list {
  display: grid;
  gap: 12px;
}

.disease {
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.footer {
  padding: 20px 0 48px;
}

ul {
  padding-left: 18px;
  margin: 12px 0 0;
}

h3 {
  font-size: 1.55rem;
  margin: 0 0 8px;
}

h4 {
  margin: 0 0 6px;
  font-size: 1rem;
}

[data-axis] {
  transition: opacity 180ms ease, transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.dimmed {
  opacity: 0.28;
  transform: scale(0.985);
}

.highlighted {
  border-color: rgba(12, 122, 111, 0.45);
  background: rgba(255, 252, 247, 0.96);
}

@media (max-width: 1120px) {
  .map-grid,
  .card-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .compare-grid,
  .summary-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .topbar,
  .hero-grid,
  .columns,
  .dual-grid {
    grid-template-columns: 1fr;
  }

  .topbar {
    position: static;
    display: grid;
  }

  .hero-copy h1 {
    max-width: none;
  }

  .map-grid,
  .card-grid,
  .timeline {
    grid-template-columns: 1fr;
  }
}
