/* ============================================
   NFM Apps — 컬러풀 & 플레이풀 공통 스타일
   ============================================ */

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

:root {
  /* 공통 컬러 */
  --bg: #fff9f3;
  --text: #1f1f2e;
  --text-light: #5a5a6e;
  --text-muted: #8a8a9e;
  --card-bg: #ffffff;
  --shadow-sm: 0 4px 12px rgba(31, 31, 46, 0.08);
  --shadow-md: 0 8px 24px rgba(31, 31, 46, 0.12);
  --shadow-lg: 0 20px 50px rgba(31, 31, 46, 0.15);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  /* 앱별 테마 컬러 */
  --aval001-primary: #ff8c42;
  --aval001-secondary: #6dc56d;
  --aval001-grad: linear-gradient(135deg, #ff8c42 0%, #ffb86b 50%, #6dc56d 100%);

  --aval004-primary: #ff5e84;
  --aval004-secondary: #ffb347;
  --aval004-grad: linear-gradient(135deg, #ff5e84 0%, #ff8a5b 50%, #ffb347 100%);

  --aval005-primary: #8b5cf6;
  --aval005-secondary: #f5b342;
  --aval005-grad: linear-gradient(135deg, #8b5cf6 0%, #c084fc 50%, #f5b342 100%);

  --aval006-primary: #3b82f6;
  --aval006-secondary: #06b6d4;
  --aval006-grad: linear-gradient(135deg, #1e40af 0%, #3b82f6 50%, #06b6d4 100%);

  --aval008-primary: #ec4899;
  --aval008-secondary: #8b5cf6;
  --aval008-grad: linear-gradient(135deg, #ec4899 0%, #a855f7 50%, #6366f1 100%);

  --aval010-primary: #8b5a2b;
  --aval010-secondary: #d4a574;
  --aval010-grad: linear-gradient(135deg, #5d3a1a 0%, #8b5a2b 45%, #d4a574 100%);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Pretendard',
    'Noto Sans KR', 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

/* ============================================
   Navigation
   ============================================ */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 249, 243, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 800;
  font-size: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-logo-mark {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #ff5e84, #8b5cf6, #06b6d4);
  border-radius: 10px;
  color: #fff;
  font-weight: 900;
}

.nav-link {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
  padding: 8px 16px;
  border-radius: 999px;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

/* Right-side nav group: link + language toggle */
.nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-lang {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 30px;
  padding: 0 10px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--text-light);
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  transition: all 0.2s;
  cursor: pointer;
  user-select: none;
}

.nav-lang:hover {
  background: #fff;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.nav-lang-active {
  background: #fff;
  color: var(--text);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: var(--shadow-sm);
  cursor: default;
}

/* ============================================
   Hero (메인 페이지)
   ============================================ */
.hero {
  position: relative;
  padding: 80px 24px 60px;
  text-align: center;
  overflow: hidden;
}

.hero-bg-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}

.hero-bg-blob.b1 {
  width: 400px;
  height: 400px;
  background: #ff5e84;
  top: -100px;
  left: -100px;
}

.hero-bg-blob.b2 {
  width: 500px;
  height: 500px;
  background: #8b5cf6;
  top: 50px;
  right: -150px;
}

.hero-bg-blob.b3 {
  width: 350px;
  height: 350px;
  background: #06b6d4;
  bottom: -100px;
  left: 30%;
}

.hero-inner {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  padding: 8px 18px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-light);
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.hero h1 {
  font-size: clamp(36px, 6vw, 64px);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}

.hero h1 .gradient-text {
  background: linear-gradient(135deg, #ff5e84 0%, #8b5cf6 50%, #06b6d4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero p {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-light);
  max-width: 640px;
  margin: 0 auto 36px;
}

/* ============================================
   앱 카드 그리드 (메인)
   ============================================ */
.apps-section {
  padding: 60px 24px 100px;
  max-width: 1200px;
  margin: 0 auto;
}

.section-title {
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  margin-bottom: 12px;
  text-align: center;
  letter-spacing: -0.02em;
}

.section-subtitle {
  text-align: center;
  color: var(--text-light);
  font-size: 17px;
  margin-bottom: 56px;
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

.app-card {
  background: var(--card-bg);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.app-card:hover {
  transform: translateY(-8px) rotate(-0.5deg);
  box-shadow: var(--shadow-lg);
}

.app-card-cover {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  position: relative;
  overflow: hidden;
}

.app-card-cover::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.4), transparent 50%);
  pointer-events: none;
}

.app-card-cover.c001 { background: var(--aval001-grad); }
.app-card-cover.c004 { background: var(--aval004-grad); }
.app-card-cover.c005 { background: var(--aval005-grad); }
.app-card-cover.c006 { background: var(--aval006-grad); }
.app-card-cover.c008 { background: var(--aval008-grad); }
.app-card-cover.c010 { background: var(--aval010-grad); }
.app-card-cover.c-coming {
  background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
  background-image:
    linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.08) 0 10px, transparent 10px 20px);
  background-blend-mode: overlay;
}

.app-card-coming {
  cursor: default;
  opacity: 0.85;
  border: 2px dashed rgba(0, 0, 0, 0.08);
  background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.app-card-coming:hover {
  transform: none;
  box-shadow: var(--shadow-md);
}

.app-card-emoji {
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
  animation: floaty 4s ease-in-out infinite;
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.app-card-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-card-title {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.app-card-desc {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.55;
  margin-bottom: 16px;
  flex: 1;
}

.app-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 18px;
}

.app-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  background: #f4f4f7;
  color: var(--text-light);
  border-radius: 999px;
}

.app-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  border-top: 1px solid #f0f0f4;
}

.app-card-link {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.app-card-link::after {
  content: '→';
  transition: transform 0.2s;
}

.app-card:hover .app-card-link::after {
  transform: translateX(4px);
}

.app-card-store {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ============================================
   앱 상세 페이지 — 헤더
   ============================================ */
.app-hero {
  position: relative;
  padding: 80px 24px 60px;
  overflow: hidden;
  color: #fff;
}

.app-hero.h001 { background: var(--aval001-grad); }
.app-hero.h004 { background: var(--aval004-grad); }
.app-hero.h005 { background: var(--aval005-grad); }
.app-hero.h006 { background: var(--aval006-grad); }
.app-hero.h008 { background: var(--aval008-grad); }
.app-hero.h010 { background: var(--aval010-grad); }

.app-hero-decoration {
  position: absolute;
  font-size: 240px;
  opacity: 0.12;
  pointer-events: none;
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.2));
}

.app-hero-decoration.d1 {
  top: -40px;
  right: -40px;
  transform: rotate(15deg);
}

.app-hero-decoration.d2 {
  bottom: -60px;
  left: -30px;
  transform: rotate(-20deg);
  font-size: 180px;
}

.app-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: center;
}

@media (max-width: 720px) {
  .app-hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 24px;
  }
}

.app-icon {
  width: 120px;
  height: 120px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(12px);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}

@media (max-width: 720px) {
  .app-icon {
    margin: 0 auto;
  }
}

.app-hero-text h1 {
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 12px;
}

.app-hero-text .tagline {
  font-size: clamp(15px, 2vw, 18px);
  opacity: 0.95;
  font-weight: 500;
  max-width: 600px;
  margin-bottom: 24px;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 720px) {
  .cta-buttons {
    justify-content: center;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 24px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: all 0.2s;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: #fff;
  color: var(--text);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.2);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.3);
}

/* ============================================
   앱 상세 페이지 — 본문 섹션
   ============================================ */
.app-content {
  padding: 80px 24px;
  max-width: 1000px;
  margin: 0 auto;
}

.feature-section {
  margin-bottom: 80px;
}

.feature-section:last-child {
  margin-bottom: 0;
}

.feature-section h2 {
  font-size: clamp(24px, 3.5vw, 34px);
  font-weight: 800;
  margin-bottom: 12px;
  letter-spacing: -0.02em;
}

.feature-section h2 .accent {
  background: var(--theme-grad, var(--aval001-grad));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.feature-section .intro {
  font-size: 17px;
  color: var(--text-light);
  margin-bottom: 36px;
  max-width: 700px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.feature-card {
  background: var(--card-bg);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  border: 1px solid rgba(0, 0, 0, 0.04);
}

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

.feature-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 16px;
  background: var(--feature-icon-bg, #fff4ec);
}

.feature-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 8px;
}

.feature-card p {
  color: var(--text-light);
  font-size: 14px;
  line-height: 1.6;
}

.feature-card ul {
  list-style: none;
  margin-top: 8px;
}

.feature-card ul li {
  font-size: 13px;
  color: var(--text-light);
  padding: 4px 0;
  padding-left: 16px;
  position: relative;
}

.feature-card ul li::before {
  content: '•';
  position: absolute;
  left: 0;
  color: var(--theme-color, var(--aval001-primary));
  font-weight: 900;
}

/* ============================================
   하이라이트 박스 (인용/팁)
   ============================================ */
.highlight-box {
  background: linear-gradient(135deg, #fff 0%, #fafafa 100%);
  border-radius: var(--radius-md);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border-left: 6px solid var(--theme-color, var(--aval001-primary));
  margin: 28px 0;
}

.highlight-box h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 8px;
}

.highlight-box p {
  color: var(--text-light);
  font-size: 15px;
}

/* ============================================
   체크리스트
   ============================================ */
.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.check-list li {
  padding: 14px 18px;
  background: #fff;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

.check-list li::before {
  content: '✓';
  width: 24px;
  height: 24px;
  background: var(--theme-color, var(--aval001-primary));
  color: #fff;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
  flex-shrink: 0;
}

/* ============================================
   CTA 섹션 (하단)
   ============================================ */
.final-cta {
  padding: 80px 24px;
  text-align: center;
  background: var(--theme-grad, var(--aval001-grad));
  color: #fff;
  position: relative;
  overflow: hidden;
}

.final-cta h2 {
  font-size: clamp(26px, 4vw, 38px);
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.final-cta p {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 28px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
  padding: 40px 24px;
  text-align: center;
  font-size: 13px;
  color: var(--text-muted);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fffaf2;
}

.footer a {
  color: var(--text-light);
  font-weight: 600;
  margin: 0 8px;
}

.footer a:hover {
  color: var(--text);
}

/* ============================================
   유틸리티
   ============================================ */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.back-link:hover {
  color: var(--text);
}

@media (max-width: 640px) {
  .hero {
    padding: 56px 20px 40px;
  }
  .apps-section {
    padding: 40px 20px 80px;
  }
  .app-hero {
    padding: 56px 20px 48px;
  }
  .app-content {
    padding: 56px 20px;
  }
  .final-cta {
    padding: 60px 20px;
  }
}
