/* MeetMate лендинг — стиль в духе mimoletbot.ru (шапка .nav без изменений по структуре) */
:root {
  --mm-bg-deep: #07060c;
  --mm-surface: rgba(22, 19, 34, 0.78);
  --mm-surface-2: rgba(255, 255, 255, 0.04);
  --mm-border: rgba(255, 255, 255, 0.1);
  --mm-glow-1: rgba(176, 85, 255, 0.42);
  --mm-glow-2: rgba(255, 77, 139, 0.32);
  --mm-text: #f7f4ff;
  --mm-muted: rgba(247, 244, 255, 0.7);
  --mm-radius-lg: 28px;
  --mm-radius-md: 18px;
  --mm-shadow: 0 28px 90px rgba(0, 0, 0, 0.55);
  --mm-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --mm-tint: rgba(255, 255, 255, 0.03);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--mm-text);
  background: var(--mm-bg-deep);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
}

body::before {
  background:
    radial-gradient(ellipse 130% 85% at 12% -5%, var(--mm-glow-1), transparent 55%),
    radial-gradient(ellipse 100% 75% at 92% 8%, var(--mm-glow-2), transparent 50%),
    radial-gradient(ellipse 65% 55% at 48% 105%, rgba(99, 102, 241, 0.14), transparent 55%);
  animation: mm-bg-float 24s ease-in-out infinite alternate;
}

body::after {
  background: radial-gradient(circle at 50% 40%, transparent 0%, rgba(7, 6, 12, 0.92) 68%);
  z-index: -1;
}

@keyframes mm-bg-float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate3d(-1.5%, 1.2%, 0) scale(1.03);
    opacity: 0.93;
  }
}

@media (prefers-reduced-motion: reduce) {
  body::before {
    animation: none;
  }
  html {
    scroll-behavior: auto;
  }
  .mm-scroll-arrow {
    animation: none !important;
  }
}

.container {
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(14px, 3.5vw, 24px) clamp(12px, 3vw, 22px) clamp(36px, 7vw, 64px);
}

/* ========== Шапка (не меняем разметку) ========== */
.nav {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: clamp(18px, 4vw, 32px);
  padding: 12px 18px;
  border-radius: var(--mm-radius-lg);
  background: var(--mm-surface);
  border: 1px solid var(--mm-border);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--mm-shadow);
}

.brand {
  font-weight: 900;
  letter-spacing: -0.02em;
  font-size: clamp(1.15rem, 2.5vw, 1.45rem);
  background: linear-gradient(120deg, #fff 0%, #e8d4ff 40%, #ffb8d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links a {
  color: var(--mm-muted);
  text-decoration: none;
  font-size: clamp(12px, 2.8vw, 14px);
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition:
    color 0.25s var(--mm-ease-out),
    background 0.25s var(--mm-ease-out),
    border-color 0.25s var(--mm-ease-out),
    transform 0.2s var(--mm-ease-out);
}

.nav-links a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}

.nav-links a:active {
  transform: translateY(0);
}

/* ========== Основной контент (mimolet-подобная вёрстка) ========== */
.mm-main {
  display: flex;
  flex-direction: column;
  gap: clamp(28px, 5vw, 48px);
}

/* Hero */
.mm-hero {
  text-align: center;
  padding: clamp(8px, 2vw, 20px) 0 clamp(12px, 3vw, 28px);
}

.mm-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(24px, 5vw, 40px);
  align-items: center;
}

@media (min-width: 880px) {
  .mm-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    text-align: left;
  }

  .mm-hero-copy {
    text-align: left;
  }

  .mm-hero-actions {
    justify-content: flex-start;
  }
}

.mm-eyebrow {
  display: inline-block;
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.mm-hero-title {
  margin: 0 0 16px;
  max-width: 100%;
  overflow-wrap: break-word;
  font-size: clamp(2.1rem, 7vw, 3.6rem);
  font-weight: 900;
  line-height: 1.14;
  letter-spacing: -0.03em;
}

.mm-hero-title-line {
  display: block;
  color: #fff;
  text-shadow: 0 4px 40px rgba(176, 85, 255, 0.25);
  line-height: 1.2;
  padding-bottom: 0.12em;
  overflow: visible;
}

.mm-hero-title-line--accent {
  background: linear-gradient(105deg, #fff 0%, #e6c7ff 35%, #ff9ec5 55%, #ffb8d9 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  /* снижает обрезку хвостов букв (у, р, д…) при background-clip: text */
  -webkit-text-fill-color: transparent;
  padding-top: 0.04em;
  padding-bottom: 0.18em;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

@media (min-width: 400px) {
  .mm-hero-title-line--accent {
    white-space: nowrap;
  }
}

.mm-hero-lead {
  margin: 0 auto;
  max-width: 38rem;
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  line-height: 1.55;
  color: var(--mm-muted);
}

@media (min-width: 880px) {
  .mm-hero-lead {
    margin: 0;
    max-width: 32rem;
  }
}

.mm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-top: 24px;
}

.mm-hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 220px;
}

.mm-orbit {
  position: relative;
  width: min(280px, 70vw);
  height: min(280px, 70vw);
}

.mm-orbit-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mm-orbit-ring--1 {
  animation: mm-spin 28s linear infinite;
  border-color: rgba(176, 85, 255, 0.35);
}

.mm-orbit-ring--2 {
  inset: 12%;
  animation: mm-spin 20s linear infinite reverse;
  border-color: rgba(255, 77, 139, 0.25);
  border-style: dashed;
}

@keyframes mm-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .mm-orbit-ring--1,
  .mm-orbit-ring--2 {
    animation: none;
  }
}

.mm-orbit-core {
  position: absolute;
  inset: 22%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  background: linear-gradient(145deg, rgba(176, 85, 255, 0.45), rgba(255, 77, 139, 0.35));
  box-shadow:
    0 0 60px rgba(176, 85, 255, 0.35),
    inset 0 0 40px rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mm-orbit-icon {
  display: flex;
  width: clamp(2.75rem, 9vw, 4rem);
  height: clamp(2.75rem, 9vw, 4rem);
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.mm-orbit-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  flex-shrink: 0;
  transform: none;
  filter: drop-shadow(0 4px 20px rgba(176, 85, 255, 0.45));
}

.mm-icons-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.mm-scroll-hint {
  margin: clamp(20px, 4vw, 36px) 0 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
}

.mm-scroll-arrow {
  display: inline-block;
  animation: mm-bounce 1.8s ease-in-out infinite;
}

@keyframes mm-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.6;
  }
  50% {
    transform: translateY(6px);
    opacity: 1;
  }
}

/* Секции */
.mm-section {
  padding: clamp(22px, 4vw, 36px);
  border-radius: var(--mm-radius-lg);
  border: 1px solid var(--mm-border);
  background: var(--mm-surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: var(--mm-shadow);
}

.mm-section--tint {
  background: linear-gradient(165deg, rgba(22, 19, 34, 0.88), rgba(255, 255, 255, 0.04));
}

.mm-section--cta {
  text-align: center;
  background: linear-gradient(165deg, rgba(176, 85, 255, 0.18), rgba(22, 19, 34, 0.9));
  border-color: rgba(176, 85, 255, 0.25);
}

.mm-section-head {
  margin-bottom: clamp(18px, 3vw, 26px);
}

.mm-h2 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: #fff;
}

.mm-h2--center {
  text-align: center;
}

.mm-h2--inline {
  margin-bottom: 10px;
}

.mm-sub {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
  line-height: 1.55;
  color: var(--mm-muted);
  max-width: 46rem;
}

.mm-center {
  display: flex;
  justify-content: center;
  margin-top: clamp(18px, 3vw, 26px);
}

/* Сетка «Почему» */
.mm-feature-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

@media (min-width: 560px) {
  .mm-feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .mm-feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
  }

  .mm-feature:last-child {
    grid-column: span 1;
  }
}

.mm-feature {
  padding: clamp(16px, 3vw, 22px);
  border-radius: var(--mm-radius-md);
  background: var(--mm-tint);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition:
    transform 0.25s var(--mm-ease-out),
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

.mm-feature:hover {
  transform: translateY(-3px);
  border-color: rgba(176, 85, 255, 0.35);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

.mm-feature-icon {
  width: 2.75rem;
  height: 2.75rem;
  margin-bottom: 12px;
}

.mm-feature-icon svg {
  display: block;
  width: 100%;
  height: 100%;
}

.mm-feature-title {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.mm-feature-text {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mm-muted);
}

/* Безопасность */
.mm-safe {
  display: flex;
  gap: clamp(14px, 3vw, 22px);
  align-items: flex-start;
}

.mm-safe-icon {
  flex-shrink: 0;
  width: clamp(2.75rem, 6vw, 3.35rem);
  height: clamp(2.75rem, 6vw, 3.35rem);
}

.mm-safe-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 6px 22px rgba(176, 85, 255, 0.25));
}

.mm-safe-body {
  min-width: 0;
}

.mm-safe-text {
  margin: 0;
  font-size: clamp(0.95rem, 2.4vw, 1.05rem);
  line-height: 1.6;
  color: var(--mm-muted);
}

/* Пиллы интерфейса */
.mm-ui-pills {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mm-ui-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.mm-pill-ic {
  display: flex;
  width: 1.15rem;
  height: 1.15rem;
  flex-shrink: 0;
  opacity: 0.95;
}

.mm-pill-ic svg {
  width: 100%;
  height: 100%;
}

.mm-ui-gallery-block {
  margin-top: clamp(18px, 3vw, 26px);
}

.mm-ui-gallery-block--chats {
  margin-top: clamp(26px, 4.5vw, 40px);
  padding-top: clamp(20px, 3.5vw, 28px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mm-ui-gallery-block-title {
  margin: 0 0 6px;
  font-size: clamp(1.05rem, 3vw, 1.28rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: #fff;
}

.mm-ui-gallery-block-desc {
  margin: 0 0 0;
  font-size: clamp(0.88rem, 2.2vw, 0.98rem);
  line-height: 1.5;
  color: rgba(247, 244, 255, 0.62);
  max-width: 42rem;
}

.mm-ui-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2.5vw, 20px);
  margin-top: clamp(12px, 2.2vw, 18px);
}

.mm-ui-gallery--chats-single {
  max-width: min(380px, 100%);
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 720px) {
  .mm-ui-gallery {
    grid-template-columns: repeat(3, 1fr);
    align-items: start;
  }

  .mm-ui-gallery--chats-single {
    grid-template-columns: 1fr;
    max-width: min(380px, 100%);
    margin-left: auto;
    margin-right: auto;
  }
}

.mm-ui-shot {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mm-ui-shot-frame {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
  transition:
    transform 0.45s var(--mm-ease-out),
    border-color 0.35s ease,
    box-shadow 0.45s ease;
}

.mm-ui-shot-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(ellipse 80% 70% at 50% 0%, rgba(176, 85, 255, 0.35), transparent 65%);
  transition: opacity 0.45s ease;
}

.mm-ui-shot:hover .mm-ui-shot-frame,
.mm-ui-shot:focus-within .mm-ui-shot-frame {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(176, 85, 255, 0.45);
  box-shadow:
    0 28px 70px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(255, 77, 139, 0.12),
    0 20px 60px rgba(176, 85, 255, 0.22);
}

.mm-ui-shot:hover .mm-ui-shot-frame::after,
.mm-ui-shot:focus-within .mm-ui-shot-frame::after {
  opacity: 1;
}

.mm-ui-shot img {
  display: block;
  width: 100%;
  height: auto;
  transform: scale(1);
  transition: transform 0.55s var(--mm-ease-out);
  will-change: transform;
}

.mm-ui-shot:hover img,
.mm-ui-shot:focus-within img {
  transform: scale(1.045);
}

.mm-ui-shot figcaption {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.55);
  letter-spacing: 0.01em;
}

@media (prefers-reduced-motion: reduce) {
  .mm-ui-shot:hover .mm-ui-shot-frame,
  .mm-ui-shot:focus-within .mm-ui-shot-frame,
  .mm-ui-shot:hover img,
  .mm-ui-shot:focus-within img {
    transform: none;
    transition: none;
  }

  .mm-ui-shot-frame::after {
    transition: none;
  }
}

/* Финальный блок */
.mm-final-lead {
  margin: 10px auto 0;
  max-width: 32rem;
  text-align: center;
  font-size: clamp(0.95rem, 2.4vw, 1.08rem);
  color: var(--mm-muted);
  line-height: 1.55;
}

/* Кнопки */
.mm-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  padding: 14px 22px;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  border: none;
  text-decoration: none;
  font-family: inherit;
  transition:
    transform 0.2s var(--mm-ease-out),
    box-shadow 0.25s ease,
    filter 0.2s ease;
}

.mm-btn--primary {
  color: #fff;
  background: linear-gradient(135deg, #b055ff, #ff4d8b);
  box-shadow: 0 12px 36px rgba(176, 85, 255, 0.38);
}

.mm-btn--primary:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.mm-btn--ghost {
  color: rgba(255, 255, 255, 0.92);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.mm-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

.mm-btn--wide {
  min-width: min(100%, 280px);
}

.mm-btn--xl {
  padding: 16px 28px;
  font-size: 15px;
}

/* Футер */
.mm-footer {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding-top: 8px;
}

.mm-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.mm-footer-links a {
  color: rgba(255, 255, 255, 0.55);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  transition: color 0.2s ease;
}

.mm-footer-links a:hover {
  color: #fff;
}

.mm-footer-copy {
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.38);
}

@media (max-width: 640px) {
  .nav {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .mm-safe {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .mm-footer-links {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .mm-footer-links a {
    text-align: center;
    padding: 12px 14px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 14px;
  }
}

@media (max-width: 520px) {
  .container {
    padding-left: 14px;
    padding-right: 14px;
  }

  .nav {
    padding: 10px 14px;
  }

  .mm-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .mm-hero-actions .mm-btn {
    width: 100%;
    justify-content: center;
  }

  .mm-btn--wide {
    min-width: 0;
    width: 100%;
  }

  .mm-hero-visual {
    min-height: 180px;
  }
}
