/* ========================================
   밝고 깔끔한 홈페이지 스타일 - styles.css
   네이버/다음 스타일의 모던한 디자인
   ======================================== */

:root {
  /* 밝은 테마 색상 팔레트 */
  --bg: #ffffff;
  --panel: #f8fafc; /* slate-50 */
  --text: #1e293b; /* slate-800 */
  --muted: #64748b; /* slate-500 */
  --accent: #3b82f6; /* blue-500 */
  --accent-2: #10b981; /* emerald-500 */
  --border: #e2e8f0; /* slate-200 */
  --hover-bg: #f1f5f9; /* slate-100 */
  --shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);
}

/* 기본 리셋 */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 50%, #f1f5f9 100%);
  color: var(--text);
  line-height: 1.6;
}

/* 기본 링크 스타일 */
a {
  color: var(--accent);
  text-decoration: none;
  transition: all 0.2s ease;
}

a:hover {
  color: #2563eb;
  text-decoration: underline;
}

/* 컨테이너 */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 20px;
}

/* ========================================
   헤더 & 네비게이션
   ======================================== */
header {
  position: sticky;
  top: 0;
  backdrop-filter: saturate(180%) blur(20px);
  background: rgba(255, 255, 255, 0.95);
  border-bottom: 1px solid var(--border);
  z-index: 50;
  box-shadow: var(--shadow);
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 8px 0;
}

.brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.025em;
  color: var(--text);
}

.brand span {
  color: var(--accent);
}

.navlinks {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  align-items: center;
}

.navlinks a {
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.navlinks a:hover {
  background: var(--hover-bg);
  text-decoration: none;
}

/* ========================================
   버튼 스타일
   ======================================== */
.btn {
  display: inline-block;
  padding: 12px 20px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg);
}

.btn.primary {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  font-weight: 600;
}

.btn.primary:hover {
  background: #2563eb;
  border-color: #2563eb;
  color: white;
}

.btn.ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn.ghost:hover {
  background: var(--hover-bg);
  border-color: var(--accent);
}

/* ========================================
   히어로 섹션
   ======================================== */
.hero {
  padding: 80px 0 120px;
  text-align: center;
}

.hero h1 {
  font-size: 40px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.025em;
}

.hero p {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 32px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* ========================================
   그리드 시스템
   ======================================== */
.grid {
  display: grid;
  gap: 24px;
}

@media (min-width: 768px) {
  .grid.cols-3 {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid.cols-2 {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero h1 {
    font-size: 56px;
  }
}

/* ========================================
   섹션
   ======================================== */
section {
  padding: 60px 0;
}

/* ========================================
   카드 스타일
   ======================================== */
.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--accent);
}

.card:hover::before {
  opacity: 1;
}

.card h3 {
  margin: 0 0 12px;
  font-weight: 700;
  color: var(--text);
  font-size: 18px;
}

.card p {
  margin: 0 0 20px;
}

.card .btn {
  margin-top: 8px;
}

/* ========================================
   텍스트 스타일
   ======================================== */
.muted {
  color: var(--muted);
}

/* 태그 스타일 */
.tag {
  display: inline-block;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 6px 12px;
  font-size: 12px;
  color: var(--accent);
  margin-right: 8px;
  font-weight: 500;
}

/* ========================================
   푸터
   ======================================== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 60px;
  padding-top: 40px;
  color: var(--muted);
  text-align: center;
  background: var(--panel);
  margin-left: -20px;
  margin-right: -20px;
  padding-left: 20px;
  padding-right: 20px;
}

/* ========================================
   애니메이션
   ======================================== */
[data-anim] {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease forwards;
}

[data-anim="2"] {
  animation-delay: 0.15s;
}

[data-anim="3"] {
  animation-delay: 0.3s;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ========================================
   로고 & 아이콘
   ======================================== */
.logo-dot {
  width: 8px;
  height: 8px;
  background: var(--accent-2);
  display: inline-block;
  border-radius: 50%;
  margin-left: 6px;
}

/* ========================================
   섹션 타이틀
   ======================================== */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 40px;
}

.section-title h2 {
  margin: 0;
  font-weight: 700;
  color: var(--text);
  font-size: 28px;
}

.section-title .bar {
  width: 32px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  border-radius: 2px;
}

/* ========================================
   기타 UI 요소
   ======================================== */
.kbd {
  border: 1px solid var(--border);
  border-bottom-width: 3px;
  border-radius: 6px;
  padding: 4px 8px;
  background: var(--panel);
  font-family: monospace;
  font-size: 12px;
}

/* ========================================
   반응형 디자인
   ======================================== */
@media (max-width: 768px) {
  .hero {
    padding: 60px 0 80px;
  }
  
  .hero h1 {
    font-size: 32px;
  }
  
  .navlinks {
    gap: 16px;
  }
  
  .card {
    padding: 20px;
  }
  
  section {
    padding: 40px 0;
  }
  
  .section-title h2 {
    font-size: 24px;
  }
}

@media (max-width: 480px) {
  .container {
    padding: 16px;
  }
  
  .hero h1 {
    font-size: 28px;
  }
  
  .hero p {
    font-size: 16px;
  }
  
  .navlinks {
    flex-direction: column;
    gap: 8px;
  }
  
  .grid.cols-3,
  .grid.cols-2 {
    grid-template-columns: 1fr;
  }
}

/* ========================================
   접근성 & 성능
   ======================================== */
/* 모션 감소 설정 */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* 고대비 모드 지원 */
@media (prefers-contrast: high) {
  :root {
    --border: #000000;
    --text: #000000;
    --muted: #333333;
  }
}

/* 다크모드 선호 사용자용 (밝은 테마 유지하되 눈의 피로 줄임) */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #ffffff;
    --panel: #f8fafc;
    --text: #1e293b;
    --muted: #64748b;
    /* 밝은 테마 그대로 유지 - 브랜드 일관성을 위해 */
  }
}

/* ========================================
   인쇄용 스타일
   ======================================== */
@media print {
  * {
    background: white !important;
    color: black !important;
    box-shadow: none !important;
  }
  
  .btn {
    border: 1px solid black !important;
  }
  
  header {
    position: static;
  }
}
