/* ===== HeartSignal Landing Page — English / native HTML ===== */

:root {
  --brand: #7c3aed;
  --brand-2: #a855f7;
  --pink: #ec4899;
  --brand-grad: linear-gradient(135deg, #7c3aed 0%, #a855f7 45%, #ec4899 100%);
  --red: #c80f2e;
  --ink: #1a1a1a;
  --muted: #5a5a5a;
  --lav: #e9def7;
  --blush: #fbe8ef;
  --bg: #ffffff;
  --ring: #c0b2f0;
  --radius: 20px;
  --shadow: 0 12px 40px rgba(76, 29, 149, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', 'Helvetica Neue', Arial, 'Noto Sans SC', sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img {
  display: block;
  max-width: 100%;
}

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

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Buttons ===== */
.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  line-height: 1;
  padding: 15px 28px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(0);
}
.btn-dark {
  background: #000;
  color: #fff;
}
.btn-dark:hover {
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
}
.btn-outline {
  background: transparent;
  color: #000;
  border-color: #000;
}
.btn-outline:hover {
  background: #000;
  color: #fff;
}
.btn-primary {
  background: var(--brand-grad);
  color: #fff;
}
.btn-primary:hover {
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.4);
}
.btn-sm {
  padding: 10px 20px;
  font-size: 14px;
}

/* ===== Navbar ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: #fff;
  border-bottom: 1px solid #f0eef6;
}
.navbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  font-weight: 900;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--red);
  background: none;
  border: 0;
  cursor: pointer;
  font-family: 'Poppins', 'Segoe UI', sans-serif;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-link:hover {
  background: var(--lav);
}
.nav-cta {
  margin-left: 8px;
}
@media (max-width: 720px) {
  .nav-links .nav-link {
    display: none;
  }
}

/* ===== Hero ===== */
.hero {
  background: var(--lav);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  padding: 56px 0;
}
.hero h1 {
  font-size: 54px;
  font-weight: 900;
  line-height: 1.06;
  letter-spacing: -0.5px;
  color: var(--red);
}
.hero-sub {
  font-size: 18px;
  font-weight: 500;
  color: var(--ink);
  margin-top: 18px;
}
.hero .btn {
  margin-top: 26px;
}
.terms {
  font-size: 13px;
  color: var(--muted);
  margin-top: 16px;
  max-width: 460px;
  line-height: 1.6;
}
.terms a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.hero-art {
  display: flex;
  justify-content: flex-end;
}
.hero-art img {
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: contain;
}
@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
    padding: 40px 0;
  }
  .hero h1 {
    font-size: 40px;
  }
  .hero-art {
    justify-content: center;
  }
  .hero-art img {
    max-width: 300px;
  }
}

/* ===== Generic section ===== */
.section {
  padding: 72px 0;
}
.section-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.section-kicker {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: var(--brand);
  background: rgba(124, 58, 237, 0.1);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.section h2 {
  font-size: 44px;
  font-weight: 900;
  line-height: 1.08;
  letter-spacing: -0.5px;
}
.section .lead {
  font-size: 18px;
  font-weight: 600;
  margin-top: 14px;
  color: var(--ink);
}
.section .body {
  font-size: 17px;
  color: var(--muted);
  margin-top: 14px;
  max-width: 520px;
}
.section .btn {
  margin-top: 28px;
}
.section img.media {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
@media (max-width: 820px) {
  .section-row {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .section h2 {
    font-size: 34px;
  }
}

/* ===== Specific sections ===== */
.trust {
  background: var(--blush);
}
.trust img.media,
.chat img.media {
  box-shadow: var(--shadow);
}
.chat {
  background: #fff;
}
.chat-visual {
  display: flex;
  justify-content: center;
}
.chat-visual img {
  max-height: 520px;
  width: auto;
  border-radius: 28px;
  box-shadow: var(--shadow);
}

/* ===== Profile wall ===== */
.wall {
  background: var(--lav);
}
.wall-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}
.wall-head h2 {
  font-size: 44px;
  font-weight: 900;
}
.wall-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #fff;
  aspect-ratio: 3 / 4;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.card .online {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 14px;
  height: 14px;
  background: #34d399;
  border: 2px solid #fff;
  border-radius: 50%;
}
.model-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted);
  margin-top: 18px;
}
.wall-cta {
  text-align: center;
  margin-top: 30px;
}
@media (max-width: 720px) {
  .wall-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* ===== Purpose ===== */
.purpose {
  background: #fff;
}
.purpose .list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.purpose .list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 17px;
  color: var(--ink);
}
.check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-top: 2px;
}
.portrait {
  position: relative;
}
.portrait img {
  width: 100%;
  border-radius: var(--radius);
  object-fit: cover;
}
.portrait .name-tag {
  position: absolute;
  left: 16px;
  bottom: 16px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
  border-radius: 999px;
  box-shadow: var(--shadow);
}

/* ===== Stories ===== */
.stories {
  background: var(--blush);
}
.stories-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}
.story-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.story-photo {
  position: relative;
  aspect-ratio: 4 / 3;
}
.story-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.story-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent 45%);
}
.story-names {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 0.5px;
}
.story-quote {
  padding: 20px 24px 26px;
  font-size: 16px;
  color: var(--muted);
  font-style: italic;
}
.stories-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  flex-wrap: wrap;
}
@media (max-width: 820px) {
  .stories-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Safety ===== */
.safety {
  background: #fff;
}
.safety .list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.safety .list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--muted);
}

/* ===== Download ===== */
.download {
  background: var(--lav);
  text-align: center;
}
.download h2 {
  font-size: 44px;
  font-weight: 900;
}
.download .since {
  margin-top: 8px;
  color: var(--muted);
  font-size: 18px;
}
.download .stats {
  margin: 36px auto 0;
  display: flex;
  justify-content: center;
  gap: 72px;
}
.download .stat-num {
  font-size: 56px;
  font-weight: 900;
  color: var(--red);
  font-family: 'Poppins', sans-serif;
}
.download .stat-label {
  margin-top: 4px;
  color: var(--muted);
  font-size: 15px;
}
.download .store-row {
  margin-top: 36px;
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border-radius: 14px;
  padding: 12px 18px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.store-badge:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}
.store-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}
.store-label {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  text-align: left;
}
.store-label em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
}
.store-label strong {
  font-size: 16px;
  font-weight: 800;
}
.store-dark {
  background: #000;
  color: #fff;
  border: 1px solid #000;
}
.store-white {
  background: #fff;
  color: #000;
  border: 1px solid #000;
}
@media (max-width: 720px) {
  .download .stats {
    gap: 40px;
  }
  .download .stat-num {
    font-size: 44px;
  }
}

/* ===== Footer ===== */
.footer {
  background: var(--lav);
  border-top: 1px solid #e2d8f2;
  padding: 56px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 40px;
}
.footer h4 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 14px;
}
.footer ul {
  list-style: none;
}
.footer li {
  margin-bottom: 10px;
}
.footer a {
  color: var(--muted);
  font-size: 14px;
}
.footer a:hover {
  color: var(--brand);
}
.footer-copy {
  border-top: 1px solid #e2d8f2;
  padding-top: 20px;
  color: var(--muted);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
@media (max-width: 820px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(30, 10, 60, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.modal-overlay.open {
  display: flex;
}
.modal {
  background: #fff;
  border-radius: 20px;
  box-shadow: var(--shadow);
  padding: 36px 32px;
  max-width: 420px;
  width: 100%;
  text-align: center;
}
.modal h3 {
  font-size: 24px;
  font-weight: 900;
}
.modal p.small {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 20px;
}
.modal input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid #ddd;
  border-radius: 12px;
  font-size: 15px;
  margin-bottom: 14px;
}
.modal .btn {
  width: 100%;
}
.modal-success {
  display: none;
  color: #16a34a;
  font-size: 16px;
  font-weight: 700;
  padding: 18px 0;
}
.modal-success.show {
  display: block;
}

/* ===== Reveal animation ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}