:root {
  --blue: #3182f6;
  --blue-strong: #1b64da;
  --blue-soft: #e8f3ff;
  --ink: #191f28;
  --ink-2: #333d4b;
  --muted: #6b7684;
  --muted-2: #8b95a1;
  --line: #e5e8eb;
  --surface: #f7f8fa;
  --surface-2: #f2f4f6;
  --white: #ffffff;
  --lime: #dfff6a;
  --mint: #dffbf2;
  --warning: #fff5cf;
  --danger: #fff0f0;
  --radius-3: 12px;
  --radius-4: 18px;
  --radius-5: 24px;
  --radius-6: 32px;
  --shadow-sm: 0 8px 30px rgba(25, 31, 40, .06);
  --shadow-md: 0 24px 70px rgba(25, 31, 40, .10);
  --max: 1180px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-7: 28px;
  --space-8: 32px;
  --space-10: 40px;
  --space-14: 56px;
  --space-20: 80px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 88% 5%, var(--blue-soft), transparent 26rem),
    radial-gradient(circle at 5% 22%, var(--mint), transparent 24rem),
    var(--white);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Segoe UI", sans-serif;
  line-height: 1.65;
  letter-spacing: -.02em;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; }

.scroll-progress { position: fixed; inset: 0 auto auto 0; z-index: 2000; width: 0; height: 3px; background: var(--blue); transition: width .08s linear; }
.report-home-button { position: fixed; top: 8px; left: 12px; z-index: 2100; padding: 6px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); box-shadow: var(--shadow-sm); font-size: 12px; font-weight: 800; }

.report-view-switcher { position: sticky; top: 0; z-index: 1900; border-bottom: 1px solid var(--line); background: rgba(247, 248, 250, .94); backdrop-filter: blur(18px); }
.report-view-switcher-inner { width: min(var(--max), calc(100% - 44px)); min-height: 58px; margin: 0 auto; display: flex; align-items: center; justify-content: center; gap: var(--space-2); padding: var(--space-2) 0; }
.report-view-label { color: var(--muted); font-size: 11px; font-weight: 800; }
.report-view-buttons { display: inline-flex; overflow: hidden; min-width: 132px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); }
.report-view-button { min-width: 64px; min-height: 32px; padding: 4px 10px; border: 0; background: transparent; color: var(--muted); font-size: 12px; font-weight: 800; cursor: pointer; }
.report-view-button.is-active { color: var(--ink); background: var(--white); box-shadow: 0 1px 3px rgba(25, 31, 40, .18); }
.report-utility-controls { display: flex; gap: 6px; }
.utility-button { min-height: 32px; padding: 4px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink-2); font-size: 12px; font-weight: 800; cursor: pointer; }
.utility-button.primary { border-color: var(--blue); background: var(--blue); color: var(--white); }

.nav-wrap { position: sticky; top: 58px; z-index: 1800; padding: 14px 22px 0; }
.nav { max-width: 1240px; min-height: 62px; margin: 0 auto; display: flex; align-items: center; gap: var(--space-5); padding: 10px 12px 10px 18px; border: 1px solid var(--line); border-radius: var(--radius-5); background: rgba(255, 255, 255, .86); box-shadow: 0 10px 34px rgba(25, 31, 40, .05); backdrop-filter: blur(18px) saturate(160%); }
.brand { display: flex; align-items: center; gap: 11px; min-width: max-content; font-size: 14px; font-weight: 850; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: var(--radius-3); background: var(--blue); color: var(--white); box-shadow: 0 8px 20px rgba(49, 130, 246, .28); font-size: 17px; }
.brand-sub { color: var(--muted-2); font-weight: 700; }
.nav-links { display: flex; gap: 5px; margin-left: auto; }
.nav-links a { padding: 9px 12px; border-radius: var(--radius-3); color: var(--muted); font-size: 14px; font-weight: 750; }
.nav-links a:hover { color: var(--ink); background: var(--surface); }
.nav-action { min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-4); border-radius: 14px; background: var(--blue); color: var(--white); font-size: 14px; font-weight: 800; box-shadow: 0 10px 24px rgba(49, 130, 246, .24); }
.nav-action:hover { background: var(--blue-strong); transform: translateY(-1px); }

.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.hero { min-height: 760px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 64px; padding: 82px 0 70px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 22px; padding: 8px 13px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-strong); font-size: 14px; font-weight: 850; }
.eyebrow-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 5px var(--blue-soft); }
h1, h2, h3, p { margin-top: 0; }
.hero h1 { margin-bottom: 26px; font-size: clamp(44px, 6vw, 76px); line-height: 1.08; letter-spacing: -.065em; font-weight: 850; }
.blue { color: var(--blue); }
.marker { position: relative; z-index: 0; white-space: nowrap; }
.marker::after { content: ""; position: absolute; z-index: -1; right: -.03em; bottom: .08em; left: -.03em; height: .34em; border-radius: .12em; background: var(--lime); transform: rotate(-1.3deg); }
.hero-lead { max-width: 680px; margin-bottom: 30px; color: var(--muted); font-size: clamp(18px, 2vw, 23px); font-weight: 600; line-height: 1.58; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.btn { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0 var(--space-5); border: 0; border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 850; transition: transform .2s ease, background .2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--blue); color: var(--white); box-shadow: 0 10px 24px rgba(49, 130, 246, .24); }
.btn-primary:hover { background: var(--blue-strong); }
.btn-ghost { background: var(--surface); color: var(--ink-2); }
.hero-note { display: flex; gap: 10px; margin-top: 26px; color: var(--muted); font-size: 14px; font-weight: 700; }
.note-mark { display: grid; place-items: center; width: 20px; height: 20px; flex: 0 0 auto; border-radius: 50%; background: var(--blue-soft); color: var(--blue-strong); font-size: 12px; }

.hero-visual { position: relative; min-height: 590px; display: grid; place-items: center; }
.hero-orbit { position: absolute; width: 500px; height: 500px; border: 1px dashed var(--blue); border-radius: 50%; opacity: .25; }
.cost-map { position: relative; z-index: 1; width: min(100%, 510px); padding: var(--space-6); border: 1px solid var(--line); border-radius: 36px; background: rgba(255, 255, 255, .96); box-shadow: var(--shadow-md); }
.cost-map-head { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-5); }
.cost-map-head strong { font-size: 16px; }
.cost-map-head span { padding: 6px 10px; border-radius: 999px; background: var(--mint); color: var(--ink-2); font-size: 12px; font-weight: 850; }
.cost-track { padding: var(--space-4); border: 2px solid var(--blue-soft); border-radius: 24px; background: var(--blue-soft); }
.track-label { display: flex; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); color: var(--blue-strong); font-size: 12px; font-weight: 900; }
.track-label span:last-child { color: var(--muted); }
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-2); }
.tier { min-height: 112px; padding: var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-4); background: var(--white); }
.tier b, .tier span { display: block; }
.tier b { margin-bottom: 8px; font-size: 14px; }
.tier span { color: var(--muted); font-size: 12px; font-weight: 700; }
.connector { width: 2px; height: 22px; margin: 0 auto; background: var(--blue); }
.api-track { padding: var(--space-4); border-radius: 22px; background: var(--ink); color: var(--white); }
.api-track .track-label { color: var(--white); }
.api-track .track-label span:last-child { color: var(--blue-soft); }
.api-rows { display: grid; gap: var(--space-2); }
.api-row { display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); padding: 10px 12px; border-radius: var(--radius-3); background: rgba(255, 255, 255, .10); font-size: 13px; font-weight: 800; }
.api-row small { color: var(--blue-soft); font-size: 11px; font-weight: 700; }

.simple-report { display: none; padding: var(--space-14) 0 96px; }
.simple-card { padding: 42px; border: 1px solid var(--line); border-radius: var(--radius-6); background: var(--white); box-shadow: var(--shadow-sm); }
.simple-card h1 { margin: var(--space-3) 0; font-size: clamp(36px, 6vw, 64px); line-height: 1.08; letter-spacing: -.06em; }
.simple-card > p { max-width: 760px; margin-bottom: var(--space-7); color: var(--ink-2); font-size: 19px; font-weight: 600; }
.simple-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin-bottom: var(--space-7); }
.simple-grid article { min-height: 112px; padding: var(--space-5); border-radius: var(--radius-4); background: var(--surface); }
.simple-grid b, .simple-grid span { display: block; }
.simple-grid b { margin-bottom: var(--space-2); font-size: 18px; }
.simple-grid span { color: var(--muted); font-weight: 700; }
body[data-report-view="simple"] .simple-report { display: block; }
body[data-report-view="simple"] .detail-page { display: none; }

.section { padding: 110px 0; }
.section-soft { background: var(--surface); }
.section-title { max-width: 860px; margin-bottom: var(--space-5); font-size: clamp(34px, 4.7vw, 56px); line-height: 1.17; letter-spacing: -.055em; font-weight: 850; }
.section-desc { max-width: 820px; margin-bottom: 48px; color: var(--muted); font-size: 19px; font-weight: 600; line-height: 1.62; }
.thesis-card { display: grid; grid-template-columns: 156px 1fr; gap: 30px; align-items: center; padding: 38px; border: 1px solid var(--line); border-radius: 38px; background: var(--white); box-shadow: var(--shadow-sm); }
.thesis-number { width: 120px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 34px; background: var(--blue-soft); color: var(--blue); font-size: 42px; font-weight: 900; }
.thesis-card h3 { margin-bottom: var(--space-3); font-size: 28px; letter-spacing: -.045em; }
.thesis-card p { margin-bottom: 0; color: var(--muted); font-size: 18px; font-weight: 600; }

.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.compare-card { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-5); background: var(--white); }
.compare-card.good { border-color: var(--blue); background: var(--blue-soft); }
.compare-label { display: inline-flex; margin-bottom: var(--space-4); padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 900; }
.good .compare-label { background: var(--white); color: var(--blue-strong); }
.compare-card h3 { margin-bottom: var(--space-3); font-size: 25px; letter-spacing: -.045em; }
.compare-card p { color: var(--muted); font-weight: 600; }
.compare-list { display: grid; gap: var(--space-3); margin-top: var(--space-5); }
.compare-item { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; color: var(--ink-2); font-size: 15px; font-weight: 750; }
.compare-item b { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-2); color: var(--muted); font-size: 12px; }
.good .compare-item b { background: var(--white); color: var(--blue); }

.topic-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--space-4); }
.topic-card { grid-column: span 4; min-height: 230px; padding: var(--space-7); border: 1px solid var(--line); border-radius: var(--radius-5); background: var(--white); box-shadow: 0 10px 30px rgba(25, 31, 40, .035); transition: transform .22s ease, box-shadow .22s ease; }
.topic-card.wide { grid-column: span 6; }
.topic-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.topic-index { color: var(--blue); font-size: 12px; font-weight: 900; letter-spacing: .08em; }
.topic-card h3 { margin: var(--space-4) 0 var(--space-2); font-size: 25px; letter-spacing: -.045em; }
.topic-card p { margin-bottom: 0; color: var(--muted); font-size: 15px; font-weight: 600; }
.topic-card .tag { display: inline-flex; margin-top: var(--space-5); padding: 5px 9px; border-radius: 8px; background: var(--lime); color: var(--ink-2); font-size: 12px; font-weight: 850; }

.table-section { padding: var(--space-7); border: 1px solid var(--line); border-radius: var(--radius-6); background: var(--white); box-shadow: var(--shadow-sm); }
.table-section + .table-section { margin-top: var(--space-5); }
.table-section h3 { margin-bottom: var(--space-2); font-size: 25px; letter-spacing: -.045em; }
.table-section > p { margin-bottom: var(--space-5); color: var(--muted); font-size: 15px; font-weight: 600; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-4); background: var(--white); }
table { width: 100%; min-width: 720px; border-collapse: collapse; }
th, td { padding: 14px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
th { background: var(--blue-soft); color: var(--ink-2); font-size: 12px; font-weight: 900; white-space: nowrap; }
td { color: var(--ink-2); font-size: 14px; font-weight: 650; }
td:first-child { color: var(--ink); font-weight: 850; }
tr:last-child td { border-bottom: 0; }
.source-line { margin-top: var(--space-4); color: var(--muted); font-size: 13px; font-weight: 650; }
.source-line a { color: var(--blue-strong); text-decoration: underline; text-underline-offset: 3px; }

.highlight-section { background: var(--blue); color: var(--white); }
.highlight-section .section-desc { color: var(--blue-soft); }
.change-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-5); }
.change-table { margin-top: var(--space-5); }
.change-card { padding: var(--space-7); border-radius: var(--radius-5); background: var(--white); color: var(--ink); }
.change-card .change-label { display: inline-flex; margin-bottom: var(--space-4); padding: 6px 10px; border-radius: 999px; background: var(--warning); color: var(--ink-2); font-size: 12px; font-weight: 900; }
.change-card h3 { margin-bottom: var(--space-3); font-size: 30px; letter-spacing: -.05em; }
.change-card p { margin-bottom: 0; color: var(--muted); font-weight: 650; }
.change-number { color: var(--blue); font-size: 48px; font-weight: 900; letter-spacing: -.07em; }

.decision-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.decision { padding: var(--space-5); border-radius: var(--radius-4); background: var(--white); border: 1px solid var(--line); }
.decision b { display: block; margin-bottom: var(--space-3); color: var(--blue); font-size: 12px; letter-spacing: .08em; }
.decision h3 { margin-bottom: var(--space-2); font-size: 19px; }
.decision p { margin-bottom: 0; color: var(--muted); font-size: 14px; font-weight: 600; }

.sources { padding: var(--space-20) 0 var(--space-10); border-top: 1px solid var(--line); background: var(--white); }
.source-head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--space-5); margin-bottom: var(--space-7); }
.source-head h2 { margin-bottom: var(--space-2); font-size: 32px; }
.source-head p { margin-bottom: 0; color: var(--muted); font-size: 14px; font-weight: 650; }
.source-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.source-link { min-height: 120px; padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-4); background: var(--surface); transition: transform .2s ease, background .2s ease; }
.source-link:hover { transform: translateY(-2px); background: var(--blue-soft); }
.source-link span, .source-link strong { display: block; }
.source-link span { margin-bottom: var(--space-2); color: var(--muted-2); font-size: 10px; font-weight: 900; letter-spacing: .06em; }
.source-link strong { font-size: 14px; line-height: 1.4; }
.footer-bottom { display: flex; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-5); border-top: 1px solid var(--line); color: var(--muted-2); font-size: 12px; font-weight: 650; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 2200; padding: 12px 16px; border-radius: 14px; background: var(--ink); color: var(--white); box-shadow: var(--shadow-md); font-size: 13px; font-weight: 800; opacity: 0; transform: translate(-50%, 16px); pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.reveal { opacity: 1; transform: none; }

@media (max-width: 1040px) {
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding-top: 64px; }
  .hero-copy { text-align: center; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }
  .hero-note { justify-content: center; text-align: left; }
  .topic-card, .topic-card.wide { grid-column: span 6; }
  .decision-grid { grid-template-columns: 1fr 1fr; }
  .source-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { width: min(100% - 28px, var(--max)); }
  .report-home-button { display: none; }
  .report-view-switcher-inner { width: min(100% - 20px, 520px); flex-wrap: wrap; }
  .report-view-label { display: none; }
  .report-utility-controls { width: 100%; justify-content: center; }
  .nav-wrap { top: 96px; padding: 9px 10px 0; }
  .nav { min-height: 56px; padding-left: 12px; border-radius: var(--radius-4); }
  .brand-sub { display: none; }
  .hero { min-height: auto; gap: 25px; padding: 58px 0 40px; }
  .hero h1 { font-size: 45px; }
  .hero-lead { font-size: 18px; }
  .hero-visual { min-height: 470px; }
  .hero-orbit { width: 340px; height: 340px; }
  .cost-map { padding: var(--space-4); border-radius: var(--radius-5); }
  .tier-grid { grid-template-columns: 1fr; }
  .tier { min-height: auto; }
  .simple-card { padding: var(--space-7) 22px; }
  .simple-grid, .compare-grid, .change-grid { grid-template-columns: 1fr; }
  .section { padding: 82px 0; }
  .section-title { font-size: 38px; }
  .section-desc { margin-bottom: 34px; font-size: 17px; }
  .thesis-card { grid-template-columns: 1fr; padding: var(--space-7); }
  .thesis-number { width: 100px; border-radius: var(--radius-5); }
  .topic-card, .topic-card.wide { grid-column: span 12; min-height: auto; }
  .table-section { padding: var(--space-5); border-radius: var(--radius-5); }
  .decision-grid { grid-template-columns: 1fr; }
  .source-grid { grid-template-columns: 1fr; }
  .source-head, .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: var(--white) !important; }
  .report-view-switcher, .nav-wrap, .scroll-progress, .hero-actions, .toast { display: none !important; }
  .container { width: 100%; max-width: none; }
  .hero { min-height: auto; grid-template-columns: 1fr 1fr; padding: 10mm 0 16mm; }
  .section { padding: 15mm 0; break-inside: avoid; }
  .highlight-section { background: var(--white) !important; color: var(--ink) !important; border-top: 2px solid var(--blue); border-bottom: 2px solid var(--blue); }
  .highlight-section .section-desc { color: var(--muted) !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}
