/* CatCare AI 랜딩 — 브랜드: 핑크 #ec4899 · 스카이 #0ea5e9 · 크림 배경 (앱 디자인 시스템과 동일) */

:root {
  --pink: #ec4899;
  --pink-deep: #db2777;
  --pink-soft: #fdf2f8;
  --sky: #0ea5e9;
  --sky-soft: #f0f9ff;
  --ink: #1f2937;
  --ink-soft: #6b7280;
  --cream: #fdfbf9;
  --line: #f1efec;
  --radius: 20px;
  --shadow-card: 0 8px 30px rgba(31, 41, 55, 0.07);
  --shadow-phone: 0 24px 60px rgba(219, 39, 119, 0.16);
  --font: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont,
    system-ui, Roboto, 'Helvetica Neue', 'Segoe UI', 'Apple SD Gothic Neo',
    'Noto Sans KR', 'Malgun Gothic', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  word-break: keep-all;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }

/* ───────── 등장 모션 ───────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.on { opacity: 1; transform: none; }
.delay-1 { transition-delay: 0.15s; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero-chip { animation: none !important; }
}

/* ───────── 버튼 ───────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-weight: 700; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 100%);
  color: #fff; box-shadow: 0 8px 24px rgba(236, 72, 153, 0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(236, 72, 153, 0.45); }
.btn-ghost {
  background: #fff; color: var(--ink); border: 1.5px solid var(--line); cursor: default;
}
.btn-ghost small { color: var(--ink-soft); font-weight: 600; margin-left: 2px; }
.btn-invert { background: #fff; color: var(--pink-deep); box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
.btn-invert:hover { transform: translateY(-2px); }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ───────── 내비게이션 ───────── */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  background: rgba(253, 251, 249, 0.86); backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}
.nav.scrolled { box-shadow: 0 1px 0 var(--line), 0 6px 24px rgba(31,41,55,0.06); }
.nav-inner {
  max-width: 1120px; margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 28px;
}
.nav-brand { display: flex; align-items: center; gap: 9px; font-size: 19px; font-weight: 800; }
.nav-brand img { border-radius: 8px; }
.nav-brand em { font-style: normal; color: var(--pink); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.nav-links a:hover { color: var(--pink-deep); }
@media (max-width: 640px) { .nav-links { display: none; } .nav-inner .btn { margin-left: auto; } }

/* ───────── 히어로 ───────── */
.hero {
  padding: 132px 24px 40px;
  background:
    radial-gradient(700px 420px at 85% 8%, rgba(236, 72, 153, 0.10), transparent 65%),
    radial-gradient(600px 400px at 8% 30%, rgba(14, 165, 233, 0.09), transparent 65%),
    var(--cream);
  overflow: hidden;
}
.hero-inner {
  max-width: 1120px; margin: 0 auto;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 40px; align-items: center;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px;
  padding: 7px 14px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft);
  margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.hero h1 { font-size: clamp(34px, 5vw, 54px); line-height: 1.22; font-weight: 800; letter-spacing: -0.02em; }
.hero h1 strong { color: var(--pink-deep); }
.hero-sub { margin-top: 20px; font-size: clamp(15.5px, 1.6vw, 18px); color: var(--ink-soft); }
.hero-sub b { color: var(--ink); }
.hero-cta { margin-top: 30px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin-top: 14px; font-size: 13.5px; color: var(--ink-soft); }

.hero-visual { position: relative; min-height: 560px; }
.phone {
  border-radius: 34px; overflow: hidden;
  border: 6px solid #1f2937; background: #fff;
  box-shadow: var(--shadow-phone);
}
.phone img { width: 100%; }
.phone-main { position: relative; z-index: 2; width: min(300px, 78%); margin-left: auto; margin-right: 6%; }
.phone-back {
  position: absolute; z-index: 1; top: 60px; right: 52%; width: min(250px, 62%);
  transform: rotate(-7deg); opacity: 0.92;
  box-shadow: 0 20px 50px rgba(14, 165, 233, 0.18);
}
.hero-chip {
  position: absolute; z-index: 3; background: #fff; border-radius: 14px;
  padding: 10px 15px; font-size: 13.5px; font-weight: 700;
  box-shadow: var(--shadow-card); border: 1px solid var(--line);
  animation: floaty 5s ease-in-out infinite;
}
.chip-1 { top: 28px; left: 0; }
.chip-2 { bottom: 46px; right: 0; animation-delay: 2.2s; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }

@media (max-width: 880px) {
  .hero { padding-top: 108px; }
  .hero-inner { grid-template-columns: 1fr; gap: 52px; }
  .br-wide { display: none; }
  .hero-visual { min-height: 0; padding: 10px 0 20px; }
  .phone-main { margin: 0 auto; }
  .phone-back { display: none; }
  .chip-1 { top: -6px; }
  .chip-2 { bottom: 8px; }
}

/* ───────── 숫자 스트립 ───────── */
.stats { max-width: 1120px; margin: 46px auto 0; padding: 0 24px; }
.stats dl {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-card);
  padding: 30px 16px;
}
.stats div { text-align: center; padding: 6px 10px; }
.stats div + div { border-left: 1px solid var(--line); }
.stats dt { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; color: var(--pink-deep); }
.stats dt i { font-style: normal; font-size: 0.62em; margin-left: 1px; }
.stats dd { margin-top: 4px; font-size: 13.5px; color: var(--ink-soft); font-weight: 600; }
@media (max-width: 640px) {
  .stats dl { grid-template-columns: 1fr 1fr; row-gap: 18px; }
  .stats div:nth-child(3) { border-left: none; }
}

/* ───────── 섹션 공통 ───────── */
.section-head { max-width: 720px; margin: 0 auto; text-align: center; padding: 0 24px; }
.eyebrow {
  display: inline-block; font-size: 13.5px; font-weight: 800; letter-spacing: 0.06em;
  color: var(--pink-deep); background: var(--pink-soft);
  border-radius: 999px; padding: 6px 14px; margin-bottom: 16px;
}
.eyebrow-light { background: rgba(255,255,255,0.16); color: #fff; }
.section-head h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.3; }
.section-head h2 b { color: var(--pink-deep); }
.section-sub { margin-top: 14px; color: var(--ink-soft); font-size: clamp(14.5px, 1.5vw, 16.5px); }

/* ───────── 기능 교차 배치 ───────── */
.features { padding: 110px 0 30px; }
.feature-row {
  max-width: 1040px; margin: 84px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: center;
}
.row-flip .feature-copy { order: 2; }
.row-flip .feature-shot { order: 1; }
.feature-tag {
  display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: 0.04em;
  border-radius: 999px; padding: 6px 13px; margin-bottom: 16px;
}
.tag-pink { color: var(--pink-deep); background: var(--pink-soft); }
.tag-sky { color: #0369a1; background: var(--sky-soft); }
.feature-copy h3 { font-size: clamp(23px, 2.8vw, 31px); font-weight: 800; line-height: 1.32; letter-spacing: -0.015em; }
.feature-copy p { margin-top: 16px; color: var(--ink-soft); font-size: 15.5px; }
.feature-copy p b { color: var(--ink); }
.feature-list { margin-top: 20px; list-style: none; display: grid; gap: 10px; }
.feature-list li {
  position: relative; padding-left: 28px; font-size: 14.5px; font-weight: 600;
}
.feature-list li::before {
  content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--pink-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23db2777' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 13l4 4L19 7'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.feature-shot .phone { width: min(300px, 100%); margin: 0 auto; }
@media (max-width: 820px) {
  .features { padding-top: 90px; }
  .feature-row { grid-template-columns: 1fr; gap: 36px; margin-top: 72px; }
  .row-flip .feature-copy { order: 1; }
  .row-flip .feature-shot { order: 2; }
}

/* ───────── 유기적 연결 (다크 핑크 섹션) ───────── */
.connected {
  margin-top: 120px;
  padding: 96px 0 104px;
  background:
    radial-gradient(800px 500px at 15% 0%, rgba(255,255,255,0.10), transparent 60%),
    linear-gradient(150deg, #d61f78 0%, #a21a5e 55%, #7c1548 100%);
  color: #fff;
}
.connected .section-head h2 { color: #fff; }
.connected .section-head h2 b { color: #fbcfe8; }
.connected .section-sub { color: rgba(255, 255, 255, 0.82); }
.flow {
  max-width: 980px; margin: 56px auto 0; padding: 0 24px;
  display: flex; align-items: stretch; gap: 14px;
}
.flow-step {
  flex: 1; background: rgba(255,255,255,0.10); border: 1px solid rgba(255,255,255,0.16);
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  backdrop-filter: blur(4px);
}
.flow-icon { font-size: 30px; display: block; }
.flow-step h4 { margin-top: 12px; font-size: 18.5px; font-weight: 800; }
.flow-step p { margin-top: 8px; font-size: 14px; color: rgba(255,255,255,0.85); }
.flow-arrow { align-self: center; font-size: 22px; font-weight: 800; color: rgba(255,255,255,0.65); }
.connected-grid {
  max-width: 980px; margin: 40px auto 0; padding: 0 24px;
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.mini-card {
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.14);
  border-radius: 16px; padding: 20px 22px;
}
.mini-card h5 { font-size: 16px; font-weight: 800; }
.mini-card p { margin-top: 7px; font-size: 14px; color: rgba(255,255,255,0.84); }
@media (max-width: 720px) {
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); padding: 2px 0; }
  .connected-grid { grid-template-columns: 1fr; }
}

/* ───────── 스크린샷 갤러리 ───────── */
.screens { padding: 110px 0 40px; }
.screen-rail {
  margin-top: 52px; display: flex; gap: 26px; overflow-x: auto;
  padding: 20px max(24px, calc((100vw - 1120px) / 2)) 34px;
  scroll-snap-type: x mandatory; scrollbar-width: thin; scrollbar-color: var(--pink) transparent;
}
.screen-rail figure { flex: 0 0 auto; width: 232px; scroll-snap-align: center; }
.screen-rail img {
  border-radius: 26px; border: 5px solid #1f2937;
  box-shadow: 0 16px 40px rgba(31, 41, 55, 0.14);
  transition: transform 0.25s ease;
}
.screen-rail figure:hover img { transform: translateY(-6px); }
.screen-rail figcaption { margin-top: 13px; text-align: center; font-size: 14px; font-weight: 700; color: var(--ink-soft); }

/* ───────── 마지막 CTA ───────── */
.cta-final {
  max-width: 1040px; margin: 60px auto 100px; padding: 72px 32px; text-align: center;
  border-radius: 28px; color: #fff;
  background:
    radial-gradient(500px 300px at 80% 10%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(135deg, var(--pink) 0%, var(--pink-deep) 60%, #be185d 100%);
  box-shadow: 0 24px 60px rgba(219, 39, 119, 0.30);
}
.cta-final h2 { font-size: clamp(26px, 3.6vw, 38px); font-weight: 800; line-height: 1.3; letter-spacing: -0.02em; }
.cta-final > p { margin-top: 14px; color: rgba(255,255,255,0.88); font-size: 15.5px; }
.cta-center { justify-content: center; }
.cta-store { margin-top: 18px; font-size: 13.5px; color: rgba(255,255,255,0.8); font-weight: 600; }
@media (max-width: 720px) { .cta-final { margin: 40px 16px 80px; } }

/* ───────── 푸터 ───────── */
.footer { border-top: 1px solid var(--line); background: #fff; }
.footer-inner { max-width: 1120px; margin: 0 auto; padding: 44px 24px 52px; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; font-size: 16.5px; }
.footer-brand img { border-radius: 7px; }
.footer-disclaimer { margin: 18px auto 0; max-width: 520px; font-size: 13px; color: var(--ink-soft); }
.footer-links { margin-top: 18px; display: flex; justify-content: center; gap: 22px; font-size: 13.5px; font-weight: 700; color: var(--ink-soft); }
.footer-links a:hover { color: var(--pink-deep); }
.footer-copy { margin-top: 16px; font-size: 12.5px; color: #9ca3af; }
