/* ============================================================
   Hearto landing — pink heart theme
   Mobile-first, max-width 430px frame on desktop.
   ============================================================ */

:root {
  --pink-50:  #FFF1F6;
  --pink-100: #FFE5EF;
  --pink-300: #FF8FB8;
  --pink-500: #FF4D8D;
  --pink-600: #FF2E78;
  --pink-700: #FF1F6A;
  --gold:     #FFB84D;
  --ink:      #2A1326;
  --ink-soft: #6B4A60;
  --glass:    rgba(255, 255, 255, 0.7);
  --shadow:   0 12px 30px rgba(255, 31, 106, 0.18);
  --shadow-strong: 0 16px 40px rgba(255, 31, 106, 0.35);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue",
               "PingFang SC", Roboto, sans-serif;
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  padding-bottom: 110px;
  background:
    radial-gradient(1200px 600px at 50% -10%, #FFD1E2 0%, transparent 60%),
    linear-gradient(180deg, #FFF6FA 0%, #FFE9F2 40%, #FFD9E8 100%);
}

body.has-bg {
  background:
    radial-gradient(1200px 600px at 50% -10%, rgba(255, 209, 226, 0.55) 0%, transparent 60%),
    linear-gradient(180deg, rgba(255, 246, 250, 0.55) 0%, rgba(255, 233, 242, 0.5) 40%, rgba(255, 217, 232, 0.55) 100%),
    url('../images/bg.png') center / cover no-repeat fixed;
}

/* ---------- floating hearts ---------- */
.bg-hearts {
  position: fixed; inset: 0; z-index: 0;
  pointer-events: none; overflow: hidden;
}
.bg-hearts span {
  position: absolute; bottom: -40px;
  color: rgba(255, 77, 141, 0.35);
  animation: floatUp 14s linear infinite;
}
.bg-hearts span:nth-child(1) { left:  8%; font-size: 22px; animation-delay:  0s; }
.bg-hearts span:nth-child(2) { left: 22%; font-size: 14px; animation-delay:  3s; }
.bg-hearts span:nth-child(3) { left: 38%; font-size: 18px; animation-delay:  6s; }
.bg-hearts span:nth-child(4) { left: 55%; font-size: 24px; animation-delay:  2s; }
.bg-hearts span:nth-child(5) { left: 70%; font-size: 16px; animation-delay:  9s; }
.bg-hearts span:nth-child(6) { left: 85%; font-size: 20px; animation-delay:  5s; }
.bg-hearts span:nth-child(7) { left: 92%; font-size: 14px; animation-delay: 11s; }
@keyframes floatUp {
  0%   { transform: translateY(0) rotate(0);     opacity: 0; }
  10%  {                                          opacity: 1; }
  90%  {                                          opacity: 0.8; }
  100% { transform: translateY(-110vh) rotate(20deg); opacity: 0; }
}
@keyframes pulseDot {
  0%   { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(34, 197, 94, 0);   }
  100% { box-shadow: 0 0 0 0   rgba(34, 197, 94, 0);   }
}

/* ---------- header ---------- */
.header {
  position: relative; z-index: 2;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 18px 8px;
}
.logo {
  display: flex; align-items: center; gap: 6px;
  font-weight: 900; font-size: 22px; letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--pink-700), #FF6BA3);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.logo-heart {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  color: #fff; border-radius: 7px; font-size: 14px;
  box-shadow: var(--shadow);
}
.online-pill {
  display: flex; align-items: center; gap: 6px;
  padding: 6px 10px 6px 8px; border-radius: 999px;
  background: var(--glass);
  border: 1px solid rgba(255, 77, 141, 0.25);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; color: var(--ink-soft);
}
.online-pill b { color: var(--pink-700); font-weight: 800; }
.online-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22C55E;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7);
  animation: pulseDot 1.6s infinite;
}

/* ---------- hero copy ---------- */
.hero-copy {
  position: relative; z-index: 2;
  padding: 6px 22px 14px;
}
.hero-copy h1 {
  margin: 0;
  font-size: 30px; line-height: 1.1; font-weight: 900;
  letter-spacing: -0.5px;
}
.hero-copy h1 .accent {
  background: linear-gradient(90deg, var(--pink-700), var(--pink-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-copy p {
  margin: 8px 0 0;
  font-size: 14px; color: var(--ink-soft);
}

/* ---------- hero swiper ---------- */
.hero { position: relative; z-index: 2; margin-top: 14px; padding-bottom: 4px; }
.swiper {
  display: flex; gap: 14px;
  padding: 4px 22px 16px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.swiper::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 78%; aspect-ratio: 3 / 4.2;
  position: relative; overflow: hidden; cursor: pointer;
  border-radius: 24px;
  scroll-snap-align: center;
  background: linear-gradient(180deg, #FFD7E5, #FF9EC4);
  box-shadow: var(--shadow-strong);
  transition: transform 0.3s ease;
}
.slide-img { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.slide-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,77,141,0) 45%, rgba(42,19,38,0.65) 100%);
}
.slide-verified, .slide-online {
  position: absolute; top: 14px;
  display: flex; align-items: center; gap: 4px;
  padding: 5px 9px; border-radius: 999px;
  font-size: 10px; font-weight: 800;
  z-index: 2;
}
.slide-verified {
  left: 14px; color: #fff;
  background: linear-gradient(135deg, #4A8DFF, #2563EB);
  box-shadow: 0 6px 14px rgba(37, 99, 235, 0.35);
}
.slide-online {
  right: 14px; color: #1F8A4C;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11px; padding: 5px 10px;
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.slide-online .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22C55E;
  animation: pulseDot 1.6s infinite;
}
.slide-info {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 16px 16px 18px; color: #fff; z-index: 2;
}
.slide-info .name {
  display: flex; align-items: baseline; gap: 8px;
  font-size: 22px; font-weight: 900; letter-spacing: -0.3px;
}
.slide-info .loc {
  display: flex; align-items: center; gap: 4px;
  margin-top: 2px; font-size: 12px; opacity: 0.9;
}
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag {
  padding: 4px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.4);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 11px; font-weight: 600; color: #fff;
}
.tag.hot {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  border-color: transparent;
}

.dots { display: flex; justify-content: center; gap: 6px; margin-top: 6px; }
.dots i {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255, 77, 141, 0.3);
  transition: all 0.3s ease;
}
.dots i.on { width: 22px; background: var(--pink-500); }

/* ---------- stats banner ---------- */
.stats {
  position: relative; z-index: 2; overflow: hidden;
  margin: 22px 18px 0;
  padding: 16px 12px; border-radius: 20px;
  display: grid; grid-template-columns: repeat(3, 1fr);
  color: #fff;
  background: linear-gradient(135deg, #FF6FA5, #FF1F6A);
  box-shadow: var(--shadow-strong);
}
.stats::before {
  content: ""; position: absolute; inset: -20% -10% auto auto;
  width: 140px; height: 140px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.25), transparent 70%);
}
.stats .item { position: relative; text-align: center; }
.stats .item + .item { border-left: 1px solid rgba(255, 255, 255, 0.25); }
.stats .num { font-size: 18px; font-weight: 900; letter-spacing: -0.3px; }
.stats .lbl { font-size: 11px; opacity: 0.85; margin-top: 2px; }

/* ---------- section title ---------- */
.sect-title {
  position: relative; z-index: 2;
  margin: 28px 22px 14px;
  display: flex; align-items: center; justify-content: space-between;
}
.sect-title h2 {
  margin: 0; font-size: 20px; font-weight: 900; letter-spacing: -0.3px;
}
.sect-title .more {
  display: inline-flex; align-items: center; gap: 2px;
  font-size: 12px; font-weight: 700; color: var(--pink-600);
}

/* ---------- grid ---------- */
.grid {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 0 18px;
}
.card {
  position: relative; overflow: hidden; cursor: pointer;
  aspect-ratio: 3 / 4; border-radius: 18px;
  background: linear-gradient(180deg, #FFD7E5, #FF9EC4);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease;
}
.card:active { transform: scale(0.98); }
.card-img { position: absolute; inset: 0; background-size: cover; background-position: center top; }
.card-img::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(42,19,38,0.7) 100%);
}
.card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  padding: 3px 8px; border-radius: 999px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-700));
  box-shadow: 0 4px 10px rgba(255, 31, 106, 0.35);
  font-size: 10px; font-weight: 800; color: #fff;
}
.card-badge.new  { background: linear-gradient(135deg, #4A8DFF, #2563EB); box-shadow: 0 4px 10px rgba(37,99,235,0.35); }
.card-badge.gold { background: linear-gradient(135deg, #FFD27A, var(--gold)); color: #5A3300; }
.card-heart {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  color: var(--pink-600); font-size: 14px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}
.card-online {
  position: absolute; top: 42px; right: 8px; z-index: 2;
  width: 9px; height: 9px; border-radius: 50%;
  background: #22C55E; border: 2px solid #fff;
  animation: pulseDot 1.6s infinite;
}
.card-info {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 2;
  padding: 10px 10px 12px; color: #fff;
}
.card-info .nm { font-size: 14px; font-weight: 800; }
.card-info .tg { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.card-info .tg span {
  padding: 2px 7px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: 9.5px; font-weight: 600;
}

/* ---------- features ---------- */
.features {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; margin: 26px 18px 8px;
}
.feat {
  padding: 14px 8px 12px; border-radius: 16px; text-align: center;
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(255, 77, 141, 0.18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  box-shadow: 0 6px 16px rgba(255, 31, 106, 0.08);
}
.feat-icon {
  width: 38px; height: 38px; margin: 0 auto 8px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; color: var(--pink-700);
  background: linear-gradient(135deg, #FFE0EC, #FFB4D0);
  box-shadow: inset 0 -2px 0 rgba(255, 31, 106, 0.1);
}
.feat .ft { font-size: 12px; font-weight: 800; color: var(--ink); }
.feat .fs { font-size: 10px; color: var(--ink-soft); margin-top: 2px; }

/* ---------- urgency ---------- */
.urgency {
  position: relative; z-index: 2; cursor: pointer;
  margin: 22px 18px 0;
  padding: 14px 16px; border-radius: 16px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(135deg, #FFF6FA, #FFE0EC);
  border: 1px dashed rgba(255, 31, 106, 0.35);
  transition: transform 0.25s ease;
}
.urgency .av {
  flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 50%;
  background-size: cover; background-position: center top;
  box-shadow: 0 4px 10px rgba(255, 31, 106, 0.25);
}
.urgency .txt { font-size: 12px; line-height: 1.45; color: var(--ink); }
.urgency .txt b { color: var(--pink-700); }

/* ---------- foot ---------- */
.foot-hint {
  position: relative; z-index: 2;
  margin: 22px 0 10px; text-align: center;
  font-size: 11px; color: var(--ink-soft);
}
.foot-hint .stars { color: var(--gold); letter-spacing: 2px; font-size: 14px; }

/* ---------- sticky CTA ---------- */
.cta-wrap {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  display: flex; justify-content: center;
  padding: 14px 22px calc(14px + env(safe-area-inset-bottom));
  background: linear-gradient(180deg, rgba(255,230,240,0) 0%, rgba(255,218,232,0.85) 50%, rgba(255,210,226,1) 100%);
  pointer-events: none;
}
.cta-wrap::before {
  content: ""; position: absolute; z-index: -1;
  left: 50%; bottom: calc(14px + env(safe-area-inset-bottom));
  width: 220px; height: 56px;
  transform: translateX(-50%);
  border-radius: 999px;
  background: radial-gradient(ellipse at center, rgba(255, 77, 141, 0.4), transparent 70%);
  filter: blur(14px);
  animation: ctaGlow 1.6s ease-in-out infinite;
}
.cta {
  pointer-events: auto; cursor: pointer; border: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 16px 36px; border-radius: 999px;
  font-size: 17px; font-weight: 900; letter-spacing: 0.3px;
  color: #fff; white-space: nowrap; position: relative;
  background: linear-gradient(135deg, #FF4D8D 0%, #FF1F6A 60%, #E80F5A 100%);
  box-shadow:
    0 12px 28px rgba(255, 31, 106, 0.55),
    0 0 0 6px rgba(255, 31, 106, 0.12),
    inset 0 -2px 0 rgba(0, 0, 0, 0.12);
  animation: ctaBounce 1.6s ease-in-out infinite;
}
.cta::before {
  content: ""; position: absolute; inset: 0;
  border-radius: 999px; pointer-events: none;
  background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.55), transparent 50%);
}
.cta .heart { display: inline-block; animation: heartBeat 1.2s ease-in-out infinite; }
@keyframes ctaBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1);    }
  25%      { transform: scale(1.25); }
  50%      { transform: scale(1);    }
  75%      { transform: scale(1.15); }
}
@keyframes ctaGlow {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scale(1);    }
  50%      { opacity: 1;   transform: translateX(-50%) scale(1.06); }
}

/* ---------- small screens ---------- */
@media (max-width: 360px) {
  .hero-copy h1 { font-size: 26px; }
  .slide        { flex-basis: 82%; }
  .stats .num   { font-size: 16px; }
}

/* ---------- wide screens: phone-frame centering ---------- */
@media (min-width: 640px) {
  html {
    min-height: 100vh;
    background:
      radial-gradient(900px 600px at 20% 30%, rgba(255, 77, 141, 0.25), transparent 60%),
      radial-gradient(900px 600px at 80% 70%, rgba(255, 31, 106, 0.25), transparent 60%),
      linear-gradient(135deg, #2A1326 0%, #4A1F3A 50%, #2A1326 100%);
  }
  body {
    position: relative;
    max-width: 430px; margin: 0 auto; min-height: 100vh;
    background:
      radial-gradient(1200px 600px at 50% -10%, #FFD1E2 0%, transparent 60%),
      linear-gradient(180deg, #FFF6FA 0%, #FFE9F2 40%, #FFD9E8 100%);
    box-shadow:
      0 0 0 1px rgba(255, 255, 255, 0.08),
      0 30px 80px rgba(0, 0, 0, 0.55),
      0 0 120px rgba(255, 31, 106, 0.25);
  }
  body.has-bg {
    background:
      radial-gradient(1200px 600px at 50% -10%, rgba(255, 209, 226, 0.35) 0%, transparent 60%),
      linear-gradient(180deg, rgba(255, 246, 250, 0.35) 0%, rgba(255, 233, 242, 0.25) 40%, rgba(255, 217, 232, 0.35) 100%),
      url('../images/bg.png') center / cover no-repeat;
  }
  .cta-wrap {
    left: 50%; right: auto; transform: translateX(-50%);
    width: 100%; max-width: 430px;
  }
}
