:root {
  --pink: #ff5f93;
  --pink-soft: #ffe7ef;
  --pink-light: #fff4f8;
  --rose: #ef3f74;
  --ink: #20141a;
  --muted: #756a70;
  --line: #eee3e8;
  --gray: #f7f5f6;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(62, 34, 45, 0.13);
  --shadow-soft: 0 16px 45px rgba(62, 34, 45, 0.09);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --chat-keyboard-offset: 0px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* Global foundation: light, premium, fast-loading static interface. */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(255, 95, 147, 0.13), transparent 32rem),
    linear-gradient(180deg, #fff8fb 0%, #ffffff 38%, #f8f6f7 100%);
  line-height: 1.6;
}

body.chat-lock-scroll {
  overflow: hidden;
  touch-action: none;
}

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

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

button,
input {
  font: inherit;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.section-pad {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.site-header {
  position: sticky;
  top: 14px;
  z-index: 20;
  width: min(1180px, calc(100% - 24px));
  min-height: 68px;
  margin: 14px auto 0;
  padding: 10px 12px 10px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 46px rgba(86, 51, 65, 0.1);
  backdrop-filter: blur(18px);
}

/* Hero media keeps the first viewport emotional while preserving readable actions. */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-logo {
  width: 154px;
  height: 40px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 12px 28px rgba(239, 63, 116, 0.28);
}

.main-nav {
  display: none;
  position: absolute;
  top: 78px;
  left: 0;
  right: 0;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.main-nav.is-open {
  display: grid;
  gap: 8px;
}

.main-nav a,
.header-login {
  padding: 10px 14px;
  color: var(--muted);
  font-weight: 700;
  border-radius: 999px;
  transition: color 0.25s ease, background 0.25s ease;
}

.main-nav a:hover,
.header-login:hover {
  color: var(--rose);
  background: var(--pink-light);
}

.header-login {
  display: none;
}

.header-login.registration-link {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 30px rgba(239, 63, 116, 0.22);
}

.header-login.registration-link:hover {
  color: var(--white);
  background: linear-gradient(135deg, #ff75a4, #e7356a);
  box-shadow: 0 18px 36px rgba(239, 63, 116, 0.3);
  transform: translateY(-1px);
}

.main-nav .mobile-login {
  display: inline-flex;
  justify-content: center;
  margin-top: 6px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 14px 30px rgba(239, 63, 116, 0.22);
}

.main-nav .mobile-login:hover {
  color: var(--white);
  background: linear-gradient(135deg, #ff75a4, #e7356a);
  box-shadow: 0 18px 36px rgba(239, 63, 116, 0.3);
  transform: translateY(-1px);
}

.nav-toggle {
  display: inline-grid;
  gap: 5px;
  width: 46px;
  height: 46px;
  place-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--pink-light);
  cursor: pointer;
}

.nav-toggle span:not(.sr-only) {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
}

.hero {
  display: grid;
  gap: 34px;
  align-items: center;
  padding-top: 54px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.45rem, 8.5vw, 4.85rem);
  line-height: 0.96;
  letter-spacing: 0;
}

h2 {
  margin: 0;
  font-size: clamp(2rem, 6vw, 3.65rem);
  line-height: 1.03;
  letter-spacing: 0;
}

h3 {
  margin: 0;
  font-size: 1.13rem;
  line-height: 1.2;
}

.hero-copy {
  max-width: 610px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 3.3vw, 1.25rem);
}

.hero-actions {
  display: grid;
  gap: 12px;
  margin-top: 32px;
}

.button {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 850;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 38px rgba(239, 63, 116, 0.28);
}

.button-secondary {
  color: var(--white);
  background: linear-gradient(135deg, #ff75a4, #ef3f74);
  box-shadow: 0 16px 34px rgba(239, 63, 116, 0.23);
}

.button-secondary:hover {
  box-shadow: 0 20px 42px rgba(239, 63, 116, 0.31);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.trust-row span {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  font-weight: 700;
}

.hero-media {
  position: relative;
  min-height: 460px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 42%, rgba(32, 20, 26, 0.43));
  z-index: 1;
}

.hero-media > img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
}

.match-card {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border-radius: 22px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
  animation: floatCard 4s ease-in-out infinite;
}

.match-card span {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.match-avatars {
  display: flex;
}

.match-avatars img {
  width: 46px;
  height: 46px;
  border: 3px solid var(--white);
  border-radius: 50%;
  object-fit: cover;
}

.match-avatars img + img {
  margin-left: -14px;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 30px;
}

.section-heading p:not(.eyebrow) {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.06rem;
}

.profile-grid,
.feature-grid,
.testimonial-grid {
  display: grid;
  gap: 18px;
}

.profile-card,
.feature-card,
.testimonial,
.faq-list {
  border: 1px solid rgba(238, 227, 232, 0.9);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
}

.profile-card {
  overflow: hidden;
  border-radius: 26px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
}

.profile-card > img {
  width: 100%;
  aspect-ratio: 4 / 4.35;
  object-fit: cover;
}

.profile-info,
.profile-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-info {
  padding: 16px 16px 8px;
}

.profile-info p,
.profile-meta {
  color: var(--muted);
}

.profile-info p {
  margin: 4px 0 0;
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #158f4e;
  font-size: 0.85rem;
  font-weight: 800;
}

.status span,
.chat-header p span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.13);
}

.profile-meta {
  padding: 0 16px 18px;
  font-size: 0.92rem;
}

.features {
  width: 100%;
  max-width: none;
  padding: 76px max(16px, calc((100% - 1180px) / 2));
  background: linear-gradient(135deg, rgba(255, 231, 239, 0.68), rgba(247, 245, 246, 0.8));
}

.feature-card {
  min-height: 218px;
  padding: 24px;
  border-radius: 24px;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  margin-bottom: 20px;
  border-radius: 17px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-size: 1.3rem;
  font-weight: 900;
  box-shadow: 0 14px 30px rgba(239, 63, 116, 0.25);
}

.feature-card p {
  margin: 12px 0 0;
  color: var(--muted);
}

.testimonial {
  margin: 0;
  padding: 24px;
  border-radius: 24px;
}

.testimonial blockquote {
  margin: 0;
  color: #4a3d43;
  font-size: 1.04rem;
}

.testimonial figcaption {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  color: var(--muted);
}

.testimonial img {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  object-fit: cover;
}

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

.faq-list {
  border-radius: 26px;
  overflow: hidden;
}

details + details {
  border-top: 1px solid var(--line);
}

summary {
  cursor: pointer;
  padding: 20px;
  font-weight: 850;
  list-style: none;
}

summary::-webkit-details-marker {
  display: none;
}

details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.site-footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 96px;
  display: grid;
  gap: 24px;
  color: var(--muted);
}

.footer-brand {
  color: var(--ink);
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}

.site-footer a:hover {
  color: var(--rose);
}

.copyright {
  margin: 0;
  font-size: 0.92rem;
}

.chat-widget {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  transform: translate3d(0, var(--chat-keyboard-offset), 0);
}

/* Floating messenger UI, ready for later backend wiring. */
.chat-launcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 16px 8px 8px;
  border: 0;
  border-radius: 999px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  box-shadow: 0 18px 48px rgba(239, 63, 116, 0.35);
  cursor: pointer;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.chat-launcher:hover {
  transform: translateY(-3px);
}

.chat-launcher-avatar {
  position: relative;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.chat-launcher-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #22c55e;
}

.chat-launcher-icon {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: var(--white);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.chat-launcher-text {
  font-weight: 850;
}

.chat-unread-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  display: none;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  place-items: center;
  border: 2px solid var(--white);
  border-radius: 999px;
  color: var(--white);
  background: #ef233c;
  box-shadow: 0 10px 24px rgba(239, 35, 60, 0.42);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1;
}

.chat-widget.has-unread .chat-unread-badge {
  display: grid;
}

.chat-widget.has-unread .chat-launcher {
  animation: chatUnreadPulse 1.05s ease-in-out infinite;
}

.chat-widget.needs-launcher-click .chat-launcher {
  animation: chatUnreadPulse 1.05s ease-in-out infinite;
}

.chat-window {
  position: absolute;
  right: 0;
  bottom: 74px;
  width: min(390px, calc(100vw - 32px));
  height: min(560px, calc(100vh - 112px));
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  overflow: hidden;
  border: 1px solid rgba(238, 227, 232, 0.95);
  border-radius: 28px;
  background: var(--white);
  box-shadow: 0 28px 90px rgba(62, 34, 45, 0.22);
  opacity: 0;
  transform: translateY(18px) scale(0.96);
  pointer-events: none;
  transform-origin: bottom right;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.chat-widget.is-open .chat-window {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.chat-widget.is-open .chat-launcher {
  opacity: 0;
  pointer-events: none;
}

.chat-window.is-list {
  grid-template-rows: 1fr;
}

.chat-window.is-list > .chat-header,
.chat-window.is-list > .chat-register-link,
.chat-window.is-list > .chat-messages,
.chat-window.is-list > .chat-form {
  display: none;
}

.chat-window.is-conversation > .chat-list-view {
  display: none;
}

.chat-list-view {
  min-height: 0;
  display: grid;
  height: 100%;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: linear-gradient(180deg, #fff, #fff8fb);
}

.chat-list-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(239, 63, 116, 0.12);
}

.chat-list-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1.2;
}

.chat-list-header p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.chat-list-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.chat-list-minimize,
.chat-list-close,
.chat-back {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.chat-list-minimize,
.chat-list-close {
  color: var(--rose);
  background: var(--pink-light);
  font-size: 1.4rem;
  line-height: 1;
}

.chat-list-minimize {
  font-size: 1.25rem;
}

.chat-contact-list {
  display: grid;
  align-content: start;
  grid-auto-rows: max-content;
  gap: 8px;
  min-height: 0;
  max-height: 100%;
  padding: 12px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.chat-contact {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  min-width: 0;
  min-height: 72px;
  width: 100%;
  flex-shrink: 0;
  overflow: hidden;
  border: 0;
  border-radius: 18px;
  padding: 10px;
  color: var(--ink);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.chat-contact:hover,
.chat-contact.is-active {
  background: #fff;
  box-shadow: 0 14px 34px rgba(62, 34, 45, 0.1);
  transform: translateY(-1px);
}

.chat-contact.has-unread {
  background: #fff7fa;
  animation: contactUnreadPulse 1.15s ease-in-out infinite;
}

.chat-contact-avatar {
  position: relative;
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
}

.chat-contact-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
}

.chat-contact-avatar::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 3px;
  width: 12px;
  height: 12px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: #22c55e;
}

.chat-contact-main {
  position: relative;
  min-width: 0;
}

.chat-contact-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.chat-contact-name {
  font-weight: 900;
}

.chat-contact-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #159447;
  font-size: 0.78rem;
  font-weight: 800;
}

.chat-contact-status::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.chat-contact-preview {
  display: block;
  max-width: 100%;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-contact-unread {
  position: absolute;
  right: 0;
  bottom: 2px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ef233c;
  box-shadow: 0 0 0 4px rgba(239, 35, 60, 0.12);
}

.chat-back {
  color: var(--white);
  background: rgba(255, 255, 255, 0.18);
  font-size: 1.7rem;
  line-height: 1;
}

.chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--white);
  background: linear-gradient(135deg, #ff7aa8, #ef3f74);
}

.chat-header img {
  width: 48px;
  height: 48px;
  border: 3px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  object-fit: cover;
}

.chat-header div {
  min-width: 0;
  flex: 1;
}

.chat-header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.2;
}

.chat-header p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.86rem;
}

.chat-minimize,
.chat-close {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  color: var(--white);
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  font-size: 1.45rem;
  line-height: 1;
}

.chat-minimize {
  font-size: 1.35rem;
}

.chat-register-link {
  display: block;
  padding: 10px 16px;
  color: var(--rose);
  background: linear-gradient(135deg, #fff5f9, #ffe3ed);
  border-bottom: 1px solid rgba(239, 63, 116, 0.14);
  font-size: 0.88rem;
  font-weight: 850;
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease;
}

.chat-register-link:hover {
  color: #c91f55;
  background: linear-gradient(135deg, #ffeaf2, #ffd5e3);
}

.chat-messages {
  min-height: 0;
  padding: 18px 14px;
  overflow-y: auto;
  background:
    linear-gradient(rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.86)),
    radial-gradient(circle at 0 0, rgba(255, 95, 147, 0.13), transparent 22rem);
  scroll-behavior: smooth;
}

.message-row {
  display: flex;
  margin-bottom: 12px;
  animation: messageIn 0.25s ease both;
}

.message-row.outgoing {
  justify-content: flex-end;
}

.message-row.system-row {
  justify-content: center;
  margin: 16px 0;
}

.bubble {
  max-width: 78%;
  padding: 11px 13px 8px;
  border-radius: 18px 18px 18px 6px;
  background: #f3eff1;
  color: #33272d;
  box-shadow: 0 8px 20px rgba(62, 34, 45, 0.06);
}

.outgoing .bubble {
  color: var(--white);
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, var(--pink), var(--rose));
}

.bubble p {
  margin: 0;
}

.timestamp {
  display: block;
  margin-top: 4px;
  color: rgba(117, 106, 112, 0.78);
  font-size: 0.72rem;
  text-align: right;
}

.outgoing .timestamp {
  color: rgba(255, 255, 255, 0.78);
}

.system-bubble {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 88%;
  padding: 11px 14px;
  border: 1px solid rgba(239, 63, 116, 0.28);
  border-radius: 999px;
  color: var(--rose);
  background: linear-gradient(135deg, #fff0f6, #ffe1ec);
  font-size: 0.84rem;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 10px 24px rgba(62, 34, 45, 0.07);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.system-bubble[href] {
  cursor: pointer;
}

.system-bubble[href]:hover {
  border-color: rgba(239, 63, 116, 0.5);
  box-shadow: 0 16px 34px rgba(239, 63, 116, 0.18);
  transform: translateY(-2px);
}

.typing {
  display: inline-flex;
  width: auto;
  align-items: center;
  gap: 4px;
  padding: 13px 14px;
}

.typing-label {
  margin-right: 5px;
  color: #7b7076;
  font-size: 0.86rem;
  font-weight: 750;
}

.typing span {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 4px;
  border-radius: 50%;
  background: #b9aeb4;
  animation: typing 1s infinite ease-in-out;
}

.typing span:nth-child(2) {
  animation-delay: 0.16s;
}

.typing span:nth-child(3) {
  animation-delay: 0.32s;
}

.chat-form {
  display: flex;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

.chat-form input {
  min-width: 0;
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 13px 15px;
  color: var(--ink);
  background: #fbf9fa;
  outline: none;
}

.chat-form input:focus {
  border-color: rgba(255, 95, 147, 0.6);
  box-shadow: 0 0 0 4px rgba(255, 95, 147, 0.12);
}

.chat-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  color: var(--white);
  background: linear-gradient(135deg, var(--pink), var(--rose));
  font-weight: 850;
  cursor: pointer;
}

.chat-form input:disabled,
.chat-form button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
}

[data-animate] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

@keyframes messageIn {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes chatUnreadPulse {
  0%,
  100% {
    background: linear-gradient(135deg, var(--pink), var(--rose));
    box-shadow: 0 18px 48px rgba(239, 63, 116, 0.35);
    transform: translateY(0) scale(1);
  }
  45% {
    background: linear-gradient(135deg, #ff2f6d, #ef233c);
    box-shadow: 0 20px 52px rgba(239, 35, 60, 0.58), 0 0 0 9px rgba(255, 47, 109, 0.16);
    transform: translateY(-2px) scale(1.04);
  }
  70% {
    background: linear-gradient(135deg, #ff6fa3, #ff2f6d);
    box-shadow: 0 20px 52px rgba(255, 47, 109, 0.48), 0 0 0 5px rgba(239, 35, 60, 0.13);
  }
}

@keyframes contactUnreadPulse {
  0%,
  100% {
    box-shadow: 0 12px 30px rgba(239, 63, 116, 0.12), inset 0 0 0 1px rgba(239, 63, 116, 0.08);
    transform: translateY(0) scale(1);
  }
  45% {
    background: #fff0f6;
    box-shadow: 0 16px 36px rgba(239, 35, 60, 0.24), inset 0 0 0 1px rgba(239, 35, 60, 0.24);
    transform: translateY(-1px) scale(1.01);
  }
  75% {
    background: #ffe6f0;
    box-shadow: 0 14px 32px rgba(255, 47, 109, 0.2), inset 0 0 0 1px rgba(255, 47, 109, 0.18);
  }
}

@keyframes typing {
  0%,
  80%,
  100% {
    opacity: 0.32;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px);
  }
}

@media (min-width: 560px) {
  .hero-actions {
    display: flex;
    align-items: center;
  }

  .button {
    width: auto;
  }

  .profile-grid,
  .feature-grid,
  .testimonial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 860px) {
  .site-header {
    padding-left: 18px;
  }

  .nav-toggle {
    display: none;
  }

  .main-nav {
    position: static;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 0;
    background: transparent;
    box-shadow: none;
  }

  .header-login {
    display: inline-flex;
  }

  .main-nav .mobile-login {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    min-height: calc(100vh - 96px);
    padding-top: 36px;
  }

  .profile-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .copyright {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .site-header,
  .match-card,
  .profile-card,
  .feature-card,
  .testimonial,
  .faq-list {
    backdrop-filter: none;
  }

  .site-header {
    box-shadow: 0 10px 26px rgba(86, 51, 65, 0.08);
    background: rgba(255, 255, 255, 0.94);
  }

  .hero-media {
    box-shadow: 0 16px 38px rgba(62, 34, 45, 0.12);
  }

  .match-card {
    animation: none;
    box-shadow: 0 10px 24px rgba(62, 34, 45, 0.08);
  }

  .profile-card,
  .feature-card,
  .testimonial,
  .faq-list {
    box-shadow: 0 10px 24px rgba(62, 34, 45, 0.07);
  }

  .profile-card,
  [data-animate] {
    transition-duration: 0.25s;
  }

  .profile-card:hover,
  .button:hover,
  .chat-launcher:hover,
  .system-bubble[href]:hover {
    transform: none;
  }

  .chat-window {
    box-shadow: 0 18px 48px rgba(62, 34, 45, 0.18);
  }

  .message-row {
    animation-duration: 0.16s;
  }
}

@media (max-width: 420px) {
  .section-pad {
    width: min(100% - 24px, 1180px);
  }

  .hero-media,
  .hero-media > img {
    min-height: 390px;
  }

  .chat-widget {
    right: max(10px, env(safe-area-inset-right));
    bottom: max(10px, env(safe-area-inset-bottom));
    left: max(10px, env(safe-area-inset-left));
    transition: transform 0.18s ease;
  }

  body.chat-keyboard-active .chat-widget {
    transition: none;
    will-change: transform;
  }

  .chat-window {
    right: 0;
    left: 0;
    bottom: 68px;
    width: 100%;
    height: min(540px, calc(100vh - 92px));
    max-height: calc(100vh - 92px);
    border-radius: 24px;
    transform-origin: bottom center;
  }

  .chat-header {
    padding: 13px 14px;
  }

  .chat-header img {
    width: 44px;
    height: 44px;
  }

  .chat-messages {
    padding: 14px 10px;
  }

  .chat-form {
    gap: 8px;
    padding: 10px;
    align-items: center;
  }

  .chat-form input {
    padding: 12px 13px;
    font-size: 0.95rem;
  }

  .chat-form button {
    min-height: 44px;
    padding: 0 12px;
    font-size: 0.92rem;
  }

  .bubble {
    max-width: 84%;
  }

  .system-bubble {
    max-width: 94%;
    border-radius: 20px;
  }
}

@media (max-width: 360px) {
  .chat-widget {
    right: 8px;
    bottom: 8px;
    left: 8px;
  }

  .chat-window {
    bottom: 64px;
    height: min(520px, calc(100vh - 82px));
    max-height: calc(100vh - 82px);
    border-radius: 22px;
  }

  .chat-form {
    gap: 6px;
  }

  .chat-form input {
    padding-inline: 11px;
  }

  .chat-form button {
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
