@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css");

:root {
  --pink: #e6007e;
  --pink-dark: #bd0067;
  --navy: #1b2a4a;
  --navy-dark: #111a30;
  --pink-bg: #fdeff5;
  --lavender: #f1eefb;
  --soft: #f7f8fb;
  --line: #e4e7ef;
  --text: #222631;
  --muted: #667085;
  --white: #ffffff;
  --shadow: 0 14px 34px rgba(27, 42, 74, 0.1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: "Pretendard", "Noto Sans KR", system-ui, sans-serif;
  line-height: 1.65;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.skip-link {
  position: fixed;
  top: -80px;
  left: 16px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  color: var(--white);
  background: var(--navy);
}

.skip-link:focus {
  top: 16px;
}

.site-header {
  position: relative;
  z-index: 20;
  background: var(--white);
}

.utility-bar {
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  background: var(--white);
  font-size: 13px;
}

.utility-bar__inner,
.utility-bar nav,
.brand,
.gnb__inner,
.detail-nav__inner,
.footer-info,
.footer-brand {
  display: flex;
  align-items: center;
}

.utility-bar__inner {
  min-height: 38px;
  justify-content: space-between;
  gap: 16px;
}

.utility-bar nav {
  gap: 14px;
}

.brand-row {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 18px;
  align-items: center;
  min-height: 96px;
}

.brand {
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--pink);
  font-size: 24px;
  font-weight: 900;
}

.brand strong {
  display: block;
  color: var(--navy);
  font-size: 21px;
  letter-spacing: 0;
}

.brand small {
  display: block;
  color: var(--pink-dark);
  font-size: 14px;
  font-weight: 800;
}

.header-meta {
  min-width: 210px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.header-meta b,
.header-meta span {
  display: block;
}

.header-meta b {
  color: var(--navy);
}

.header-meta span {
  color: var(--muted);
  font-size: 13px;
}

.gnb {
  position: sticky;
  top: 0;
  z-index: 21;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 8px 18px rgba(27, 42, 74, 0.05);
  backdrop-filter: blur(12px);
}

.gnb__inner {
  min-height: 58px;
  justify-content: space-between;
  gap: 20px;
}

.gnb a {
  position: relative;
  padding: 17px 6px;
  color: var(--navy);
  font-weight: 900;
}

.gnb a[aria-current="page"],
.gnb a:hover,
.gnb a:focus {
  color: var(--pink);
}

.gnb a::after {
  position: absolute;
  right: 6px;
  bottom: 9px;
  left: 6px;
  height: 3px;
  border-radius: 999px;
  background: var(--pink);
  opacity: 0;
  content: "";
}

.gnb a[aria-current="page"]::after,
.gnb a:hover::after,
.gnb a:focus::after {
  opacity: 1;
}

.hero,
.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 54px 0;
  background: linear-gradient(135deg, var(--pink-bg), var(--lavender));
}

.hero::after,
.detail-hero::after {
  position: absolute;
  right: -12%;
  bottom: -90px;
  width: 70%;
  height: 180px;
  border-radius: 55% 55% 0 0;
  background: rgba(255, 255, 255, 0.72);
  content: "";
}

.hero__grid,
.detail-hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 26px;
  align-items: stretch;
}

.hero__copy,
.detail-hero__grid > div:first-child {
  padding: 18px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.hero h1,
.detail-hero h1 {
  max-width: 900px;
  margin: 0;
  color: var(--navy);
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.18;
  letter-spacing: 0;
}

.hero__copy > p:last-child,
.subtitle {
  max-width: 780px;
  margin: 22px 0 0;
  color: #3a4050;
  font-size: 19px;
}

.hero-card,
.gateway-card,
.toc-card,
.lead-card,
.prose-card,
.flow-grid article,
.metric-grid div,
.data-grid div,
.table-card,
.split-cards article,
.impact-grid article,
.comparison-table,
.accordion-group details,
.step-list li,
.timeline-list li {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 28px;
}

.hero-card h2 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 28px;
}

.hero-card p {
  margin: 0;
  color: var(--muted);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  color: var(--pink);
  background: var(--pink-bg);
  font-size: 13px;
  font-weight: 900;
}

.gateway-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  padding: 24px 0 42px;
}

.first-page-summary {
  padding: 42px 0 18px;
}

.summary-intro {
  max-width: 820px;
  margin-bottom: 20px;
}

.summary-intro h2 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: 0;
}

.summary-intro p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

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

.summary-grid article {
  min-height: 190px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.summary-grid span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--pink);
  font-weight: 900;
}

.summary-grid h3 {
  margin: 14px 0 8px;
  color: var(--navy);
  font-size: 20px;
}

.summary-grid p {
  margin: 0;
  color: var(--muted);
}

.gateway-card {
  display: block;
  padding: 30px;
  border-top: 6px solid var(--pink);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.gateway-card:hover,
.gateway-card:focus {
  transform: translateY(-4px);
  box-shadow: 0 20px 44px rgba(27, 42, 74, 0.14);
}

.gateway-card--navy {
  border-top-color: var(--navy);
}

.gateway-card span {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
}

.gateway-card--navy span {
  color: var(--navy);
}

.gateway-card h2 {
  margin: 8px 0 10px;
  color: var(--navy);
  font-size: 32px;
}

.gateway-card p {
  margin: 0 0 14px;
  color: var(--muted);
}

.gateway-card ul {
  margin: 0 0 18px;
  padding-left: 18px;
  color: var(--text);
  font-weight: 700;
}

.gateway-card b {
  color: var(--pink);
}

.gateway-card--navy b {
  color: var(--navy);
}

.detail-nav {
  position: sticky;
  top: 59px;
  z-index: 19;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 24px rgba(27, 42, 74, 0.08);
  backdrop-filter: blur(12px);
}

.detail-nav__inner {
  min-height: 62px;
  gap: 10px;
  flex-wrap: wrap;
}

.detail-nav a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  padding: 0 14px;
  border-radius: 999px;
  color: var(--navy);
  background: var(--soft);
  font-size: 14px;
  font-weight: 900;
}

.detail-nav a:hover,
.detail-nav a:focus {
  color: var(--white);
  background: var(--pink);
}

.proposal-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  padding: 42px 0 62px;
}

.toc-card {
  position: sticky;
  top: 145px;
  padding: 24px;
  border-top: 5px solid var(--pink);
}

.toc-card--navy {
  border-top-color: var(--navy);
}

.toc-card b {
  display: block;
  color: var(--navy);
  font-size: 24px;
}

.toc-card p {
  margin: 10px 0 18px;
  color: var(--muted);
}

.toc-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.toc-card dl div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 8px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.toc-card dt {
  color: var(--pink);
  font-weight: 900;
}

.toc-card--navy dt {
  color: var(--navy);
}

.toc-card dd {
  margin: 0;
  color: var(--text);
  font-weight: 700;
}

.detail-section {
  padding: 0 0 44px;
  scroll-margin-top: 142px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.section-title.centered {
  justify-content: center;
  text-align: center;
}

.section-title span {
  display: grid;
  min-width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 14px;
  color: var(--white);
  background: var(--pink);
  font-weight: 900;
}

.detail-hero--navy ~ .detail-nav + .proposal-layout .section-title span,
.comparison-section .section-title span {
  background: var(--navy);
}

.section-title h2 {
  margin: 0;
  color: var(--navy);
  font-size: 28px;
  letter-spacing: 0;
}

.lead-card {
  padding: 28px;
  border-left: 6px solid var(--pink);
}

.lead-card--navy {
  border-left-color: var(--navy);
}

.lead-card p {
  margin: 0;
  color: var(--navy);
  font-size: 21px;
  font-weight: 800;
}

.prose-card {
  padding: 26px;
}

.prose-card p {
  margin: 0 0 16px;
  color: #3d4657;
}

.prose-card p:last-child {
  margin-bottom: 0;
}

.metric-grid,
.data-grid,
.split-cards,
.impact-grid {
  display: grid;
  gap: 16px;
}

.metric-grid,
.data-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 18px;
}

.metric-grid div,
.data-grid div {
  min-height: 126px;
  padding: 22px 16px;
  text-align: center;
}

.metric-grid strong,
.data-grid strong {
  display: block;
  color: var(--pink);
  font-size: clamp(28px, 4vw, 42px);
  line-height: 1.08;
  font-weight: 900;
}

.data-grid strong {
  color: var(--navy);
}

.metric-grid span,
.data-grid span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.table-card,
.comparison-table {
  overflow: hidden;
  margin-top: 18px;
}

table {
  width: 100%;
  border-collapse: collapse;
}

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

th {
  color: var(--white);
  background: var(--navy);
  font-weight: 900;
}

tbody tr:nth-child(even) {
  background: var(--soft);
}

td:first-child {
  color: var(--navy);
  font-weight: 900;
}

.step-list,
.timeline-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.step-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.step-list li {
  padding: 22px;
}

.step-list b,
.step-list span {
  display: block;
}

.step-list b {
  color: var(--navy);
  font-size: 18px;
}

.step-list span {
  margin-top: 6px;
  color: var(--muted);
}

.accordion-group {
  display: grid;
  gap: 12px;
}

.accordion-group details {
  padding: 0;
  overflow: hidden;
}

.accordion-group summary {
  padding: 18px 22px;
  color: var(--navy);
  background: var(--soft);
  font-weight: 900;
  cursor: pointer;
}

.accordion-group p {
  margin: 0;
  padding: 20px 22px;
  color: #3d4657;
}

.split-cards {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.split-cards article,
.impact-grid article {
  padding: 22px;
}

.split-cards h3,
.impact-grid b {
  display: block;
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 19px;
}

.split-cards ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.timeline-list {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.timeline-list li {
  min-height: 122px;
  padding: 16px 12px;
  color: var(--text);
  font-weight: 700;
}

.timeline-list span {
  display: block;
  margin-bottom: 8px;
  color: var(--pink);
  font-weight: 900;
}

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

.impact-grid p {
  margin: 0;
  color: var(--muted);
}

.closing-message {
  margin-top: 18px;
}

.comparison-section {
  padding: 54px 0;
  background: linear-gradient(135deg, var(--pink-bg), var(--lavender));
}

.comparison-section .section-title {
  margin-bottom: 24px;
}

.site-footer {
  background: var(--white);
}

.footer-info {
  min-height: 140px;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.footer-info p,
.footer-info small {
  margin: 0;
  color: var(--muted);
}

.floating-actions {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 40;
}

.top-button {
  display: grid;
  width: 56px;
  height: 56px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: var(--pink);
  box-shadow: var(--shadow);
  font-size: 22px;
  font-weight: 900;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1080px) {
  .brand-row,
  .hero__grid,
  .detail-hero__grid,
  .proposal-layout {
    grid-template-columns: 1fr;
  }

  .toc-card {
    position: static;
  }

  .detail-nav {
    top: 0;
  }

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

@media (max-width: 760px) {
  .wrap {
    width: min(100% - 28px, 1180px);
  }

  .utility-bar__inner {
    align-items: center;
    flex-direction: row;
    gap: 12px;
    min-height: 46px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .gnb__inner {
    align-items: center;
    flex-direction: row;
    gap: 14px;
    min-height: 54px;
    overflow-x: auto;
    white-space: nowrap;
  }

  .gnb a {
    padding: 14px 0;
    font-size: 15px;
  }

  .brand-row,
  .gateway-cards,
  .summary-grid,
  .metric-grid,
  .data-grid,
  .step-list,
  .split-cards,
  .impact-grid,
  .timeline-list {
    grid-template-columns: 1fr;
  }

  .brand {
    align-items: flex-start;
  }

  .hero,
  .detail-hero {
    padding: 36px 0;
  }

  .detail-nav {
    position: static;
  }

  .detail-section {
    scroll-margin-top: 24px;
  }

  th,
  td {
    display: block;
    width: 100%;
  }
}
