/* 냥영어 홈페이지 스타일 */

/* ============================================
   기본 리셋 및 변수
   ============================================ */

:root {
  /* 브랜드 색상 (앱 아이콘 기반) */
  --color-primary: #e8a0a0;      /* 핑크 (헤드폰 색상) */
  --color-primary-dark: #d88888;
  --color-primary-light: #fce4e4;
  --color-bg: #fdf5f5;           /* 배경 (연한 핑크) */
  --color-bg-white: #ffffff;
  --color-text: #333333;
  --color-text-light: #666666;
  --color-text-muted: #999999;

  /* 그림자 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);

  /* 간격 */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 2rem;
  --spacing-xl: 3rem;
  --spacing-2xl: 4rem;

  /* 반응형 브레이크포인트 */
  --breakpoint-sm: 640px;
  --breakpoint-md: 768px;
  --breakpoint-lg: 1024px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans KR', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text);
  background-color: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
}

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

/* ============================================
   컨테이너
   ============================================ */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-md);
}

/* ============================================
   헤더
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: var(--shadow-sm);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 64px;
}

.logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
}

.logo-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.logo-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text);
}

.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  font-weight: 500;
  color: var(--color-text-light);
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--color-primary-dark);
}

/* ============================================
   히어로 섹션
   ============================================ */

.hero {
  padding: calc(64px + var(--spacing-2xl)) 0 var(--spacing-2xl);
  background: linear-gradient(180deg, var(--color-bg-white) 0%, var(--color-bg) 100%);
}

.hero .container {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
}

.hero-content {
  flex: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: var(--spacing-md);
}

.hero-title .highlight {
  color: var(--color-primary-dark);
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.hero-image {
  flex-shrink: 0;
}

.app-icon-large {
  width: 280px;
  height: 280px;
  border-radius: 56px;
  box-shadow: var(--shadow-lg);
}

/* ============================================
   스토어 버튼
   ============================================ */

.hero-buttons,
.cta-buttons {
  display: flex;
  gap: var(--spacing-sm);
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  padding: var(--spacing-sm) var(--spacing-md);
  border-radius: 12px;
  font-weight: 500;
  transition: all 0.2s;
}

.btn-store {
  background: #000;
  color: #fff;
  gap: var(--spacing-xs);
}

.btn-store:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-icon {
  width: 28px;
  height: 28px;
}

.btn-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.2;
}

.btn-label {
  font-size: 0.65rem;
  opacity: 0.8;
}

.btn-store-name {
  font-size: 1.1rem;
  font-weight: 600;
}

/* ============================================
   섹션 공통
   ============================================ */

section {
  padding: var(--spacing-2xl) 0;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: var(--spacing-xl);
}

/* ============================================
   대상 섹션
   ============================================ */

.target {
  background: var(--color-bg-white);
}

.target-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.target-item {
  text-align: center;
  padding: var(--spacing-lg);
  background: var(--color-bg);
  border-radius: 16px;
  transition: transform 0.2s;
}

.target-item:hover {
  transform: translateY(-4px);
}

.target-emoji {
  font-size: 2.5rem;
  display: block;
  margin-bottom: var(--spacing-sm);
}

.target-item p {
  color: var(--color-text-light);
  line-height: 1.6;
}

.target-item strong {
  color: var(--color-text);
}

/* ============================================
   특징 섹션
   ============================================ */

.features {
  background: var(--color-bg);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
}

.feature-card {
  background: var(--color-bg-white);
  padding: var(--spacing-lg);
  border-radius: 20px;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.feature-icon {
  font-size: 2.5rem;
  margin-bottom: var(--spacing-sm);
}

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: var(--spacing-xs);
  color: var(--color-text);
}

.feature-card p {
  color: var(--color-text-light);
  line-height: 1.7;
}

/* ============================================
   활용법 섹션
   ============================================ */

.usage {
  background: var(--color-bg-white);
}

.usage-list {
  max-width: 600px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-sm);
}

.usage-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  padding: var(--spacing-md);
  background: var(--color-bg);
  border-radius: 12px;
  transition: transform 0.2s;
}

.usage-item:hover {
  transform: translateX(8px);
}

.usage-icon {
  font-size: 2rem;
  flex-shrink: 0;
}

.usage-text {
  display: flex;
  flex-direction: column;
}

.usage-text strong {
  font-size: 1.1rem;
  color: var(--color-text);
}

.usage-text span {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ============================================
   주요 기능 섹션
   ============================================ */

.functions {
  background: var(--color-primary-light);
}

.functions-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  max-width: 900px;
  margin: 0 auto;
}

.function-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  padding: var(--spacing-md);
  background: var(--color-bg-white);
  border-radius: 12px;
  font-weight: 500;
}

.function-check {
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 1.2rem;
}

/* ============================================
   CTA 섹션
   ============================================ */

.cta {
  background: linear-gradient(135deg, var(--color-primary-light) 0%, var(--color-bg) 100%);
  text-align: center;
  padding: var(--spacing-2xl) 0;
}

.cta-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.cta-subtitle {
  font-size: 1.25rem;
  color: var(--color-text-light);
  margin-bottom: var(--spacing-lg);
  line-height: 1.8;
}

.cta-buttons {
  justify-content: center;
}

/* ============================================
   푸터
   ============================================ */

.footer {
  background: var(--color-text);
  color: #fff;
  padding: var(--spacing-xl) 0 var(--spacing-lg);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--spacing-lg);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: 1.25rem;
  font-weight: 700;
}

.footer-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}

.footer-links {
  display: flex;
  gap: var(--spacing-lg);
}

.footer-link {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s;
}

.footer-link:hover {
  color: #fff;
}

.footer-contact {
  color: rgba(255, 255, 255, 0.7);
}

.footer-contact a {
  color: var(--color-primary);
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-bottom {
  padding-top: var(--spacing-lg);
  text-align: center;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.875rem;
}

/* ============================================
   반응형 (태블릿)
   ============================================ */

@media (max-width: 1024px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .app-icon-large {
    width: 220px;
    height: 220px;
    border-radius: 44px;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

/* ============================================
   반응형 (모바일)
   ============================================ */

@media (max-width: 768px) {
  .hero .container {
    flex-direction: column-reverse;
    text-align: center;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-buttons {
    justify-content: center;
  }

  .app-icon-large {
    width: 180px;
    height: 180px;
    border-radius: 36px;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .target-grid {
    grid-template-columns: 1fr;
  }

  .target-item {
    padding: var(--spacing-md);
  }

  .feature-card {
    padding: var(--spacing-md);
  }

  .functions-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }

  .footer-links {
    flex-wrap: wrap;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .btn-store {
    width: 100%;
    max-width: 250px;
    justify-content: center;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .cta-title {
    font-size: 1.5rem;
  }
}
