
/* =========================
   WALKER LAYER
========================= */
.dev-walker-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 220px;
  pointer-events: none;
  z-index: 9999;
  overflow: visible;
}

.dev-walker-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 20px;
  height: 2px;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(83, 245, 223, 0.08),
    rgba(83, 245, 223, 0.22),
    rgba(83, 245, 223, 0.08),
    transparent
  );
  box-shadow: 0 0 12px rgba(83, 245, 223, 0.12);
}

/* =========================
   WALKER
========================= */
.dev-walker {
  --walker-x: -160px;
  position: absolute;
  left: 0;
  bottom: 8px;
  width: 140px;
  height: 110px;
  transform: translateX(var(--walker-x));
  pointer-events: none;
  z-index: 2;
  will-change: transform;
}

.dev-walker-shadow {
  position: absolute;
  left: 40px;
  bottom: 0;
  width: 60px;
  height: 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.28);
  filter: blur(4px);
  animation: walkerShadow 0.7s ease-in-out infinite alternate;
}

.dev-walker-character {
  position: absolute;
  left: 42px;
  bottom: 8px;
  width: 54px;
  height: 90px;
  animation: walkerBob 0.7s ease-in-out infinite alternate;
}

.dev-walker-head {
  position: absolute;
  top: 0;
  left: 16px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #dce6f0;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.12);
}

.dev-walker-body {
  position: absolute;
  top: 20px;
  left: 15px;
  width: 22px;
  height: 30px;
  border-radius: 10px;
  background: linear-gradient(180deg, #1a2431 0%, #0b1118 100%);
}

.dev-walker-arm,
.dev-walker-leg {
  position: absolute;
  background: linear-gradient(180deg, #1a2431 0%, #0b1118 100%);
  border-radius: 999px;
  transform-origin: top center;
}

.dev-walker-arm {
  top: 26px;
  width: 6px;
  height: 26px;
}

.dev-walker-arm-back {
  left: 10px;
  animation: armBack 0.7s infinite alternate;
}

.dev-walker-arm-front {
  left: 30px;
  animation: armFront 0.7s infinite alternate;
}

.dev-walker-leg {
  top: 50px;
  width: 7px;
  height: 34px;
}

.dev-walker-leg-left {
  left: 16px;
  animation: legLeft 0.7s infinite alternate;
}

.dev-walker-leg-right {
  left: 30px;
  animation: legRight 0.7s infinite alternate;
}

.dev-walker-laptop {
  position: absolute;
  top: 28px;
  left: 28px;
  width: 28px;
  height: 18px;
  border-radius: 4px;
  transform: rotate(-10deg);
  background: #0d131a;
  box-shadow: 0 0 14px rgba(83,245,223,0.08);
}

.dev-walker-laptop-screen {
  position: absolute;
  inset: 2px;
  border-radius: 3px;
  background: #53f5df;
  box-shadow: 0 0 10px rgba(83,245,223,0.35);
  animation: screenGlow 1.1s ease-in-out infinite alternate;
}

/* =========================
   CTA
========================= */
.dev-walker-cta {
  position: absolute;
  left: 50%;
  bottom: 130px;
  transform: translateX(-50%) scale(0.95);
  width: 300px;
  padding: 18px;
  border-radius: 24px;
  background: linear-gradient(135deg, #0a0d11, #0d1117);
  border: 1px solid rgba(83,245,223,0.25);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.6),
    0 0 30px rgba(83,245,223,0.08),
    inset 0 0 20px rgba(83,245,223,0.04);
  text-align: center;
  color: #eff5ff;
  opacity: 0;
  pointer-events: none;
  transition: .3s ease;
  z-index: 3;
  overflow: hidden;
}

.dev-walker-cta.is-visible {
  opacity: 1;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.dev-walker-cta::before,
.dev-walker-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 24px;
  pointer-events: none;
}

.dev-walker-cta::before {
  background: radial-gradient(circle at 50% 50%, rgba(83,245,223,0.06), transparent 72%);
}

.dev-walker-cta::after {
  border: 1px solid rgba(83,245,223,0.12);
  box-shadow:
    0 0 18px rgba(83,245,223,0.12),
    0 0 36px rgba(83,245,223,0.06);
}

.dev-walker-cta-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #53f5df;
  margin-bottom: 6px;
}

.dev-walker-cta-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #53f5df;
  box-shadow:
    0 0 8px rgba(83,245,223,0.6),
    0 0 14px rgba(83,245,223,0.4);
}

.dev-walker-cta-title {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 24px;
  font-weight: 900;
  color: #fff;
  line-height: 1;
  margin-bottom: 6px;
}

.dev-walker-cta-text {
  position: relative;
  z-index: 1;
  display: block;
  font-size: 14px;
  color: #a7b4c6;
  line-height: 1.35;
}

/* =========================
   LIGHT THEME
   Добавь на body класс light
========================= */
body.light .dev-walker-cta {
  background: linear-gradient(135deg, #ffffff, #f4f7fb);
  border: 1px solid rgba(83,245,223,0.35);
  box-shadow:
    0 20px 50px rgba(0,0,0,0.12),
    0 0 20px rgba(83,245,223,0.12),
    inset 0 0 10px rgba(83,245,223,0.05);
}

body.light .dev-walker-cta::before {
  background: radial-gradient(circle at 50% 50%, rgba(83,245,223,0.08), transparent 70%);
}

body.light .dev-walker-cta::after {
  border: 1px solid rgba(83,245,223,0.25);
  box-shadow:
    0 0 12px rgba(83,245,223,0.2),
    0 0 24px rgba(83,245,223,0.1);
}

body.light .dev-walker-cta-title {
  color: #0a0d11;
}

body.light .dev-walker-cta-text {
  color: #5b6b7c;
}

body.light .dev-walker-cta-badge {
  color: #1fdac5;
}

body.light .dev-walker-cta-badge::before {
  background: #1fdac5;
  box-shadow:
    0 0 6px rgba(31,218,197,0.6),
    0 0 12px rgba(31,218,197,0.4);
}

body.light .dev-walker-head {
  background: #1a2431;
}

body.light .dev-walker-body,
body.light .dev-walker-arm,
body.light .dev-walker-leg {
  background: #1a2431;
}

body.light .dev-walker-shadow {
  background: rgba(0,0,0,0.15);
}

/* =========================
   ANIMATIONS
========================= */
@keyframes walkerBob {
  from { transform: translateY(0); }
  to { transform: translateY(-3px); }
}

@keyframes walkerShadow {
  from { transform: scaleX(1); opacity: 0.3; }
  to { transform: scaleX(0.85); opacity: 0.15; }
}

@keyframes legLeft {
  from { transform: rotate(15deg); }
  to { transform: rotate(-15deg); }
}

@keyframes legRight {
  from { transform: rotate(-15deg); }
  to { transform: rotate(15deg); }
}

@keyframes armFront {
  from { transform: rotate(-10deg); }
  to { transform: rotate(10deg); }
}

@keyframes armBack {
  from { transform: rotate(10deg); }
  to { transform: rotate(-10deg); }
}

@keyframes screenGlow {
  from {
    filter: brightness(.94);
    box-shadow: 0 0 8px rgba(83,245,223,0.22);
  }
  to {
    filter: brightness(1.12);
    box-shadow: 0 0 18px rgba(83,245,223,0.32);
  }
}

@media (max-width: 768px) {
  .dev-walker-layer {
    height: 180px;
    bottom: 14px;
  }

  .dev-walker {
    width: 120px;
    height: 94px;
    bottom: 10px;
  }

  .dev-walker-cta {
    width: 220px;
    bottom: 110px;
    padding: 14px;
    border-radius: 20px;
  }

  .dev-walker-cta::before,
  .dev-walker-cta::after {
    border-radius: 20px;
  }

  .dev-walker-cta-title {
    font-size: 20px;
  }

  .dev-walker-cta-text {
    font-size: 12px;
  }
}
