:root {
  --ink: #251d22;
  --muted: #746a70;
  --rose: #ed5573;
  --rose-dark: #d94163;
  --cream: #fff8f5;
  --line: #eee4e4;
  --white: #fff;
  --shadow: 0 18px 54px rgba(84, 48, 60, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: "Manrope", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  height: 76px;
  padding: 0 max(24px, calc((100vw - 1180px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 248, 245, .88);
  border-bottom: 1px solid rgba(118, 81, 93, .08);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.5px;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: white;
  background: linear-gradient(145deg, #fa6f89, #db3b60);
  border-radius: 12px 12px 12px 4px;
  box-shadow: 0 8px 20px rgba(237, 85, 115, .28);
}

.header-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.header-meta strong { color: var(--ink); }

.pulse-dot {
  width: 8px;
  height: 8px;
  background: #4fc98b;
  border: 2px solid #c9f3df;
  border-radius: 50%;
  box-sizing: content-box;
}

.hero {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  padding: 78px max(24px, calc((100vw - 1180px) / 2)) 84px;
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  isolation: isolate;
}

.hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 5% 95%, rgba(255, 215, 181, .55), transparent 34%),
    linear-gradient(145deg, #fffaf8 15%, #fff1ed 100%);
}

.hero-glow {
  position: absolute;
  z-index: -1;
  border-radius: 50%;
  filter: blur(3px);
}
.hero-glow-one { width: 440px; height: 440px; right: 4%; top: 45px; background: rgba(244, 170, 179, .28); }
.hero-glow-two { width: 260px; height: 260px; right: 31%; bottom: -130px; background: rgba(255, 219, 173, .38); }

.hero-copy { max-width: 630px; position: relative; z-index: 2; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 24px;
  color: #9a5061;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
}
.eyebrow span { color: #4fc98b; font-size: 14px; }

h1, h2 { margin: 0; }

h1 {
  max-width: 650px;
  font-family: "Prata", Georgia, serif;
  font-size: clamp(42px, 5vw, 68px);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -2.6px;
}
h1 em { color: var(--rose); font-weight: inherit; }

.hero-copy > p {
  max-width: 545px;
  margin: 26px 0 30px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.7;
}

.hero-cta {
  display: inline-flex;
  min-width: 228px;
  height: 58px;
  padding: 0 20px 0 27px;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: white;
  background: linear-gradient(135deg, #f26882, #dc3e62);
  border-radius: 17px;
  box-shadow: 0 14px 28px rgba(221, 64, 98, .25);
  font-size: 15px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.hero-cta:hover { transform: translateY(-2px); box-shadow: 0 18px 36px rgba(221, 64, 98, .33); }
.hero-cta svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 2; }

.trust-note {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.avatars { display: flex; padding-left: 8px; }
.mini-photo {
  width: 30px;
  height: 30px;
  margin-left: -8px;
  border: 2px solid white;
  border-radius: 50%;
  background-image: url("./assets/profiles-grid.png");
  background-size: 300% 300%;
}
.mini-1 { background-position: 0 0; }
.mini-2 { background-position: 50% 0; }
.mini-3 { background-position: 100% 0; }

.hero-visual {
  position: relative;
  height: 430px;
  margin-left: 50px;
}
.hero-card {
  position: absolute;
  overflow: hidden;
  background: white;
  border: 6px solid white;
  border-radius: 30px;
  box-shadow: 0 28px 70px rgba(79, 45, 58, .18);
}
.hero-card-front { width: 300px; height: 410px; top: 0; left: 70px; transform: rotate(2.5deg); }
.hero-card-back { width: 240px; height: 330px; right: 10px; bottom: 0; opacity: .83; transform: rotate(9deg); }
.portrait { width: 100%; height: 100%; background-image: url("./assets/profiles-grid.png"); background-size: 300% 300%; background-repeat: no-repeat; }
.portrait-2 { background-position: 50% 0; }
.portrait-6 { background-position: 100% 50%; }
.hero-card-front .portrait { height: 330px; border-radius: 24px; }
.hero-card-back .portrait { border-radius: 24px; }
.hero-card-info { height: 68px; padding: 11px 14px; display: flex; align-items: center; justify-content: space-between; }
.hero-card-info span { display: flex; flex-direction: column; }
.hero-card-info b { font-size: 15px; }
.hero-card-info small { margin-top: 3px; color: var(--muted); }
.hero-card-info i { width: 38px; height: 38px; display: grid; place-items: center; color: var(--rose); background: #fff0f3; border-radius: 50%; font-style: normal; }

.message-bubble {
  position: absolute;
  z-index: 4;
  right: 0;
  bottom: 62px;
  padding: 14px 17px;
  color: #544149;
  background: white;
  border-radius: 16px 16px 4px 16px;
  box-shadow: 0 13px 36px rgba(77, 48, 60, .16);
  font-size: 13px;
  font-weight: 700;
  transform: rotate(-2deg);
}
.message-bubble span { color: var(--rose); }

.profiles-section {
  padding: 82px max(24px, calc((100vw - 1180px) / 2)) 95px;
  background: white;
}
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.section-kicker { display: block; margin-bottom: 9px; color: var(--rose); font-size: 11px; font-weight: 800; letter-spacing: 1.7px; }
.section-heading h2, .closing h2 { font-family: "Prata", Georgia, serif; font-size: clamp(32px, 4vw, 46px); font-weight: 400; letter-spacing: -1.4px; }
.section-heading > p { max-width: 340px; margin: 0 0 4px; color: var(--muted); font-size: 14px; line-height: 1.6; }

.filters { margin: 34px 0; display: flex; gap: 9px; overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filter {
  flex: 0 0 auto;
  padding: 11px 17px;
  color: #78676e;
  background: #fff8f7;
  border: 1px solid #f2e6e6;
  border-radius: 999px;
  font: 700 12px "Manrope", sans-serif;
  cursor: pointer;
}
.filter.is-active { color: white; background: var(--ink); border-color: var(--ink); }

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

.profile-card {
  min-width: 0;
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: 0 10px 40px rgba(65, 42, 50, .06);
  transition: transform .25s, box-shadow .25s;
}
.profile-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }

.profile-photo {
  position: relative;
  aspect-ratio: 1.18 / 1;
  background-image: url("./assets/profiles-grid.png");
  background-repeat: no-repeat;
  background-size: 300% 300%;
}

.photo-topline { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; justify-content: space-between; }
.status-pill, .distance-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, .9);
  border-radius: 999px;
  box-shadow: 0 5px 15px rgba(30, 20, 24, .1);
  font-size: 10px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.status-pill i { width: 6px; height: 6px; background: #47c886; border-radius: 50%; }
.distance-pill { position: absolute; right: 14px; bottom: 13px; color: #55464b; }
.like-button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: white;
  background: rgba(35, 24, 29, .24);
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 50%;
  font-size: 23px;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: .2s;
}
.like-button.is-liked { color: white; background: var(--rose); border-color: var(--rose); }

.profile-content { padding: 21px; }
.profile-title { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.profile-title h3 { margin: 0; font-family: "Prata", Georgia, serif; font-size: 22px; font-weight: 400; letter-spacing: -.5px; }
.location { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
.location::before { content: "⌖"; margin-right: 5px; color: var(--rose); }
.verified { width: 21px; height: 21px; display: grid; place-items: center; color: white; background: #58a9e7; border-radius: 50%; font-size: 12px; font-weight: 800; }

.tags { min-height: 28px; margin: 15px 0 14px; display: flex; gap: 6px; overflow: hidden; }
.tag { flex: 0 0 auto; padding: 7px 9px; color: #74565f; background: #fff1f2; border-radius: 8px; font-size: 9px; font-weight: 800; }
.profile-description {
  min-height: 62px;
  margin: 0;
  overflow: hidden;
  color: #6f6267;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  font-size: 12px;
  line-height: 1.65;
}

.write-button {
  height: 50px;
  margin-top: 19px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: white;
  background: linear-gradient(135deg, #f06b84, #dc4163);
  border-radius: 14px;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 9px 19px rgba(223, 65, 99, .2);
  transition: .2s;
}
.write-button:hover { filter: brightness(.97); transform: translateY(-1px); }
.chat-icon { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(255,255,255,.17); border-radius: 9px; }
.chat-icon svg, .button-arrow { fill: none; stroke: currentColor; stroke-width: 1.8; }
.chat-icon svg { width: 17px; }
.button-arrow { width: 19px; margin-left: auto; }

.empty-state { padding: 50px 0; text-align: center; color: var(--muted); }

.all-profiles-wrap {
  margin-top: 54px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  text-align: center;
}
.all-profiles-wrap p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.all-profiles-button {
  min-width: 330px;
  height: 58px;
  padding: 0 20px 0 26px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  color: white;
  background: linear-gradient(135deg, #f06b84, #dc4163);
  border-radius: 17px;
  box-shadow: 0 14px 30px rgba(223, 65, 99, .24);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
}
.all-profiles-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(223, 65, 99, .32);
}
.all-profiles-button svg {
  width: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.closing {
  margin: 74px auto;
  max-width: 1180px;
  min-height: 185px;
  padding: 42px 55px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 30px;
  background: linear-gradient(135deg, #3a282f, #20171b);
  border-radius: 28px;
  color: white;
  box-shadow: 0 24px 60px rgba(40, 25, 31, .18);
}
.closing-heart { width: 62px; height: 62px; display: grid; place-items: center; background: rgba(255,255,255,.09); border-radius: 20px; color: #ff8399; font-size: 27px; }
.closing h2 { font-size: 30px; letter-spacing: -.7px; }
.closing p { margin: 9px 0 0; color: #c8bbc0; font-size: 13px; }
.closing a { padding: 15px 22px; background: white; border-radius: 13px; color: #34232a; font-size: 12px; font-weight: 800; text-decoration: none; }

footer {
  max-width: 1180px;
  margin: auto;
  padding: 26px 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #92878c;
  border-top: 1px solid #eadfde;
  font-size: 10px;
}
.footer-brand { font-size: 14px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 9px 9px 9px 3px; }

@media (max-width: 980px) {
  .hero { min-height: auto; grid-template-columns: 1fr .8fr; }
  .hero-visual { margin-left: 10px; transform: scale(.86); transform-origin: center; }
  .profiles-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing { margin-inline: 24px; }
  footer { padding-inline: 24px; }
}

@media (max-width: 720px) {
  .site-header { height: 66px; padding-inline: 18px; }
  .brand { font-size: 15px; }
  .brand-mark { width: 31px; height: 31px; }
  .header-meta { font-size: 11px; }

  .hero { padding: 52px 19px 48px; display: block; }
  h1 { font-size: clamp(39px, 12vw, 54px); line-height: 1.1; letter-spacing: -2px; }
  .hero-copy > p { margin-block: 20px 25px; font-size: 15px; line-height: 1.65; }
  .hero-cta { width: 100%; height: 56px; }
  .trust-note { justify-content: center; }
  .hero-visual { height: 360px; margin: 38px 0 -25px; transform: scale(.8); transform-origin: top center; }
  .hero-card-front { left: calc(50% - 180px); }
  .hero-card-back { right: calc(50% - 205px); }
  .message-bubble { right: calc(50% - 208px); }

  .profiles-section { padding: 58px 16px 65px; }
  .section-heading { display: block; }
  .section-heading h2 { font-size: 34px; }
  .section-heading > p { margin-top: 12px; }
  .filters { margin: 27px -16px; padding: 0 16px; }
  .profiles-grid { grid-template-columns: 1fr; gap: 18px; }
  .profile-card { display: grid; grid-template-columns: 45% 55%; border-radius: 20px; }
  .profile-photo { aspect-ratio: auto; min-height: 275px; }
  .profile-content { padding: 17px 15px; display: flex; flex-direction: column; }
  .profile-title h3 { font-size: 19px; }
  .tags { margin: 13px 0 11px; flex-wrap: wrap; overflow: visible; min-height: auto; }
  .tag:nth-child(n+3) { display: none; }
  .profile-description { min-height: auto; font-size: 11px; -webkit-line-clamp: 4; }
  .write-button { height: 47px; margin-top: auto; padding: 0 12px; }
  .all-profiles-wrap { margin-top: 38px; }
  .all-profiles-button { width: 100%; min-width: 0; height: 56px; }
  .photo-topline { top: 10px; left: 10px; right: 10px; }
  .status-pill { padding: 6px 8px; font-size: 8px; }
  .like-button { width: 32px; height: 32px; }
  .distance-pill { right: 10px; bottom: 10px; font-size: 9px; }

  .closing { margin: 48px 16px; padding: 30px 24px; display: flex; flex-wrap: wrap; border-radius: 22px; }
  .closing-heart { display: none; }
  .closing h2 { font-size: 26px; }
  .closing a { width: 100%; text-align: center; }
  footer { padding: 25px 18px 32px; flex-direction: column; text-align: center; }
}

@media (max-width: 390px) {
  .profile-card { grid-template-columns: 43% 57%; }
  .profile-photo { min-height: 260px; }
  .profile-content { padding: 14px 12px; }
  .profile-description { -webkit-line-clamp: 3; }
  .chat-icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
