/* CosmoMatch · промо 03 — северное сияние: mesh-градиенты и стекло */

:root {
  --ground: #0C1130;
  --ink: #EAF0FF;
  --accent: #7F8DFF;
  --secondary: #4ECDC4;
  --glow: #FF6FA8;
  --glass: rgba(234, 240, 255, 0.06);
  --glass-line: rgba(234, 240, 255, 0.16);
}

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

html { overflow-x: hidden; }

body {
  background: var(--ground);
  color: var(--ink);
  font-family: 'Onest', 'Manrope', Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ---------- mesh-атмосфера ---------- */

.mesh {
  position: fixed;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.mesh__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}

.mesh__blob--a {
  width: 52vw; height: 52vw;
  left: -8vw; top: -10vh;
  background: radial-gradient(circle at 35% 35%, #7F8DFF, rgba(127, 141, 255, 0) 68%);
  animation: drift-a 26s ease-in-out infinite alternate;
}

.mesh__blob--b {
  width: 46vw; height: 46vw;
  right: -10vw; top: 6vh;
  background: radial-gradient(circle at 60% 40%, #FF6FA8, rgba(255, 111, 168, 0) 66%);
  animation: drift-b 32s ease-in-out infinite alternate;
}

.mesh__blob--c {
  width: 44vw; height: 44vw;
  left: 22vw; bottom: -18vh;
  background: radial-gradient(circle at 50% 50%, #4ECDC4, rgba(78, 205, 196, 0) 64%);
  animation: drift-c 28s ease-in-out infinite alternate;
}

.mesh__blob--d {
  width: 30vw; height: 30vw;
  right: 18vw; bottom: 4vh;
  background: radial-gradient(circle at 50% 50%, #7F8DFF, rgba(127, 141, 255, 0) 70%);
  opacity: 0.34;
  animation: drift-b 36s ease-in-out infinite alternate-reverse;
}

@keyframes drift-a {
  from { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  to   { transform: translate3d(7vw, 5vh, 0) rotate(18deg) scale(1.12); }
}

@keyframes drift-b {
  from { transform: translate3d(0, 0, 0) scale(1.05); }
  to   { transform: translate3d(-6vw, 8vh, 0) scale(0.9); }
}

@keyframes drift-c {
  from { transform: translate3d(0, 0, 0) rotate(-10deg); }
  to   { transform: translate3d(5vw, -6vh, 0) rotate(14deg); }
}

/* ---------- каркас ---------- */

.frame {
  position: relative;
  z-index: 1;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 40px) 40px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.logo { display: flex; align-items: center; gap: 12px; }

.logo__mark { width: 46px; height: 46px; flex: none; }

.orbit__glow { fill: var(--glow); opacity: 0.35; }
.orbit__dot { fill: #EAF0FF; }

.wordmark {
  font-family: 'Manrope', 'Onest', Arial, sans-serif;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0.01em;
}

.wordmark__cosmo { font-weight: 400; opacity: 0.9; }
.wordmark__match { font-weight: 700; }

.top__num {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  color: var(--secondary);
}

/* ---------- стекло ---------- */

.glass {
  position: relative;
  background: var(--glass);
  border: 1px solid var(--glass-line);
  border-radius: 22px;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 24px 60px rgba(6, 9, 30, 0.45);
  overflow: hidden;
}

/* блик на стеклянном крае */
.glass::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    115deg,
    rgba(234, 240, 255, 0) 20%,
    rgba(234, 240, 255, 0.65) 44%,
    rgba(255, 111, 168, 0.35) 56%,
    rgba(234, 240, 255, 0) 80%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask-composite: exclude;
  pointer-events: none;
  animation: sheen 7s ease-in-out infinite;
}

@keyframes sheen {
  0%, 62% { transform: translateX(-14%); opacity: 0.2; }
  78% { opacity: 0.85; }
  100% { transform: translateX(14%); opacity: 0.2; }
}

/* ---------- hero ---------- */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 5vw, 64px);
  align-items: center;
  min-height: calc(100svh - 92px);
  padding: 4vh 0 10vh;
}

.kicker {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--secondary);
  margin-bottom: 20px;
}

.headline {
  font-family: 'Manrope', 'Onest', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 5.4vw, 4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}

.sub {
  margin-top: 22px;
  max-width: 46ch;
  color: rgba(234, 240, 255, 0.86);
}

.cta-wrap { margin-top: 34px; }

.cta {
  display: inline-block;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.04em;
  color: #0C1130;
  background: linear-gradient(120deg, #EAF0FF, #B9C6FF 55%, #9FE8E0);
  text-decoration: none;
  padding: 16px 34px;
  border-radius: 999px;
  box-shadow: 0 14px 38px rgba(127, 141, 255, 0.35);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta:hover, .cta:focus-visible {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(255, 111, 168, 0.35);
}

/* карточка-«совпадение» с 3D tilt */

.tilt-zone { perspective: 1100px; }

.match-card {
  padding: 26px 28px 22px;
  transform-style: preserve-3d;
  transition: transform 0.25s ease-out;
  will-change: transform;
}

.match-card__sky svg {
  width: 100%;
  height: auto;
  display: block;
}

.match-card__list {
  list-style: none;
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.match-card__list li {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pip { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.pip--b { background: var(--secondary); }
.pip--c { background: var(--glow); }

.match-card__foot {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--glass-line);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: lowercase;
  color: rgba(234, 240, 255, 0.65);
}

/* ---------- feature-плитки ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 2.6vw, 26px);
  padding-bottom: clamp(60px, 12vh, 120px);
}

.feature { padding: 26px 26px 30px; transition: transform 0.35s ease; }

.feature:hover { transform: translateY(-6px); }

.feature__t {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.feature__d { color: rgba(234, 240, 255, 0.84); font-size: 15.5px; }

/* ---------- блоб-секция ---------- */

.blob-section { position: relative; padding: clamp(40px, 10vh, 90px) 0; }

.blob {
  position: absolute;
  inset: 0 8%;
  background: linear-gradient(120deg, rgba(127, 141, 255, 0.5), rgba(255, 111, 168, 0.4) 45%, rgba(78, 205, 196, 0.45));
  border-radius: 42% 58% 55% 45% / 52% 46% 54% 48%;
  filter: blur(26px);
  animation: blob-morph 18s ease-in-out infinite alternate;
}

@keyframes blob-morph {
  from { transform: translate3d(-2%, 0, 0) rotate(-3deg) scale(1); border-radius: 42% 58% 55% 45% / 52% 46% 54% 48%; }
  to   { transform: translate3d(2%, -3%, 0) rotate(4deg) scale(1.06); border-radius: 58% 42% 46% 54% / 44% 56% 48% 52%; }
}

.quote {
  position: relative;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(30px, 6vw, 56px);
  text-align: center;
}

.quote p {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem);
  line-height: 1.45;
}

/* ---------- note ---------- */

.note {
  text-align: center;
  padding: clamp(30px, 6vh, 60px) 0 10px;
  color: rgba(234, 240, 255, 0.78);
  font-size: 15px;
  letter-spacing: 0.06em;
}

/* ---------- футер ---------- */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  border-top: 1px solid var(--glass-line);
  padding-top: 22px;
}

.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  letter-spacing: 0.1em;
  color: rgba(234, 240, 255, 0.7);
}

.logo__mark--mini { width: 30px; height: 30px; flex: none; color: rgba(234, 240, 255, 0.75); }

.promo-nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

.promo-nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  border-bottom: 1px solid rgba(127, 141, 255, 0.6);
  padding-bottom: 2px;
  transition: color 0.2s ease, border-color 0.2s ease;
}

.promo-nav a:hover { color: var(--secondary); border-color: var(--secondary); }

/* монохромная читка знака */
.logo--mono .logo__mark { filter: grayscale(1) brightness(1.4); }

/* ---------- появление по скроллу ---------- */

[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.985);
  transition: opacity 0.9s ease, transform 0.9s cubic-bezier(0.2, 0.9, 0.3, 1);
}

[data-reveal].in { opacity: 1; transform: none; }

/* ---------- escape hatch ---------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
  .match-card { transform: none !important; }
  .mesh__blob { transform: none; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; padding-top: 2vh; }
  .features { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .top { flex-wrap: wrap; }
  .glass { border-radius: 18px; }
}
