/* ===== MOTION EFFECTS ===== */
/* Плавные появления, параллакс, свечения, пульсации */

/* fade-in при загрузке */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeScale {
  from { opacity: 0; transform: scale(.92); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(38,208,124,.08); }
  50%      { box-shadow: 0 0 40px rgba(38,208,124,.16); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-6px); }
}
@keyframes twinkle {
  0%, 100% { opacity: .3; }
  50%      { opacity: .8; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes bgShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes pulseGlow {
  0%, 100% { opacity: .6; }
  50%      { opacity: 1; }
}
@keyframes orbit {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

/* Применение */
.section {
  animation: fadeIn .6s ease-out both;
}
.section:nth-child(2) { animation-delay: .1s; }
.section:nth-child(3) { animation-delay: .2s; }
.section:nth-child(4) { animation-delay: .3s; }

.card {
  animation: fadeUp .5s ease-out both;
}
.card:nth-child(2) { animation-delay: .08s; }
.card:nth-child(3) { animation-delay: .16s; }
.card:nth-child(4) { animation-delay: .24s; }
.card:nth-child(5) { animation-delay: .32s; }
.card:nth-child(6) { animation-delay: .40s; }

.step {
  animation: slideInLeft .5s ease-out both;
}
.step:nth-child(2) { animation-delay: .06s; }
.step:nth-child(3) { animation-delay: .12s; }
.step:nth-child(4) { animation-delay: .18s; }
.step:nth-child(5) { animation-delay: .24s; }
.step:nth-child(6) { animation-delay: .30s; }
.step:nth-child(7) { animation-delay: .36s; }
.step:nth-child(8) { animation-delay: .42s; }
.step:nth-child(9) { animation-delay: .48s; }

.agenda .line {
  animation: slideInRight .5s ease-out both;
}
.agenda .line:nth-child(2) { animation-delay: .04s; }
.agenda .line:nth-child(3) { animation-delay: .08s; }
.agenda .line:nth-child(4) { animation-delay: .12s; }
.agenda .line:nth-child(5) { animation-delay: .16s; }
.agenda .line:nth-child(6) { animation-delay: .20s; }

.logo {
  animation: glowPulse 3s ease-in-out infinite;
}

.flow-node, .flow-arr {
  animation: fadeScale .5s ease-out both;
}
.flow-node:nth-child(1), .flow-arr:nth-child(2) { animation-delay: 0s; }
.flow-node:nth-child(3), .flow-arr:nth-child(4) { animation-delay: .1s; }
.flow-node:nth-child(5), .flow-arr:nth-child(6) { animation-delay: .2s; }
.flow-node:nth-child(7), .flow-arr:nth-child(8) { animation-delay: .3s; }
.flow-node:nth-child(9) { animation-delay: .4s; }

.hero {
  animation: fadeScale .5s ease-out both;
}

.nav a {
  transition: all .25s ease;
}
.nav a:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(38,208,124,.14);
}

.start-btn {
  transition: all .3s ease;
  animation: glowPulse 4s ease-in-out infinite;
}
.start-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 14px 36px rgba(38,208,124,.3);
}

.chip {
  transition: all .25s ease;
}
.chip:hover {
  background: rgba(38,208,124,.12);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(38,208,124,.1);
}

/* Пульсация активной навигации */
.nav a.active::after {
  content: '';
  display: block;
  margin: 2px auto 0;
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: var(--accent);
  animation: pulseGlow 2s ease-in-out infinite;
}

/* Анимированный градиент фона */
body {
  background-size: 200% 200% !important;
  animation: bgShift 16s ease-in-out infinite alternate !important;
}

/* Свечение на карточках при ховере */
.card {
  transition: all .3s ease;
  position: relative;
  overflow: hidden;
}
.card::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at 50% 50%, rgba(38,208,124,.03), transparent 60%);
  opacity: 0;
  transition: opacity .5s ease;
  pointer-events: none;
}
.card:hover::before {
  opacity: 1;
}
.card:hover {
  transform: translateY(-3px);
  border-color: rgba(38,208,124,.16);
  box-shadow: 0 8px 30px rgba(0,0,0,.2);
}

/* Step ховер */
.step {
  transition: all .25s ease;
}
.step:hover {
  background: rgba(38,208,124,.08);
  border-color: rgba(38,208,124,.16);
  transform: translateX(4px);
}

/* accent-box shimmer */
.accent-box {
  position: relative;
  overflow: hidden;
}
.accent-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(38,208,124,.03), transparent);
  background-size: 200% 100%;
  animation: shimmer 6s ease-in-out infinite;
  pointer-events: none;
}

/* Пульсация иконок */
.icon {
  transition: all .3s ease;
}
.card:hover .icon {
  transform: scale(1.08);
  box-shadow: 0 0 24px rgba(38,208,124,.16);
}

/* flow-arr пульсация */
.flow-arr {
  animation: pulseGlow 2s ease-in-out infinite;
}
.flow-node {
  transition: all .3s ease;
}
.flow-node:hover {
  transform: translateY(-4px);
  border-color: rgba(38,208,124,.2);
  box-shadow: 0 8px 24px rgba(38,208,124,.12);
}

/* Плавный скролл */
html {
  scroll-behavior: smooth;
}

/* Анимация SVG схемы */
@keyframes dash {
  to { stroke-dashoffset: 0; }
}
@keyframes dotPulse {
  0%, 100% { r: 4; }
  50%      { r: 6; }
}
@keyframes nodeAppear {
  from { opacity: 0; transform: scale(.8); }
  to   { opacity: 1; transform: scale(1); }
}

.scheme-svg .link-line {
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  animation: dash 1.2s ease-out forwards;
}
.scheme-svg .link-line:nth-child(2) { animation-delay: .4s; }
.scheme-svg .link-line:nth-child(3) { animation-delay: .8s; }
.scheme-svg .link-line:nth-child(4) { animation-delay: 1.2s; }

.scheme-svg .node {
  animation: nodeAppear .5s ease-out both;
}
.scheme-svg .node:nth-child(2) { animation-delay: .15s; }
.scheme-svg .node:nth-child(3) { animation-delay: .3s; }
.scheme-svg .node:nth-child(4) { animation-delay: .45s; }
.scheme-svg .node:nth-child(5) { animation-delay: .6s; }

.scheme-svg .dot-pulse {
  animation: dotPulse 2s ease-in-out infinite;
}
