:root {
  color-scheme: light;
  --ink: #1f2933;
  --muted: #62707d;
  --line: #d8dee5;
  --paper: #f6f8fb;
  --white: #ffffff;
  --graphite: #20252b;
  --teal: #117c7a;
  --teal-dark: #0b5554;
  --amber: #d99a21;
  --red: #d83b3b;
  --blue: #2f67b2;
  --shadow: 0 22px 60px rgba(32, 37, 43, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  background: var(--paper);
  letter-spacing: 0;
}

body.guides-page {
  background: #f3f6f8;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid rgba(216, 222, 229, 0.8);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--graphite);
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background:
    linear-gradient(90deg, transparent 42%, rgba(255, 255, 255, 0.86) 42% 58%, transparent 58%),
    linear-gradient(0deg, transparent 42%, rgba(255, 255, 255, 0.86) 42% 58%, transparent 58%),
    linear-gradient(135deg, var(--teal), var(--blue));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

.nav-links {
  display: flex;
  gap: clamp(12px, 2vw, 26px);
  font-size: 14px;
  font-weight: 700;
  color: #46525e;
}

.nav-links a:hover {
  color: var(--teal);
}

.hero {
  position: relative;
  min-height: 92vh;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 6vw, 86px) 96px;
  overflow: hidden;
  background: #e7ebef;
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0.86) 28%, rgba(246, 248, 251, 0.28) 62%, rgba(246, 248, 251, 0.1) 100%),
    linear-gradient(0deg, rgba(246, 248, 251, 0.92) 0%, rgba(246, 248, 251, 0) 22%);
}

.hero-content {
  position: relative;
  width: min(720px, 100%);
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 13px;
  font-weight: 900;
  color: var(--teal-dark);
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  word-break: keep-all;
}

h1 {
  margin: 0;
  max-width: 650px;
  font-size: clamp(42px, 6vw, 80px);
  line-height: 1.02;
  letter-spacing: 0;
  color: #14191f;
}

.hero-copy {
  max-width: 610px;
  margin: 24px 0 0;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.75;
  color: #3f4a55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.primary-action,
.secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 6px;
  font-weight: 800;
}

.primary-action {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 12px 30px rgba(17, 124, 122, 0.24);
}

.secondary-action {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(31, 41, 51, 0.14);
  color: var(--graphite);
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.quick-strip div {
  min-height: 110px;
  padding: 24px clamp(18px, 3vw, 40px);
  background: var(--white);
}

.quick-strip strong {
  display: block;
  font-size: clamp(22px, 3vw, 32px);
  color: var(--graphite);
}

.quick-strip span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 700;
}

.section {
  padding: clamp(70px, 9vw, 120px) clamp(20px, 6vw, 86px);
}

.section-heading {
  max-width: 860px;
  margin-bottom: 34px;
}

.section-note {
  margin: 18px 0 0;
  max-width: 760px;
  color: var(--muted);
  line-height: 1.75;
  font-size: 17px;
}

.inline-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin-top: 18px;
  padding: 0 14px;
  border-radius: 6px;
  color: var(--teal-dark);
  background: rgba(17, 124, 122, 0.1);
  font-weight: 900;
}

.section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 52px);
  line-height: 1.15;
  letter-spacing: 0;
}

.section-copy p:not(.eyebrow),
.message-panel p,
.comparison-grid p,
.architecture-grid p {
  line-height: 1.75;
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(28px, 5vw, 76px);
  align-items: center;
  background: var(--white);
}

.section-copy {
  max-width: 780px;
}

.section-copy p:not(.eyebrow) {
  margin: 22px 0 0;
  font-size: 18px;
}

.message-panel {
  padding: clamp(28px, 4vw, 42px);
  background: #182027;
  color: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.message-panel span {
  color: #89ddd7;
  font-weight: 900;
}

.message-panel p {
  margin: 18px 0 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.25;
  color: var(--white);
  font-weight: 900;
}

.comparison-section,
.architecture-section {
  background: #eef2f5;
}

.comparison-grid,
.architecture-grid,
.validation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.comparison-grid article,
.architecture-grid article,
.validation-grid article {
  min-height: 230px;
  padding: 28px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.comparison-grid h3,
.architecture-grid h3,
.validation-grid h3 {
  margin: 16px 0 10px;
  font-size: 23px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 5px;
  background: rgba(17, 124, 122, 0.12);
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.tag.muted {
  background: rgba(98, 112, 125, 0.12);
  color: var(--muted);
}

.package-section {
  background: var(--white);
}

.package-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
  gap: 28px;
  align-items: start;
}

.kit-list {
  display: grid;
  gap: 10px;
}

.kit-list div {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 12px 14px;
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-weight: 800;
}

.kit-list span {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--teal);
}

.tier-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-row {
  display: grid;
  grid-template-columns: 0.8fr 1fr 1.35fr;
  gap: 1px;
  background: var(--line);
}

.table-row span {
  min-height: 64px;
  padding: 18px;
  background: var(--white);
  font-weight: 700;
}

.table-row.header span {
  min-height: 52px;
  background: #202a33;
  color: var(--white);
  font-weight: 900;
}

.curriculum-section {
  background: #f7f3ea;
}

.guides-section {
  background: var(--white);
}

.guide-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.guide-preview-grid article {
  overflow: hidden;
  background: #f5f8fa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-preview-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: #e9eef2;
}

.guide-preview-grid div {
  padding: 22px;
}

.guide-preview-grid span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.guide-preview-grid h3 {
  margin: 10px 0 16px;
  font-size: 22px;
  line-height: 1.35;
}

.guide-preview-grid a {
  color: var(--teal-dark);
  font-weight: 900;
}

.guide-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  padding: 132px clamp(20px, 6vw, 86px) 78px;
  background: linear-gradient(180deg, #ffffff, #edf3f4);
}

.guide-hero-copy h1 {
  font-size: clamp(38px, 5vw, 72px);
}

.guide-hero-copy p:not(.eyebrow) {
  max-width: 720px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.75;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}

.guide-hero-media {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.guide-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.media-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-top: 1px solid var(--line);
}

.media-caption strong {
  color: var(--teal-dark);
}

.media-caption span {
  color: var(--muted);
  font-weight: 700;
}

.guide-principles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.guide-principles div {
  min-height: 132px;
  padding: 26px clamp(18px, 3vw, 34px);
  background: var(--white);
}

.guide-principles strong {
  display: block;
  font-size: 22px;
}

.guide-principles span {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
  font-weight: 700;
}

.guide-map-section {
  background: #eef2f5;
}

.guide-controls {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.guide-card {
  display: grid;
  align-content: start;
  min-height: 150px;
  padding: 18px;
  text-align: left;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.guide-card span {
  color: var(--teal-dark);
  font-size: 13px;
  font-weight: 900;
}

.guide-card strong {
  margin-top: 10px;
  font-size: 19px;
  line-height: 1.35;
}

.guide-card em {
  align-self: end;
  margin-top: 18px;
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.guide-card.is-active {
  background: #1b242c;
  border-color: #1b242c;
  color: var(--white);
}

.guide-card.is-active span {
  color: #8ee0db;
}

.guide-card.is-active em {
  color: #d7e5e5;
}

.guide-detail-section {
  background: var(--white);
}

.guide-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

.guide-detail-panel {
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfd;
}

.guide-detail-header span {
  color: var(--teal-dark);
  font-weight: 900;
}

.guide-detail-header h2 {
  margin: 10px 0 0;
  font-size: clamp(30px, 4vw, 48px);
}

.guide-detail-header p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 18px;
}

.guide-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.guide-detail-grid div {
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.guide-detail-grid h3 {
  margin: 0 0 12px;
  font-size: 19px;
}

.guide-detail-grid ul,
.guide-detail-grid ol {
  margin: 0;
  padding-left: 20px;
  color: #41505c;
  line-height: 1.8;
}

.guide-file-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 22px;
  padding: 0 16px;
  border-radius: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 900;
}

.guide-visual-panel {
  position: sticky;
  top: 92px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 14px 40px rgba(32, 37, 43, 0.1);
}

.guide-visual-panel img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #e9eef2;
}

.guide-note {
  padding: 20px;
}

.guide-note strong {
  display: block;
  color: var(--teal-dark);
}

.guide-note p {
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.timeline {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
}

.week {
  min-height: 112px;
  padding: 16px;
  text-align: left;
  border: 1px solid rgba(121, 97, 48, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
}

.week span {
  display: block;
  color: #8d6317;
  font-size: 13px;
  font-weight: 900;
}

.week strong {
  display: block;
  margin-top: 10px;
  line-height: 1.35;
}

.week.is-active {
  background: #21272e;
  color: var(--white);
  border-color: #21272e;
}

.week.is-active span {
  color: #f2c466;
}

.week-detail {
  margin-top: 18px;
  padding: clamp(24px, 4vw, 38px);
  background: var(--white);
  border: 1px solid rgba(121, 97, 48, 0.18);
  border-radius: 8px;
}

.week-detail h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
}

.week-detail p {
  max-width: 880px;
  color: var(--muted);
  line-height: 1.75;
}

.week-detail ul,
.validation-grid ul {
  margin: 18px 0 0;
  padding-left: 20px;
  line-height: 1.9;
  color: #41505c;
}

.architecture-flow {
  display: grid;
  grid-template-columns: 1fr 36px 1fr 36px 1fr 36px 1fr;
  align-items: center;
  margin-bottom: 28px;
}

.architecture-flow div {
  min-height: 86px;
  display: grid;
  place-items: center;
  padding: 18px;
  text-align: center;
  color: var(--white);
  background: #202a33;
  border-radius: 8px;
  font-weight: 900;
}

.architecture-flow span {
  height: 2px;
  background: var(--teal);
  position: relative;
}

.architecture-flow span::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -5px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid var(--teal);
}

.api-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
  background: var(--white);
}

.code-block {
  overflow-x: auto;
  margin: 0;
  padding: clamp(24px, 4vw, 36px);
  background: #151c22;
  color: #d8f6f2;
  border-radius: 8px;
  box-shadow: var(--shadow);
  font-size: clamp(14px, 1.7vw, 18px);
  line-height: 1.85;
}

.validation-section {
  background: #eef2f5;
}

.validation-grid article {
  min-height: 260px;
}

.validation-grid h3 {
  color: var(--teal-dark);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(20px, 6vw, 86px);
  color: #d9e0e6;
  background: #151c22;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: #8ee0db;
  font-weight: 900;
}

@media (max-width: 980px) {
  .nav-links {
    display: none;
  }

  .quick-strip,
  .guide-principles,
  .comparison-grid,
  .architecture-grid,
  .validation-grid,
  .guide-preview-grid,
  .timeline {
    grid-template-columns: repeat(2, 1fr);
  }

  .intro-grid,
  .package-layout,
  .guide-hero,
  .guide-detail-layout,
  .api-section {
    grid-template-columns: 1fr;
  }

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

  .guide-visual-panel {
    position: static;
  }

  .architecture-flow {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .architecture-flow span {
    width: 2px;
    height: 24px;
    justify-self: center;
  }

  .architecture-flow span::after {
    left: -5px;
    right: auto;
    top: auto;
    bottom: -1px;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-top: 8px solid var(--teal);
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 14px 18px;
  }

  .hero {
    min-height: 88vh;
    padding: 108px 20px 72px;
  }

  .hero-image {
    object-position: 62% center;
  }

  .hero-overlay {
    background:
      linear-gradient(90deg, rgba(246, 248, 251, 0.96), rgba(246, 248, 251, 0.76)),
      linear-gradient(0deg, rgba(246, 248, 251, 0.96) 0%, rgba(246, 248, 251, 0) 36%);
  }

  .quick-strip,
  .guide-principles,
  .guide-controls,
  .guide-detail-grid,
  .comparison-grid,
  .architecture-grid,
  .validation-grid,
  .guide-preview-grid,
  .timeline {
    grid-template-columns: 1fr;
  }

  .table-row {
    grid-template-columns: 1fr;
  }

  .table-row span {
    min-height: auto;
  }

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