:root {
  --panel: rgba(8, 18, 36, 0.95);
  --panel-2: rgba(11, 24, 49, 0.97);
  --line: rgba(142, 177, 255, 0.14);
  --line-strong: rgba(142, 177, 255, 0.26);
  --text: #eff4ff;
  --muted: #9eb0d1;
  --accent: #7dc3ff;
  --good: #57d9a8;
  --warn: #f4c56f;
  --risk: #ff8f97;
  --radius-xl: 20px;
  --radius-lg: 14px;
  --shadow: 0 16px 36px rgba(0, 6, 18, 0.32);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--text);
  font-family: "IBM Plex Sans KR", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(125, 195, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 82% 10%, rgba(118, 132, 255, 0.1), transparent 22rem),
    linear-gradient(180deg, #040a13 0%, #081224 48%, #09162a 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.18;
}

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

img {
  display: block;
  max-width: 100%;
}

code {
  padding: 0.08rem 0.34rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: #dceaff;
  font-family: "Space Grotesk", monospace;
  font-size: 0.86em;
}

.page-shell {
  width: min(1180px, calc(100% - 28px));
  margin: 0 auto;
  padding: 14px 0 26px;
}

.site-header {
  position: sticky;
  top: 10px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(6, 13, 27, 0.88);
  backdrop-filter: blur(18px);
  box-shadow: 0 14px 30px rgba(0, 6, 18, 0.28);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7dc3ff 0%, #8f8dff 100%);
  color: #05111d;
  font: 700 0.82rem/1 "Space Grotesk", sans-serif;
}

.brand-copy {
  display: grid;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.96rem;
}

.brand-copy span,
.topnav a,
.copy,
.section-head p,
.stat-card p,
.stage-card p,
.table-card p,
.table-card li,
.table-card td,
.table-card th,
.site-footer,
.side-card p {
  color: var(--muted);
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.topnav a {
  font-size: 0.86rem;
}

.report-layout {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.report-hero,
.report-section,
.side-card,
.stat-card,
.stage-card,
.table-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--panel-2), var(--panel));
  box-shadow: var(--shadow);
}

.report-hero::before,
.report-section::before,
.side-card::before,
.stat-card::before,
.stage-card::before,
.table-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(125, 195, 255, 0.06), transparent 34%),
    radial-gradient(circle at top right, rgba(118, 132, 255, 0.08), transparent 28%);
}

.report-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(260px, 0.82fr);
  gap: 12px;
  padding: 16px;
}

.compact-hero {
  grid-template-columns: minmax(0, 1.2fr) minmax(250px, 0.8fr);
}

.hero-copy,
.hero-side {
  display: grid;
  gap: 10px;
}

.hero-side {
  align-content: start;
}

.eyebrow {
  margin: 0;
  color: var(--accent);
  font: 700 0.74rem/1.2 "Space Grotesk", sans-serif;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.report-hero h1 {
  margin: 0;
  font-size: clamp(1.6rem, 2.4vw, 2.35rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.copy {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.7;
}

.action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.86rem;
  font-weight: 700;
}

.button-primary {
  background: linear-gradient(135deg, #7dc3ff 0%, #8f8dff 100%);
  color: #04111d;
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.04);
}

.side-card {
  padding: 12px 14px;
}

.side-label,
.stat-label,
.stage-index {
  color: var(--accent);
  font: 700 0.72rem/1.1 "Space Grotesk", sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.side-card strong,
.stat-card strong,
.section-head h2,
.stage-card h3,
.table-card h3 {
  font-family: "IBM Plex Sans KR", sans-serif;
}

.side-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.92rem;
  line-height: 1.3;
}

.image-card {
  padding: 8px;
}

.image-card img {
  border-radius: 10px;
  border: 1px solid var(--line);
}

.report-section {
  padding: 16px;
}

.section-head {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.section-head h2 {
  margin: 0;
  font-size: clamp(1.18rem, 1.7vw, 1.65rem);
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.section-head p:last-child {
  margin: 0;
  line-height: 1.68;
  font-size: 0.9rem;
}

.stat-grid,
.stage-grid,
.two-column,
.three-column {
  display: grid;
  gap: 10px;
}

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

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

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

.three-column {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.stat-card,
.stage-card,
.table-card {
  padding: 14px;
}

.stat-card strong {
  display: block;
  margin-top: 6px;
  font-size: 0.96rem;
}

.stat-card p,
.stage-card p,
.table-card p {
  margin: 6px 0 0;
  line-height: 1.62;
  font-size: 0.88rem;
}

.stage-card h3,
.table-card h3 {
  margin: 6px 0 0;
  font-size: 0.93rem;
  line-height: 1.32;
}

.note-card {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.032);
}

.note-card h3 {
  margin: 0 0 6px;
  font-size: 0.92rem;
}

.note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.64;
  font-size: 0.88rem;
}

.list-block {
  margin: 0;
  padding-left: 18px;
  line-height: 1.66;
  font-size: 0.88rem;
}

.matrix {
  width: 100%;
  border-collapse: collapse;
}

.matrix thead th {
  padding: 10px 9px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 0.79rem;
  color: #eaf1ff;
}

.matrix tbody td {
  padding: 10px 9px;
  border-bottom: 1px solid rgba(142, 177, 255, 0.08);
  line-height: 1.56;
  font-size: 0.86rem;
}

.matrix tbody tr:last-child td {
  border-bottom: 0;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.status-chip.good {
  color: #b8ffdc;
  background: rgba(87, 217, 168, 0.14);
  border: 1px solid rgba(87, 217, 168, 0.28);
}

.status-chip.watch {
  color: #ffe7b0;
  background: rgba(244, 197, 111, 0.14);
  border: 1px solid rgba(244, 197, 111, 0.28);
}

.status-chip.risk {
  color: #ffc9d0;
  background: rgba(255, 143, 151, 0.14);
  border: 1px solid rgba(255, 143, 151, 0.28);
}

.status-chip.neutral {
  color: #deebff;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 4px;
  font-size: 0.82rem;
}

.site-footer a {
  color: var(--accent);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .report-hero,
  .compact-hero,
  .stat-grid,
  .stage-grid,
  .two-column,
  .three-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .page-shell {
    width: min(100% - 16px, 1180px);
    padding-top: 10px;
  }

  .site-header {
    border-radius: 20px;
    padding: 10px 12px;
  }

  .topnav {
    width: 100%;
    gap: 8px 12px;
  }

  .report-hero,
  .report-section {
    padding: 14px;
  }

  .button {
    width: 100%;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }
}
