/* ═══════════════════════════════════════
   썸톡 코치 — 웹 랜딩 페이지 스타일
   프리미엄 러블리 디자인 시스템
   ═══════════════════════════════════════ */

:root {
  /* 컬러 팔레트 */
  --pink-50: #FFF0F3;
  --pink-100: #FFE4EC;
  --pink-200: #FECDD3;
  --pink-400: #FF6B9D;
  --pink-500: #EC4899;
  --pink-600: #DB2777;
  --purple-300: #C084FC;
  --purple-500: #8B5CF6;
  --purple-600: #7C3AED;
  --blue-400: #818CF8;
  --blue-500: #6366F1;
  --yellow-400: #FBBF24;
  --cyan-400: #22D3EE;

  --bg: #FFFBFE;
  --surface: #FFFFFF;
  --text-primary: #1A1A2E;
  --text-secondary: #64748B;
  --text-muted: #94A3B8;

  /* 타이포그래피 */
  --font: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 효과 */
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
  --shadow-md: 0 8px 24px rgba(255,107,157,0.1);
  --shadow-lg: 0 16px 48px rgba(255,107,157,0.15);
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
}

/* 리셋 */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }
img { max-width: 100%; display: block; }

/* ═══════ 공통 ═══════ */
.section-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--pink-50), #F5F0FF);
  color: var(--pink-400);
  font-size: 14px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 900;
  letter-spacing: -1px;
  line-height: 1.3;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 17px;
  max-width: 500px;
  margin: 0 auto;
}

.gradient-text {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300), var(--blue-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* 버튼 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255,107,157,0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,107,157,0.4);
}

.btn-secondary {
  background: var(--surface);
  color: var(--text-primary);
  border: 1.5px solid var(--pink-200);
}

.btn-secondary:hover {
  border-color: var(--pink-400);
  background: var(--pink-50);
}

.btn-lg {
  padding: 18px 36px;
  font-size: 18px;
  border-radius: 18px;
}

/* ═══════ 네비게이션 ═══════ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  background: rgba(255,251,254,0.85);
  border-bottom: 1px solid rgba(255,107,157,0.08);
  transition: all 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow-sm);
}

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

.nav-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo-gradient {
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.logo-badge {
  font-size: 10px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-300), var(--blue-400));
  color: #fff;
  padding: 2px 7px;
  border-radius: 6px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav-links a {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--pink-400);
}

.nav-cta {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  color: #fff !important;
  padding: 8px 20px;
  border-radius: 10px;
}

.nav-cta:hover {
  opacity: 0.9;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-menu-btn span {
  width: 24px;
  height: 2.5px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ═══════ 히어로 ═══════ */
.hero {
  position: relative;
  padding: 120px 0 80px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--pink-50), var(--bg) 60%, #F5F0FF);
}

.hero-bg-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
}

.shape-1 {
  width: 400px;
  height: 400px;
  background: var(--pink-200);
  top: -100px;
  right: -100px;
  animation: float 8s ease-in-out infinite;
}

.shape-2 {
  width: 300px;
  height: 300px;
  background: var(--purple-300);
  bottom: -50px;
  left: -50px;
  animation: float 10s ease-in-out infinite reverse;
}

.shape-3 {
  width: 200px;
  height: 200px;
  background: var(--blue-400);
  top: 40%;
  left: 50%;
  animation: float 12s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 20px) scale(0.95); }
}

.hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-badge {
  display: inline-block;
  background: linear-gradient(135deg, #FEF3C7, #FBBF24);
  color: #92400E;
  font-size: 13px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  margin-bottom: 20px;
  animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -2px;
  margin-bottom: 20px;
}

.hero-subtitle {
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.7;
  margin-bottom: 32px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  align-items: center;
  gap: 24px;
}

.stat {
  text-align: center;
}

.stat strong {
  display: block;
  font-size: 20px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat span {
  font-size: 12px;
  color: var(--text-muted);
}

.stat-divider {
  width: 1px;
  height: 32px;
  background: var(--pink-200);
}

/* 폰 목업 */
.hero-visual {
  display: flex;
  justify-content: center;
}

.phone-mockup {
  width: 280px;
  height: 560px;
  background: #1A1A2E;
  border-radius: 44px;
  padding: 12px;
  box-shadow: var(--shadow-lg), 0 0 0 2px rgba(255,107,157,0.1);
  animation: phone-float 4s ease-in-out infinite;
}

@keyframes phone-float {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-16px) rotate(0deg); }
}

.phone-screen {
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--pink-50), #fff 40%, #F5F0FF);
  border-radius: 34px;
  padding: 40px 20px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.mock-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mock-bubble {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 14px;
  font-weight: 500;
  max-width: 80%;
  animation: bubble-in 0.5s ease-out;
}

@keyframes bubble-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.mock-other {
  background: #fff;
  color: var(--text-primary);
  align-self: flex-start;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  border-bottom-left-radius: 4px;
  animation-delay: 0.3s;
  animation-fill-mode: both;
}

.mock-me {
  background: var(--pink-400);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
  animation-delay: 0.8s;
  animation-fill-mode: both;
}

.mock-temp {
  align-self: center;
  background: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(255,107,157,0.12);
  margin-top: 8px;
  animation: bubble-in 0.5s ease-out 1.3s both;
}

.temp-icon { font-size: 18px; }
.temp-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--pink-400);
}
.temp-label {
  font-size: 12px;
  color: var(--text-secondary);
  font-weight: 600;
}

/* ═══════ 기능 ═══════ */
.features {
  padding: 100px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.feature-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255,107,157,0.06);
}

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

.feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  margin-bottom: 20px;
}

.feature-card h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 10px;
  letter-spacing: -0.5px;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
  margin-bottom: 16px;
}

.feature-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.feature-tags li {
  background: var(--pink-50);
  color: var(--pink-400);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 8px;
}

/* ═══════ 사용법 ═══════ */
.how-it-works {
  padding: 100px 0;
  background: linear-gradient(180deg, #F5F0FF, var(--bg));
}

.steps {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 16px;
}

.step {
  flex: 1;
  max-width: 280px;
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  text-align: center;
  transition: all 0.3s;
}

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

.step-number {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  color: #fff;
  font-size: 20px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

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

.step p {
  color: var(--text-secondary);
  font-size: 14px;
}

.step-arrow {
  display: flex;
  align-items: center;
  font-size: 24px;
  color: var(--pink-200);
  font-weight: 700;
}

/* ═══════ 데모 챗 ═══════ */
.demo-section {
  padding: 100px 0;
}

.demo-chat-container {
  max-width: 600px;
  margin: 0 auto;
  background: var(--surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  border: 1px solid rgba(255,107,157,0.08);
}

.demo-chat-box {
  padding: 24px;
  min-height: 280px;
  max-height: 400px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  scroll-behavior: smooth;
}

.chat-message {
  display: flex;
  gap: 10px;
  max-width: 85%;
  animation: msg-slide 0.3s ease-out;
}

@keyframes msg-slide {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-message.user-message {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
  background: var(--pink-50);
}

.user-message .message-avatar {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  font-size: 14px;
}

.message-content {
  padding: 12px 16px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.6;
}

.ai-message .message-content {
  background: var(--pink-50);
  color: var(--text-primary);
  border-bottom-left-radius: 4px;
}

.user-message .message-content {
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  color: #fff;
  border-bottom-right-radius: 4px;
}

.demo-quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 24px 16px;
}

.quick-chip {
  background: var(--pink-50);
  color: var(--pink-400);
  border: 1px solid var(--pink-200);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all 0.2s;
}

.quick-chip:hover {
  background: var(--pink-400);
  color: #fff;
  border-color: var(--pink-400);
}

.demo-input-bar {
  display: flex;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid rgba(255,107,157,0.08);
  background: #FAFAFA;
}

.demo-input-bar input {
  flex: 1;
  padding: 12px 18px;
  border-radius: 24px;
  border: 1.5px solid var(--pink-200);
  font-size: 15px;
  font-family: var(--font);
  background: var(--surface);
  outline: none;
  transition: border-color 0.2s;
}

.demo-input-bar input:focus {
  border-color: var(--pink-400);
}

.send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--pink-400), var(--purple-300));
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.send-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 16px rgba(255,107,157,0.3);
}

.send-btn svg {
  width: 20px;
  height: 20px;
}

/* 타이핑 인디케이터 */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink-200);
  animation: typing-bounce 1.2s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.15s; }
.typing-dot:nth-child(3) { animation-delay: 0.3s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* ═══════ 리뷰 ═══════ */
.reviews {
  padding: 100px 0;
  background: linear-gradient(180deg, var(--bg), var(--pink-50));
}

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: all 0.3s;
}

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

.review-stars {
  font-size: 14px;
  margin-bottom: 12px;
}

.review-card p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.review-author {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* ═══════ FAQ ═══════ */
.faq {
  padding: 100px 0;
}

.faq-list {
  max-width: 700px;
  margin: 0 auto;
}

.faq-item {
  background: var(--surface);
  border-radius: var(--radius);
  margin-bottom: 12px;
  border: 1px solid rgba(255,107,157,0.06);
  overflow: hidden;
  transition: all 0.3s;
}

.faq-item:hover {
  border-color: var(--pink-200);
}

.faq-item summary {
  padding: 20px 24px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-item summary::after {
  content: '+';
  font-size: 22px;
  color: var(--pink-400);
  font-weight: 300;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary::-webkit-details-marker { display: none; }

.faq-item p {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ═══════ CTA ═══════ */
.cta-section {
  padding: 80px 0;
}

.cta-box {
  background: linear-gradient(135deg, var(--pink-50), #F5F0FF, var(--pink-50));
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  text-align: center;
  border: 1px solid rgba(255,107,157,0.1);
}

.cta-box h2 {
  font-size: clamp(24px, 4vw, 36px);
  font-weight: 900;
  margin-bottom: 12px;
}

.cta-box p {
  color: var(--text-secondary);
  font-size: 17px;
  margin-bottom: 28px;
}

/* ═══════ 푸터 ═══════ */
.footer {
  padding: 48px 0 24px;
  border-top: 1px solid rgba(255,107,157,0.08);
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.footer-brand p {
  color: var(--text-muted);
  font-size: 13px;
  margin-top: 4px;
}

.footer-links {
  display: flex;
  gap: 24px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--pink-400);
}

.footer-bottom {
  text-align: center;
  padding-top: 24px;
  border-top: 1px solid rgba(0,0,0,0.04);
}

.footer-bottom p {
  color: var(--text-muted);
  font-size: 13px;
}

/* ═══════ 반응형 ═══════ */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .mobile-menu-btn { display: flex; }

  .hero-container {
    grid-template-columns: 1fr;
    gap: 40px;
    text-align: center;
  }

  .hero-buttons { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }

  .phone-mockup {
    width: 220px;
    height: 440px;
  }

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

  .steps {
    flex-direction: column;
    align-items: center;
  }

  .step { max-width: 100%; }

  .step-arrow {
    transform: rotate(90deg);
    margin: -8px 0;
  }

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

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

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

  .hero { padding: 100px 0 60px; }
}

/* 스크롤 애니메이션 */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* 스크롤바 커스텀 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--pink-200); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--pink-400); }
