/* ========== Landing page ========== */
.landing-body {
  min-height: 100vh;
}

/* Медленный «дыхание» фона на лендинге */
.landing-body::before {
  animation: landingAmbient 12s ease-in-out infinite;
}

@keyframes landingAmbient {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 0.85; }
}

.wave-bottom {
  top: auto;
  bottom: 0;
  height: 180px;
}

.wave-landing .wave-path {
  animation: waveDrift 8s ease-in-out infinite;
}

.wave-landing .wave-path-bottom {
  animation: waveDrift 8s ease-in-out infinite 1s;
}

@keyframes waveDrift {
  0%, 100% { transform: translateX(0) scaleX(1); }
  50% { transform: translateX(-2%) scaleX(1.02); }
}

.landing-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 48px;
  max-width: 840px;
  margin: 0 auto;
}

.landing-header {
  text-align: center;
  margin-bottom: 40px;
}

.landing-brand {
  margin-bottom: 6px;
}

.landing-subtitle {
  font-size: 16px;
  color: #6b7280;
  margin: 0;
}

.landing-brand .beta-badge {
  animation: landingBetaPulse 3s ease-in-out infinite;
}

@keyframes landingBetaPulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 rgba(79, 70, 229, 0.2); }
  50% { opacity: 0.9; box-shadow: 0 0 12px rgba(79, 70, 229, 0.35); }
}

.landing-hero {
  text-align: center;
  margin-bottom: 0;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

.landing-headline {
  font-size: clamp(2.75rem, 6vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #111827;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 0.05em;
}

.landing-headline-line {
  display: block;
  opacity: 0;
  transform: translateY(20px);
  animation: landingReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.landing-headline-line:nth-child(1) {
  animation-delay: 0.05s;
}

.landing-headline-line:nth-child(2) {
  animation-delay: 0.12s;
  background: linear-gradient(110deg, #4f46e5, #6366f1, #8b5cf6, #6366f1);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: landingReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.12s forwards, landingGradientShift 6s ease-in-out infinite 0.7s;
}

@keyframes landingGradientShift {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes landingReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-tagline {
  font-size: 1.25rem;
  color: #4b5563;
  line-height: 1.6;
  margin: 0 0 40px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  opacity: 0;
  animation: landingReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.2s forwards;
}

.landing-tagline em {
  font-style: italic;
  color: #4f46e5;
  font-weight: 600;
  animation: landingEmPulse 3s ease-in-out infinite;
}

.landing-use-case {
  font-size: 1rem;
  color: #6b7280;
  margin: 0 0 28px;
  font-weight: 500;
}

@keyframes landingEmPulse {
  0%, 100% { opacity: 1; text-shadow: 0 0 0 rgba(79, 70, 229, 0); }
  50% { opacity: 0.92; text-shadow: 0 0 20px rgba(79, 70, 229, 0.25); }
}

.landing-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  opacity: 0;
  animation: landingReveal 0.45s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.landing-visual-inbox,
.landing-visual-filter,
.landing-visual-now {
  padding: 18px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(79, 70, 229, 0.15);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 100px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-visual-now {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(99, 102, 241, 0.08));
  border-color: rgba(79, 70, 229, 0.25);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
  animation: landingPulse 2.5s ease-in-out infinite;
}

@keyframes landingPulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(79, 70, 229, 0.15);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 6px 28px rgba(79, 70, 229, 0.22);
    transform: scale(1.02);
  }
}

.landing-visual-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
}

.landing-visual-now .landing-visual-label {
  color: #4f46e5;
}

.landing-visual-dots {
  font-size: 20px;
  letter-spacing: 3px;
  color: rgba(79, 70, 229, 0.35);
  animation: landingDotsFlow 2.5s ease-in-out infinite;
}

.landing-visual-now .landing-visual-dots {
  color: rgba(79, 70, 229, 0.6);
  animation: landingDotsFlow 1.8s ease-in-out infinite;
}

@keyframes landingDotsFlow {
  0%, 100% { opacity: 0.7; }
  50% { opacity: 1; }
}

.landing-visual-arrow {
  font-size: 18px;
  color: rgba(79, 70, 229, 0.4);
  animation: landingArrow 1.5s ease-in-out infinite;
}

@keyframes landingArrow {
  0%, 100% { opacity: 0.5; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(4px); }
}

.landing-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 50%, #8b5cf6 100%);
  background-size: 200% 200%;
  background-position: 0% 50%;
  border: none;
  border-radius: 12px;
  text-decoration: none;
  box-shadow:
    0 4px 14px rgba(79, 70, 229, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  animation:
    landingReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.4s forwards,
    landingCtaGlow 4s ease-in-out infinite 2s;
  opacity: 0;
}

.landing-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.2), transparent 50%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

/* Блик, проходящий по кнопке */
.landing-cta::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.25),
    transparent
  );
  animation: landingCtaShine 5s ease-in-out infinite 3s;
  pointer-events: none;
}

@keyframes landingCtaGlow {
  0%, 100% {
    box-shadow: 0 4px 14px rgba(79, 70, 229, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background-position: 0% 50%;
  }
  50% {
    box-shadow: 0 6px 24px rgba(99, 102, 241, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background-position: 100% 50%;
  }
}

@keyframes landingCtaShine {
  0% { left: -100%; }
  20% { left: 120%; }
  100% { left: 120%; }
}

.landing-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.55);
}

.landing-cta:hover::before {
  opacity: 1;
}

.landing-cta:active {
  transform: translateY(0);
}

.landing-cta-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

.landing-cta-sub {
  margin: 10px 0 0;
  font-size: 13px;
  color: #6b7280;
}

.landing-problem-solution {
  margin: 28px 0 0;
  font-size: 1rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.5;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Trust line under CTA */
.landing-trust {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 6px;
  margin: 24px auto 0;
  font-size: 14px;
  color: #6b7280;
  max-width: 480px;
  opacity: 0;
  animation: landingReveal 0.35s cubic-bezier(0.22, 1, 0.36, 1) 0.5s forwards;
}

.landing-trust-dot {
  color: rgba(79, 70, 229, 0.4);
  user-select: none;
}

/* Before / After — дерзкий контраст */
.landing-compare {
  width: 100%;
  margin-bottom: 0;
  padding: 48px 0 48px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
  opacity: 0;
  animation: landingReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards;
}

.landing-compare-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.landing-compare-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
  align-items: stretch;
  max-width: 680px;
  margin: 0 auto;
}

@media (max-width: 600px) {
  .landing-compare-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
  }
  .landing-compare-vs {
    transform: rotate(90deg);
    justify-self: center;
  }
}

.landing-compare-side {
  padding: 28px 24px;
  border-radius: 18px;
  border: 1px solid transparent;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.landing-compare-before {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.08);
}

.landing-compare-before .landing-compare-label {
  color: #6b7280;
}

.landing-compare-after {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.08), rgba(99, 102, 241, 0.05));
  border-color: rgba(79, 70, 229, 0.2);
  box-shadow: 0 4px 24px rgba(79, 70, 229, 0.08);
}

.landing-compare-after .landing-compare-label {
  color: #4f46e5;
  font-weight: 700;
}

.landing-compare-side:hover {
  transform: translateY(-2px);
}

.landing-compare-after:hover {
  box-shadow: 0 8px 32px rgba(79, 70, 229, 0.14);
}

.landing-compare-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}

.landing-compare-list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 16px;
  line-height: 1.6;
  color: #374151;
}

.landing-compare-before .landing-compare-list {
  color: #4b5563;
}

.landing-compare-list li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
}

.landing-compare-list li:last-child {
  margin-bottom: 0;
}

.landing-compare-before .landing-compare-list li::before {
  content: "×";
  position: absolute;
  left: 0;
  color: #9ca3af;
  font-weight: 700;
  font-size: 14px;
}

.landing-compare-after .landing-compare-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #4f46e5;
  font-weight: 700;
  font-size: 14px;
}

.landing-compare-vs {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: rgba(79, 70, 229, 0.5);
  font-weight: 700;
  animation: landingArrow 1.5s ease-in-out infinite;
}

/* How it works — то, что ищет пользователь */
.landing-how {
  width: 100%;
  margin-bottom: 0;
  padding: 48px 0 48px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
  opacity: 0;
  animation: landingReveal 0.4s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards;
}

.landing-how-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.landing-how-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 500px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.landing-how-step {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  padding: 20px 24px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(8px);
  font-size: 16px;
  color: #374151;
  line-height: 1.55;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.landing-how-step:hover {
  transform: translateX(6px);
  border-color: rgba(79, 70, 229, 0.2);
}

.landing-how-num {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
}

.landing-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  width: 100%;
  margin-bottom: 0;
  padding: 48px 0 48px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

/* Built for — для кого сервис */
.landing-for {
  width: 100%;
  margin-bottom: 0;
  padding: 48px 0 48px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

.landing-for-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.landing-for-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.landing-for-list li {
  position: relative;
  padding-left: 28px;
  font-size: 16px;
  color: #374151;
  line-height: 1.5;
}

.landing-for-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
}

/* FAQ */
.landing-faq {
  width: 100%;
  margin-bottom: 0;
  padding: 48px 0 48px;
  border-bottom: 1px solid rgba(79, 70, 229, 0.12);
}

.landing-faq-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  text-align: center;
  margin: 0 0 28px;
  letter-spacing: -0.02em;
}

.landing-faq-list {
  margin: 0 auto;
  padding: 0;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.landing-faq-item {
  padding: 20px 0;
  border-bottom: 1px solid rgba(79, 70, 229, 0.08);
}

.landing-faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.landing-faq-item dt {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 8px;
}

.landing-faq-item dd {
  margin: 0;
  font-size: 15px;
  color: #4b5563;
  line-height: 1.6;
}

.landing-faq-item dd em {
  font-style: italic;
  color: #4f46e5;
}


@media (min-width: 640px) {
  .landing-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.landing-feature {
  padding: 32px 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(79, 70, 229, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.06);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  transform: translateY(20px);
  animation: landingFeatureReveal 0.5s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.landing-feature:nth-child(1) { animation-delay: 0.5s; }
.landing-feature:nth-child(2) { animation-delay: 0.6s; }
.landing-feature:nth-child(3) { animation-delay: 0.7s; }

@keyframes landingFeatureReveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.landing-feature:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(79, 70, 229, 0.12);
}

.landing-feature-icon {
  display: inline-flex;
  width: 48px;
  height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(79, 70, 229, 0.12);
  color: #4f46e5;
  font-size: 24px;
  margin-bottom: 16px;
  transition: transform 0.3s ease, background 0.3s ease;
}

.landing-feature:hover .landing-feature-icon {
  transform: scale(1.08);
  background: rgba(79, 70, 229, 0.18);
}

.landing-feature h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 10px;
}

.landing-feature p {
  font-size: 16px;
  color: #6b7280;
  line-height: 1.55;
  margin: 0;
}

.landing-cta-wrap {
  text-align: center;
  margin: 0 0 32px;
}

.landing-cta-wrap .landing-cta {
  opacity: 1;
  animation: none;
}

.landing-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 40px;
  padding-bottom: 32px;
  border-top: 1px solid rgba(79, 70, 229, 0.15);
}

.landing-footer-headline {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.landing-page .footer {
  margin-top: 24px;
  padding-top: 24px;
}

.landing-footer-text {
  font-size: 14px;
  color: #6b7280;
  margin: 0 0 20px;
}

.landing-footer .landing-cta {
  opacity: 1;
  animation: none;
}

.landing-cta-secondary {
  font-size: 14px;
  padding: 12px 22px;
}
