@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap');

:root {
  /* 브랜드 테마 컬러 (네온 그린) */
  --color-primary: #12cf66;
  --color-primary-hover: #0fb257;
  --color-accent: #22e376;
  
  /* 색상 토큰 */
  --bg-app: #f4f5f8;
  --bg-surface: #ffffff;
  --text-main: #1c1c1e;
  --text-muted: #6e6e73;
  --text-dim: #aeaeae;
  --border-color: #ededef;
  
  /* 그림자 & 라운드 코너 */
  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.08);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 6px;
  --radius-full: 9999px;
  
  /* 타이포그래피 */
  --font-sans: 'Outfit', 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* --- 리셋 & 전역 선언 --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-app);
  color: var(--text-main);
  line-height: 1.6;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
}

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

/* --- 모바일 프레임 컨테이너 --- */
.app-container {
  width: 100%;
  max-width: 600px; /* 데스크톱에서 모바일 뷰 고정 */
  background-color: var(--bg-surface);
  min-height: 100vh;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: clip;
}

/* 데스크톱 모니터 대응 상하 여백 */
@media (min-width: 601px) {
  body {
    padding: 1.5rem 0;
  }
  .app-container {
    min-height: calc(100vh - 3rem);
    border-radius: 24px;
    border: 1px solid rgba(0, 0, 0, 0.04);
  }
}

/* --- 헤더 영역 --- */
.app-header {
  background-color: var(--color-primary);
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.3px;
}

.back-link {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #ffffff;
  border-radius: 50%;
  transition: background-color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
}

.back-link:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.back-link:active {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-50%) scale(0.92);
}

.back-icon {
  width: 28px;
  height: 28px;
  fill: currentColor;
}


/* --- 본문 콘텐츠 섹션 --- */
.content-section {
  padding: 2rem 1.25rem;
  flex-grow: 1;
  background-color: #fafafc;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* 배너 영역 */
.banner-wrapper {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background-color: #ffffff;
  border: 1px solid var(--border-color);
}

.banner-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.5s ease;
}

.banner-wrapper:hover .banner-img {
  transform: scale(1.02);
}

/* 다운로드 영역 */
.download-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.download-desc {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.6;
  word-break: keep-all;
}

.download-badge-link {
  display: inline-block;
  transition: transform 0.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.download-badge-link:hover {
  transform: scale(1.06);
}

.download-badge-link:active {
  transform: scale(0.98);
}

.download-badge-img {
  height: 42px;
  display: block;
}

/* 텍스트 정보 카드 */
.info-card {
  background-color: var(--bg-surface);
  border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

.info-intro {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
  word-break: keep-all;
}

.info-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
  border-bottom: 2px solid var(--color-primary);
  padding-bottom: 0.3rem;
  display: inline-block;
  align-self: flex-start;
  margin-bottom: 0.4rem;
}

.info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.info-list-item {
  position: relative;
  padding-left: 1.1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  word-break: keep-all;
}

.info-list-item::before {
  content: "•";
  color: var(--color-primary);
  font-weight: bold;
  font-size: 1.1rem;
  position: absolute;
  left: 0;
  top: -1px;
}

/* 이메일 문의 스타일 */
.contact-section {
  text-align: center;
  padding: 0.5rem 0;
}

.contact-text {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.contact-email {
  color: var(--color-primary);
  font-weight: 700;
  text-decoration: underline;
  display: inline;
  margin-left: 0.2rem;
  transition: color 0.2s ease;
}

.contact-email:hover {
  color: var(--color-primary-hover);
}

/* --- 하단 푸터 --- */
.app-footer {
  padding: 1.8rem 1rem;
  background-color: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  text-align: center;
}

.footer-text {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-weight: 500;
}
