/* 1. Pretendard 폰트 적용 */
@import url('https://cdn.jsdelivr.net/gh/orioncactus/pretendard/dist/web/static/pretendard.css');

:root {
  --color-bg: #ffffff;
  --color-fg: #3e3e3e; /* rgb(62,62,62) */
  --color-muted: #475569;
  --color-accent: #4DD5F2;
  --color-accent-2: #50CEE1;

  --color-border: #e6e6e6; /* 섹션 테두리용 연한 실선 컬러 */
  --color-card: #ffffff;
  --radius: 12px; /* 라운딩 */
  --maxw: 1120px;
}

/* 기본 박스 사이징 설정 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto,
  'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
  line-height: 1.6;
}

/* 헤더 스타일: sticky, 구분선, 패딩 */
header.nav {
  position: sticky;
  top: 0;
  background: #fff;
  border-bottom: 1.5px solid var(--color-border);
  padding: 12px 0;
  z-index: 50;
}

/* 헤더 내부 flex 정렬과 패딩 */
header .inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 45px;
}

/* 로고 스타일 */
.logo {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: 22px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--color-fg);
}

.logo img {
  height: 42px;
  width: auto;
}

/* 섹션 스타일: 배경 단일, 테두리, 그림자 제거 */
.section {
  max-width: var(--maxw);
  margin: 10px auto 30px;
  padding: 36px 24px 48px;
  background: var(--color-card);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: none;
}

/* 섹션 제목 */
.section h2 {
  font-weight: 800;
  font-size: 30px;
  margin-bottom: 20px;
  letter-spacing: -0.02em;
  color: var(--color-fg);
}

/* 섹션 문단 */
.section p {
  font-size: 18px;
  color: var(--color-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.img-placeholder {
  display: flex;
  justify-content: center;
  align-items: center;
  /* 영역 크기 지정 */
  width: 100%;
  height: auto;
  max-height: none;
  border-radius: 14px;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  box-shadow: none;
  overflow: hidden;
}

.img-placeholder img {
  max-height: 100%;
  width: auto;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  margin: 0 auto;
}


/* 버튼 스타일 기본 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  border-radius: var(--radius);
  padding: 12px 24px;
  cursor: pointer;
  font-size: 16px;
  transition: background-color 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
  user-select: none;
}

/* 버튼 흰색 배경 */
.btn-white {
  background-color: #fff;
  color: var(--color-fg);
  border: 1.5px solid #bbb;
  box-shadow: none;
}

.btn-white:hover,
.btn-white:focus {
  background-color: #f4f4f4;
  border-color: #999;
}

/* 버튼 그레이 배경 */
.btn-gray {
  background-color: rgb(62, 62, 62);
  color: #fff;
  border: none;
  box-shadow: none;
}

.btn-gray:hover,
.btn-gray:focus {
  background-color: #4a4a4a;
}

/* 큰 버튼 조절 */
.btn-lg {
  font-size: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}
.btn-row {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.download {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

.download a:nth-child(1) img {
  width: auto;
  height: 60px;
  display: block;
  margin: 0 auto;
}
.download a:nth-child(2) img {
  margin-top: 8px;
  height: 95px;
  width: auto;
}


/* 링크 스타일 */
a {
  color: inherit;
  text-decoration: none;
}

/* 배지 스타일 */
.badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  margin: 5px 0;
  background: #50cee1;
  padding: 6px 10px;
  border-radius: 999px;
}

/* 영웅영역 */
.hero {
  max-width: var(--maxw);
  margin: 10px auto 30px;
  padding: 36px 24px 48px;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: -0.02em;
}

.hero p.lead {
  font-size: 22px;
  color: var(--color-muted);
  margin: 0 0 22px;
}

/* 그리드 레이아웃 */
.grid {
  display: grid;
  gap: 22px;
}

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

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

/* 반응형 */
@media (max-width: 960px) {
  .grid-2, .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-2 {
    display: flex;
    flex-direction: column;
  }
  /* 텍스트 영역는 order 1 */
  .grid-2 > div:not(.img-placeholder) {
    order: 1;
  }
  /* 이미지 영역은 항상 order 2 */
  .grid-2 > .img-placeholder {
    order: 2;
  }

  .hero {
    padding: 48px 10px 28px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .section {
    padding: 28px 16px 36px;
    margin: 10px;
  }
  .section h2 {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .section p {
    font-size: 16px;
  }
  .btn {
    padding: 11px 20px;
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  .download a:nth-child(1) img {
    width: auto;
    height: 40px;
    display: block;
    margin: 0 auto;
  }
  .download a:nth-child(2) img {
    margin-top: 8px;
    height: 60px;
    width: auto;
  }
}