/* ── 공통 변수 및 리셋 ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --green: #22c55e;
  --green-dark: #16a34a;
  --green-light: #f0fdf4;
  --amber: #f59e0b;
  --amber-dark: #d97706;
  --amber-light: #fffbeb;
  --dark: #0f172a;
  --dark2: #1e293b;
  --gray: #64748b;
  --text: #1e293b;
  --kakao: #FEE500;
}

html { scroll-behavior: smooth; }
body { font-family: 'Noto Sans KR', sans-serif; color: var(--text); overflow-x: hidden; }

/* ── 섹션 공통 ── */
.section { padding: 64px 20px; }
.section-inner { max-width: 1100px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 32px; }
.section-title { font-size: clamp(22px, 5vw, 36px); font-weight: 900; line-height: 1.3; margin-bottom: 10px; }
.section-sub { font-size: 15px; color: var(--gray); line-height: 1.7; }

/* ── 버튼 ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 28px; border-radius: 12px; font-size: 15px; font-weight: 700;
  cursor: pointer; text-decoration: none; border: none;
  transition: transform 0.15s, box-shadow 0.15s;
}
.btn:active { transform: scale(0.97); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 4px 20px rgba(34,197,94,0.35); }
.btn-green:hover { background: var(--green-dark); }
.btn-amber { background: var(--amber); color: #fff; box-shadow: 0 4px 20px rgba(245,158,11,0.35); }
.btn-amber:hover { background: var(--amber-dark); }
.btn-kakao { background: var(--kakao); color: #191919; }
.btn-kakao:hover { background: #f0d800; }
.btn-outline { background: transparent; color: #fff; border: 2px solid rgba(255,255,255,0.6); }
.btn-outline:hover { border-color: #fff; }

/* ── 애니메이션 ── */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
@keyframes pulse-dot { 0%,100%{opacity:1} 50%{opacity:0.3} }

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 24px; display: flex; align-items: center; justify-content: space-between;
  background: rgba(15,23,42,0.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.nav-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo img { height: 24px; width: auto; filter: invert(1); }
.nav-logo-text { font-size: 15px; font-weight: 900; color: #fff; letter-spacing: -0.3px; }
.nav-cta { padding: 8px 18px; font-size: 13px; }
.nav-login {
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.75);
  text-decoration: none; padding: 8px 14px; border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.25);
  transition: color 0.15s, border-color 0.15s;
}
.nav-login:hover { color: #fff; border-color: rgba(255,255,255,0.6); }

/* ── HERO 공통 ── */
#hero {
  min-height: 100vh; display: flex; align-items: center;
  padding: 100px 24px 60px; position: relative; overflow: hidden;
}
#hero::before {
  content: ''; position: absolute; top: -150px; right: -150px;
  width: 500px; height: 500px; pointer-events: none;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700;
  padding: 6px 14px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge::before { content: '●'; font-size: 8px; animation: pulse-dot 1.5s infinite; }
.hero-title { font-size: clamp(28px, 4vw, 52px); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: 18px; }
.hero-sub { font-size: 16px; color: rgba(255,255,255,0.65); line-height: 1.7; margin-bottom: 32px; }
.hero-btns { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,0.45); margin-top: 2px; }

/* ── 폰/앱 공통 목업 프레임 ── */
.phone-frame, .app-frame {
  width: 220px; height: 440px;
  background: #1a1a2e; border-radius: 36px;
  border: 3px solid rgba(255,255,255,0.15);
  box-shadow: 0 40px 80px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.1);
  position: relative; overflow: hidden; flex-shrink: 0;
}
.phone-notch, .app-notch {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 80px; height: 22px;
  background: #1a1a2e; border-radius: 0 0 14px 14px; z-index: 10;
}

/* ── CTA 섹션 공통 ── */
#cta { color: #fff; text-align: center; padding: 80px 24px; }
#cta .section-title { color: #fff; font-size: clamp(22px, 5vw, 36px); margin-bottom: 12px; }
#cta .section-sub { max-width: 480px; margin: 0 auto 36px; }
.cta-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ── FOOTER ── */
footer { background: var(--dark2); color: rgba(255,255,255,0.5); padding: 40px 24px; text-align: center; }
.footer-logo { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { height: 24px; width: auto; filter: invert(1); }
.footer-logo-text { font-size: 18px; font-weight: 900; color: #fff; }
.footer-info { font-size: 13px; line-height: 2; margin-bottom: 16px; }
.footer-link { display: inline-block; font-size: 13px; font-weight: 700; text-decoration: none; margin-bottom: 12px; }
.footer-copy { font-size: 12px; color: rgba(255,255,255,0.25); }

/* ── 플로팅 버튼 ── */
.floating-btn {
  position: fixed; bottom: 28px; right: 20px; z-index: 99;
  font-size: 14px; font-weight: 700; padding: 14px 20px; border-radius: 100px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2); text-decoration: none;
  display: flex; align-items: center; gap: 6px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.3s, transform 0.3s; pointer-events: none;
}
.floating-btn.show { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* ── 후기 공통 ── */
#reviews { background: #fff; }
.reviews-grid { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 28px; }
.review-text { font-size: 14px; line-height: 1.65; font-weight: 500; }
.review-name { font-size: 12px; color: var(--gray); font-weight: 700; }

/* ── 반응형 공통 ── */
@media (max-width: 640px) {
  .section { padding: 52px 20px; }
  .hero-btns { flex-direction: column; }
  .hero-btns .btn { width: 100%; }
  .cta-btns { flex-direction: column; align-items: stretch; }
}
