:root {
  color-scheme: light;
  font-family: "Inter", "Helvetica Neue", Arial, sans-serif;
  background-color: #0b0a10;
  color: #0f021a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 15% 20%, rgba(255, 142, 181, 0.18), transparent 35%),
    radial-gradient(circle at 80% 0%, rgba(255, 91, 131, 0.25), transparent 38%),
    linear-gradient(135deg, #0b0a10 0%, #16081f 35%, #12071a 100%);
  color: #0f021a;
}

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 32px 20px 72px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.brand {
  font-weight: 700;
  color: #ff5d8f;
  letter-spacing: 0.01em;
  font-size: 1.05rem;
}

.nav {
  display: flex;
  gap: 18px;
}

.nav__link {
  color: #f5e7f1;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  opacity: 0.9;
}

.nav__link:hover {
  opacity: 1;
}

main {
  display: flex;
  flex-direction: column;
  gap: 64px;
}

.hero {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 20px;
  padding: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 32px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
}

.hero__text h1 {
  margin: 8px 0 12px;
  font-size: 2.6rem;
  color: #fef2f8;
  letter-spacing: -0.02em;
}

.lead {
  margin: 0 0 18px;
  color: #e7d9e6;
  line-height: 1.6;
  font-size: 1.05rem;
}

.eyebrow {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.82rem;
  color: #ff9bbd;
  font-weight: 700;
}

.actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0 22px;
}

.btn {
  border: none;
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 22px;
  border-radius: 14px;
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

.btn.primary {
  background: linear-gradient(120deg, #ff5d8f, #ff2d76);
  color: #fff;
  box-shadow: 0 12px 30px rgba(255, 93, 143, 0.35);
}

.btn.primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(255, 93, 143, 0.42);
}

.btn.primary:active {
  transform: translateY(0);
}

.hint {
  color: #d7c6d5;
  font-size: 0.95rem;
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 8px;
}

.stat {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 12px;
  padding: 12px 14px;
  color: #f5e7f1;
  text-align: left;
}

.stat strong {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.stat span {
  color: #d1bfd0;
  font-size: 0.95rem;
}

.hero__card {
  position: relative;
  background-image: url("images/img.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 0;
  color: #fef5f9;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  min-height: 360px;
}

/* Show the hero image on the card instead of the demo contents. */
.hero__card > * {
  display: none;
}

.badge {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.82rem;
  margin-bottom: 14px;
  color: #ffe9f2;
  letter-spacing: 0.02em;
}

.pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 14px;
}

.profile {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile .avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #0f021a;
}

.profile.male .avatar {
  background: #c7f1ff;
}

.profile.female .avatar {
  background: #ffd7e8;
}

.label {
  margin: 0;
  font-size: 0.9rem;
  color: #efe0ed;
}

.value {
  margin: 0;
  font-size: 0.95rem;
  color: #fef5f9;
}

.icon {
  color: #ffc2da;
  font-size: 1.4rem;
}

.card-copy {
  margin: 12px 0 0;
  color: #f7e8f3;
  line-height: 1.5;
}

.match-panel {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.match-panel__row {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.btn.subtle {
  background: rgba(255, 255, 255, 0.1);
  color: #fef5f9;
  font-weight: 700;
}

.btn.subtle:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.match-animation {
  margin-top: 12px;
  border-radius: 14px;
  padding: 14px 14px 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-animation__text {
  margin: 10px 0 0;
  color: #fef5f9;
  font-weight: 700;
}

.hearts {
  display: flex;
  gap: 10px;
  font-size: 1.2rem;
  color: #ffc2da;
}

.hearts--big {
  font-size: 1.7rem;
  justify-content: center;
}

.match-modal__body {
  padding: 10px 0 0;
  text-align: center;
}

.match-modal .match-animation,
.match-modal .match-result {
  margin-top: 14px;
}

.match-modal .match-error {
  text-align: center;
}

.hearts span {
  display: inline-block;
  animation: floatHeart 900ms ease-in-out infinite;
  opacity: 0.9;
}

.hearts span:nth-child(2) { animation-delay: 120ms; }
.hearts span:nth-child(3) { animation-delay: 240ms; }
.hearts span:nth-child(4) { animation-delay: 360ms; }
.hearts span:nth-child(5) { animation-delay: 480ms; }

@keyframes floatHeart {
  0% { transform: translateY(0); opacity: 0.75; }
  50% { transform: translateY(-6px) scale(1.06); opacity: 1; }
  100% { transform: translateY(0); opacity: 0.75; }
}

.match-result {
  margin-top: 12px;
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-modal .pair {
  margin-bottom: 10px;
}

.match-result__title {
  margin: 0 0 6px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.01em;
}

.match-result__copy {
  margin: 0;
  color: #fef5f9;
  line-height: 1.5;
}

.muted {
  color: rgba(254, 245, 249, 0.82);
  font-weight: 600;
}

.match-result a {
  color: #ffd7e8;
  text-decoration: none;
  font-weight: 800;
}

.match-result a:hover {
  text-decoration: underline;
}

.match-error {
  margin: 10px 0 0;
  min-height: 1.2em;
  color: #ffe0ec;
  font-weight: 700;
}

.section {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 18px;
  padding: 32px 28px;
  color: #f6e9f2;
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.25);
}

.section__header {
  max-width: 680px;
}

.section h2 {
  margin: 8px 0 10px;
  font-size: 2rem;
}

.section__lead {
  margin: 0 0 18px;
  color: #d7c6d5;
  line-height: 1.6;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.step {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 14px;
  padding: 18px 16px;
}

.step__icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #ff6aa3, #ff3a84);
  color: #fff;
  font-weight: 700;
  margin-bottom: 10px;
}

.step h3 {
  margin: 4px 0 8px;
  color: #fef2f8;
}

.step p {
  margin: 0;
  color: #d7c6d5;
  line-height: 1.55;
}

@media (max-width: 900px) {
  .page {
    padding: 24px 18px 60px;
  }

  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .nav {
    width: 100%;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 28px 22px;
  }

  .hero__text h1 {
    font-size: 2.2rem;
  }

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

@media (max-width: 500px) {
  .hero {
    padding: 22px 16px;
  }

  .actions {
    align-items: stretch;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
  }
}

/* Modal */
dialog.modal {
  width: min(560px, calc(100% - 32px));
  border: 0;
  padding: 0;
  border-radius: 18px;
  background: rgba(18, 7, 26, 0.96);
  color: #fef2f8;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.55);
  overflow: hidden;
}

dialog.modal::backdrop {
  background: rgba(7, 5, 10, 0.72);
  backdrop-filter: blur(6px);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal__title {
  margin: 0;
  font-size: 1.2rem;
  letter-spacing: -0.01em;
}

.modal__close.btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #fef2f8;
  font-weight: 700;
}

.modal__close.btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.modal__copy {
  margin: 0;
  padding: 14px 18px 0;
  color: #e7d9e6;
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 18px 18px;
  gap: 10px;
}

dialog.modal {
  width: min(520px, calc(100% - 40px));
  padding: 22px 20px 18px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(160deg, rgba(255, 109, 160, 0.22), rgba(83, 37, 79, 0.42));
  color: #fef5f9;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
}

dialog.modal::backdrop {
  background: rgba(11, 10, 16, 0.72);
  backdrop-filter: blur(6px);
}

.modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal__title {
  margin: 0;
  color: #fef2f8;
  letter-spacing: -0.02em;
  font-size: 1.5rem;
}

.modal__close.btn {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: #fef5f9;
  box-shadow: none;
}

.modal__close.btn.modal__close--icon {
  width: 42px;
  height: 42px;
  padding: 0;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  line-height: 1;
}

.modal__close.btn.modal__close--icon span {
  transform: translateY(-1px);
}

.modal__close.btn:hover {
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.modal__copy {
  margin: 14px 0 16px;
  color: #f7e8f3;
  line-height: 1.6;
}

.modal__actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal__form {
  display: grid;
  gap: 14px;
}

.field {
  display: grid;
  gap: 6px;
}

.field__label {
  font-weight: 600;
  color: #fef2f8;
}

.field__input {
  width: 100%;
  border-radius: 14px;
  padding: 12px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: #fef5f9;
  outline: none;
}

.field__input::placeholder {
  color: rgba(254, 245, 249, 0.6);
}

.field__input:focus {
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow: 0 0 0 3px rgba(255, 93, 143, 0.22);
}

.field__hint {
  margin: 0;
  font-size: 0.9rem;
  color: #f1dbe9;
  opacity: 0.85;
}

.form-error {
  margin: 0;
  min-height: 1.2em;
  color: #ffd7e8;
  font-weight: 600;
}

/* Instagram popup (initial) */
/* (removed) */
